On Thursday 14 August 2003 06:39 pm, Steve Mason wrote: > So this looks like I'm not going to be able to do what I want, which is > trying to port a real-time serial port service routine that runs in the > background (ie, while other programs are running) to OS5.x. I'm assuming > of course that I can't use SysNotifyBroadcast() from the wakeup handler or > that there is another way to run my serial buffer servicing routine in > near real time. > > Anyone have any ideas about how I could possibly do this ? (besides > setting an alarm and polling the serial buffer every second - too slow!)
I had similar problems back in April, in writing a keyboard driver. On OS 5.x, while I have a serial port open, I register for sysNotifyEventDequeuedEvent and poll. I don't believe it will work if you want to receive serial while the device is asleep. You may also want to EvtSetNullEventTick() at some point while the serial port is open to guarantee a minimum nilEvent rate. Use the event log in the simulator and you can see the nilEvent rate. -- /* Chris Faherty <[EMAIL PROTECTED]> */ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
