node-hid

Access USB & Bluetooth HID devices through Node.js

BSD-3-CLAUSE License

Downloads
282K
Stars
1.5K
Committers
36

Bot releases are visible (Hide)

node-hid - node-hid v0.7.2

Published by todbot almost 7 years ago

In this release:

  • Roll-back HID.setDriverType() support for Linux as it broke prebuilds for everyone (see issue #242)
  • Linux: default to hidraw driver instead of libusb (so usagePage works on Linux, for crypto keys mainly). See details below

NOTE for Linux users:

  • If you have udev rules they will need to be updated. For instance, for blink(1), the udev rules to support both libusb and hidraw would be in the file /etc/udev/rules.d/51-blink1.rules and contain:
    SUBSYSTEM=="input", GROUP="input", MODE="0666"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw*", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666", GROUP="plugdev"
    
    To install the new rules, unplug the HID device and run the command:
    sudo udevadm control --reload-rules
    
node-hid - node-hid v0.7.1

Published by todbot almost 7 years ago

Temp fix for prebuilt binaries. They should work now.

node-hid - node-hid v0.7.0

Published by todbot almost 7 years ago

New and potentially breaking changes:

  • Now we can have usagePages on Linux! Should address issues #180 #168 #190
  • Linux hidraw driver is now used by default instead of libusb
  • Linux driver type can be changed at runtime with HID.setDriverType() (see README for details)
  • Both device.write() and device.sendFeatureReport() return number of bytes written. Issue #234

Note: no prebuilt binaries available for this release

NOTE for Linux users:

  • Blink1Contro2 uses [email protected] which uses the 'hidraw' driver instead of 'libusb'. This means you need to edit your /etc/udev/rules.d/51-blink1.rules file to also contain:
    KERNEL=="hidraw*", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666", GROUP="plugdev"
    
    To install the new rules, unplug the blink(1) device and run the command:
    sudo udevadm control --reload-rules
    
node-hid - node-hid v0.6.0

Published by todbot almost 7 years ago

  • Implements shared native library lazy loading to help with stub / CI tests.
    See issue #226 ("don't execute code on require")

  • Prebuilt-binary support for [email protected] and Node@8

node-hid - node-hid v0.5.7

Published by todbot about 7 years ago

New in this release:

  • Builds done using prebuild instead of node-pre-gyp. Now we offer pre-built binaries for Node v8 and Electron and more
  • Fix issue #217
  • Clean up some (but not all) nan API deprecation notices in Node v8
node-hid - v0.5.4

Published by todbot almost 8 years ago

node-hid 0.5.4

Fix module path and new multi-platform binary build process using Appveyor (Windows) and Travis (Linux & MacOSX)

node-hid - v0.5.2

Published by todbot almost 8 years ago

node-hid 0.5.2

Changes:

  • Fixed segfault on read of closed device #159 (thx @agirorn)
  • Increase buffer size to 2048 #157 (thx @danieltian)
  • Fix unique device issue (usage page issue) on Mac from upstream hidapi #156 (thx @runn1ng)
  • Updated hidapi C library to signal11/hidapi@a6a622f
  • Updated NAN to 2.4.0
  • Moved node-pre-gyp releases to github