Comments (8)
Yes
This is old code form a previous version. The library now requires to use a library with FAILURE HANDLING activated. Therefore we can not trust any version installed already as it could be be and old version or not having this feature.
In the next version I will try to link the library statically into the node module so the system remains untouched or the user can use the dynamic version for CPP code.
from node-nrf24.
The node module has bee updated to new versions of the base libraries. This version should support well Rpi4 now.
The new version of the package will be published in npm
from node-nrf24.
Just one other note is that the install script configures the NRF24 libs to use the --driver=SPIDEV
. This somehow breaks the support for raspberypi.
from node-nrf24.
RPI supports SPIDEV and do not require root you only need to activate it. Let's say that SPIDEV is the "universal" driver for all linux based single boards computers. I do all my testing on a RPI 3.
from node-nrf24.
Thats what I thought as well (I am kind of new to this stuff). But I was testing 2 programs.
A very simple one (from the examples folder) where my Rpi(4) listens for incomming data from an arduino(every). Here the RF module isPresent
works and data is received. In the case of a manual installation of the libs, aswell as installation via the install script.
But if i use a simple mesh network script (also from the example) in the case of a manual install with failure handling enabled and driver RPI, it works. But with the install script it fails (SPIDEV):
symbol lookup error: /usr/local/lib/librf24network.so.1: undefined symbol: __millis
This error seems totally unrelated to the fix
for it but for some reason i cant find a different way to get it running with the install script from the repo.
from node-nrf24.
That's odd. I need to check that. How ever the next version (now published on master) will compile statically the SPIDEV version and will not depend on the version installed in the system.
from node-nrf24.
Tested master but no luck. Now setting up the SPI seems to failgpio mmap failed: Cannot allocate memory
. When googled suggested fixes are compiling using SPIDEV but it is the oposit in my case. I tested it compiling for BCM2835. and this seems to work just fine.
I also went trought the changes in the NRF24 lib since there is a more recent version available (1.3.4) and i found this commit which seems to introduce some fixes that might be the reason only the BCM2835 driver works on RPI4
from node-nrf24.
yes. 1.3.4 solves issues with RPI4 driver but breaks SPIDEV. There is a pending change in the lib to change to solve this. We have to wait to the 1.3.5 to try.
I need to test with RPI4 but now I have only one board in use with other project. In principle SPIDEV should work with RPI4. but I have not confirmed it.
from node-nrf24.
Related Issues (20)
- Traing to llisten to slave, or prhebs make some radio scanner HOT 7
- Does not work with node 12 HOT 7
- test_simple.js Syntax error HOT 1
- Most settings not being displayed correctly HOT 4
- NPM Install fails HOT 4
- Hardware Not Found HOT 2
- Advanced features - Dyn Payloads + Ack payload HOT 3
- Reading strings and converting C++ structs HOT 2
- build with RPi driver : radio not working or in use HOT 12
- Channel 0 doesn't work HOT 2
- Changing Channel After Initialization HOT 1
- GettingStarted.js cannot read more than the first 4 bytes on the buffer HOT 2
- ASUS Tinker board CE HOT 2
- Error writing to pipe depending on scope HOT 2
- Writing fail on nRF24L01+ with raspberry pi zero W and arduino pro mini HOT 2
- Installation failure on lastest nodejs version (v16) HOT 1
- Sending fails, wrong pin? HOT 1
- Installation falilure HOT 3
- usb adapter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-nrf24.