MadLittleMods / node-usb-detection

List USB devices in system and detect changes on them.
MIT License
370 stars 114 forks source link

The same HID device, `node-hid` and `usb-detection` get different manufacturer data #89

Closed OrangeChu closed 4 years ago

OrangeChu commented 4 years ago

This is the result of node-hid: node-hid

This is the result of usb-detection: usb-detection (note: manufacturer: "(标准系统设备)" means manufacturer: "(Standard USB Host Controller)")

MadLittleMods commented 4 years ago

I assume this is related to https://github.com/MadLittleMods/node-usb-detection/pull/86

cc @nononoone

OrangeChu commented 4 years ago

Thanks @MadLittleMods .

This is the result of version 4.3.0: usb-detection@4 3 0

I'm afraid it's not deviceName garbled problem. It looks like node-hid and usb-detection take different values.

nononoone commented 4 years ago

Thanks @MadLittleMods . I'm afraid it's not deviceName garbled problem. This is the result of version 4.3.0: usb-detection@4 3 0

It looks like node-hid and usb-detection take different values.

It was fixed in version 4.4.0

webees commented 4 years ago

HID只是一种USB通信协议。

USB有5种标准描述符: 设备描述符 配置描述符 字符描述符 接口描述符 端点描述符

USB描述符之间的关系是一层一层的。明显node-usb-detectionnode-hid获取的描述符层次不同。你可以在windows设备管理器中查看,应该与node-usb-detection获取的信息一致。所以node-usb-detection没有毛病。另外,花钱购买vid和pid的可能有你想要的结果。

This is not a bug.

OrangeChu commented 4 years ago

HID只是一种USB通信协议。

USB有5种标准描述符: 设备描述符 配置描述符 字符描述符 接口描述符 端点描述符

USB描述符之间的关系是一层一层的。明显node-usb-detectionnode-hid获取的描述符层次不同。你可以在windows设备管理器中查看,应该与node-usb-detection获取的信息一致。所以node-usb-detection没有毛病。另外,花钱购买vid和pid的可能有你想要的结果。

This is not a bug.

Thank you for your answer. :100: