You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 25, 2020. It is now read-only.
i used to run the same code in an Electron App without problems, now after 2 system upgrades am getting the below error
Uncaught Exception: Error: cannot open device with vendor id 0x4b4 and product id 0xbca1 at new HID (/home/martin/Electron/electron-api-demos/node_modules/node-hid/nodehid.js:54:17) at new UsbScanner (/home/martin/Electron/electron-api-demos/node_modules/usb-barcode-scanner/dist/usb-barcode-scanner.js:31:25)
i tried removing node-modules and yarn to re-install but still cant open device if i either use deviceId or path! EDIT
Node HID reports a different devID vendID from what i get with const getDevices= require('usb-barcode-scanner').getDevices console.log(getDevices()); the above code gives { vendorId: 1204, productId: 48289, path: '/dev/hidraw0', serialNumber: '', manufacturer: 'Guest', product: 'Barcode Reader', release: 594, interface: 0 } and Node HID reports vendor id 0x46d and product id 0xc52f
which is hexadecimal for 1133 and prodID 50479 which is my mouse BT dongle yet i provided my vendor Id and product id of 1204 and 48289 even if i remove the bluetoth dongle for wireless mouse
i used to run the same code in an Electron App without problems, now after 2 system upgrades am getting the below error
Uncaught Exception: Error: cannot open device with vendor id 0x4b4 and product id 0xbca1 at new HID (/home/martin/Electron/electron-api-demos/node_modules/node-hid/nodehid.js:54:17) at new UsbScanner (/home/martin/Electron/electron-api-demos/node_modules/usb-barcode-scanner/dist/usb-barcode-scanner.js:31:25)i tried removing node-modules and
yarnto re-install but still cant open device if i either use deviceId or path!EDIT
Node HID reports a different devID vendID from what i get with
const getDevices= require('usb-barcode-scanner').getDevices console.log(getDevices());the above code gives{ vendorId: 1204, productId: 48289, path: '/dev/hidraw0', serialNumber: '', manufacturer: 'Guest', product: 'Barcode Reader', release: 594, interface: 0 }and Node HID reportsvendor id 0x46d and product id 0xc52fwhich is hexadecimal for 1133 and prodID 50479 which is my mouse BT dongle yet i provided my vendor Id and product id of 1204 and 48289 even if i remove the bluetoth dongle for wireless mouse