USBDevices / USBDevInfo broken?
Rick Murray (539) 13750 posts |
It seems as if the class and subclass are always being returned as zero for non-system devices: *USBDevices No. Bus Dev Class Description 1 1 1 9/ 0 Synopsys DWC OTG root hub 2 1 2 9/ 0 SMSC USB 2.0 4-Port Hub 3 1 3 9/ 0 SMSC USB 2.0 4-Port Hub 4 1 4 0/ 0 USB USB Keykoard 5 1 5 0/ 0 Logitech USB-PS/2 Optical Mouse 6 1 6 FF/ 0 SMSC LAN7800 USB 3.1 gigabit ethernet device 8 1 8 0/ 0 Prolific Technology Inc. USB-Serial Controller 15 1 7 0/ 0 QinHeng Electronics USB2.0-MIDI *USBDevInfo 4 USB release : 0110 Device class : 00 Device subclass : 00 Device protocol : 00 Max packet size : 08 Vendor ID : 1C4F Product ID : 0002 Device ID : 0110 # of configs : 1 Manufacturer : 'USB' Product : 'USB Keykoard' Serial number : '' Speed : Low *USBDevInfo 5 USB release : 0200 Device class : 00 Device subclass : 00 Device protocol : 00 Max packet size : 08 Vendor ID : 046D Product ID : C03D Device ID : 2000 # of configs : 1 Manufacturer : 'Logitech' Product : 'USB-PS/2 Optical Mouse' Serial number : '' Speed : Low *USBDevInfo 8 USB release : 0110 Device class : 00 Device subclass : 00 Device protocol : 00 Max packet size : 40 Vendor ID : 067B Product ID : 2303 Device ID : 0300 # of configs : 1 Manufacturer : 'Prolific Technology Inc.' Product : 'USB-Serial Controller' Serial number : '' Speed : Full *USBDevInfo 15 USB release : 0110 Device class : 00 Device subclass : 00 Device protocol : 00 Max packet size : 08 Vendor ID : 1A86 Product ID : 752D Device ID : 0254 # of configs : 1 Manufacturer : '' Product : 'USB2.0-MIDI' Serial number : '' Speed : Full * Hehe… “Keykoard”, that person had one job… ;) Pi 3B+, RISC OS 5.29 (15-Jul-21). I didn’t bother to try updating to a more recent OS version as the Git history indicates USBDriver itself hasn’t been modified since (only a recent MakeFile change). |
Martin Avison (27) 1479 posts |
I notice that !USBInfo shows Defined at Interface Level against the 0/0 devices. I have no idea what that means of whether relevant! |
Stuart Painting (5389) 709 posts |
Try using *USBConfInfo On my Pi 4, “*USBConfInfo 7” (device 7 being the mouse) produced, inter alia, the following line:
which decodes as Class 3 (HID), Subclass 1, Protocol 2 (Mouse). |
Rick Murray (539) 13750 posts |
Yup, I get 3.1:2 for my mouse too. So it’s just Devices and DevInfo that are showing incorrect data. |