Comments (2)
Hi there, my first suggestion would be to start small. Get your code working with basic functionality, and no interrupts, then implement or enable one feature at a time. If something isn't working properly, there is a reason for it, usualy user error.
Both doesn't work. I'm starting to think it's an hardware problem, even if all the examples seem to work.
This is rarely a good assumption. Start with known working code, and modify one thing at a time.
Normally, I would leave it at that, but the IRQ example leaves a lot to be desired, so...
- The IRQ should trigger on LOW
- Start and stop listening before every listen/write
- Timing of things and delays are causing problems - if you want to run fully off IRQs you should implement like a state machine
- I suggest PA_MIN for testing in close proximity
- Lack of a protocol/incrementing values creates errors (missing payloads / ack=ok, but no payload) http://forum.arduino.cc/index.php?topic=273333.0
- To simplify, utilize the radio.maskIRQ(1,1,0); feature to only trigger interrupts on RX
- Etc. etc. etc...
The following gist attempts to correct some of the problems with your code, but there are still some bugs and changes that you would have to work out dependant on what exactly you are doing.
https://gist.github.com/TMRh20/a05cc5a0948de70b477f
All in all, as the majority of 'issues' are, this is a technical support/user issue, and should not be posted here.
from rf24.
Dear TMRh20,
Thanks for your great RF24 Lib!
In the 'ping _pair_irq' example, the sender always reports as sending fail, the receiver gets only the first packet from sender and then no more packets received!
Following your suggestion above, I see that you missed to stopListening() before sending a packet on sender, and that's the problem I've spent a few hr to solve :) thanks for your suggestion! Pls. update also, thanks!
Regards,
HieuNT
from rf24.
Related Issues (20)
- RPi5 uses different gpio pin numbers (per Linux kernel update) HOT 48
- Radio.printDetails(); does nothing for MKR1010 but Radio.sprintfPrettyDetails(buffer); works fine???? HOT 4
- Pipe is sometimes returned at "255". HOT 15
- Is there a known ESP32 Deep Sleep issue with radio.powerDown()? [Question] HOT 19
- Can RF24 library be used with WiFi? HOT 2
- Can RF24 library be used with WiFi? HOT 4
- [Question] setChannel & setDataRate not read correctly by printPrettyDetails ? HOT 4
- ESP32 Core Panic on radio 0; No panic on Radio number 1, same wiring. How to troubleshoot?[Question] HOT 22
- Use Linux kernel's character device API to implement IRQ capability HOT 113
- [Question] R24.h, testRPD(void) "Strong signal > 64dBm" : "Weak signal < 64dBm" HOT 5
- [Question] Issue using the ManualAcknowledgements.ino HOT 11
- Multiple senders one receiver HOT 1
- reorganize examples HOT 5
- revise MRAA driver's GPIO
- Phasing out most Linux drivers HOT 1
- [Question] Address names used in examples problematic? HOT 8
- Library blocks 11 pin HOT 1
- Unable to use SPI1 on the raspberry pi pico HOT 3
- NRF24L01 does not show all characters in the receiver HOT 4
- Problem using stopListening() and startListening() HOT 3
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 rf24.