<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

<h3>Description</h3>

This command is used to transfer data over supported USB-serial converters (FTDI, CDC, Prolific, etc.), see this <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 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>


 </tr>
 <tr>

 </tr><tr>

 </tr><tr>

 </tr><tr>

 </tr><tr>
  PL2303</td>
 </tr><tr>
  FT232R</td>
 </tr><tr>
  FT231X</td>
 </tr><tr>
  UNO</td>
 </tr><tr>
  Mega 2560</td>
 </tr><tr>
  Serial Adapter</td>
 </tr><tr>
  Mega ADK</td>
 </tr><tr>
  Mega 2560 R3</td>
 </tr><tr>
  UNO R3</td>
 </tr><tr>
  Mega ADK R3</td>
 </tr><tr>
  Leonardo</td>
 </tr><tr>

 </tr><tr>
  LUFA CDC Demo Application</td>
 </tr><tr>
  Maple</td>
 </tr><tr>
  34x</td>
 </tr><tr>
  34x</td>
 </tr><tr>
  34x</td>
 </tr>
</table>
</nowiki>