Actually, as of PalmSource 1998 it is officially supported.
The routines you want are SerSetWakeupHandler and
SetPrimeWakeupHandler (or something like that, I'm going from memory
and it's early in the morning :-))
A wakeup handler gets called at interrupt time when a predefined
number of bytes have been received. The number of bytes to wait for
is set by the call to SerPrimeWakeupHandler.
Because the wakeup handler is running at interrupt time it is
severely limited in what it can do. There is no access to globals and
most of the PalmOS API is not available. What you can do though is to
enqueue a virtual key event onto the keyboard queue and wakeup the UI
allowing your application to be notified that there is data ready to
be read. Once the wakeup handler has been called it won't be called
again until it is re-primed.
Typically you would prime for one byte then when your app has read
the data in re-prime the handler.
Cheers,
Bruce
> >How do I get a call from the os when data arrives at the serial port . =
>>Any interrupts are there . I am not using the new serial manager . this =
>>is for palmOs ver 3.1 .
>
>Officially, you don't. However recently someone posted a URL to a posting
>on "palmpower" (I think) that had a detailed article on how to use some low
>level routines (some marked for system use only, so caveat emptor!) to
>achieve what you are looking for.
>
>You probably also want to join the palm-comm-dev forum which palm recently
>started. (I think that is where the post was made, so search the archives
>of that list).
>
>brian
>
>_____________________________________________________________________
>Mark/Space Softworks voice 408-293-7299
>111 West Saint John, 3rd Floor fax 408-293-7298
>San Jose, CA 95113 <http://www.markspace.com>
>
> PalmOS, Mac OS, Windows and Web Software & Solutions:
>
> PageNOW! Wireless Messaging, PhoneWatcher Caller ID,
> Online & Communicate terminal emulation and serial debugging
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, please
>see http://www.palmos.com/dev/tech/support/forums/
--
------------------------------------------------------------------------------
Bruce Thompson | "Pinkie! Are you pondering what I'm pondering?"
Software Engineer | "I think so Brain, but if they called them Sad
Partner Engineering | Meals kids wouldn't buy them!"
Palm, Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/