Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.
This repository was archived by the owner on May 25, 2020. It is now read-only.

Can't open device  #3

Description

@devyaz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions