sudo lsusb
편집: 아래 telcoM 및 sudo dmesg
telcoM의 조언 에서 몇 가지 추가 정보를 추가했습니다 . 나는 작동하는 카메라와 Linux에서는 실행되지 않지만 Windows에서는 실행되는 동일한 제조업체의 유사한 카메라를 가지고 있습니다.
웹캠을 USB 포트에 연결하면 카메라로 감지되지 않습니다.
lsusb
다음은 카메라를 연결하기 전의 출력입니다.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0026 Intel Corp.
Bus 001 Device 003: ID 0c45:6720 Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 0a5c:5842 Broadcom Corp. 58200
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
장치를 연결한 후:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 025: ID 32e4:8830
Bus 002 Device 024: ID 2109:8110 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0026 Intel Corp.
Bus 001 Device 003: ID 0c45:6720 Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 0a5c:5842 Broadcom Corp. 58200
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
장치가 추가된 것을 볼 수 있습니다. 달리기는 다음 sudo lsusb -D /dev/bus/usb/002/025
을 제공합니다:
Device: ID 32e4:8830
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 9
idVendor 0x32e4
idProduct 0x8830
bcdDevice 1.00
iManufacturer 2 HD USB Camera
iProduct 1 HD USB Camera
iSerial 3 2020040501
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x038d
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 256mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bFunctionProtocol 0
iFunction 5 HD USB Camera
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 5 HD USB Camera
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdUVC 1.00
wTotalLength 0x006c
dwClockFrequency 15.000000MHz
bInCollection 1
baInterfaceNr( 0) 1
VideoControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 5
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 4
iTerminal 0
VideoControl Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 3
guidExtensionCode {28f03370-6311-4a2e-ba2c-6890eb334016}
bNumControl 24
bNrPins 1
baSourceID( 0) 2
bControlSize 3
bmControls( 0) 0xff
bmControls( 1) 0xff
bmControls( 2) 0xff
iExtension 0
VideoControl Interface Descriptor:
bLength 29
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 4
guidExtensionCode {bd5321b4-d635-ca45-b203-4e0149b301bc}
bNumControl 32
bNrPins 1
baSourceID( 0) 3
bControlSize 4
bmControls( 0) 0x03
bmControls( 1) 0x80
bmControls( 2) 0x3f
bmControls( 3) 0x9f
iExtension 0
VideoControl Interface Descriptor:
bLength 18
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Camera Sensor
bAssocTerminal 0
iTerminal 0
wObjectiveFocalLengthMin 0
wObjectiveFocalLengthMax 0
wOcularFocalLength 0
bControlSize 3
bmControls 0x0000000e
Auto-Exposure Mode
Auto-Exposure Priority
Exposure Time (Absolute)
VideoControl Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 5 (PROCESSING_UNIT)
Warning: Descriptor too short
bUnitID 2
bSourceID 1
wMaxMultiplier 0
bControlSize 2
bmControls 0x0000177f
Brightness
Contrast
Hue
Saturation
Sharpness
Gamma
White Balance Temperature
Backlight Compensation
Gain
Power Line Frequency
White Balance Temperature, Auto
iProcessing 0
bmVideoStandards 0x00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 6
bMaxBurst 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
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 0x0400 1x 1024 bytes
bInterval 1
bMaxBurst 0
INTERFACE CLASS: 0f 24 01 02 df 02 82 00 05 02 01 01 01 00 00
INTERFACE CLASS: 0b 24 06 01 0a 00 01 00 00 00 00
INTERFACE CLASS: 1e 24 07 01 00 40 06 b0 04 00 40 77 1b 00 40 77 1b 4d 9a 3a 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 02 00 c0 0c 90 09 00 40 4d 72 00 40 4d 72 4d da f3 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 03 00 20 0a 98 07 00 d0 14 48 00 d0 14 48 4d c8 99 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 04 00 00 08 00 06 00 00 00 2d 00 00 00 2d 4d 02 60 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 05 00 00 05 c0 03 00 00 94 11 00 00 94 11 4d 82 25 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 06 00 00 04 00 03 00 00 80 16 00 00 80 16 4d 02 18 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 07 00 20 03 58 02 00 a0 bb 0d 00 a0 bb 0d 4d a8 0e 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 08 00 80 02 e0 01 00 00 ca 08 00 00 ca 08 4d 62 09 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 09 00 40 01 f0 00 00 80 32 02 00 80 32 02 4d 5a 02 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 0a 00 40 06 b0 04 00 40 77 1b 00 40 77 1b 4d 9a 3a 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 26 24 03 00 08 c0 0c 90 09 20 0a 98 07 00 08 00 06 40 06 b0 04 00 05 c0 03 00 04 00 03 20 03 58 02 80 02 e0 01 00
INTERFACE CLASS: 1b 24 04 02 0a 59 55 59 32 00 00 10 00 80 00 00 aa 00 38 9b 71 10 01 00 00 00 00
INTERFACE CLASS: 1e 24 05 01 00 40 06 b0 04 00 80 4f 12 00 80 4f 12 00 98 3a 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 1e 24 05 02 00 c0 0c 90 09 00 80 3d 0f 00 80 3d 0f 00 d8 f3 00 40 4b 4c 00 01 40 4b 4c 00
INTERFACE CLASS: 1e 24 05 03 00 20 0a 98 07 00 90 6a 0e 00 90 6a 0e 00 c6 99 00 d5 dc 32 00 01 d5 dc 32 00
INTERFACE CLASS: 1e 24 05 04 00 00 08 00 06 00 00 00 09 00 00 00 09 00 00 60 00 d5 dc 32 00 01 d5 dc 32 00
INTERFACE CLASS: 1e 24 05 05 00 00 05 c0 03 00 00 b8 0b 00 00 b8 0b 00 80 25 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 1e 24 05 06 00 00 04 00 03 00 00 80 07 00 00 80 07 00 00 18 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 1e 24 05 07 00 20 03 58 02 00 a0 bb 0d 00 a0 bb 0d 00 a6 0e 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 05 08 00 80 02 e0 01 00 00 ca 08 00 00 ca 08 00 60 09 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 05 09 00 40 01 f0 00 00 80 32 02 00 80 32 02 00 58 02 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 05 0a 00 40 06 b0 04 00 80 4f 12 00 80 4f 12 00 98 3a 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 26 24 03 00 08 c0 0c 90 09 20 0a 98 07 00 08 00 06 40 06 b0 04 00 05 c0 03 00 04 00 03 20 03 58 02 80 02 e0 01 00
INTERFACE CLASS: 06 24 0d 01 01 04
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x0016
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
HIRD Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000c
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 2
Lowest fully-functional device speed is High Speed (480Mbps)
bU1DevExitLat 4 micro seconds
bU2DevExitLat 231 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x000c
(Bus Powered)
U1 Enabled
U2 Enabled
실행하면 v4l2-ctl --list-devices
방금 연결한 USB 카메라가 아닌 통합 카메라만 표시됩니다.
Integrated_Webcam_HD: Integrate (usb-0000:00:14.0-11):
/dev/video0
/dev/video1
udevadm monitor
카메라를 연결한 상태에서 실행 하면 다음과 같이 표시됩니다.
KERNEL[6495.827968] add /devices/pci0000:00/0000:00:14.0/usb2/2-4 (usb)
KERNEL[6495.830203] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0 (usb)
KERNEL[6495.831815] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0 (usb)
KERNEL[6495.831900] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4 (usb)
UDEV [6495.838037] add /devices/pci0000:00/0000:00:14.0/usb2/2-4 (usb)
UDEV [6495.839827] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0 (usb)
UDEV [6495.841660] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0 (usb)
UDEV [6495.844529] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4 (usb)
KERNEL[6498.523402] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2 (usb)
KERNEL[6498.528879] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0 (usb)
KERNEL[6498.534396] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/media1 (media)
KERNEL[6498.534515] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/input/input34 (input)
KERNEL[6498.534826] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/input/input34/event13 (input)
KERNEL[6498.534898] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0 (usb)
KERNEL[6498.534955] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.1 (usb)
KERNEL[6498.535019] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2 (usb)
UDEV [6498.542294] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2 (usb)
UDEV [6498.545007] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.1 (usb)
UDEV [6498.545291] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0 (usb)
UDEV [6498.546363] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/media1 (media)
UDEV [6498.547609] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/input/input34 (input)
UDEV [6498.617161] add /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/input/input34/event13 (input)
UDEV [6498.621564] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0 (usb)
UDEV [6498.626172] bind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2 (usb)
많은 작업이 있지만 video4linux 장치와는 아무런 관련이 없습니다.
관련 부분은 다음과 같습니다 sudo dmesg
.
[93748.440857] usb 2-4: new SuperSpeed USB device number 24 using xhci_hcd
[93748.697861] usb 2-4: New USB device found, idVendor=2109, idProduct=8110, bcdDevice= 2.90
[93748.697873] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[93748.697877] usb 2-4: Product: USB3.0 Hub
[93748.697880] usb 2-4: Manufacturer: VIA Labs, Inc.
[93748.700414] hub 2-4:1.0: USB hub found
[93748.700656] hub 2-4:1.0: 2 ports detected
[93751.387006] usb 2-4.2: new SuperSpeed USB device number 25 using xhci_hcd
[93751.477156] usb 2-4.2: New USB device found, idVendor=32e4, idProduct=8830, bcdDevice= 1.00
[93751.477168] usb 2-4.2: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[93751.477173] usb 2-4.2: Product: HD USB Camera
[93751.477176] usb 2-4.2: Manufacturer: HD USB Camera
[93751.477179] usb 2-4.2: SerialNumber: 2020040501
[93751.483406] usb 2-4.2: Found UVC 1.00 device HD USB Camera (32e4:8830)
[93751.488907] usb 2-4.2: No streaming interface found for terminal 5.
[93751.489209] input: HD USB Camera: HD USB Camera as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/input/input41
이에 비해 아래는 작동하는 카메라를 연결했을 때 동일한 출력입니다. 첫 번째sudo lsusb -D /dev/bus/usb/001/014
Device: ID 32e4:8830
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.01
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x32e4
idProduct 0x8830
bcdDevice 1.00
iManufacturer 2 HD USB Camera
iProduct 1 HD USB Camera
iSerial 3 2020040498
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0381
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 256mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bFunctionProtocol 0
iFunction 5 HD USB Camera
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 5 HD USB Camera
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdUVC 1.00
wTotalLength 0x006c
dwClockFrequency 15.000000MHz
bInCollection 1
baInterfaceNr( 0) 1
VideoControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 5
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 4
iTerminal 0
VideoControl Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 3
guidExtensionCode {28f03370-6311-4a2e-ba2c-6890eb334016}
bNumControl 24
bNrPins 1
baSourceID( 0) 2
bControlSize 3
bmControls( 0) 0xff
bmControls( 1) 0xff
bmControls( 2) 0xff
iExtension 0
VideoControl Interface Descriptor:
bLength 29
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 4
guidExtensionCode {bd5321b4-d635-ca45-b203-4e0149b301bc}
bNumControl 32
bNrPins 1
baSourceID( 0) 3
bControlSize 4
bmControls( 0) 0x03
bmControls( 1) 0x80
bmControls( 2) 0x3f
bmControls( 3) 0x9f
iExtension 0
VideoControl Interface Descriptor:
bLength 18
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Camera Sensor
bAssocTerminal 0
iTerminal 0
wObjectiveFocalLengthMin 0
wObjectiveFocalLengthMax 0
wOcularFocalLength 0
bControlSize 3
bmControls 0x0000000e
Auto-Exposure Mode
Auto-Exposure Priority
Exposure Time (Absolute)
VideoControl Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 5 (PROCESSING_UNIT)
Warning: Descriptor too short
bUnitID 2
bSourceID 1
wMaxMultiplier 0
bControlSize 2
bmControls 0x0000177f
Brightness
Contrast
Hue
Saturation
Sharpness
Gamma
White Balance Temperature
Backlight Compensation
Gain
Power Line Frequency
White Balance Temperature, Auto
iProcessing 0
bmVideoStandards 0x00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 6
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
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 0x0200 1x 512 bytes
bInterval 1
INTERFACE CLASS: 0f 24 01 02 df 02 82 00 05 02 01 01 01 00 00
INTERFACE CLASS: 0b 24 06 01 0a 00 01 00 00 00 00
INTERFACE CLASS: 1e 24 07 01 00 40 06 b0 04 00 40 77 1b 00 40 77 1b 4d 9a 3a 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 02 00 c0 0c 90 09 00 40 4d 72 00 40 4d 72 4d da f3 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 03 00 20 0a 98 07 00 d0 14 48 00 d0 14 48 4d c8 99 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 04 00 00 08 00 06 00 00 00 2d 00 00 00 2d 4d 02 60 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 05 00 00 05 c0 03 00 00 94 11 00 00 94 11 4d 82 25 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 1e 24 07 06 00 00 04 00 03 00 00 80 16 00 00 80 16 4d 02 18 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 07 00 20 03 58 02 00 a0 bb 0d 00 a0 bb 0d 4d a8 0e 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 08 00 80 02 e0 01 00 00 ca 08 00 00 ca 08 4d 62 09 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 09 00 40 01 f0 00 00 80 32 02 00 80 32 02 4d 5a 02 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 07 0a 00 40 06 b0 04 00 40 77 1b 00 40 77 1b 4d 9a 3a 00 2a 2c 0a 00 01 2a 2c 0a 00
INTERFACE CLASS: 26 24 03 00 08 c0 0c 90 09 20 0a 98 07 00 08 00 06 40 06 b0 04 00 05 c0 03 00 04 00 03 20 03 58 02 80 02 e0 01 00
INTERFACE CLASS: 1b 24 04 02 0a 59 55 59 32 00 00 10 00 80 00 00 aa 00 38 9b 71 10 01 00 00 00 00
INTERFACE CLASS: 1e 24 05 01 00 40 06 b0 04 00 80 4f 12 00 80 4f 12 00 98 3a 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 1e 24 05 02 00 c0 0c 90 09 00 80 3d 0f 00 80 3d 0f 00 d8 f3 00 40 4b 4c 00 01 40 4b 4c 00
INTERFACE CLASS: 1e 24 05 03 00 20 0a 98 07 00 90 6a 0e 00 90 6a 0e 00 c6 99 00 d5 dc 32 00 01 d5 dc 32 00
INTERFACE CLASS: 1e 24 05 04 00 00 08 00 06 00 00 00 09 00 00 00 09 00 00 60 00 d5 dc 32 00 01 d5 dc 32 00
INTERFACE CLASS: 1e 24 05 05 00 00 05 c0 03 00 00 b8 0b 00 00 b8 0b 00 80 25 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 1e 24 05 06 00 00 04 00 03 00 00 80 07 00 00 80 07 00 00 18 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 1e 24 05 07 00 20 03 58 02 00 a0 bb 0d 00 a0 bb 0d 00 a6 0e 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 05 08 00 80 02 e0 01 00 00 ca 08 00 00 ca 08 00 60 09 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 05 09 00 40 01 f0 00 00 80 32 02 00 80 32 02 00 58 02 00 15 16 05 00 01 15 16 05 00
INTERFACE CLASS: 1e 24 05 0a 00 40 06 b0 04 00 80 4f 12 00 80 4f 12 00 98 3a 00 40 42 0f 00 01 40 42 0f 00
INTERFACE CLASS: 26 24 03 00 08 c0 0c 90 09 20 0a 98 07 00 08 00 06 40 06 b0 04 00 05 c0 03 00 04 00 03 20 03 58 02 80 02 e0 01 00
INTERFACE CLASS: 06 24 0d 01 01 04
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x000c
bNumDeviceCaps 1
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
HIRD Link Power Management (LPM) Supported
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0002
(Bus Powered)
Remote Wakeup Enabled
유효한 카메라 의 경우 udevadm monitor
:
KERNEL[6682.722836] add /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
KERNEL[6682.724650] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
KERNEL[6682.736729] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/video4linux/video2 (video4linux)
KERNEL[6682.736795] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/video4linux/video3 (video4linux)
KERNEL[6682.736898] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/media1 (media)
KERNEL[6682.737039] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input35 (input)
KERNEL[6682.737245] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input35/event13 (input)
KERNEL[6682.737326] bind /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
KERNEL[6682.737401] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
KERNEL[6682.737487] bind /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
KERNEL[6682.737556] bind /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV [6682.761644] add /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV [6682.765782] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
UDEV [6682.765844] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
UDEV [6682.768518] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/media1 (media)
UDEV [6682.769022] bind /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
UDEV [6682.769206] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/video4linux/video3 (video4linux)
UDEV [6682.769302] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/video4linux/video2 (video4linux)
UDEV [6682.769715] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input35 (input)
UDEV [6682.877079] add /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input35/event13 (input)
UDEV [6682.880687] bind /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
UDEV [6682.891060] bind /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
마침내 sudo dmesg
:
[92330.404900] usb 1-3: new high-speed USB device number 11 using xhci_hcd
[92330.578969] usb 1-3: New USB device found, idVendor=32e4, idProduct=8830, bcdDevice= 1.00
[92330.578980] usb 1-3: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[92330.578985] usb 1-3: Product: HD USB Camera
[92330.578989] usb 1-3: Manufacturer: HD USB Camera
[92330.578992] usb 1-3: SerialNumber: 2020040498
[92330.583178] usb 1-3: Found UVC 1.00 device HD USB Camera (32e4:8830)
[92330.594432] input: HD USB Camera: HD USB Camera as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input39
가장 큰 차이점은 No streaming interface found for terminal 5
dmesg의 줄인 것 같습니다.
이 USB 카메라용 v4l2 장치를 수동으로 생성하려면 어떻게 해야 합니까?
udev를 사용하여 카메라에 안정적인 이름을 할당하는 방법에 대한 많은 게시물을 읽었지만 모두 일부 비디오 장치가 먼저 생성되었다고 가정하는 것 같습니다. udev는 이벤트만 보기 때문에 내가 만든 모든 규칙은 SUBSYSTEM=="video4linux"
효과가 없습니다 SUBSYSTEM=="usb"
.
어떤 통찰력이라도 대단히 감사하겠습니다... 감사합니다
답변1
lsusb -D /dev/bus/usb/002/015
산출하다장치가 작동하려고 하는 것 같습니다.UVC 호환 비디오 장비- 하지만 장치 설명자에 한두 가지 버그가 있을 수 있다는 징후가 있습니다.
기기 ID 중 공급업체 ID 부분이 32e4:8830
"Ailipu Technology Co., Ltd"로 표시됩니다.이 USB ID 검색 엔진에 따르면. 중국 심천에 본사를 둔 USB 카메라 제조사인 것으로 보입니다. 빠른 Google 검색에 따르면 자체 USB 카메라 브랜드 이름은 "ELP"인 것으로 보입니다.
lsusb
먼저 루트로 명령을 실행하고 있습니까 ? 출력의 두 번째 줄에는 다음과 같이 표시됩니다.
Couldn't open device, some information will be missing
둘째, 나열된 비디오 제어 인터페이스 설명자 중 하나가 lsusb
다음 경고를 발생시켰습니다.
Warning: Descriptor too short
UVC 사양 버전 1.5에 따르면 처리 장치의 비디오 제어 인터페이스 설명자의 크기는 설명자가 요구하는 11바이트가 아닌 13바이트 이상이어야 합니다.
셋째, Video Streaming 인터페이스의 Interface Descriptor에서 값은 bInterfaceProtocol
0 입니다.
출력 끝에는 lsusb
명령이 구문 분석할 수 없고 대신 16진수 덤프로 표시되는 데이터 묶음이 있습니다. 인터페이스 설명자 데이터에 일종의 오류가 있어 일부 내용이 왜곡될 수 있습니다. 이로 인해 장치를 사용하려고 할 때 문제가 발생할 수 있습니다.
4. 장치는 UVC 사양 버전 1.00을 선언합니다.
bcdUVC 1.00
이것UVC 사양 버전 1.50는 2012년에 출시되었으므로 이 정보가 정확하다면 기기가 상당히 오래되었거나 의도적으로 이전 버전의 사양을 사용하고 있는 것입니다.
(UVC 사양에 대한 가장 좋은 소스는 usb.org이지만 현재는UVC 사양 1.5 문서 패키지크기가 0바이트인 것 같습니다. )
설명자가 일반 언어 텍스트 문자열을 포함할 수 있는 모든 위치는 0으로 지정되어 해당 문자열이 포함되어 있지 않음을 나타냅니다. 이 카메라에 대한 설명은 최대한 일반적이고 인식할 수 없도록 작성된 것 같습니다.
Linux 드라이버가 카메라 인터페이스 설명자에서 디코딩해야 하는 중요한 정보 중 하나는 uvcvideo
카메라 출력 데이터의 실제 비디오 형식입니다. 이 정보가 없으면 데이터는 의미가 없습니다.
sudo dmesg
출력을 확인하십시오 . uvcvideo
드라이버가 카메라를 인식하려고 할 때 오류 메시지를 출력하는 경우 해당 메시지를 찾을 수 있습니다. 이러한 메시지의 내용은 문제를 이해하는 데 도움이 될 수 있습니다.