It's basically a node-usb implementation of the crazy radio config specs here: https://wiki.bitcraze.io/doc:crazyradio ... ry_ard_arc
I wanted something a little faster and easier to manage than the chrome example, no cylon.js, no chrome, etc. So far so good, but I'm having issues with the START_SCAN_CHANNELS.
For some reason, my control transfer always times out and leaves the dongle in bad state (needs to be unplugged).
Any idea what's wrong with this code?
Code: Select all
device.controlTransfer(0x40, 0x21, low, high, new Buffer(high - low), cb);
If you have some node savvy you can download the repo and run the tests pretty easily. The scan test is commented out tho.