Questions tagged [node-usb]

Node.JS library for communicating with USB devices in JavaScript / CoffeeScript.

About

Node.JS library for communicating with USB devices in JavaScript / CoffeeScript.

It's based entirely on libusb's asynchronous API for better efficiency, and provides a stream API for continuously streaming data or events.

Links

  1. Github
11 questions
3
votes
1 answer

Talking to ACR1252U NFC Card Reader via Node.js

I am trying to communicate with an ACR1252U NFC card reader (http://www.acs.com.hk/en/products/342/acr1252u-usb-nfc-reader-iii-nfc-forum-certified-reader/) using Node.js and the https://github.com/nonolith/node-usb NPM module. I have created a…
Rob Evans
  • 6,750
  • 4
  • 39
  • 56
2
votes
0 answers

All node usb libraries do not work and all give some kind of error

I'm developing a VSCode Extension where you can develop CircuitPython code. I want it to be able to upload your code to your pico, or whatever microcontroller you're using. For this I need to detect all usb drives that are connected, I've tried…
GHOST
  • 337
  • 3
  • 9
2
votes
1 answer

Building node-usb for Electron

I have cloned electron-react-boilerplate from GitHub, which comes with Electron 11.0.1: git clone --depth 1 --single-branch https://github.com/electron-react-boilerplate/electron-react-boilerplate.git test Next, I install the template's…
MikkoP
  • 4,864
  • 16
  • 58
  • 106
2
votes
1 answer

using node-usb this.open() , LIBUSB_ERROR_ACCESS

After connecting the USB to the raspberry pie, I have loaded the devices with node-usb . The desired device was found by the device's VID and PID. Then I open the device and try to read the data. But this._open () , error: LIBUSB_ERROR_ACCESS I get…
user9237891
1
vote
1 answer

Error in detecting serial port path automatically

I am new to node-serialport and having some issues in detecting serial port automatically. Below is my code, var serialport = require('serialport'); var portName = " "; Code for detect serial port path automatically:- (Note: If I tried to print…
1
vote
0 answers

Node usb, no data received

I use the following code to receive data from an ANT+ dongle I used other software (Zwift, which shows that the dongle actually received data) (Using OS X): /* Require the config */ require('dotenv').config() /* require the usb class */ var usb =…
Jasper Fioole
  • 449
  • 1
  • 5
  • 25
1
vote
0 answers

Timeout Error (errno: 2) while reading data from usb

I am getting LIBUSB_TRANSFER_TIMED_OUT error (errcode: 2) when trying to read data from usb. I am using this module. function onUsbAttached(device) { console.log('you gotta usb.\n'); device.open(); // open the device. //…
Gaurav Gupta
  • 4,586
  • 4
  • 39
  • 72
0
votes
0 answers

NodeJS SerialPort 'The parameter is incorrect' with FTDI Chip

I am trying to set up a USB test using an FTDI chip UMFT234XD-WE, Using node-serialport I'm simply trying to open the port in a test script and write an array of data through the chip to another device. But, I can't get that far. For example, using…
0
votes
0 answers

Retrieving battery percentage from 2.4ghz keyboard and mouse via NodeJs

I have a new keyboard and mouse and I want to have an indicator for both devices in the windows 1 taskbar. Something like this : Battery indicator in taskbar My devices are : Razer Basilisk Ultimate Nuphy Halo96 Keyboard (A fairly unknown custom…
0
votes
1 answer

Access ACS chip reader from node.js

I'm trying to access the ACS chip reader (ACR1252) from node.js using node-usb library. But it seems the library is really a usage pain due no documentation. So far I got the device recognized and connect to the interfaces (just on mac, linux still…
btx
  • 1,972
  • 3
  • 24
  • 36
0
votes
0 answers

Reuse usb package installed with npm in electron app

I have an atypical internet connection, sometimes I have it, but sometimes I do not and I need to save its use. I need to use the usb library for node, I already have it installed in another node_modules (same operating system / same pc), but when I…
Conde
  • 785
  • 15
  • 31