Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Recieving TV Remote Signals with RawIr?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2008, 03:11 PM
MM2forever's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 48
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default Recieving TV Remote Signals with RawIr?

Hi,

I know I've asked that question a long time ago but this was under different circumstances:

Is it possible to recieve the standart IR remote control hexcodes with an b4p additional library like the RawIr.dll?

I have like 2 programs who can be used as a remote for tv/dvd and so on, but i want it vice versa - i want to control a b4p programm with a standart IR remote.

Thanks
__________________
Regards, Christian

>> My PPC Hardware <<


There are 10 kinds of people: Those who understand binary, and those who don't.
Reply With Quote
  #2 (permalink)  
Old 08-06-2008, 09:05 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 231
Awards Showcase
Beta Tester 
Total Awards: 1
Default

The RawIR.dll for PPC took me about a year to finally design and code.
Even then I only managed it with the Franson SerailNET.DLL

I've been a IR NUT since getting a Psion5 about 10 years ago.
I tried every programming platform I could learn or understand,
for any PDA i've owned since.
But never managed TV remote control from my own coding.


So as regards your post.
TV remotes use a carrier signal of about 38-40khz.
Which equates to Serial IR Baud rate I haven't got a clue
Each button pressed adds it's unique ID to the carrier wave.

If you can read an IR string and detect or find the 'unique' ID's,
then send a string of the same type, Bobs ya uncle.

If it was that easy, I think I'd have done it years ago.
It is possible via .NET, but via B4ppc . . . . . . . . .


Good look and keep trying
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #3 (permalink)  
Old 08-07-2008, 09:12 AM
MM2forever's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 48
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default

Thanks for your comments on this topic.
Anyway, If such a pro like you never got it to work, i dont see too much chances that i will do it,
But I'll keep trying

What I've found out so far ist that 38kHz ~ 2400Baud.
Maybe this is something to work with...

Edit://

In fact! I did get something to work! Based on the intel gathered about the baudrate, I found some more on this site:
CodeProject: Pocket PC TV Remote Control. Free source code and programming help

I learned about the signal setting just like:
Parity=0 (even parity)
Stopbits=2

I wrote a short test app, grabbed 3 remotes from the living room and tried to recieve a signal - it worked!
(I have a IR interface @ COM 1 of my PC)

I brought it onto the pda and runned the source in b4p - I couldnt encounter the same results.
It only gave me an error as the rawir.dll returned message.

Anyway, here is the small code:
Code:
Sub App_Start
portnum.SelectedIndex=0
raw.New1("<regkey>")
raw.Baud=2400
raw.Parity=0
raw.Stopbits=2
raw.RawIR=True

main.Show	
End Sub

Sub porton_Click 'WHen I tried to close the Port it didn't work so im just opening it lol
raw.ComPort=portnum.Item(portnum.SelectedIndex)
raw.OpenPort
portonoff.Text="ON"
portonoff.Color=cGreen
End Sub

Sub main_Close
raw.Dispose
End Sub

Sub get_Click
raw.ReceiveIr
txt.Text=raw.Message
End Sub

Sub send_Click
raw.TransmitIr
End Sub
The form looks like that (with some code recieved from a remote):


Hope i'll get it to work on my ppc somehow...

Right now I'm experimenting with the baud rates like the one from the CodeProject article (115200 baud), but unless knowing the actual rate these are just experiments with the hope that somewhen, with the right baud rate each code looks the same when hittin' the same key freqently (because so far everything looks different everytime lol^^).

Maybe you do have some further ideas - I'm already happy with seeing at least 'some' interaction between remote and b4p app

Thanks four your generous help - to all of you guys
__________________
Regards, Christian

>> My PPC Hardware <<


There are 10 kinds of people: Those who understand binary, and those who don't.

Last edited by MM2forever : 08-07-2008 at 01:55 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
RawIR.dll taximania Additional Libraries 6 08-06-2008 08:18 AM
SMS 'remote control' flet Basic4ppc Wishlist 1 01-07-2008 02:58 PM


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0