This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to restore communication with MSP430 USB composite(CDC+HID) device

Other Parts Discussed in Thread: MSP430F5529

Hello,

 

We have an application which uses MSP430F5529 USB Composite (CDC+HID) Device.

On the PC we have Serial terminal application(CDC-Com Port).

 

The MSP430 is used as a sub MCU and our application has a requirement to reset the MSP430

from the main MCU while the USB is still connected to the terminal application.

 

Now the problem is, when we reset the MSP430 the "COM port is lost" and 

in order to restore the communication,the USB has to be removed &reinserted 

and also the PC apllication has be restarted.

 

I know this is the limitation of "CDC specification", but we are 

looking if there is any way to restart the communication the without removing USB

or restarting the application.

 

Could anybody help us in finding a simpler solution

to detect serial port insertion/removal and continue with the  

restore communication with Serial terminal application.

 

Best Regards.

Mudigere.

  • If you are looking for a terminal software for development, this one will work.

    USB Aware Terminal Emulator
    http://forum.sparkfun.com/viewtopic.php?t=17217

    If you are writing your own PC code for virtual COM port,

    1) Detect connection/disconnection of virtual COM port (VCP) device by periodical COM ports scan specifying VID/PID of the target device

    COM ports scan using SetupDi API
    http://www.microchip.com/forums/fb.ashx?m=365029
    http://www.cygnal.org/ubb/Forum9/HTML/001659.html

    COM ports scan using WMI
    http://www.microchip.com/forums/fb.ashx?m=560699

    2) At disconnection of the target VCP device, close the COM port handle. At re-connection, open the COM port again.

    Tsuneo

  • Hi Tsuneo,

    Thank you so much for the details and the procedure.

**Attention** This is a public forum