|
![]() USB
![]() How to reset my CP2103 device on PC?
|
| next newest topic | next oldest topic |
| Author | Topic: How to reset my CP2103 device on PC? |
|
BF New Member |
Hello, How to reset my CP2103 device on PC through USB instead of unplugging. (I am running VCP driver on PC.) Many thanks! IP: Logged |
|
Tsuneo Member |
To reset the entire CP210x chip, you have to use the reset pin of the CP210x. When your CP210x is connected to a MCU, drive the reset pin of the CP210x using an open-drain port (w/pull-up) of the MCU. Therefore, to reset the CP210x from PC, you have to send a command to the MCU over the CP210x!! It isn't practical, considering the situation in which reset is required. For the communication problem, USB bus reset will re-initialize the USB side of the chip. To issue USB bus reset on the PC, a) Device Manager (manually) CP210x VCP port is found under "Port (COM and LPT)" tree. b) DevCon (DOS command) > devcon disable @"USB\VID_10C4&PID_EA60\0001" Where, 0001 is the serial number of the chip These commands are executed using ShellExecute( open ) from your code. Also, you can extract the procedure from the source code of DevCon. C:\WINDDK\3790.1830\src\setup\devcon\ [References] DevCon "Commands for DevCon Operations" on MSDN "ShellExecute Function" WinDDK Burn the ISO image file into a CD-R disk after download. Tsuneo IP: Logged |
|
BF New Member |
Hi Teuneo, Thank you! Because my CP2103 device is powered by USB power, so, is there any way to shut down USB power from PC and then power on to reset it? IP: Logged |
|
Tsuneo Member |
"is there any way to shut down USB power from PC and then power on to reset it?" Some hubs (or root hubs) support this function, but others not. Then, it isn't a certain way. Related spec is here. And related topic on USB-IF. Tsuneo [This message has been edited by Tsuneo (edited January 17, 2008).] IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?