PalmOS 3.5 has added the functionality of an interupt called
SrmWakeUpHandler. It basically is an interrupt that is called when data is
received. There is some set up but you may want to read about that later.
It's pretty cool that it makes the call when data is in the serial buffer.
However, with it's coolness comes some quirks....
1. There is a bug that you can not receive data using SrmReceive...you have
to use SrmReceiveWindowOpen to get the data out of the buffer.
2. Another thing, is the fact about EvtGetEvent and how it usually has
EvtWaitForever.
Your application is pretty much in a hold state waiting for the user to do
something. However, serial data comes in..it won't be read due to the
EvtWaitForever. The addtion of the SrmWakeUpHandler does make it leave this
state to set the flag that you have to check the buffer however it comes
back into this waitforever state. So, a unique event has to be created and
added to the wake handler to make it leave this state. That's just easier
said than done as I'm tinkering with right now.
Hope I gave you a little start to your question.
Jim
Arijit_c <[EMAIL PROTECTED]> wrote in message news:57123@palm-dev-forum...
Hi All,
I wish to have my Palm Application started when there is an intimation
from a remote machine. The remote m/c sends some data to the serial
port. On receiving this data at the serial port the PDA needs to invoke
the necessary application. I was trying to use some Hack methods to trap
the IRQ and route it to my IVT. But I was unable to do it in Palm OS. It
maybe due to my insignificant knowledge in PalmOS. Please help me out
and if u have any other suggestion let me know.
Regards
Arijit
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/