Paul Alfille - 2014-10-06

/home/paul/tty2usb-code/tty2usb.1 2333/2415 96%
man(1) tty2usb man page man(1)

NAME
tty2ysb - Shows serial devices and associated USB addresses (Linux)

SYNOPSIS
tty2usb
tty2usb -h

DESCRIPTION
Serial (RS232) communication is a legacy way that computers and other
devices (like modems) communicate. Modern systems often no longer
include dedicated serial hardware. Instead serial ports are simulated
by the more capable USB communication systems. That means the device
exists in the USB domain, and also as a serial port. tty2usb finds
connection between serial device names (e.g. ttyUSB0) and the actual
USB address (idVendor/idProduct and busnum/devnum enumeration).

   tty2usb  searches the /sys directory for ports of the form tty[a-zA-Z]*
   and shows the associated USB parameters.

   There are a couple of reasons to need this information:

   Tuning serial settings (tty -> USB)
          Improve  the  generic  serial  communication  settings  for  the
          expected  traffic  patterns  by  directly  sending configuration
          information to the USB chip.

   Discovery (USB -> tty)
          Search for a known USB chip corresponding to an expected instru-
          ment, and then open the device as a serial device.

OPTIONS
-h Shows help message

EXAMPLE
> tty2usb
List tty -> USB pairings
TTY=ttyUSB0 bus=3 dev=3 USB=0403:6001
TTY=ttyUSB1 bus=1 dev=6 USB=0403:6001
TTY=ttyUSB2 bus=3 dev=14 USB=0711:0230
TTY=ttyUSB7 bus=1 dev=7 USB=1A86:7523
TTY=ttyUSB8 bus=1 dev=4 USB=10C4:EA60

SEE ALSO
dmesg(1) libusb(1) libusb(3)

BUGS
No known bugs, but doesn't check against unlimited /sys depth.

   Only tested against Linux 3+ kernels

COPYRIGHT
MIT Licence -- pretty liberal

AUTHOR
Paul Alfille (paul.alfille@gmail.com)
1Help 2UnWrap 3Quit 4Hex 5Goto 6 7Search 8Raw 9Unform10Quit