Artifact 8d0be3534726d0d85b2dc98bff49fce0b91f9ee3:
Wiki page
[
usbserial command] by
chw
2019-04-26 06:31:55.
D 2019-04-26T06:31:55.901
L usbserial\scommand
P 7ce75ebe82b660c91f1479580eb565b577a0a97a
U chw
W 2887
<h2>usbserial command</h2>
<h3>Name</h3>
<b>usbserial</b> - transfer data over USB-serial converters
<h3>Synopsis</h3>
<tt>package require Usbserial</tt><br>
<tt>usbserial <i>?devicename?</i></tt>
<h3>Description</h3>
This command is used to transfer data over supported USB-serial converters (FTDI, CDC, Prolific, etc.), see this <a href="http://code.google.com/p/usb-serial-for-android/">reference</a>. When no further argument is given to the <tt>usbserial</tt> command, a list of supported USB device names in the form of zero or more <tt>/dev/bus/usb/MMM/NNN</tt> device special file names is returned. When the USB device name of a supported USB-serial converter is given as argument, <tt>usbserial</tt> opens that USB device and returns a Tcl channel handle for it. This handle may be used with <tt>fconfigure</tt>, <tt>gets</tt>, <tt>read</tt>, <tt>puts</tt>, and <tt>close</tt>. The options <tt>-mode</tt>, <tt>-ttycontrol</tt>, and <tt>-ttystatus</tt> to <tt>fconfigure</tt> are supported by the channel. However, support for getting and/or setting control lines varies between different USB-serial converter chips. Note, that similar to a normal POSIX tty device an USB device name can be opened more than once simultaneously.
<h3>List of supported devices</h3>
<nowiki>
<table>
<th>
<tr>
<td><b>Vendor<br>ID</b></td>
<td><b>Product<br>ID</b></td>
<td><b>Remarks<br> </b></td>
</tr>
<tr>
<td>0x10c4</td><td>0xea60</td><td>CP2102</td>
</tr><tr>
<td>0x10c4</td><td>0xea70</td><td>CP2105</td>
</tr><tr>
<td>0x10c4</td><td>0xea71</td><td>CP2108</td>
</tr><tr>
<td>0x10c4</td><td>0xea80</td><td>CP2110</td>
</tr><tr>
<td>0x067b</td><td>0x2303</td><td>Prolific PL2303</td>
</tr><tr>
<td>0x0403</td><td>0x0601</td><td>FTDI FT232R</td>
</tr><tr>
<td>0x0403</td><td>0x6015</td><td>FTDI FT231X</td>
</tr><tr>
<td>0x2341</td><td>0x0001</td><td>Arduino UNO</td>
</tr><tr>
<td>0x2341</td><td>0x0010</td><td>Arduino Mega 2560</td>
</tr><tr>
<td>0x2341</td><td>0x003b</td><td>Arduino Serial Adapter</td>
</tr><tr>
<td>0x2341</td><td>0x003f</td><td>Arduino Mega ADK</td>
</tr><tr>
<td>0x2341</td><td>0x0042</td><td>Arduino Mega 2560 R3</td>
</tr><tr>
<td>0x2341</td><td>0x0043</td><td>Arduino UNO R3</td>
</tr><tr>
<td>0x2341</td><td>0x0044</td><td>Arduino Mega ADK R3</td>
</tr><tr>
<td>0x2341</td><td>0x8036</td><td>Arduino Leonardo</td>
</tr><tr>
<td>0x16c0</td><td>0x0483</td><td>TeensyDuino</td>
</tr><tr>
<td>0x03eb</td><td>0x2044</td><td>ATMEL LUFA CDC Demo Application</td>
</tr><tr>
<td>0x1eaf</td><td>0x0004</td><td>Leaflabs Maple</td>
</tr><tr>
<td>0x1a86</td><td>0x7523</td><td>CH 34x</td>
</tr><tr>
<td>0x1a86</td><td>0x5523</td><td>CH 34x</td>
</tr><tr>
<td>0x4348</td><td>0x5523</td><td>CH 34x</td>
</tr>
</table>
</nowiki>
Z 2c13de497318f8abd75e4559a7a41149