The problem appears to be created when you remove the palm
from the cradle, and place it back in the cradle when the
palm is on the Applications screen. It seems that something
opens the serial port. In my application I check serErrAlreadyOpen
when I SerOpen. This condition is true and I inform the user
that the port is open. I can't use the port for anything until
I reset the device. How do you programatically find the driver that
has the port open and how do you close the port down?
Thanks.
-----Original Message-----
From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 10:35 AM
To: Palm Developer Forum
Subject: Re: How to close serial port on application startup
The serial port is implicitly closed when the serial library is unloaded
(even if the original app forgets to close it). The only case I know of
where the port may still be in use is with a keyboard driver. In that case,
you will need to find out how to tell the specific driver to release the
port (if possible). Otherwise your just out of luck until you reset or
manually unload the driver.
Do you have a specific case where the serial port is already in use and
locking you out? Or is just some speculative code to prevent a possible
problem?
----- Original Message -----
From: "Nesselhauf, John" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 7:43 AM
Subject: How to close serial port on application startup
> Hi,
>
> I want to check to see if the serial port is open when my
> application starts up, and if it is, close it. Does anybody
> have a code sample of how this is done?
>
> Thank You,
> John.
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/