Unable to read data from the RFID HID USB desktop reader in Windows, in Linux, everything works fine. #491
Replies: 2 comments 3 replies
-
Please share your HID Report Descriptor |
Beta Was this translation helpful? Give feedback.
-
That is a "Mouse/pointer" - HIDAPI cannot open "special" devices like Kyeboards/Mouses on Windows because OS doesn't allow to use for it any API except WinAPI-specific for Input. The other device is a "Bar Code Scanner". I'm not sure if WinAPI would allow to open it with HIDAPI at all. It might be under the same restriction as Mouses and Keyboards. That is not a limitation if HIDAPI implementation - that is a WinAPI limitation. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I can't read any data from the RFID HID USB desktop reader in Windows 10, in Linux, everything works fine.
I have tried with C++ code and with the hidapitester tool. I have tried with vendor and product ids, with path, without success in both tries.
Results from Windows:
hidapitester.exe --open-path "\\?\hid#vid_0483&pid_5750#6&1dbe0b37&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" --send-output 0x40,0x02,0x02,0xbc --read-input --close Opening device. path: \\?\hid#vid_0483&pid_5750#6&1dbe0b37&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} Writing output report of 64-bytes...wrote 65 bytes: 40 02 02 BC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Reading 64-byte input report 0, 250 msec timeout...read 0 bytes: Closing device
hidapitester.exe --vidpid 0483 --open --send-output 0x40,0x02,0x02,0xbc --read-input --close Opening device, vid/pid:0x0483/0x0000, usagePage/usage: 0/0 Device opened Writing output report of 64-bytes...wrote 65 bytes: 40 02 02 BC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Reading 64-byte input report 0, 250 msec timeout...read 0 bytes: Closing device
The same command executed in the Linux system returns the correct data:
hidapitester --vidpid 0483 --open --send-output 0x40,0x02,0x02,0xbc --read-input --close Opening device, vid/pid:0x0483/0x0000, usagePage/usage: 0/0 Device opened Writing output report of 64-bytes...wrote 64 bytes: 40 02 02 BC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Reading 64-byte input report 0, 250 msec timeout...read 64 bytes: F0 06 02 00 01 01 08 FE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Closing device
Thank you in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions