Replies: 1 comment
-
Most likely that device's USB Deskriptor simply doesn't provide the Serial Number. That is not uncommon for manufacturers to omit some properties like that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Windows & python:
The serial number is the only element that does give a blank results on all devices via hid.enumerate.
Example:
Path: b'\\?\HID#VID_046D&PID_C534&MI_01&Col04#8&103104c3&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}'
Vendor ID: 1133
Product ID: 50484
Serial Number:
Release Number: 10497
Manufacturer: Logitech
Product: USB Receiver
Usage Page: 65280
Usage: 1
USB Interface: 1
Python file;
import hid
Enumerate HID devices
devices = hid.enumerate()
for device in devices:
print(f"Path: {device['path']}")
print(f"Vendor ID: {device['vendor_id']}")
print(f"Product ID: {device['product_id']}")
print(f"Serial Number: {device['serial_number']}")
print(f"Release Number: {device['release_number']}")
print(f"Manufacturer: {device['manufacturer_string']}")
print(f"Product: {device['product_string']}")
print(f"Usage Page: {device['usage_page']}")
print(f"Usage: {device['usage']}")
print(f"USB Interface: {device['interface_number']}")
print("-" * 40)
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions