Created
August 7, 2014 19:07
-
-
Save ianjorgensen/1435fad246aab87e909a to your computer and use it in GitHub Desktop.
usb_stick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
joule:examples ian$ node usb_stick.js 720726 | |
{ _readableState: | |
{ highWaterMark: 0, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: false, | |
ended: false, | |
endEmitted: false, | |
reading: false, | |
calledRead: false, | |
sync: true, | |
needReadable: false, | |
emittedReadable: false, | |
readableListening: false, | |
objectMode: false, | |
defaultEncoding: 'utf8', | |
ranOut: false, | |
awaitDrain: 0, | |
readingMore: false, | |
decoder: null, | |
encoding: null }, | |
readable: true, | |
domain: null, | |
_events: | |
{ end: { [Function: g] listener: [Function: onend] }, | |
error: [Function] }, | |
_maxListeners: 10, | |
_writableState: | |
{ highWaterMark: 0, | |
objectMode: false, | |
needDrain: false, | |
ending: false, | |
ended: false, | |
finished: false, | |
decodeStrings: true, | |
defaultEncoding: 'utf8', | |
length: 0, | |
writing: false, | |
sync: true, | |
bufferProcessing: false, | |
onwrite: [Function], | |
writecb: null, | |
writelen: 0, | |
buffer: [], | |
errorEmitted: false }, | |
writable: true, | |
allowHalfOpen: true, | |
device: | |
{ busNumber: 250, | |
deviceAddress: 6, | |
deviceDescriptor: | |
{ bLength: 18, | |
bDescriptorType: 1, | |
bcdUSB: 512, | |
bDeviceClass: 0, | |
bDeviceSubClass: 0, | |
bDeviceProtocol: 0, | |
bMaxPacketSize0: 64, | |
idVendor: 2593, | |
idProduct: 32769, | |
bcdDevice: 272, | |
iManufacturer: 0, | |
iProduct: 0, | |
iSerialNumber: 0, | |
bNumConfigurations: 1 } }, | |
initialized: false } | |
/Users/ian/code/diacon/comlink2-uart/node_modules/usb/usb.js:139 | |
this.device.__claimInterface(this.id) | |
^ | |
Error: LIBUSB_ERROR_ACCESS | |
at Interface.claim (/Users/ian/code/diacon/comlink2-uart/node_modules/usb/usb.js:139:14) | |
at UsbSimpleDuplex.open_usb [as open] (/Users/ian/code/diacon/comlink2-uart/lib/usb.js:23:14) | |
at Object.<anonymous> (/Users/ian/code/diacon/comlink2-uart/examples/usb_stick.js:14:10) | |
at Module._compile (module.js:456:26) | |
at Object.Module._extensions..js (module.js:474:10) | |
at Module.load (module.js:356:32) | |
at Function.Module._load (module.js:312:12) | |
at Function.Module.runMain (module.js:497:10) | |
at startup (node.js:119:16) | |
at node.js:906:3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment