Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Serial number is not exposed #748

Unanswered
Ce345 asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 1 comment

Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /