-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault #1
Comments
Hello, ls /dev You should to see sudo raspi-config and turn on spi from Best regards |
Thank you, |
You are welcome! It should be to print something similar to
If you read something like:
radio is not connected correctly. Regards |
Thank you,
Unfortunatelly - trying to pong it in or out with Arduino:
Gives me timeouts no matter the direction. If you have any advice it would be appreciated. Thank you! |
Using nRF/RF24 arduino sample inside arduino and sample.js you find rf24js/samples in orange pi zero I successfully send data from mini-pc to arduino. Unfortunatelly with some problems at receiving time. The next week i will use interrupt and I will try to release a new version (with ts support). Looking at your arduino trace Regards |
Thank you again Giuseppe, At the moment it looks I'm on tracks - right now fighting with pockets beeing lost around (done capacitors).
wont do anything,
gets me an undefined error obviously, and
doesnt seems to work either. Thank you! |
Hello, According with line 38 of file above, for 250kbps you have to pass 2. Regards |
Thank you - that explained everything. No worries - you did a great job so far! I'm on a phase of planning the packets structure (trying to send few different values in one package, like int, float). Dunno if thats a good place to ask - but maybe you have some good ideas to make it work between C and node.js? Been thinking about C "struct". |
Hello, thanks you :) I don't think use c-struct is a good idea. In my project im using a simple high speed byte serializer totally written in typescript. It's not still published but if you clone it, you can see how it works. I use this serializer to convert js object in byte array and vice versa. In the C side I'll read the byte array using a serial message protocol convention.
Where
Regards |
Thank you - thats a nice module! Could you please advice what can I use for CRC from arduino side? The _crc16_update looks like its only suitable for numbers and gives me 0 for strings. |
Theoretically you can use any kind of CRC alg/config. I notice that one of the most used crc16 with arduino is CRC16_CCIT_ZERO. You can find helpful the issue at crc-full library about crc in c and javascript. |
Using:
Got Segmentation fault when I try to run:
var radio = require('./node_modules/rf24js/build/Release/rf24js.node');
radio.create(2, 10);
radio.begin();
or
var radio = require('rf24js');
radio.create(2, 10);
radio.begin();
The text was updated successfully, but these errors were encountered: