I wish to use the IrLibrary for a simple app to transmit data from one
palm to another.  I'm only interested in ways of doing this using
IrLibrary and not other ways.  This is to understand the IrLibrary so
other methods don't address the point of these questions.
In a nutshell, I'm having problems understanding which of the IrLibrary
functions are required and when they should be executed to have basic
communications.
I have initialized the IR on both devices with calls to:
IrOpen() and IrBind().

I have seen that when I have both applications running and one already
initialized, and I init() on the other palm, the 1st one will react to the
first palm init().  So, there is some basic communication going on.
I have a simple IrCallBack function that only displays the reason the
callback was called, by displaying in a popup things like LEVENT_DATA_IND
and other reasons.  The callback seems to be working as it detects init on
the other device and detects when the other device is shut off.  So there
is some basic operability here.
I have then put two buttons on the main form.  One to "Send" and one to
"Recv".  When I tap "Send", I execute an IrConnectReq() and when I tap
"Recv" I execute IrConnectRsp().  Some simple text is used as data.
My thinking was that I could tap "Send" on one device and "Recv" on the
other and have the data displayed on the receiving device.  But when I try
this, nothing happens.
I don't even see any CallBack() execution when a IrConnectReq() or
IrConnectRsp() are executed.
What am I missing here?  What other functions are required to send data
between two palms?  Again, the only IrLibrary functions that I'm currently
using for this simple communications are IrOpen(), IrClose(), IrBind(),
IrUnbind, IrConnectReq() and IrConnectRsp().
If you understand the IrLibrary, I'd appreciate a tip or two.  If you know
of an application that uses the IrLibrary (with source available), I'd be
interested in knowing where it's at.
There is an Ir example with Code Warrior but it does not use the IrLibrary.

Thanks,




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

Reply via email to