Changes between Version 2 and Version 3 of USB
- Timestamp:
- 07/03/21 00:36:01 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
USB
v2 v3 9 9 }}} 10 10 11 If we use path to find out which USB belong to Digitemp in this case was platform-xhci-hcd.0.auto-usb-0:1.1:1.0-port0 ../../ttyUSB2 12 {{{ 13 [jpc@rock ~]$ ls /dev/serial/by-path/ -l 14 total 0 15 lrwxrwxrwx 1 root root 13 Jul 3 02:53 platform-xhci-hcd.0.auto-usb-0:1.1:1.0-port0 -> ../../ttyUSB2 16 lrwxrwxrwx 1 root root 13 Jul 3 02:53 platform-xhci-hcd.0.auto-usb-0:1.4:1.0-port0 -> ../../ttyUSB1 17 lrwxrwxrwx 1 root root 13 Jul 3 02:53 platform-xhci-hcd.1.auto-usb-0:1:1.0-port0 -> ../../ttyUSB0 18 [jpc@rock ~]$ 19 }}} 20 11 21 Then, we config /etc/digitemp.conf to point to softlink file ttyUSB1. In this case, point to usb-Prolific_Technology_Inc. 12 22 {{{ 13 23 [jpc@rock ~]$ cat /etc/digitemp.conf 14 24 #TTY /dev/ttyUSB1 15 TTY /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 25 #TTY /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 26 TTY /dev/serial/by-path/platform-xhci-hcd.0.auto-usb-0:1.1:1.0-port0 27 16 28 READ_TIME 1000 17 29 LOG_TYPE 1