View Single Post
  #3 (permalink)  
Old 08-07-2008, 09:12 AM
MM2forever's Avatar
MM2forever MM2forever is offline
Knows the basics
 
Join Date: Jun 2007
Location: Germany
Posts: 59
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