Artifact [9e35084a13]
Not logged in

Artifact 9e35084a13ffaece4d228d3bf506a4d8310bdf82:

Wiki page [usbserial command] by chw 2017-01-15 12:02:06.
D 2017-01-15T12:02:06.846
L usbserial\scommand
P c93c574b95d4236bd50112f8f05bfbdb411150ba
U chw
W 2661
<h2>Name</h2>

<b>usbserial</b> - transfer data over USB-serial converters

<h2>Synopsis</h2>

<tt>package require Usbserial</tt><br>
<tt>usbserial <i>?devicename?</i></tt>

<h2>Description</h2>

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 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.

<h2>List of supported devices</h2>
<nowiki>
<table>
<th>
 <tr>
  <td><b>Vendor<br>ID</b></td>
  <td><b>Product<br>ID</b></td>
  <td><b>Remarks<br>&nbsp;</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 81edf60f4cf55b29011eb9272e4b4ad3