Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eudev Symlink?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
henry
n00b
n00b


Joined: 09 Aug 2002
Posts: 71

PostPosted: Mon Jan 07, 2019 4:51 pm    Post subject: eudev Symlink? Reply with quote

Hallo Freunde,

ich habe ein dual-usb-interface.

udevadm info -qall /dev/ttyUSB0
P: /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0
N: ttyUSB0
S: serial/by-id/usb-FTDI_Dual_RS232-if00-port0
S: serial/by-path/pci-0000:00:14.0-usb-0:10:1.0-port0
E: DEVLINKS=/dev/serial/by-id/usb-FTDI_Dual_RS232-if00-port0 /dev/serial/by-path/pci-0000:00:14.0-usb-0:10:1.0-port0
E: DEVNAME=/dev/ttyUSB0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0
E: ID_BUS=usb
E: ID_MM_CANDIDATE=1
E: ID_MODEL=Dual_RS232
E: ID_MODEL_ENC=Dual\x20RS232
E: ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
E: ID_MODEL_ID=6010
E: ID_PATH=pci-0000:00:14.0-usb-0:10:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_10_1_0
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
E: ID_REVISION=0500
E: ID_SERIAL=FTDI_Dual_RS232
E: ID_TYPE=generic
E: ID_USB_DRIVER=ftdi_sio
E: ID_USB_INTERFACES=:ffffff:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=FTDI
E: ID_VENDOR_ENC=FTDI
E: ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
E: ID_VENDOR_ID=0403
E: MAJOR=188
E: MINOR=0
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=1397884385

udevadm info -qall /dev/ttyUSB1
P: /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
S: serial/by-id/usb-FTDI_Dual_RS232-if01-port0
S: serial/by-path/pci-0000:00:14.0-usb-0:10:1.1-port0
E: DEVLINKS=/dev/serial/by-id/usb-FTDI_Dual_RS232-if01-port0 /dev/serial/by-path/pci-0000:00:14.0-usb-0:10:1.1-port0
E: DEVNAME=/dev/ttyUSB1
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1
E: ID_BUS=usb
E: ID_MM_CANDIDATE=1
E: ID_MODEL=Dual_RS232
E: ID_MODEL_ENC=Dual\x20RS232
E: ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
E: ID_MODEL_ID=6010
E: ID_PATH=pci-0000:00:14.0-usb-0:10:1.1
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_10_1_1
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
E: ID_REVISION=0500
E: ID_SERIAL=FTDI_Dual_RS232
E: ID_TYPE=generic
E: ID_USB_DRIVER=ftdi_sio
E: ID_USB_INTERFACES=:ffffff:
E: ID_USB_INTERFACE_NUM=01
E: ID_VENDOR=FTDI
E: ID_VENDOR_ENC=FTDI
E: ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
E: ID_VENDOR_ID=0403
E: MAJOR=188
E: MINOR=1
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=1553963191

Ich möchte dafür Symlinks anlegen.
ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", ATTRS{bInterfaceNumber}=="00", SYMLINK+="/dev/ttyTS2000-0", GROUP="uucp"
ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", ATTRS{bInterfaceNumber}=="01", SYMLINK+="/dev/ttyTS2000-1", GROUP="uucp"

Leider geht da gar nichts.
Wo liegt mein Denkfehler?

Danke für Eure Mühe

73 Henry
Back to top
View user's profile Send private message
firefly
Advocate
Advocate


Joined: 31 Oct 2002
Posts: 4439

PostPosted: Mon Jan 07, 2019 9:43 pm    Post subject: Reply with quote

welche kernel version?
Wenn es 4.12+ dann bist du auf folgendes Problem gestoßen: https://github.com/systemd/systemd/issues/8221

Ändere die Regeln so dass statt ACTION=="add" -> ACTION=="add|bind" verwendet wird.

mit
Code:
udevadm monitor
würdest du ohne diese Änderung sehen, dass der Symlink wieder entfernt wird, wenn der bind event von udev abgearbeitet wird, welches nach dem add event kommt
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
henry
n00b
n00b


Joined: 09 Aug 2002
Posts: 71

PostPosted: Tue Jan 08, 2019 7:45 am    Post subject: Reply with quote

Hallo firefly,

eine kurze Info von mir.

Ich benutze noch Kernel 4.9.77 aus den gentoo-sources.

73 Henry
Back to top
View user's profile Send private message
firefly
Advocate
Advocate


Joined: 31 Oct 2002
Posts: 4439

PostPosted: Tue Jan 08, 2019 8:50 am    Post subject: Reply with quote

Dann schau dir mit "udevadm monitor" an was udev macht bzw. welche events abgearbeitet werden, wenn das gerät angeschlossen wird.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
henry
n00b
n00b


Joined: 09 Aug 2002
Posts: 71

PostPosted: Sun Jan 13, 2019 2:05 pm    Post subject: Reply with quote

Hallo,
bin wieder da.

udevadm monitor

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

jetzt angestöpselt :

KERNEL[274.488493] add /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
KERNEL[274.488893] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
KERNEL[274.488906] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
KERNEL[274.489011] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[274.489236] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
KERNEL[274.489244] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
KERNEL[274.489363] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV [274.494180] add /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
UDEV [274.494452] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
UDEV [274.494668] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
UDEV [274.494740] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
UDEV [274.494873] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
UDEV [274.495144] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV [274.495302] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)

soweit alles okay.

ls -al /dev/ttyUSB*

crw-rw---- 1 root uucp 188, 0 13. Jan 14:57 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 13. Jan 14:57 /dev/ttyUSB1

kein ttyTS2000*

SYMLINK+="ttyTS2000-0 wird nicht erzeugt.

jetzt angestöpselt :

KERNEL[598.808123] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[598.808136] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
KERNEL[598.808144] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
KERNEL[598.808206] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)
KERNEL[598.808215] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
KERNEL[598.808223] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
KERNEL[598.808513] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
UDEV [598.808751] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV [598.808861] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
UDEV [598.808910] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV [598.808963] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
UDEV [598.808991] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
UDEV [598.809081] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
UDEV [598.811664] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)

und wieder angestöpselt :

KERNEL[666.828447] add /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
KERNEL[666.828913] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
KERNEL[666.828924] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
KERNEL[666.829040] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[666.829249] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
KERNEL[666.829292] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
KERNEL[666.829390] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV [666.834345] add /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
UDEV [666.834656] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
UDEV [666.834827] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
UDEV [666.834938] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
UDEV [666.835112] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
UDEV [666.835341] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV [666.835514] add /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)

kein Symlink.

Wenn jemand eine Idee hat wäre ich froh.

73 henry
Back to top
View user's profile Send private message
firefly
Advocate
Advocate


Joined: 31 Oct 2002
Posts: 4439

PostPosted: Sun Jan 13, 2019 3:47 pm    Post subject: Reply with quote

Füg noch den paramter -p hinzu, dann siehst du auch die properties, dann sollte eventuell klarer werden was bei deiner regel falsch ist

In deiner udevadm info ausgabe fehlen die attribute (die bekommt man mit dem parameter -a angezeigt.
Ich vermute "ATTRS{idVendor}==403" stimmt nicht, da ID_VENDOR=FTDI ist. Eventuell wird dieser wert zu ATTRS{idVendor} konvertiert

EDIT: lies dir auch mal dies durch: https://wiki.archlinux.org/index.php/udev#About_udev_rules
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
henry
n00b
n00b


Joined: 09 Aug 2002
Posts: 71

PostPosted: Sun Jan 13, 2019 5:56 pm    Post subject: Reply with quote

Hallo firefly,

so sieht das jetzt aus:

udevadm monitor -p
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[14192.157045] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
ACTION=remove
DEVNAME=/dev/ttyUSB0
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0
MAJOR=188
MINOR=0
SEQNUM=4606
SUBSYSTEM=tty

KERNEL[14192.157072] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0
SEQNUM=4607
SUBSYSTEM=usb-serial

KERNEL[14192.157091] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0
DEVTYPE=usb_interface
INTERFACE=255/255/255
MODALIAS=usb:v0403p6010d0500dc00dsc00dp00icFFiscFFipFFin00
PRODUCT=403/6010/500
SEQNUM=4608
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[14192.157117] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)
ACTION=remove
DEVNAME=/dev/ttyUSB1
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1
MAJOR=188
MINOR=1
SEQNUM=4609
SUBSYSTEM=tty

KERNEL[14192.157137] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1
SEQNUM=4610
SUBSYSTEM=usb-serial

KERNEL[14192.157151] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1
DEVTYPE=usb_interface
INTERFACE=255/255/255
MODALIAS=usb:v0403p6010d0500dc00dsc00dp00icFFiscFFipFFin01
PRODUCT=403/6010/500
SEQNUM=4611
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[14192.157438] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
ACTION=remove
BUSNUM=011
DEVNAME=/dev/bus/usb/011/018
DEVNUM=018
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10
DEVTYPE=usb_device
MAJOR=189
MINOR=1297
PRODUCT=403/6010/500
SEQNUM=4612
SUBSYSTEM=usb
TYPE=0/0/0

UDEV [14192.157731] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0 (tty)
ACTION=remove
DEVLINKS=/dev/serial/by-id/usb-FTDI_Dual_RS232-if00-port0 /dev/serial/by-path/pci-0000:00:14.0-usb-0:10:1.0-port0
DEVNAME=/dev/ttyUSB0
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0
ID_BUS=usb
ID_MM_CANDIDATE=1
ID_MODEL=Dual_RS232
ID_MODEL_ENC=Dual\x20RS232
ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
ID_MODEL_ID=6010
ID_PATH=pci-0000:00:14.0-usb-0:10:1.0
ID_PATH_TAG=pci-0000_00_14_0-usb-0_10_1_0
ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
ID_PCI_INTERFACE_FROM_DATABASE=XHCI
ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
ID_REVISION=0500
ID_SERIAL=FTDI_Dual_RS232
ID_TYPE=generic
ID_USB_DRIVER=ftdi_sio
ID_USB_INTERFACES=:ffffff:
ID_USB_INTERFACE_NUM=00
ID_VENDOR=FTDI
ID_VENDOR_ENC=FTDI
ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
ID_VENDOR_ID=0403
MAJOR=188
MINOR=0
SEQNUM=4606
SUBSYSTEM=tty
USEC_INITIALIZED=927396251

UDEV [14192.157848] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0 (usb-serial)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0
SEQNUM=4607
SUBSYSTEM=usb-serial
USEC_INITIALIZED=2157251

UDEV [14192.157937] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0
DEVTYPE=usb_interface
ID_MM_DEVICE_MANUAL_SCAN_ONLY=1
ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
INTERFACE=255/255/255
MODALIAS=usb:v0403p6010d0500dc00dsc00dp00icFFiscFFipFFin00
PRODUCT=403/6010/500
SEQNUM=4608
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=927395608
UDEV [14192.157981] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1 (tty)
ACTION=remove
DEVLINKS=/dev/serial/by-id/usb-FTDI_Dual_RS232-if01-port0 /dev/serial/by-path/pci-0000:00:14.0-usb-0:10:1.1-port0
DEVNAME=/dev/ttyUSB1
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1/tty/ttyUSB1
ID_BUS=usb
ID_MM_CANDIDATE=1
ID_MODEL=Dual_RS232
ID_MODEL_ENC=Dual\x20RS232
ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
ID_MODEL_ID=6010
ID_PATH=pci-0000:00:14.0-usb-0:10:1.1
ID_PATH_TAG=pci-0000_00_14_0-usb-0_10_1_1
ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
ID_PCI_INTERFACE_FROM_DATABASE=XHCI
ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
ID_REVISION=0500
ID_SERIAL=FTDI_Dual_RS232
ID_TYPE=generic
ID_USB_DRIVER=ftdi_sio
ID_USB_INTERFACES=:ffffff:
ID_USB_INTERFACE_NUM=01
ID_VENDOR=FTDI
ID_VENDOR_ENC=FTDI
ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
ID_VENDOR_ID=0403
MAJOR=188
MINOR=1
SEQNUM=4609
SUBSYSTEM=tty
USEC_INITIALIZED=927396492

UDEV [14192.158040] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1 (usb-serial)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1/ttyUSB1
SEQNUM=4610
SUBSYSTEM=usb-serial
USEC_INITIALIZED=2157491

UDEV [14192.158118] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.1
DEVTYPE=usb_interface
ID_MM_DEVICE_MANUAL_SCAN_ONLY=1
ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
INTERFACE=255/255/255
MODALIAS=usb:v0403p6010d0500dc00dsc00dp00icFFiscFFipFFin01
PRODUCT=403/6010/500
SEQNUM=4611
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=927395887

UDEV [14192.161336] remove /devices/pci0000:00/0000:00:14.0/usb11/11-10 (usb)
ACTION=remove
BUSNUM=011
DEVNAME=/dev/bus/usb/011/018
DEVNUM=018
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb11/11-10
DEVTYPE=usb_device
ID_BUS=usb
ID_MM_DEVICE_MANUAL_SCAN_ONLY=1
ID_MODEL=Dual_RS232
ID_MODEL_ENC=Dual\x20RS232
ID_MODEL_FROM_DATABASE=FT2232C/D/H Dual UART/FIFO IC
ID_MODEL_ID=6010
ID_REVISION=0500
ID_SERIAL=FTDI_Dual_RS232
ID_USB_INTERFACES=:ffffff:
ID_VENDOR=FTDI
ID_VENDOR_ENC=FTDI
ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
ID_VENDOR_ID=0403
MAJOR=189
MINOR=1297
PRODUCT=403/6010/500
SEQNUM=4612
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=927390557

bin aber trotz lesen noch nicht weiter.

ATTRS{idVendor}=="0403" zu
ATTRS{idVendor}=="FTDI"

hilft auch nicht.

Aber danke für den Tipp.

73 Henry
Back to top
View user's profile Send private message
firefly
Advocate
Advocate


Joined: 31 Oct 2002
Posts: 4439

PostPosted: Sun Jan 13, 2019 7:44 pm    Post subject: Reply with quote

Gib mal die ausgabe von
Code:
udevadm info -qall -a /dev/ttyUSB0

Dann haben wir auch die ATTRS mit dabei
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
henry
n00b
n00b


Joined: 09 Aug 2002
Posts: 71

PostPosted: Mon Jan 14, 2019 3:56 pm    Post subject: Reply with quote

Okay firefly,
hier die Ausgabe:

udevadm info -qall -a /dev/ttyUSB0

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
DRIVER==""

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0/ttyUSB0':
KERNELS=="ttyUSB0"
SUBSYSTEMS=="usb-serial"
DRIVERS=="ftdi_sio"
ATTRS{port_number}=="0"
ATTRS{latency_timer}=="16"

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb11/11-10/11-10:1.0':
KERNELS=="11-10:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="ftdi_sio"
ATTRS{interface}=="Dual RS232"
ATTRS{bInterfaceProtocol}=="ff"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bInterfaceSubClass}=="ff"
ATTRS{bInterfaceClass}=="ff"
ATTRS{bAlternateSetting}==" 0"
ATTRS{authorized}=="1"
ATTRS{bNumEndpoints}=="02"
ATTRS{supports_autosuspend}=="1"

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb11/11-10':
KERNELS=="11-10"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceClass}=="00"
ATTRS{manufacturer}=="FTDI"
ATTRS{bmAttributes}=="80"
ATTRS{bConfigurationValue}=="1"
ATTRS{version}==" 2.00"
ATTRS{devnum}=="4"
ATTRS{bMaxPower}=="90mA"
ATTRS{idProduct}=="6010"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{urbnum}=="17"
ATTRS{bDeviceSubClass}=="00"
ATTRS{maxchild}=="0"
ATTRS{bcdDevice}=="0500"
ATTRS{bMaxPacketSize0}=="8"
ATTRS{idVendor}=="0403"
ATTRS{product}=="Dual RS232"
ATTRS{speed}=="12"
ATTRS{removable}=="removable"
ATTRS{ltm_capable}=="no"
ATTRS{bNumConfigurations}=="1"
ATTRS{busnum}=="11"
ATTRS{authorized}=="1"
ATTRS{quirks}=="0x0"
ATTRS{configuration}==""
ATTRS{devpath}=="10"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumInterfaces}==" 2"

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb11':
KERNELS=="usb11"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceClass}=="09"
ATTRS{manufacturer}=="Linux 4.9.77-gentoo xhci-hcd"
ATTRS{bmAttributes}=="e0"
ATTRS{bConfigurationValue}=="1"
ATTRS{version}==" 2.00"
ATTRS{devnum}=="1"
ATTRS{bMaxPower}=="0mA"
ATTRS{idProduct}=="0002"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{urbnum}=="100"
ATTRS{bDeviceSubClass}=="00"
ATTRS{maxchild}=="14"
ATTRS{bcdDevice}=="0409"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{idVendor}=="1d6b"
ATTRS{product}=="xHCI Host Controller"
ATTRS{speed}=="480"
ATTRS{authorized_default}=="1"
ATTRS{interface_authorized_default}=="1"
ATTRS{removable}=="unknown"
ATTRS{ltm_capable}=="no"
ATTRS{serial}=="0000:00:14.0"
ATTRS{bNumConfigurations}=="1"
ATTRS{busnum}=="11"
ATTRS{authorized}=="1"
ATTRS{quirks}=="0x0"
ATTRS{configuration}==""
ATTRS{devpath}=="0"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bNumInterfaces}==" 1"

looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="xhci_hcd"
ATTRS{subsystem_device}=="0x8534"
ATTRS{vendor}=="0x8086"
ATTRS{d3cold_allowed}=="1"
ATTRS{msi_bus}=="1"
ATTRS{device}=="0x8cb1"
ATTRS{local_cpulist}=="0-7"
ATTRS{numa_node}=="-1"
ATTRS{class}=="0x0c0330"
ATTRS{driver_override}=="(null)"
ATTRS{local_cpus}=="ff"
ATTRS{enable}=="1"
ATTRS{irq}=="27"
ATTRS{broken_parity_status}=="0"
ATTRS{dma_mask_bits}=="64"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{subsystem_vendor}=="0x1043"

looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""

73 Henry

Unter der Woche ist die Zeit manchmal knapp. Bitte nicht wundern, wenn es mal länger dauert.
Back to top
View user's profile Send private message
atari800
n00b
n00b


Joined: 20 Dec 2018
Posts: 7
Location: Berlin, Germany

PostPosted: Mon Jan 14, 2019 4:27 pm    Post subject: Reply with quote

In der verlinkten Arch-Doku fügt er noch
Code:
SUBSYSTEMS=="usb"

für die ATTRS{idVendor} und ATTRS{idProduct} ein.
Schon ne Weile her, daß ich mal eine udev-Regel benutzt hab, aber vielleicht sollte Deine Regel auch mit

ACTION=="add", SUBSYSTEM=="tty", SUBSYSTEMS=="usb",

beginnen, weil die Vendor und Product unter "usb" stehen?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum