udevadm命令查看usb设备信息

发布时间:2024-12-09 15:46

通过语音命令查找信息,如地图导航 #生活技巧# #数码产品使用技巧# #智能音箱使用攻略#

最新推荐文章于 2024-09-13 09:08:44 发布

victorhugoliu 于 2019-02-14 09:31:29 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

hugo@ubentu16:~$ udevadm info --query=all --name=/dev/video0
P: /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2/3-2.1/3-2.1:1.0/video4linux/video0
N: video0
S: v4l/by-id/usb-Chicony_Electronics_Co._Ltd._Integrated_Camera_0001-video-index0
S: v4l/by-path/pci-0000:03:00.0-usb-0:2.1:1.0-video-index0
E: COLORD_DEVICE=1
E: COLORD_KIND=camera
E: DEVLINKS=/dev/v4l/by-path/pci-0000:03:00.0-usb-0:2.1:1.0-video-index0 /dev/v4l/by-id/usb-Chicony_Electronics_Co._Ltd._Integrated_Camera_0001-video-index0
E: DEVNAME=/dev/video0
E: DEVPATH=/devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2/3-2.1/3-2.1:1.0/video4linux/video0
E: ID_BUS=usb
E: ID_FOR_SEAT=video4linux-pci-0000_03_00_0-usb-0_2_1_1_0
E: ID_MODEL=Integrated_Camera
E: ID_MODEL_ENC=Integrated\x20Camera
E: ID_MODEL_ID=b5c0
E: ID_PATH=pci-0000:03:00.0-usb-0:2.1:1.0
E: ID_PATH_TAG=pci-0000_03_00_0-usb-0_2_1_1_0
E: ID_REVISION=0005
E: ID_SERIAL=Chicony_Electronics_Co._Ltd._Integrated_Camera_0001
E: ID_SERIAL_SHORT=0001
E: ID_TYPE=video
E: ID_USB_DRIVER=uvcvideo
E: ID_USB_INTERFACES=:0e0100:0e0200:
E: ID_USB_INTERFACE_NUM=00
E: ID_V4L_CAPABILITIES=:capture:
E: ID_V4L_PRODUCT=Integrated Camera
E: ID_V4L_VERSION=2
E: ID_VENDOR=Chicony_Electronics_Co._Ltd.
E: ID_VENDOR_ENC=Chicony\x20Electronics\x20Co.\x2cLtd.
E: ID_VENDOR_ID=04f2
E: MAJOR=81
E: MINOR=0
E: SUBSYSTEM=video4linux
E: TAGS=:seat:uaccess:
E: USEC_INITIALIZED=1845884507

hugo@ubentu16:~$ udevadm info -a -p /sys/class/usbmisc/lp0 

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:15.0/0000:03:00.0/usb3/3-1/3-1.3/3-1.3:1.0/usbmisc/lp0':
    KERNEL=="lp0"
    SUBSYSTEM=="usbmisc"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-1/3-1.3/3-1.3:1.0':
    KERNELS=="3-1.3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usblp"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="07"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="02"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="02"
    ATTRS{ieee1284_id}=="CLS:PRINTER;DES:Siupo;"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-1/3-1.3':
    KERNELS=="3-1.3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0200"
    ATTRS{bmAttributes}=="c0"
    ATTRS{busnum}=="3"
    ATTRS{configuration}==""
    ATTRS{devnum}=="20"
    ATTRS{devpath}=="1.3"
    ATTRS{idProduct}=="2305"
    ATTRS{idVendor}=="067b"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="SIUPO"
    ATTRS{maxchild}=="0"
    ATTRS{product}=="SIUPO USB Printer"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{serial}=="7362B6E81939"
    ATTRS{speed}=="12"
    ATTRS{urbnum}=="15"
    ATTRS{version}==" 2.00"

网址:udevadm命令查看usb设备信息 https://www.yuejiaxmz.com/news/view/425069

相关内容

STM32F407 USB通信与虚拟串口CDC类开发实战
使用MC9S08JM60开发USB设备——MC9S08JM60 USB 模块的深度理解AET
如何查看设备详情
windows命令查看无线网密码
【anaconda】conda创建、查看、删除虚拟环境(anaconda命令集)
您的加密USB驱动器是否安全?黑客又是如何攻破的?
查看物联网平台设备行为、通信消息相关的日志和错误码
usb调试软件
Linux中查看各文件夹大小命令:du
掌握橱柜设计CAD命令,打造理想厨房空间(橱柜设计cad命令)

随便看看