具有超级用户权限,我向设备发送指令如下:
$ sudo hid-query /dev/hidraw1 0x01 0x80 0x33 0x01 0x00 0x00 0x00 0x00
Device /dev/hidraw1 : 413d:2107 interface 1 : (null) (null)
Writing data (9 bytes):
00 01 80 33 01 00 00 00 00
Response from device (8 bytes):
80 40 07 9b 11 4a 00 00
作为普通用户,我可以运行 hid-query 但找不到设备:
$ hid-query /dev/hidraw1 0x01 0x80 0x33 0x01 0x00 0x00 0x00 0x00
No HID devices were found.
设备路径上已经有 rw 权限:
$ ls -la /dev/hidraw1
crw-rw-rw- 1 root root 244, 1 Nov 7 16:52 /dev/hidraw1