Browse Source

ajout doc pour udev

phyto 6 months ago
parent
commit
d3b399d4fa
1 changed files with 48 additions and 0 deletions
  1. 48
    0
      doc/udev.txt

+ 48
- 0
doc/udev.txt View File

@@ -0,0 +1,48 @@
1
+
2
+
3
+============================================================================
4
+root@phytotron:~# udevadm info -n /dev/ttyACM1 
5
+P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/tty/ttyACM1
6
+N: ttyACM1
7
+L: 0
8
+S: serial/by-id/usb-Arduino__www.arduino.cc__0042_8573432373035191A0B1-if00
9
+S: serial/by-path/pci-0000:00:1d.0-usb-0:1.6:1.0
10
+E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/tty/ttyACM1
11
+E: DEVNAME=/dev/ttyACM1
12
+E: MAJOR=166
13
+E: MINOR=1
14
+E: SUBSYSTEM=tty
15
+E: USEC_INITIALIZED=470754075024
16
+E: ID_BUS=usb
17
+E: ID_VENDOR_ID=2341
18
+E: ID_MODEL_ID=0042
19
+E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
20
+E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
21
+E: ID_PCI_INTERFACE_FROM_DATABASE=EHCI
22
+E: ID_VENDOR_FROM_DATABASE=Arduino SA
23
+E: ID_MODEL_FROM_DATABASE=Mega 2560 R3 (CDC ACM)
24
+E: ID_VENDOR=Arduino__www.arduino.cc_
25
+E: ID_VENDOR_ENC=Arduino\x20\x28www.arduino.cc\x29
26
+E: ID_MODEL=0042
27
+E: ID_MODEL_ENC=0042
28
+E: ID_REVISION=0001
29
+E: ID_SERIAL=Arduino__www.arduino.cc__0042_8573432373035191A0B1
30
+E: ID_SERIAL_SHORT=8573432373035191A0B1
31
+E: ID_TYPE=generic
32
+E: ID_USB_INTERFACES=:020201:0a0000:
33
+E: ID_USB_INTERFACE_NUM=00
34
+E: ID_USB_DRIVER=cdc_acm
35
+E: ID_USB_CLASS_FROM_DATABASE=Communications
36
+E: ID_PATH=pci-0000:00:1d.0-usb-0:1.6:1.0
37
+E: ID_PATH_TAG=pci-0000_00_1d_0-usb-0_1_6_1_0
38
+E: DEVLINKS=/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_8573432373035191A0B1-if00 /dev/serial/by-path/pci-0000:00:1d.0-usb-0:1.6:1.0
39
+E: TAGS=:systemd:
40
+============================================================================
41
+
42
+tth@phytotron:~/Prototype/DD2-monitor$ cat /etc/udev/rules.d/72-mega-phytotron.rules
43
+SUBSYSTEM=="tty" ATTRS{idVendor}=="2341" ATTRS{idProduct}=="0042" SYMLINK+="phytotron"
44
+
45
+============================================================================
46
+
47
+
48
+============================================================================

Loading…
Cancel
Save