Changes between Version 2 and Version 3 of USB


Ignore:
Timestamp:
07/03/21 00:36:01 (3 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • USB

    v2 v3  
    99}}}
    1010
     11If 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
     14total 0
     15lrwxrwxrwx 1 root root 13 Jul  3 02:53 platform-xhci-hcd.0.auto-usb-0:1.1:1.0-port0 -> ../../ttyUSB2
     16lrwxrwxrwx 1 root root 13 Jul  3 02:53 platform-xhci-hcd.0.auto-usb-0:1.4:1.0-port0 -> ../../ttyUSB1
     17lrwxrwxrwx 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
    1121Then, we config /etc/digitemp.conf to point to softlink file ttyUSB1. In this case, point to usb-Prolific_Technology_Inc.
    1222{{{
    1323[jpc@rock ~]$ cat /etc/digitemp.conf
    1424#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
     26TTY /dev/serial/by-path/platform-xhci-hcd.0.auto-usb-0:1.1:1.0-port0
     27
    1628READ_TIME 1000
    1729LOG_TYPE 1