Skip to content

USB attached /dev/tty monitor. Shows you how to get the /dev/ttyXYZ path of a given USB port.

License

Notifications You must be signed in to change notification settings

drzymalanet/usb-tty-spy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

USB /dev/tty monitor

This script prints out changes in the USB TTY submodule and the /dev/tty device assigned to a given USB port.

Example

Here is an example of running the script and attaching different USB to serial converters to a PC:

USB Port :: 3-1:1.0 :: /dev/ttyACM0
USB Port :: 2-1:1.0 :: /dev/ttyACM1
USB Port :: 2-1:1.0 :: Unplugged
USB Port :: 2-1:1.0 :: /dev/ttyACM1
USB Port :: 2-1:1.0 :: Unplugged
USB Port :: 3-1:1.0 :: Unplugged
USB Port :: 3-1:1.0 :: /dev/ttyACM0
USB Port :: 3-1:1.0 :: Unplugged
USB Port :: 2-1:1.0 :: /dev/ttyACM0
USB Port :: 3-1:1.0 :: /dev/ttyACM1
USB Port :: 3-1:1.0 :: Unplugged
USB Port :: 3-1:1.0 :: /dev/ttyACM1
USB Port :: 1-4:1.0 :: /dev/ttyACM2
USB Port :: 1-4:1.0 :: Unplugged
USB Port :: 1-3:1.0 :: /dev/ttyACM2
USB Port :: 1-3:1.0 :: Unplugged
USB Port :: 3-1:1.0 :: Unplugged
USB Port :: 2-1:1.0 :: Unplugged

Explanation:

  • 2-1:1.0 - USB Bus 2 Port 1
  • 1-3:1.0 - USB Bus 1 Port 3
  • /dev/ttyACM0 - Device path to the TTY

About

USB attached /dev/tty monitor. Shows you how to get the /dev/ttyXYZ path of a given USB port.

Topics

Resources

License

Stars

Watchers

Forks

Languages