PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Smartphone Irda

I'm having a problem with the Irda port on the Orange SPV Smartphone, from what I can figure out the ports are like this:

COM1: Serial Port
COM2: no idea
COM3: Some kind of OBEX/full Irda discovery thing?
COM4: Irda port

However when I send data to COM4, it gets wrapped like this:

1 2 3 4 5 gets sent as:
c0 c0 c0 c0 c0 c0 c0 c0 c0 c0 c0 01 02 03 04 05 ec 22 c1

Which buggers everything up. It didn't work like this on Pocket PC 2000 or 2002, it just sent the data raw...

I tried doing
EscapeCommFunction(portHandle,SETIR);
and not doing it, and when you don't do it the data comes out raw, but corrupted like this:


fd fb fd ff f5 fb fd ef ed eb
(instead of 01 02 03 04...)
ONESTOPBIT:

fd=11111101 01 00000001
fb=11111011 02 00000010
fd=11111101 03 00000011
ff=11110111 04 00000100
f5=11110101 05 00000101
fb=11111011 06 00000110
fd=11111101 07 00000111
ef=11101111 08 00001000
ed=11101101
eb
ed
f7
f5
fb
fd


TWOSTOPBITS

fb=11111011
f7=11110111



Help - I've tried everything and I can't get the Smartphone to send raw Irda data? What's going wrong?