-
Notifications
You must be signed in to change notification settings - Fork 2
Can not open device with vendor... #14
Description
Hi,
I have similar barcode scanner which registered/installed as HID Pos device in Device Manager.
I am using Windows 10 and Electron app to open device but I am getting error:
Uncaught Error: cannot open device with vendor id 0x1eab and product id 0x22
I know that windows does not allow communication with HID device, but it's not case for all scanners and use cases. Can you tell me what drivers did you install and how did you make it work?
- In case you did try it on windows.
Driver details:
Device HID\VID_1EAB&PID_0022&MI_01\7&6a7a585&2&0000 was configured.
Driver Name: hidscanner.inf
Class Guid: {c243ffbd-3afc-45e9-b3d3-2ba18bc7ebc5}
Driver Date: 06/21/2006
Driver Version: 10.0.18362.1
Driver Provider: Microsoft
Driver Section: BarcodeScanner_Install.NT
Driver Rank: 0xFF0003
Matching Device Id: HID_DEVICE_UP:008C_U:0002
Outranked Drivers: input.inf:HID_DEVICE:00FF1004
Device Updated: false
Parent Device: USB\VID_1EAB&PID_0022&MI_01\6&10bb0e77&0&0001
I've managed to set it up on RPi with different library but I need it for Windows :/
UPDATE: I managed to install different drivers and Open device with different library var usb = require('usb');
But all I am getting in console is:
<Buffer **02** 00 **05** 00 00 00 00 00 00 00 00 00 00 00 00 00>
<Buffer 00 00 28 00 00 00 00 00 00 00 00 00 00 00 00 00>
This represents letter "B" but "b" is much longer buffer output. How can I convert this to strings / letters?
UPDATE: I've managed to extract data similar way you did and used your hid key list to match my arrays. Here is helper I have created for it and works on Windows 10 x64.
https://github.com/markosole/node-usb-barcode
Regards,
Marko.