Content originally posted in LPCWare by Tsuneo on Sat Mar 08 08:51:22 MST 2014
Unless you would specify "the USB stack", you should get just vague general answer.
Sound like one of LPCOpen (or LPCUSBlib) version, but which one?
Quote:
Any explanation why _connect and _disconnect are not seen.
Because these functions aren't implemented.
The function names appear just in comments.
Using "global search" of your editor, confirm it.
Quote:
What is the recommended way to keep the USB stack healthy and allow the PC software to
close the serial device and reopen it.
How do i know on the 11u14 side when the PC side is opening the device?
On major platform (Linux, Windows and MacOS), nothing is sent to USB device implicitly, when PC application opens/closes a COM port (**1). Therefore, your PC application has to send a signal explicitly.
DTR signaling is often applied for this purpose.
On a terminal app, you may enable "hardware handshake (DTR-DSR)".
Of course, a little customization is required on "the USB stack"
If you would give the exact version of "the USB stack", we may discuss on the implementation details.
(**1)
As an exception, Windows CloseHandle() drops DTR by sending SetControlLineState.
But CreateFile() puts nothing.
Tsuneo