Skip to content
Commits on Sep 5, 2012
  1. Update Readme.md

    URL updated
    committed Sep 5, 2012
Commits on Apr 1, 2012
  1. Added hint for ignoring failed unit tests (#10)

    Christopher Klein committed Apr 1, 2012
  2. - Readme file renamed

    - Removed semicolons from line end
    - Added check for pkg-config as suggested in #9 (thanks to geuis)
    Christopher Klein committed Apr 1, 2012
  3. Buffer type is now used

    Christopher Klein committed Apr 1, 2012
Commits on Mar 26, 2012
  1. Fixed e-mail

    Christopher Klein committed Mar 26, 2012
  2. - Data to write to an USB device must be passed as a Buffer object - …

    …and not as an array.
    
    - bulk and interrupt transfer mode can now READ data from an USB device
    Christopher Klein committed Mar 26, 2012
Commits on Mar 24, 2012
  1. Added support for USB control transfer

    Device.controlTransfer(bytesToRead, bmRequestType, bRequest, 0, 0, function(data) {}) works as expected.
    data will be a node.js buffer object which makes byte manipulation easy.
    I update the Kinect example to read the accelerometer axes from the device (taken from ladyada.net/leran/diykinect).
    Christopher Klein committed Mar 24, 2012
Commits on Jan 16, 2012
  1. Fixed ObjectWrap::IsNearDeath assert

    Christopher Klein committed Jan 16, 2012
  2. Removed absolute path from require statement

    Christopher Klein committed Jan 16, 2012
Commits on Jan 11, 2012
  1. Fixes for bramps branch

    ckl-linuxmint12 committed Jan 11, 2012
  2. Merge branch 'master' of https://github.com/bramp/node-usb into bramp…

    …-libuv
    
    Conflicts:
    	src/bindings.h
    	src/device.cc
    	src/device.h
    	src/endpoint.cc
    	src/endpoint.h
    	src/interface.cc
    	src/interface.h
    	src/usb.cc
    Christopher Klein committed Jan 11, 2012
Commits on Jan 10, 2012
  1. - libev replaced with libuv

    - removed EventEmitter and node_events.h dependency
    - BUG: still problems with ev_rt_now - not able to solve this at the moment (node.js in latest v0.5 and v0.6 and pre-v0.7.0)
    Christopher Klein committed Jan 10, 2012
Commits on Oct 14, 2011
  1. @bramp

    Flipped the internals to ensure a object would not be garbage collect…

    …ed when it was still in us. For example, a Interface object depends on it's parent Device object, but did not hold a reference to it.
    
    Now each child object holds a reference to it's creator. This avoids many use after free problems. The external API has not changed.
    
    Also fixed a few issues with the configuration descriptors being used at the wrong time.
    bramp committed Oct 13, 2011
Commits on Oct 12, 2011
  1. @bramp
  2. @bramp
  3. @bramp

    Used the concept of libusb contexts. Makes this a little safer if the…

    …re are other users of USB in this Nodejs process.
    bramp committed Oct 11, 2011
Commits on Oct 11, 2011
  1. @bramp

    Multiple changes to fix the memory management of this extension.

    1) Ref() was incorrectly used to ensure the objects were kept around forever. These have been removed, and are becoming more valid.
    2) Changed the request struct, to include reference to the Object issuing the async call. This allows correct Ref()/Unref() handling between queuing the eio event, and it actually finishing. Also, this allowed some members of the structs to be removed as they were contained in the original Object.
    3) Moved the request structs to be in a consistent location.
    
    Soon handling will be added to ensure that Child Devices/Interface hold a reference to their parent Usb object. This will protect against premature garbage collection.
    bramp committed Oct 10, 2011
  2. @bramp
  3. @bramp
Commits on Oct 10, 2011
  1. @bramp

    Fixed the double include guards. The macro had a inconsisant trailing…

    … _, which meant the guard didn't work.
    bramp committed Oct 10, 2011
  2. @bramp

    Rearranged some code to avoid using V8 methods inside of the EIO thre…

    …ads. This is not allowed and can cause crashes.
    
    Also changed the callback code to properly check for a optional callback, and use it only if it was set.
    bramp committed Oct 10, 2011
Commits on Oct 8, 2011
  1. @bramp
Commits on Feb 23, 2011
  1. Fixed require() statements

    Christopher Klein committed Feb 23, 2011
  2. Removed file

    Christopher Klein committed Feb 23, 2011
  3. Merge branch 'master' of github.com:schakko/node-usb

    Conflicts:
    	README
    	examples/lsusb.js
    	examples/lsusb/lsusb.js
    	examples/node-usb-lsusb.js
    Christopher Klein committed Feb 23, 2011
Commits on Feb 22, 2011
  1. Added first version of ToneLabST GUI (depends on express)

    Christopher Klein committed Feb 22, 2011
Commits on Dec 22, 2010
  1. Added documentation

    - added API documentation
    - renamed the examples
    Christopher Klein committed Dec 22, 2010
  2. API changes and segmentation fault fixes

    - endpoint.submitNative is now working. pthread_mutex_lock error occurs, if the interface is not claimed before using it
    - unit test fixed: added interface.claim()
    - added V8 Ref() methods in wrapped objects, so devices/interfaces/endpoints are not GCed
    - Renamed Device::Ref() / Device::Unref() to AddReference() / RemoveReference()
    - Fixed wrong argument count message (timeout parameter is now optional)
    Christopher Klein committed Dec 22, 2010
  3. Added motor control to Microsoft Kinect example

    - Changed allowed parameter for ControlTransfer to Int32
    Christopher Klein committed Dec 22, 2010
  4. LED of Microsoft Kinect example can now be controlled

    - fixed Kinect example
    - added newline for dump byte macro
    - added debug output for Device::ControlTransfer
    - fixed wrong value assignment
    Christopher Klein committed Dec 22, 2010
Commits on Dec 21, 2010
  1. Added transfer methods (not tested yet)

    - added example for using Microsofts Kinect with node.js (just simple blinking LEDs)
    - introduced bulk and interrupt transfers for Endpoints
    - introduced control transfer for Device
    - Renamed Endpoint.submit; have to investigate threading problems later
    Christopher Klein committed Dec 21, 2010
  2. fixed macro definition

    Christopher Klein committed Dec 21, 2010
Commits on Dec 15, 2010
  1. Added byte dump macro

    Christopher Klein committed Dec 15, 2010
  2. added __VA_ARGS__ to DEBUG macro

    Christopher Klein committed Dec 15, 2010
Commits on Dec 14, 2010
  1. introduced endpoint.submit() for async reading/writing

    Christopher Klein committed Dec 14, 2010
Something went wrong with that request. Please try again.