Content originally posted in LPCWare by dive on Fri Nov 19 00:45:32 MST 2010
I use LPC1343 with example source [usbcdc] modified a little.
I want to detect the open/close of the host application (like hyper terminal)
LPC1343-----usb-----PC(hyper terminal)
Connection sequence is
1. Connect the USB cable between LPC1343 and PC.
Enumeration started, then USB vcom ready.
2. Start up the hyper terminal in PC, then open the vcom port.
*** I want to know this event in LPC1343 ! ***
3. Close the vcom port in hyper terminal.
*** I want to know this event in LPC1343 ! ***
4. Disconnect the USB cable.
Run the lpcxpresso debugger and found that CDC_GetLineCoding and
CDC_SetLineCoding functions are called at this timing.
But it's not enough information...
Does anyone know about it ?