Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drzymalanet/usb-tty-spy
USB attached /dev/tty monitor. Shows you how to get the /dev/ttyXYZ path of a given USB port.
https://github.com/drzymalanet/usb-tty-spy
device-tree linux python tty ttyacm ttyusb usb
Last synced: 28 days ago
JSON representation
USB attached /dev/tty monitor. Shows you how to get the /dev/ttyXYZ path of a given USB port.
- Host: GitHub
- URL: https://github.com/drzymalanet/usb-tty-spy
- Owner: drzymalanet
- License: unlicense
- Created: 2024-12-10T19:16:18.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-10T19:27:53.000Z (about 1 month ago)
- Last Synced: 2024-12-10T20:29:33.171Z (about 1 month ago)
- Topics: device-tree, linux, python, tty, ttyacm, ttyusb, usb
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```text
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