diff --git a/tests/fixtures/generic/lsusb-binary-object-store.json b/tests/fixtures/generic/lsusb-binary-object-store.json new file mode 100644 index 00000000..5c66047d --- /dev/null +++ b/tests/fixtures/generic/lsusb-binary-object-store.json @@ -0,0 +1 @@ +[{"bus":"002","device":"001","id":"1d6b:0003","description":"Linux Foundation 3.0 root hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x1d6b","description":"Linux Foundation"},"idProduct":{"value":"0x0003","description":"3.0 root hub"},"bcdDevice":{"value":"4.18"},"iManufacturer":{"value":"3","description":"Linux 4.18.0-372.9.1.el8.x86_64 xhci-hcd"},"iProduct":{"value":"2","description":"xHCI Host Controller"},"iSerial":{"value":"1","description":"0000:02:00.0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0004","description":"1x 4 bytes"},"bInterval":{"value":"12"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x000a","attributes":["No power switching (usb 1.0)","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.0","description":"micro seconds"},"wHubDelay":{"value":"0","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 2":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 3":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 4":{"value":"0000.02a0","attributes":["lowspeed","L1"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"003","device":"002","id":"2109:2813","description":"VIA Labs, Inc. VL813 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"2.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"1","description":"Single TT"},"bMaxPacketSize0":{"value":"64"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x2813","description":"VL813 Hub"},"bcdDevice":{"value":"90.11"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB2.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x0019"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0001","description":"1x 1 bytes"},"bInterval":{"value":"12"}}]}]}},"hub_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"41"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x00e9","attributes":["Per-port power switching","Per-port overcurrent protection","TT think time 32 FS bits","Port indicators"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"100","description":"milli Ampere"},"DeviceRemovable":{"value":"0x00"},"PortPwrCtrlMask":{"value":"0xff"},"hub_port_status":{"Port 1":{"value":"0000.0503","attributes":["highspeed","power","enable","connect"]},"Port 2":{"value":"0000.0100","attributes":["power"]},"Port 3":{"value":"0000.0100","attributes":["power"]},"Port 4":{"value":"0000.0100","attributes":["power"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"003","device":"003","id":"2109:2813","description":"VIA Labs, Inc. VL813 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"2.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"1","description":"Single TT"},"bMaxPacketSize0":{"value":"64"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x2813","description":"VL813 Hub"},"bcdDevice":{"value":"90.11"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB2.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x0019"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0001","description":"1x 1 bytes"},"bInterval":{"value":"12"}}]}]}},"hub_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"41"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x00e9","attributes":["Per-port power switching","Per-port overcurrent protection","TT think time 32 FS bits","Port indicators"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"100","description":"milli Ampere"},"DeviceRemovable":{"value":"0x00"},"PortPwrCtrlMask":{"value":"0xff"},"hub_port_status":{"Port 1":{"value":"0000.0503","attributes":["highspeed","power","enable","connect"]},"Port 2":{"value":"0000.0100","attributes":["power"]},"Port 3":{"value":"0000.0100","attributes":["power"]},"Port 4":{"value":"0000.0100","attributes":["power"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"004","device":"001","id":"1d6b:0003","description":"Linux Foundation 3.0 root hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x1d6b","description":"Linux Foundation"},"idProduct":{"value":"0x0003","description":"3.0 root hub"},"bcdDevice":{"value":"4.18"},"iManufacturer":{"value":"3","description":"Linux 4.18.0-372.9.1.el8.x86_64 xhci-hcd"},"iProduct":{"value":"2","description":"xHCI Host Controller"},"iSerial":{"value":"1","description":"0000:05:00.0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0004","description":"1x 4 bytes"},"bInterval":{"value":"12"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"2"},"wHubCharacteristic":{"value":"0x0009","attributes":["Per-port power switching","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.0","description":"micro seconds"},"wHubDelay":{"value":"0","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.0263","attributes":["5Gbps","power","suspend","enable","connect"]},"Port 2":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"004","device":"002","id":"2109:0813","description":"VIA Labs, Inc. VL813 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x0813","description":"VL813 Hub"},"bcdDevice":{"value":"90.11"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB3.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"19","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Feedback"]},"wMaxPacketSize":{"value":"0x0002","description":"1x 2 bytes"},"bInterval":{"value":"8"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x0009","attributes":["Per-port power switching","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"100 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.4","description":"micro seconds"},"wHubDelay":{"value":"4004","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.0263","attributes":["5Gbps","power","suspend","enable","connect"]},"Port 2":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 3":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 4":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"004","device":"003","id":"2109:0813","description":"VIA Labs, Inc. VL813 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x0813","description":"VL813 Hub"},"bcdDevice":{"value":"90.11"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB3.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"19","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Feedback"]},"wMaxPacketSize":{"value":"0x0002","description":"1x 2 bytes"},"bInterval":{"value":"8"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x0009","attributes":["Per-port power switching","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"100 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.4","description":"micro seconds"},"wHubDelay":{"value":"4004","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 2":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 3":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 4":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"006","device":"001","id":"1d6b:0003","description":"Linux Foundation 3.0 root hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x1d6b","description":"Linux Foundation"},"idProduct":{"value":"0x0003","description":"3.0 root hub"},"bcdDevice":{"value":"4.18"},"iManufacturer":{"value":"3","description":"Linux 4.18.0-372.9.1.el8.x86_64 xhci-hcd"},"iProduct":{"value":"2","description":"xHCI Host Controller"},"iSerial":{"value":"1","description":"0000:0e:00.3"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0004","description":"1x 4 bytes"},"bInterval":{"value":"12"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x000a","attributes":["No power switching (usb 1.0)","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.0","description":"micro seconds"},"wHubDelay":{"value":"0","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 2":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 3":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 4":{"value":"0000.02a0","attributes":["lowspeed","L1"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"003","device":"002","id":"2109:2812","description":"VIA Labs, Inc. VL812 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"2.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"1","description":"Single TT"},"bMaxPacketSize0":{"value":"64"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x2812","description":"VL812 Hub"},"bcdDevice":{"value":"b.e0"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB2.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x0019"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0001","description":"1x 1 bytes"},"bInterval":{"value":"12"}}]}]}},"hub_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"41"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x00e9","attributes":["Per-port power switching","Per-port overcurrent protection","TT think time 32 FS bits","Port indicators"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"100","description":"milli Ampere"},"DeviceRemovable":{"value":"0x00"},"PortPwrCtrlMask":{"value":"0xff"},"hub_port_status":{"Port 1":{"value":"0000.0503","attributes":["highspeed","power","enable","connect"]},"Port 2":{"value":"0000.0100","attributes":["power"]},"Port 3":{"value":"0000.0103","attributes":["power","enable","connect"]},"Port 4":{"value":"0000.0100","attributes":["power"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"004","device":"001","id":"1d6b:0003","description":"Linux Foundation 3.0 root hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x1d6b","description":"Linux Foundation"},"idProduct":{"value":"0x0003","description":"3.0 root hub"},"bcdDevice":{"value":"5.18"},"iManufacturer":{"value":"3","description":"Linux 5.18.13-200.fc36.x86_64 xhci-hcd"},"iProduct":{"value":"2","description":"xHCI Host Controller"},"iSerial":{"value":"1","description":"0000:00:14.0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0004","description":"1x 4 bytes"},"bInterval":{"value":"12"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"6"},"wHubCharacteristic":{"value":"0x000a","attributes":["No power switching (usb 1.0)","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.0","description":"micro seconds"},"wHubDelay":{"value":"0","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 2":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 3":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 4":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 5":{"value":"0000.0203","attributes":["5Gbps","power","U0","enable","connect"]},"Port 6":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"004","device":"002","id":"2109:0812","description":"VIA Labs, Inc. VL812 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x0812","description":"VL812 Hub"},"bcdDevice":{"value":"b.e1"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB3.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"19","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Feedback"]},"wMaxPacketSize":{"value":"0x0002","description":"1x 2 bytes"},"bInterval":{"value":"8"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x000d","attributes":["Per-port power switching","Compound device","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"100 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.4","description":"micro seconds"},"wHubDelay":{"value":"4004","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.0263","attributes":["5Gbps","power","suspend","enable","connect"]},"Port 2":{"value":"0000.0203","attributes":["5Gbps","power","U0","enable","connect"]},"Port 3":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 4":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]}}},"device_status":{"value":"0x000d","description":"U2 Enabled"}},{"bus":"004","device":"003","id":"2109:0812","description":"VIA Labs, Inc. VL812 Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x2109","description":"VIA Labs, Inc."},"idProduct":{"value":"0x0812","description":"VL812 Hub"},"bcdDevice":{"value":"b.e1"},"iManufacturer":{"value":"1","description":"VIA Labs, Inc."},"iProduct":{"value":"2","description":"USB3.0 Hub"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"19","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Feedback"]},"wMaxPacketSize":{"value":"0x0002","description":"1x 2 bytes"},"bInterval":{"value":"8"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x000d","attributes":["Per-port power switching","Compound device","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"100 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.4","description":"micro seconds"},"wHubDelay":{"value":"4004","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 2":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 3":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]},"Port 4":{"value":"0000.02a0","attributes":["5Gbps","power","Rx.Detect"]}}},"device_status":{"value":"0x000d","description":"U2 Enabled"}},{"bus":"004","device":"002","id":"0424:2744","description":"Microchip Technology, Inc. (formerly SMSC) Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"2.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"2","description":"TT per port"},"bMaxPacketSize0":{"value":"64"},"idVendor":{"value":"0x0424","description":"Microchip Technology, Inc. (formerly SMSC)"},"idProduct":{"value":"0x2744","description":"Hub"},"bcdDevice":{"value":"2.21"},"iManufacturer":{"value":"1","description":"Microchip Tech"},"iProduct":{"value":"2","description":"USB2744"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x0029"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"1","description":"Single TT"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0001","description":"1x 1 bytes"},"bInterval":{"value":"12"}}]},{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"1"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"2","description":"TT per port"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0001","description":"1x 1 bytes"},"bInterval":{"value":"12"}}]}]}},"hub_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"41"},"nNbrPorts":{"value":"4"},"wHubCharacteristic":{"value":"0x000d","attributes":["Per-port power switching","Compound device","Per-port overcurrent protection","TT think time 8 FS bits"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"DeviceRemovable":{"value":"0x10"},"PortPwrCtrlMask":{"value":"0xff"},"hub_port_status":{"Port 1":{"value":"0000.0507","attributes":["highspeed","power","suspend","enable","connect"]},"Port 2":{"value":"0000.0100","attributes":["power"]},"Port 3":{"value":"0000.0100","attributes":["power"]},"Port 4":{"value":"0000.0503","attributes":["highspeed","power","enable","connect"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"005","device":"001","id":"1d6b:0003","description":"Linux Foundation 3.0 root hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.10"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x1d6b","description":"Linux Foundation"},"idProduct":{"value":"0x0003","description":"3.0 root hub"},"bcdDevice":{"value":"4.18"},"iManufacturer":{"value":"3","description":"Linux 4.18.0-372.16.1.el8_6.0.1.x86_64 xhci-hcd"},"iProduct":{"value":"2","description":"xHCI Host Controller"},"iSerial":{"value":"1","description":"0000:02:00.3"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0004","description":"1x 4 bytes"},"bInterval":{"value":"12"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"2"},"wHubCharacteristic":{"value":"0x000a","attributes":["No power switching (usb 1.0)","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"50 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.0","description":"micro seconds"},"wHubDelay":{"value":"0","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.02a0","attributes":["lowspeed","L1"]},"Port 2":{"value":"0000.0263","attributes":["lowspeed","L1","enable","connect"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}},{"bus":"005","device":"002","id":"0424:5744","description":"Microchip Technology, Inc. (formerly SMSC) Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"3.20"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"3"},"bMaxPacketSize0":{"value":"9"},"idVendor":{"value":"0x0424","description":"Microchip Technology, Inc. (formerly SMSC)"},"idProduct":{"value":"0x5744","description":"Hub"},"bcdDevice":{"value":"2.21"},"iManufacturer":{"value":"2","description":"Microchip Tech"},"iProduct":{"value":"3","description":"USB5744"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x001f"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"19","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Feedback"]},"wMaxPacketSize":{"value":"0x0002","description":"1x 2 bytes"},"bInterval":{"value":"8"},"bMaxBurst":{"value":"0"}}]}]}},"hub_descriptor":{"bLength":{"value":"12"},"bDescriptorType":{"value":"42"},"nNbrPorts":{"value":"3"},"wHubCharacteristic":{"value":"0x0009","attributes":["Per-port power switching","Per-port overcurrent protection"]},"bPwrOn2PwrGood":{"value":"48 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"bHubDecLat":{"value":"0.8","description":"micro seconds"},"wHubDelay":{"value":"2312","description":"nano seconds"},"DeviceRemovable":{"value":"0x00"},"hub_port_status":{"Port 1":{"value":"0000.06a0","attributes":["highspeed","lowspeed","L1"]},"Port 2":{"value":"0000.06a0","attributes":["highspeed","lowspeed","L1"]},"Port 3":{"value":"0000.06a0","attributes":["highspeed","lowspeed","L1"]}}},"device_status":{"value":"0x0001","description":"Self Powered"}}] diff --git a/tests/fixtures/generic/lsusb-binary-object-store.out b/tests/fixtures/generic/lsusb-binary-object-store.out new file mode 100644 index 00000000..47644895 --- /dev/null +++ b/tests/fixtures/generic/lsusb-binary-object-store.out @@ -0,0 +1,1373 @@ + +Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x1d6b Linux Foundation + idProduct 0x0003 3.0 root hub + bcdDevice 4.18 + iManufacturer 3 Linux 4.18.0-372.9.1.el8.x86_64 xhci-hcd + iProduct 2 xHCI Host Controller + iSerial 1 0000:02:00.0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0004 1x 4 bytes + bInterval 12 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 4 + wHubCharacteristic 0x000a + No power switching (usb 1.0) + Per-port overcurrent protection + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.0 micro seconds + wHubDelay 0 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.02a0 lowspeed L1 + Port 2: 0000.02a0 lowspeed L1 + Port 3: 0000.02a0 lowspeed L1 + Port 4: 0000.02a0 lowspeed L1 +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002b + bNumDeviceCaps 2 + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x00 + wSpeedsSupported 0x0008 + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 0 micro seconds + bU2DevExitLat 0 micro seconds + SuperSpeedPlus USB Device Capability: + bLength 28 + bDescriptorType 16 + bDevCapabilityType 10 + bmAttributes 0x00000023 + Sublink Speed Attribute count 3 + Sublink Speed ID count 1 + wFunctionalitySupport 0x1104 + bmSublinkSpeedAttr[0] 0x00050034 + Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed + bmSublinkSpeedAttr[1] 0x000500b4 + Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed + bmSublinkSpeedAttr[2] 0x000a4035 + Speed Attribute ID: 5 10Gb/s Symmetric RX SuperSpeedPlus + bmSublinkSpeedAttr[3] 0x000a40b5 + Speed Attribute ID: 5 10Gb/s Symmetric TX SuperSpeedPlus +Device Status: 0x0001 + Self Powered + +Bus 003 Device 002: ID 2109:2813 VIA Labs, Inc. VL813 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 1 Single TT + bMaxPacketSize0 64 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x2813 VL813 Hub + bcdDevice 90.11 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB2.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0019 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0001 1x 1 bytes + bInterval 12 +Hub Descriptor: + bLength 9 + bDescriptorType 41 + nNbrPorts 4 + wHubCharacteristic 0x00e9 + Per-port power switching + Per-port overcurrent protection + TT think time 32 FS bits + Port indicators + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 100 milli Ampere + DeviceRemovable 0x00 + PortPwrCtrlMask 0xff + Hub Port Status: + Port 1: 0000.0503 highspeed power enable connect + Port 2: 0000.0100 power + Port 3: 0000.0100 power + Port 4: 0000.0100 power +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {00000000-0000-0000-0000-000000000000} +Device Status: 0x0001 + Self Powered + +Bus 003 Device 003: ID 2109:2813 VIA Labs, Inc. VL813 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 1 Single TT + bMaxPacketSize0 64 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x2813 VL813 Hub + bcdDevice 90.11 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB2.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0019 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0001 1x 1 bytes + bInterval 12 +Hub Descriptor: + bLength 9 + bDescriptorType 41 + nNbrPorts 4 + wHubCharacteristic 0x00e9 + Per-port power switching + Per-port overcurrent protection + TT think time 32 FS bits + Port indicators + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 100 milli Ampere + DeviceRemovable 0x00 + PortPwrCtrlMask 0xff + Hub Port Status: + Port 1: 0000.0503 highspeed power enable connect + Port 2: 0000.0100 power + Port 3: 0000.0100 power + Port 4: 0000.0100 power +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {00000000-0000-0000-0000-000000000000} +Device Status: 0x0001 + Self Powered + +Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.00 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x1d6b Linux Foundation + idProduct 0x0003 3.0 root hub + bcdDevice 4.18 + iManufacturer 3 Linux 4.18.0-372.9.1.el8.x86_64 xhci-hcd + iProduct 2 xHCI Host Controller + iSerial 1 0000:05:00.0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0004 1x 4 bytes + bInterval 12 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 2 + wHubCharacteristic 0x0009 + Per-port power switching + Per-port overcurrent protection + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.0 micro seconds + wHubDelay 0 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.0263 5Gbps power suspend enable connect + Port 2: 0000.02a0 5Gbps power Rx.Detect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x000f + bNumDeviceCaps 1 + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x02 + Latency Tolerance Messages (LTM) Supported + wSpeedsSupported 0x0008 + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 0 micro seconds + bU2DevExitLat 0 micro seconds +Device Status: 0x0001 + Self Powered + +Bus 004 Device 002: ID 2109:0813 VIA Labs, Inc. VL813 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.00 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x0813 VL813 Hub + bcdDevice 90.11 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB3.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 19 + Transfer Type Interrupt + Synch Type None + Usage Type Feedback + wMaxPacketSize 0x0002 1x 2 bytes + bInterval 8 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 4 + wHubCharacteristic 0x0009 + Per-port power switching + Per-port overcurrent protection + bPwrOn2PwrGood 100 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.4 micro seconds + wHubDelay 4004 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.0263 5Gbps power suspend enable connect + Port 2: 0000.02a0 5Gbps power Rx.Detect + Port 3: 0000.02a0 5Gbps power Rx.Detect + Port 4: 0000.02a0 5Gbps power Rx.Detect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {00000000-0000-0000-0000-000000000000} +Device Status: 0x0001 + Self Powered + +Bus 004 Device 003: ID 2109:0813 VIA Labs, Inc. VL813 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.00 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x0813 VL813 Hub + bcdDevice 90.11 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB3.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 19 + Transfer Type Interrupt + Synch Type None + Usage Type Feedback + wMaxPacketSize 0x0002 1x 2 bytes + bInterval 8 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 4 + wHubCharacteristic 0x0009 + Per-port power switching + Per-port overcurrent protection + bPwrOn2PwrGood 100 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.4 micro seconds + wHubDelay 4004 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.02a0 5Gbps power Rx.Detect + Port 2: 0000.02a0 5Gbps power Rx.Detect + Port 3: 0000.02a0 5Gbps power Rx.Detect + Port 4: 0000.02a0 5Gbps power Rx.Detect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {00000000-0000-0000-0000-000000000000} +Device Status: 0x0001 + Self Powered + +Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x1d6b Linux Foundation + idProduct 0x0003 3.0 root hub + bcdDevice 4.18 + iManufacturer 3 Linux 4.18.0-372.9.1.el8.x86_64 xhci-hcd + iProduct 2 xHCI Host Controller + iSerial 1 0000:0e:00.3 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0004 1x 4 bytes + bInterval 12 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 4 + wHubCharacteristic 0x000a + No power switching (usb 1.0) + Per-port overcurrent protection + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.0 micro seconds + wHubDelay 0 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.02a0 lowspeed L1 + Port 2: 0000.02a0 lowspeed L1 + Port 3: 0000.02a0 lowspeed L1 + Port 4: 0000.02a0 lowspeed L1 +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x0023 + bNumDeviceCaps 2 + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x02 + Latency Tolerance Messages (LTM) Supported + wSpeedsSupported 0x0008 + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 0 micro seconds + bU2DevExitLat 0 micro seconds + SuperSpeedPlus USB Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 10 + bmAttributes 0x00000001 + Sublink Speed Attribute count 1 + Sublink Speed ID count 0 + wFunctionalitySupport 0x1104 + bmSublinkSpeedAttr[0] 0x00050034 + Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed + bmSublinkSpeedAttr[1] 0x000500b4 + Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed +Device Status: 0x0001 + Self Powered + +Bus 003 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 1 Single TT + bMaxPacketSize0 64 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x2812 VL812 Hub + bcdDevice b.e0 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB2.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0019 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0001 1x 1 bytes + bInterval 12 +Hub Descriptor: + bLength 9 + bDescriptorType 41 + nNbrPorts 4 + wHubCharacteristic 0x00e9 + Per-port power switching + Per-port overcurrent protection + TT think time 32 FS bits + Port indicators + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 100 milli Ampere + DeviceRemovable 0x00 + PortPwrCtrlMask 0xff + Hub Port Status: + Port 1: 0000.0503 highspeed power enable connect + Port 2: 0000.0100 power + Port 3: 0000.0103 power enable connect + Port 4: 0000.0100 power +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {6970202d-1e44-4cde-8f73-78ec5964eca7} +Device Status: 0x0001 + Self Powered + +Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.00 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x1d6b Linux Foundation + idProduct 0x0003 3.0 root hub + bcdDevice 5.18 + iManufacturer 3 Linux 5.18.13-200.fc36.x86_64 xhci-hcd + iProduct 2 xHCI Host Controller + iSerial 1 0000:00:14.0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0004 1x 4 bytes + bInterval 12 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 6 + wHubCharacteristic 0x000a + No power switching (usb 1.0) + Per-port overcurrent protection + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.0 micro seconds + wHubDelay 0 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.02a0 5Gbps power Rx.Detect + Port 2: 0000.02a0 5Gbps power Rx.Detect + Port 3: 0000.02a0 5Gbps power Rx.Detect + Port 4: 0000.02a0 5Gbps power Rx.Detect + Port 5: 0000.0203 5Gbps power U0 enable connect + Port 6: 0000.02a0 5Gbps power Rx.Detect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x000f + bNumDeviceCaps 1 + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x02 + Latency Tolerance Messages (LTM) Supported + wSpeedsSupported 0x0008 + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 10 micro seconds + bU2DevExitLat 512 micro seconds +Device Status: 0x0001 + Self Powered + +Bus 004 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.00 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x0812 VL812 Hub + bcdDevice b.e1 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB3.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 19 + Transfer Type Interrupt + Synch Type None + Usage Type Feedback + wMaxPacketSize 0x0002 1x 2 bytes + bInterval 8 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 4 + wHubCharacteristic 0x000d + Per-port power switching + Compound device + Per-port overcurrent protection + bPwrOn2PwrGood 100 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.4 micro seconds + wHubDelay 4004 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.0263 5Gbps power suspend enable connect + Port 2: 0000.0203 5Gbps power U0 enable connect + Port 3: 0000.02a0 5Gbps power Rx.Detect + Port 4: 0000.02a0 5Gbps power Rx.Detect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {6970202d-1e44-4cde-8f73-78ec5964eca7} +Device Status: 0x000d + Self Powered + U1 Enabled + U2 Enabled + +Bus 004 Device 003: ID 2109:0812 VIA Labs, Inc. VL812 Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.00 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x2109 VIA Labs, Inc. + idProduct 0x0812 VL812 Hub + bcdDevice b.e1 + iManufacturer 1 VIA Labs, Inc. + iProduct 2 USB3.0 Hub + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 19 + Transfer Type Interrupt + Synch Type None + Usage Type Feedback + wMaxPacketSize 0x0002 1x 2 bytes + bInterval 8 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 4 + wHubCharacteristic 0x000d + Per-port power switching + Compound device + Per-port overcurrent protection + bPwrOn2PwrGood 100 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.4 micro seconds + wHubDelay 4004 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.02a0 5Gbps power Rx.Detect + Port 2: 0000.02a0 5Gbps power Rx.Detect + Port 3: 0000.02a0 5Gbps power Rx.Detect + Port 4: 0000.02a0 5Gbps power Rx.Detect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + 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 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 4 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {6970202d-1e44-4cde-8f73-78ec5964eca7} +Device Status: 0x000d + Self Powered + U1 Enabled + U2 Enabled + +Bus 004 Device 002: ID 0424:2744 Microchip Technology, Inc. (formerly SMSC) Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 2 TT per port + bMaxPacketSize0 64 + idVendor 0x0424 Microchip Technology, Inc. (formerly SMSC) + idProduct 0x2744 Hub + bcdDevice 2.21 + iManufacturer 1 Microchip Tech + iProduct 2 USB2744 + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0029 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 1 Single TT + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0001 1x 1 bytes + bInterval 12 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 1 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 2 TT per port + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0001 1x 1 bytes + bInterval 12 +Hub Descriptor: + bLength 9 + bDescriptorType 41 + nNbrPorts 4 + wHubCharacteristic 0x000d + Per-port power switching + Compound device + Per-port overcurrent protection + TT think time 8 FS bits + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + DeviceRemovable 0x10 + PortPwrCtrlMask 0xff + Hub Port Status: + Port 1: 0000.0507 highspeed power suspend enable connect + Port 2: 0000.0100 power + Port 3: 0000.0100 power + Port 4: 0000.0503 highspeed power enable connect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + USB 2.0 Extension Device Capability: + bLength 7 + bDescriptorType 16 + bDevCapabilityType 2 + bmAttributes 0x0000a21e + BESL Link Power Management (LPM) Supported + BESL value 512 us + Deep BESL value 40960 us + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x00 + wSpeedsSupported 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 10 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {00000000-0000-0000-0000-002231550364} +Device Status: 0x0001 + Self Powered + +Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.10 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x1d6b Linux Foundation + idProduct 0x0003 3.0 root hub + bcdDevice 4.18 + iManufacturer 3 Linux 4.18.0-372.16.1.el8_6.0.1.x86_64 xhci-hcd + iProduct 2 xHCI Host Controller + iSerial 1 0000:02:00.3 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0004 1x 4 bytes + bInterval 12 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 2 + wHubCharacteristic 0x000a + No power switching (usb 1.0) + Per-port overcurrent protection + bPwrOn2PwrGood 50 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.0 micro seconds + wHubDelay 0 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.02a0 lowspeed L1 + Port 2: 0000.0263 lowspeed L1 enable connect +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x0023 + bNumDeviceCaps 2 + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x02 + Latency Tolerance Messages (LTM) Supported + wSpeedsSupported 0x0008 + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 0 micro seconds + bU2DevExitLat 0 micro seconds + SuperSpeedPlus USB Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 10 + bmAttributes 0x00000001 + Sublink Speed Attribute count 1 + Sublink Speed ID count 0 + wFunctionalitySupport 0x1104 + bmSublinkSpeedAttr[0] 0x00050034 + Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed + bmSublinkSpeedAttr[1] 0x000500b4 + Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed +Device Status: 0x0001 + Self Powered + +Bus 005 Device 002: ID 0424:5744 Microchip Technology, Inc. (formerly SMSC) Hub +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 3.20 + bDeviceClass 9 Hub + bDeviceSubClass 0 + bDeviceProtocol 3 + bMaxPacketSize0 9 + idVendor 0x0424 Microchip Technology, Inc. (formerly SMSC) + idProduct 0x5744 Hub + bcdDevice 2.21 + iManufacturer 2 Microchip Tech + iProduct 3 USB5744 + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x001f + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 9 Hub + bInterfaceSubClass 0 + bInterfaceProtocol 0 Full speed (or root) hub + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 19 + Transfer Type Interrupt + Synch Type None + Usage Type Feedback + wMaxPacketSize 0x0002 1x 2 bytes + bInterval 8 + bMaxBurst 0 +Hub Descriptor: + bLength 12 + bDescriptorType 42 + nNbrPorts 3 + wHubCharacteristic 0x0009 + Per-port power switching + Per-port overcurrent protection + bPwrOn2PwrGood 48 * 2 milli seconds + bHubContrCurrent 0 milli Ampere + bHubDecLat 0.8 micro seconds + wHubDelay 2312 nano seconds + DeviceRemovable 0x00 + Hub Port Status: + Port 1: 0000.06a0 highspeed lowspeed L1 + Port 2: 0000.06a0 highspeed lowspeed L1 + Port 3: 0000.06a0 highspeed lowspeed L1 +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x002a + bNumDeviceCaps 3 + USB 2.0 Extension Device Capability: + bLength 7 + bDescriptorType 16 + bDevCapabilityType 2 + bmAttributes 0x0000a21e + BESL Link Power Management (LPM) Supported + BESL value 512 us + Deep BESL value 40960 us + SuperSpeed USB Device Capability: + bLength 10 + bDescriptorType 16 + bDevCapabilityType 3 + bmAttributes 0x00 + wSpeedsSupported 0x000e + Device can operate at Full Speed (12Mbps) + Device can operate at High Speed (480Mbps) + Device can operate at SuperSpeed (5Gbps) + bFunctionalitySupport 1 + Lowest fully-functional device speed is Full Speed (12Mbps) + bU1DevExitLat 10 micro seconds + bU2DevExitLat 231 micro seconds + Container ID Device Capability: + bLength 20 + bDescriptorType 16 + bDevCapabilityType 4 + bReserved 0 + ContainerID {00000000-0000-0000-0000-002231550364} +Device Status: 0x0001 + Self Powered diff --git a/tests/fixtures/generic/lsusb-device-qualifier.json b/tests/fixtures/generic/lsusb-device-qualifier.json new file mode 100644 index 00000000..79475e4c --- /dev/null +++ b/tests/fixtures/generic/lsusb-device-qualifier.json @@ -0,0 +1 @@ +[{"bus":"002","device":"002","id":"8087:8000","description":"Intel Corp. Integrated Rate Matching Hub","device_descriptor":{"bLength":{"value":"18"},"bDescriptorType":{"value":"1"},"bcdUSB":{"value":"2.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"1","description":"Single TT"},"bMaxPacketSize0":{"value":"64"},"idVendor":{"value":"0x8087","description":"Intel Corp."},"idProduct":{"value":"0x8000","description":"Integrated Rate Matching Hub"},"bcdDevice":{"value":"0.04"},"iManufacturer":{"value":"0"},"iProduct":{"value":"0"},"iSerial":{"value":"0"},"bNumConfigurations":{"value":"1"},"configuration_descriptor":{"bLength":{"value":"9"},"bDescriptorType":{"value":"2"},"wTotalLength":{"value":"0x0019"},"bNumInterfaces":{"value":"1"},"bConfigurationValue":{"value":"1"},"iConfiguration":{"value":"0"},"bmAttributes":{"value":"0xe0","attributes":["Self Powered","Remote Wakeup"]},"MaxPower":{"description":"0mA"},"interface_descriptors":[{"bLength":{"value":"9"},"bDescriptorType":{"value":"4"},"bInterfaceNumber":{"value":"0"},"bAlternateSetting":{"value":"0"},"bNumEndpoints":{"value":"1"},"bInterfaceClass":{"value":"9","description":"Hub"},"bInterfaceSubClass":{"value":"0"},"bInterfaceProtocol":{"value":"0","description":"Full speed (or root) hub"},"iInterface":{"value":"0"},"endpoint_descriptors":[{"bLength":{"value":"7"},"bDescriptorType":{"value":"5"},"bEndpointAddress":{"value":"0x81","description":"EP 1 IN"},"bmAttributes":{"value":"3","attributes":["Transfer Type Interrupt","Synch Type None","Usage Type Data"]},"wMaxPacketSize":{"value":"0x0002","description":"1x 2 bytes"},"bInterval":{"value":"12"}}]}]}},"hub_descriptor":{"bLength":{"value":"11"},"bDescriptorType":{"value":"41"},"nNbrPorts":{"value":"8"},"wHubCharacteristic":{"value":"0x0009","attributes":["Per-port power switching","Per-port overcurrent protection","TT think time 8 FS bits"]},"bPwrOn2PwrGood":{"value":"0 *","description":"2 milli seconds"},"bHubContrCurrent":{"value":"0","description":"milli Ampere"},"DeviceRemovable":{"value":"0x00","description":"0x00"},"PortPwrCtrlMask":{"value":"0xff","description":"0xff"},"hub_port_status":{"Port 1":{"value":"0000.0100","attributes":["power"]},"Port 2":{"value":"0000.0100","attributes":["power"]},"Port 3":{"value":"0000.0100","attributes":["power"]},"Port 4":{"value":"0000.0100","attributes":["power"]},"Port 5":{"value":"0000.0100","attributes":["power"]},"Port 6":{"value":"0000.0100","attributes":["power"]},"Port 7":{"value":"0000.0100","attributes":["power"]},"Port 8":{"value":"0000.0100","attributes":["power"]}}},"device_qualifier":{"bLength":{"value":"10"},"bDescriptorType":{"value":"6"},"bcdUSB":{"value":"2.00"},"bDeviceClass":{"value":"9","description":"Hub"},"bDeviceSubClass":{"value":"0"},"bDeviceProtocol":{"value":"0","description":"Full speed (or root) hub"},"bMaxPacketSize0":{"value":"64"},"bNumConfigurations":{"value":"1"}},"device_status":{"value":"0x0001","description":"Self Powered"}}] diff --git a/tests/test_lsusb.py b/tests/test_lsusb.py index de9812eb..1999763b 100644 --- a/tests/test_lsusb.py +++ b/tests/test_lsusb.py @@ -29,6 +29,12 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/lsusb-t.out'), 'r', encoding='utf-8') as f: self.generic_lsusb_t = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/lsusb-device-qualifier.out'), 'r', encoding='utf-8') as f: + self.generic_lsusb_device_qualifier = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/lsusb-binary-object-store.out'), 'r', encoding='utf-8') as f: + self.generic_lsusb_binary_object_store = f.read() + # output with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/lsusb.json'), 'r', encoding='utf-8') as f: self.centos_7_7_lsusb_json = json.loads(f.read()) @@ -45,6 +51,12 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/lsusb-test-attributes2.json'), 'r', encoding='utf-8') as f: self.generic_lsusb_test_attributes2_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/lsusb-device-qualifier.json'), 'r', encoding='utf-8') as f: + self.generic_lsusb_devicez_qualifier_json = json.loads(f.read()) + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/lsusb-binary-object-store.json'), 'r', encoding='utf-8') as f: + self.generic_lsusb_binary_object_store_json = json.loads(f.read()) + def test_lsusb_nodata(self): """ Test 'lsusb' with no data @@ -87,6 +99,18 @@ class MyTests(unittest.TestCase): """ self.assertEqual(jc.parsers.lsusb.parse(self.generic_lsusb_test_attributes2, quiet=True), self.generic_lsusb_test_attributes2_json) + def test_lsusb_device_qualifier(self): + """ + Test 'lsusb -v' with device qualifier section + """ + self.assertEqual(jc.parsers.lsusb.parse(self.generic_lsusb_device_qualifier, quiet=True), self.generic_lsusb_devicez_qualifier_json) + + def test_lsusb_binary_object_store(self): + """ + Test 'lsusb -v' with binary object store section + """ + self.assertEqual(jc.parsers.lsusb.parse(self.generic_lsusb_binary_object_store, quiet=True), self.generic_lsusb_binary_object_store_json) + if __name__ == '__main__': unittest.main()