Thread View: borland.public.delphi.nativeapi.win32
5 messages
5 total messages
Started by Jeffy
Tue, 29 Jul 2008 20:48
USB to RS232 and hibernation
Author: Jeffy
Date: Tue, 29 Jul 2008 20:48
Date: Tue, 29 Jul 2008 20:48
13 lines
1406 bytes
1406 bytes
Hi Everyone... I have an issue with an app I developed where it runs fine using Delphi 2007 and Async Pro under normal conditions. If the app is running and left and the computer goes in to hibernation... the serial port seems to get locked or something. You can quit the software... run it again... and I will get the message the comport is unavailable at least until I unplug the USB to RS232 adapter and plug it back in and run the app again, then everything is fine once again. Am I neglecting to do something to avoid this problem? thanks Jeff
Re: USB to RS232 and hibernation
Author: Remy Lebeau (TeamB)
Date: Wed, 30 Jul 2008 06:25
Date: Wed, 30 Jul 2008 06:25
11 lines
1263 bytes
1263 bytes
"Jeffy" <jlabute@signalink.com> wrote in message news:488f8204$1@newsgroups.borland.com... > Am I neglecting to do something to avoid this problem? Are you intercepting the WM_POWERBROADCAST message so you can release the COM port before hibernation begins? Gambit
Re: USB to RS232 and hibernation
Author: Roger Lascelles
Date: Wed, 30 Jul 2008 07:21
Date: Wed, 30 Jul 2008 07:21
20 lines
1946 bytes
1946 bytes
"Jeffy" <jlabute@signalink.com> wrote in message news:488f8204$1@newsgroups.borland.com... > Hi Everyone... > > If the app is running and left and the computer goes in to hibernation... > the serial port seems to get locked or something. You can quit the > software... run it again... and I will get the message the comport is > unavailable at least until I unplug the USB to RS232 adapter and plug it > back in and run the app again, then everything is fine once again. Am I > neglecting to do something to avoid this problem? The performance of USB to Serial adapter hardware and manufacturer-supplied drivers varies greatly. I highly recommend adapters based on the FTDI chips - the drivers are kept up to date and these devices are known to work when the others don't. http://ftdichip.com and one source of purchase with fast shipping worldwide is http://dontronics.com . Roger Lascelles
Re: USB to RS232 and hibernation
Author: John Herbster
Date: Wed, 30 Jul 2008 11:26
Date: Wed, 30 Jul 2008 11:26
9 lines
1483 bytes
1483 bytes
"Remy Lebeau (TeamB)" wrote > Are you intercepting the WM_POWERBROADCAST message > so you can release the COM port before hibernation begins? Remy, Thanks for the hint! My 24-7 programs are on systems that never (?) hibernate, but it would be nice to incorporate your suggestion (with testing of course) just to handle such a possibility. Rgds, JohnH
Re: USB to RS232 and hibernation
Author: Jeffy
Date: Wed, 30 Jul 2008 15:46
Date: Wed, 30 Jul 2008 15:46
24 lines
1720 bytes
1720 bytes
Thanks Remy. Actually... I had no idea I had to do that... hahahahaha. But it's definately a good idea. I find it odd though that even if I terminate my application when I come out of hibernation, it still doesn't seem to release the com port... oh well... I will do this... thanks muchly :-) Jeff "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:48900922$1@newsgroups.borland.com... > > "Jeffy" <jlabute@signalink.com> wrote in message > news:488f8204$1@newsgroups.borland.com... > >> Am I neglecting to do something to avoid this problem? > > Are you intercepting the WM_POWERBROADCAST message so you can release the > COM port before hibernation begins? > > > Gambit >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads