Thanks Philip,

I tried what you said and unfortunately found out that for
SrmSetWakeupHandler to work my app has to remain the active app. However,
this is not how it should work. My app will be sending and receiving over
the serial port and it may be that the user would be working in another app.
My app should nevertheless be notified that the serial port is receiving
data and handle the event. The trick here is to have a background process.
Maybe I haven't understood the serial wakeup handler well enough yet. I
would appreciate any pointers.

One example of what I am aiming for is like the Palm Portable Keyoard where
the app goes into the background and whenever the user types something on
the keyboard the characters are input no matter what application is active.

Thanks for any input and help.

Regards,

MH

"Philip Sheard" <[EMAIL PROTECTED]> wrote in message
news:67633@palm-dev-forum...
>
> >   How can I write an app that will run in the background and watch the
> serial
> >   port for any received data and then enqueue the event in the system
> event
> >   queue? There are several apps that do this like SimpliWrite, APOS and
> >   others. In other words, even when other apps are active I want to
check
> >   the serial port and know if something is being received and then send
an
> ACK
> >   in the background.
>
> You want a serial wakeup handler. This is documented on 3.3 onwards, and
is
> present but undocumented on 3.1. It can be tricky to get going, but it
does
> work.
>
> >   Should this be done by patching some of the sysTrap calls using
> HackMaster
> >   or the likes so that when the serial port receives something my app is
> >   launched?
>
> Nope.
>
> >   Should this be done by writing a virtual serial driver as someone has
> >   suggested?
>
> Nope.
>
> >   How will this work to always watch the serial port and then
> >   launch my app?
>
> That is what a serial wakeup handler does.
>
> >   Any other suggestions?
>
> I have suggestions for the guys who suggested hacks or virtual drivers.
>
>
>
>
>



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