I've implemented Ultra-IR as part of the HP open-source coolbase release.
It's using the old serial manager, but sends/receives without problem using
raw serial as you are attempting here. It frames data as ultra packets
(limit of about 380 bytes of data per packet) with error checking per packet
but no connection/session management (per Ultra specs). That means you don't
know if a sent packet is received, but the receiver does know that a packet
is valid (or not) when it comes in.
You could of course just blast data out/read data in and hope for the best
;)
The code is at:
http://devnet.hp.com/projects/coolbase/
or more specifically
http://devnet.hp.com/cvsweb.php/Esquirt/PalmOS/?cvsroot=coolbase
The source file you want is sir.c.
- John Schettino
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/