question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot open device with path

See original GitHub issue

I’m trying to read input from a Acan barcode scanner that emulates a keyboard.

However var device = new HID.HID('USB_05fe_1010_14200000'); returns cannot open device with path USB_05fe_1010_14200000.

Currently, when scanning the scanner “types” the read characters followed by a return key. Do I need to set a particular config setting for this to be read as a HID directly?

Full output

[ { vendorId: 1534,
    productId: 4112,
    path: 'USB_05fe_1010_14200000',
    serialNumber: '',
    manufacturer: 'OKE Electron Company',
    product: 'OKE PS2-USB V1.61',
    release: 1,
    interface: -1 },
  { vendorId: 1452,
    productId: 611,
    path: 'USB_05ac_0263_1d182000',
    serialNumber: '',
    manufacturer: 'Apple Inc.',
    product: 'Apple Internal Keyboard / Trackpad',
    release: 546,
    interface: -1 },
  { vendorId: 1452,
    productId: 611,
    path: 'USB_05ac_0263_1d182000',
    serialNumber: '',
    manufacturer: 'Apple Inc.',
    product: 'Apple Internal Keyboard / Trackpad',
    release: 546,
    interface: -1 },
  { vendorId: 1452,
    productId: 611,
    path: 'USB_05ac_0263_1d182000',
    serialNumber: '',
    manufacturer: 'Apple Inc.',
    product: 'Apple Internal Keyboard / Trackpad',
    release: 546,
    interface: -1 },
  { vendorId: 0,
    productId: 0,
    path: '',
    serialNumber: '',
    manufacturer: '',
    product: 'Apple Mikey HID Driver',
    release: 0,
    interface: -1 },
  { vendorId: 1452,
    productId: 611,
    path: 'USB_05ac_0263_1d182000',
    serialNumber: '',
    manufacturer: 'Apple Inc.',
    product: 'Apple Internal Keyboard / Trackpad',
    release: 546,
    interface: -1 } ]

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

18reactions
yevgenkocommented, Feb 19, 2016

Try with sudo, i.e. sudo node yourapp.js. Worked for me on Mac and Linux.

4reactions
jimmybakercommented, Jun 6, 2015

I have this issue as well using a barcode scanner. Has anyone figured out why this happens?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: cannot open device with path 0001:0002:00 - GitHub
I am running node-hid on a raspberry pi with the most current versions of node.js and npm. The output from lsusb is: Bus...
Read more >
"Windows cannot access the specified device, path, or file ...
Method 1: Check the permission of the file or folder · Right-click the file or folder, and then select Properties. · Select the...
Read more >
Cannot open device with path /dev/hidraw - Kernel & Hardware
I got today an Anne Pro 2 and tried to run obinskit (the software for the keyboard). It couldn't install from AUR (failed...
Read more >
Fix Windows Cannot Access the Specified Device Path/File ...
The error “Windows cannot access the specified device path or file” is common when users try to install, update or start Windows 10....
Read more >
Fix Windows Cannot Access The Specified Device Path or File ...
Windows cannot access the specified device ? When you try to install, update or start a program or a file, you receive the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found