If you search Dr. Dobbs (www.ddj.com) you will find an article on Palm IR
programming.  You may have to pay for the article, but you can download the
sample app (irtest) with source from the FTP site for free.  I think that
there might be source for a simple battleship game as well.  The irtest app
sends text messages back and forth using IrLMP or TinyTP.

There is another sample floating around called IR_PING, that does device
discovery and uses IAS services to search for IrComm support, etc.  Sorry, I
can't remember the author's name off the top of my head.

Theoretically, IrDA at 115K baud (max on Palm) can easily support the
exchange rates you are talking about, even with IrLap overhead.  However, I
am not sure about the overall responsiveness of the Palm IrDA stack.  I've
never tested it.

The IR library is inherently asynchronous (with callback functions).  So
blocking is not required.  All the samples above demonstrate this to some
degree.

Good Luck,
-jjf

-----Original Message-----
From: DIAMOND JEFF [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 6:43 PM
To: Palm Developer Forum
Subject: Any good examples of low level IR polling?


I am trying to create an application that mimics the key strokes on one
Palm to that of another Palm using the low level IR libraries while an
application is running.

I need to send a very small packet of data on the order of 16 times per
second in a way that doesn't slow down the main application on either
device.

Can anyone recommend good source code examples of using low level IR
communication in a way that doesn't block running applications?

Thanks!
- Jeff

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

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