I have a problem with my application : when the port is brutally reset, it doesn't work anymore, even if I empty the buffers. How can I do to reset the port without closing it ?
I checked ALL my technical references and could not locate that term.
> How can I do to reset the port without closing it ?
'the port'? Please see the question above.
'without closing it'? How did you open it? What mechanism are you using to talk to what port? How do you know it has been 'brutally reset', did you trip over the cable and pull it out?
Are you in the correct forum?
What is your favorite color? LOL
I mean the serial port, when talking about the port. And 'brutally reset' means that it hasn't been done from the computer, but from the device that is connected to.
First I am not a seasoned Serial Port developer. In the modest experience I have in Win16 and Win32 serial port development there is no notion of 'reset'. So I still have no idea what has actually happend in technical terms.
First, are you sure the 'port' is not responding to your code or is the device connected to the port not responding? If so how?
If you are sure it is the port:
Have you tried ClearCommError(), ClearCommBreak(), Clearing and setting DTS and RTS, changing the baud rate, etc. ?
Also, think about the architecture. The port itself is a hardware component that probably is not the source of the problem. Next comes the system bios that connects the port to the system, this is not likely the problem either. Then comes the device driver which is software and could possibly be what is locking up. If any of those three tiers are causing the problem I would think a re-boot would be the only solution.
Next comes your code manipulating the Comm API. Then finally the device that is connected to the port, this would be the first thing I would look at.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.