Closed lakenen closed 9 years ago
Hmm, will have to look into this. Whatever the problem is, I'm guessing it's shared by https://github.com/natevw/pi-pins/issues/2 which just got reported too. What node version are you using?
So this might be a little different than the other issue. Since the easiest way I can reproduce this is simply by trying on my Mac OS X machine, I have to ask — any chance you are trying to use on a Mac or Windows machine? Two of the node-nrf dependencies require Linux kernel modules for SPI and GPIO. So this is somewhat limited to what hardware (and distro!) you can use.
Yes, this is on OS X (10.9.4). Does the module simply not work on Mac?
Short answer is there is no Mac support, because you "can't" connect an nRF24L01+ chip to a Mac.
Right now this driver assumes you are hooking the chip to an embedded Linux device with built-in SPI and digital I/O pins, e.g. Raspberry Pi or Beaglebone, and so it uses the standard Linux drivers to run the signal lines. (There's also a Tessel port of this library.)
Now there's actually a nRF24LU1+ chip with built-in USB that I'd love to program as an HID device and then drive with this library via a third hardware backend option. So then it would work on more platforms with just a USB dongle. I bought a dev board to play with this a while back, but it's not likely to happen any time soon. (Also an SDR backend would be fun, but that's even more spare time needed.)
Happy to give ideas if there's something specific you're trying to do.
Ah! I think I understand better now…I noticed you've got some repos with 'johnny-five'.
I'd love to make a johnny-five backend for this too, but AFAICT the underlying Firmata protocol still doesn't support SPI yet which is pretty much a show stopper. Maybe @rwaldron knows a bit more about the roadmap(s) here?
Bingo! I was trying to use the nRF chip with johnny-five :)
I ended up just using the RF24 library and writing an arduino sketch instead of using node. But it would definitely be cool!
Seems possible, considering https://github.com/kraman/go-firmata
https://github.com/ideino/ideino-linino-lib/blob/master/ext/firmata_spi/firmata_spi.ino
Not what I thought it was
Closing this in lieu of https://github.com/natevw/node-nrf/issues/34
I am getting the error:
When I
require('nrf');
. I even went into the epoll dependency and rannode-gyp rebuild
and that had no effect.Any ideas?