natevw / node-nrf

Pure-JavaScript nRF24L01 driver library
117 stars 31 forks source link

Error: Symbol epoll_module not found #22

Closed lakenen closed 9 years ago

lakenen commented 10 years ago

I am getting the error:

Error: Symbol epoll_module not found

When I require('nrf');. I even went into the epoll dependency and ran node-gyp rebuild and that had no effect.

Any ideas?

natevw commented 10 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?

natevw commented 10 years ago

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.

lakenen commented 10 years ago

Yes, this is on OS X (10.9.4). Does the module simply not work on Mac?

natevw commented 10 years ago

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.

natevw commented 10 years ago

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?

lakenen commented 10 years ago

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!

rwaldron commented 10 years ago

Seems possible, considering https://github.com/kraman/go-firmata

rwaldron commented 10 years ago

https://github.com/firmata/arduino/pull/135

rwaldron commented 10 years ago

https://github.com/ideino/ideino-linino-lib/blob/master/ext/firmata_spi/firmata_spi.ino

Not what I thought it was

natevw commented 9 years ago

Closing this in lieu of https://github.com/natevw/node-nrf/issues/34