24.04.2016, 14:37
Hi,
Kann mir jemand sageb welche Syntax ich hier in der udev Rule brauche ?
Habe hier schon einiges probiert:
Apr 24 14:22:55 odroid kernel: [[email protected]] ch341 1-1.2:1.0: device disconnected
Apr 24 14:23:09 odroid kernel: [[email protected]] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
Apr 24 14:23:09 odroid kernel: [[email protected]] ch341 1-1.2:1.0: ch341-uart converter detected
Apr 24 14:23:09 odroid kernel: [[email protected]] usb 1-1.2: ch341-uart converter now attached to ttyUSB1
Apr 24 14:23:09 odroid mtp-probe: checking bus 1, device 7: "/sys/devices/lm1/usb1/1-1/1-1.2"
Apr 24 14:26:32 odroid kernel: [[email protected]] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Apr 24 14:26:32 odroid kernel: [[email protected]] ch341 1-1.4:1.0: device disconnected
Apr 24 14:26:34 odroid kernel: [[email protected]] usb 1-1.4: new full-speed USB device number 8 using dwc_otg
Apr 24 14:26:34 odroid kernel: [[email protected]] ch341 1-1.4:1.0: ch341-uart converter detected
Wers genauer will:
Kann mir jemand sageb welche Syntax ich hier in der udev Rule brauche ?
Habe hier schon einiges probiert:
Zitat:KERNEL=="ttyUSB*", KERNELS=="1-1.4:1.0", NAME="ttyUSB0-XX"Anschliessend müsste ich ja nach dem einstecken ein Gerät ttyUSB0-xx haben ...
KERNEL=="ttyUSB*", KERNELS=="1-1.2:1.0", NAME="ttyUSB1-test"
#KERNEL=="ttyUSB*", KERNELS=="1-8.1.2", NAME="ttyUSB3" #soll angebeblich funktionieren
Apr 24 14:22:55 odroid kernel: [[email protected]] ch341 1-1.2:1.0: device disconnected
Apr 24 14:23:09 odroid kernel: [[email protected]] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
Apr 24 14:23:09 odroid kernel: [[email protected]] ch341 1-1.2:1.0: ch341-uart converter detected
Apr 24 14:23:09 odroid kernel: [[email protected]] usb 1-1.2: ch341-uart converter now attached to ttyUSB1
Apr 24 14:23:09 odroid mtp-probe: checking bus 1, device 7: "/sys/devices/lm1/usb1/1-1/1-1.2"
Apr 24 14:26:32 odroid kernel: [[email protected]] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Apr 24 14:26:32 odroid kernel: [[email protected]] ch341 1-1.4:1.0: device disconnected
Apr 24 14:26:34 odroid kernel: [[email protected]] usb 1-1.4: new full-speed USB device number 8 using dwc_otg
Apr 24 14:26:34 odroid kernel: [[email protected]] ch341 1-1.4:1.0: ch341-uart converter detected
Wers genauer will:
Code:
Bus 001 Device 013: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1a86 QinHeng Electronics
idProduct 0x7523 HL-340 USB-Serial adapter
bcdDevice 2.54
iManufacturer 0
iProduct 2 USB2.0-Serial
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 96mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 1
bInterfaceProtocol 2
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)
Bus 001 Device 014: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1a86 QinHeng Electronics
idProduct 0x7523 HL-340 USB-Serial adapter
bcdDevice 2.54
iManufacturer 0
iProduct 2 USB2.0-Serial
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 96mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 1
bInterfaceProtocol 2
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)
Grüße
Martin
-----------------------------------------------------------------------------------------------------------
Du brauchst Hilfe? Wir brauchen Daten! English-Version: Don't eat yellow snow!
Meine VDRs (Spoiler klicken)
Martin
-----------------------------------------------------------------------------------------------------------
Du brauchst Hilfe? Wir brauchen Daten! English-Version: Don't eat yellow snow!
Meine VDRs (Spoiler klicken)