"DIAMOND JEFF" <[EMAIL PROTECTED]> wrote in message
news:14499@palm-dev-forum...
> I wanted to create an application that continually broadcasts infrared
> data packets from one Palm to several.  This is not a formal data
> transfer but a continuous communication link.
>
> I assume I wouldn't be able to use the higher level Palm Exchange
> library, but I'm not sure how to use the low level Ir libraries for this
> kind of thing.

The Exchange Manager can be used to repeatedly discover and send data to
whoever is discovered. It can't send data to more than one device at once
because it uses IrOBEX which is connection-based. If you use the Exchange
Manager, progress dialogs will appear that you won't have any control over.
Communication is 1-way and one "object" is sent at a time.

As the Peter's said, using the IR Library, you can get access to the lower
layers of the IrDA stack. You can send a test request packet in broadcast
mode. Devices generally respond to test requests with test responses
containing identical data. Palms running the Exchange Manager (ie. when the
IR Library isn't open) won't respond to test requests at all. You can make
your app respond to test packets with any data you want, or not respond.

I haven't tried using test packets to broadcast data to several devices at
once, but I think it'll work. You could probably write a cool multi-player
game using test packets. It might be hard to stay in range and see the
screen at the same time, but kids probably wouldn't mind.
--
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