I'm not an IrDA expert, but I'm pretty sure you're right. When you open the
IR library, you're effectively disabling the Exchange Manager (ie. OBEX).
Palm OS doesn't support multiple services. You don't have to worry about
restoring the XID or LSAP selector. When you close the IR library, OBEX will
restore these.

One technique I've used is to send a test packet before doing a discover. If
the other device hasn't opened the IR library yet, the test packet will be
ignored. If my app has opened the IR library on the receiving device, it'll
bounce the test packet back after tweaking it. When the sender gets this
bounce, it knows that the receiving device is ready. It can then do a
discover. If you try to do a discover while the receiving device is running
OBEX, a "waiting for sender" dialog will appear for a while on the receiving
device.
--
Danny Epstein
OS Engineer, Palm Inc.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to