I have a really basic question about the Ir Library.  Recently an engineer
here has been looking into implementing a standard IrDA high level protocol
on Palm for a client's vertical application.  At first, it looked pretty
straight forward:

Open the Lib
Bind to it to get an LSAP
Set the bound connection to TinyTP ConType (need in this case)
Add an Object with the right name and attribute (our LSAP) to the IAS
Initiate (Discovery, connect, etc.) or what to be connected to
And so on...

But as we looked at it together, some basic questions came up.  For example,

How do you remove your object from the IAS when you are done running (ie, we
only want the protocol available when our app is running)?  We see
IrIAS_Add, but no remove.

Similarly, how to deal with Hint bits?  We can set hint bits and nickname
with IrSetDeviceInfo, but how would we get the previous info to OR our bits
in (or, AND them out when we are done)?

As we looked closer at these issues we began to wonder about our initial
assumption (I know, a out of u and me...)  We assumed that the Ir Library is
multiple session.  That is, our session would co-exist with built in OBEX
support, etc. via the wonders of the surprisingly complicated IrDA LMP
layer.  However, now that we've been looking at it, it seems that the Ir
Library might be single instance.

I downloaded an existing IR app (a simple 'battleship' game) to test.  When
I run the game (idle, waiting for connection) I can't beam memos, etc. to
the Palm.  But I am not sure if this is a limitation of the stack or the
usage of it by the game.  The game seems to replace the XID data with its
LSAP and a player name (I watched with SNIFFIR).  I've noticed that Palm
won't beam to a device that doesn't show the OBEX hint bit at discovery
time.

I've searched the archives and the knowledge base but haven't been able to
answer this remedial question.  I'd really appreciate it if someone could
clue us in.

Thanks in advance, and sorry for such a remedial question.
-jjf

-- 
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