At 8:19 AM -0400 2001/06/21, Nesselhauf, John wrote:
>How does one share the serial port between two applications? In other
>words two applications both have the serial port opened at the same
>time and are able to communicate through it. The documentation aludes
>to a "cooperative task" having this ability. This would be for the operating
>system Palm 3.1.
One application should be given the responsibility of opening and closing the port.
Once the port is opened, simply pass the opened port ref to the other application,
keeping in mind that if you use the wakeup handler mechanism, you must be certain the
wakeup proc is loaded, locked, and ready to handle an interrupt-service-level callback.
In general, it's not a good idea to write your application(s) this way, but you may
have specific needs which require such an architecture.
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/