Does not work on latest Tessel2 firmware
See original GitHub issueTrying to use this module on a tessel2, and it completely fails me. Which is strange, because I have a running tessel2 with an older fw which works with usb@1.2.0 perfectly as I write these lines.
Environment:
node -v
v6.10.3
npm -v
3.10.10
node-pre-gyp INFO t2-cli: 0.1.17
node-pre-gyp INFO t2-firmware: 0.1.0
node-pre-gyp INFO Node.js: 6.10.3
When I try to run a simple example on tessel,
var usb = require('usb');
var list = usb.getDeviceList();
console.log(list);
I got the following error
module.js:471
throw err;
^
Error: Cannot find module '/tmp/remote-script/node_modules/usb/src/binding/usb_bindings.node'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/tmp/remote-script/node_modules/usb/usb.js:1:452)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Additionally, here’s the version info from the tessel, where the 1.2.0 works like a charm
node-pre-gyp INFO t2-cli: 0.1.17
node-pre-gyp INFO t2-firmware: 0.0.16
node-pre-gyp INFO Node.js: 4.5.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
tessel/t2-firmware - GitHub
dfu-util is a command line utility to update the firmware on T2. See their website for installation instructions ( brew install dfu-util works)....
Read more >Tessel 2 Technical Overview
Tessel 2 Technical Overview. This guide is intended to help code contributors understand how relevant system components of Tessel 2 work, where to...
Read more >Getting Started with the Tessel 2 - SparkFun Learn
Installing the t2-cli software tool; Connecting the Tessel 2 with a USB cable; Finding, renaming and provisioning the Tessel; Updating the Tessel's firmware...
Read more >4. The Tessel 2 - Node.js for Embedded Systems [Book]
Tessel 2 is a completely open source project, so all of its hardware and ... can quickly upload code, configure network settings, or...
Read more >Using Tessel's Wifi
This command will check for a new version of the Tessel 2 firmware. If there is an update available, it will be downloaded...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t know why it wouldn’t work on T2 if you cross-compiled it, but the error you have is just that the binary module is missing.
I haven’t been following the status of the effort to pre-compile common binary modules for Tessel’s MIPS processor, but node-usb should probably be included in that set to support USB devices like fadecandy plugged into T2’s USB port.
@rwaldron how did you do that?