Skip to content
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

radio.available() not working? #44

Closed
edoardoo opened this issue Nov 28, 2014 · 3 comments
Closed

radio.available() not working? #44

edoardoo opened this issue Nov 28, 2014 · 3 comments
Labels

Comments

@edoardoo
Copy link

Hi!
I've been developing a little application to switch lights on and off with raspberry/arduino.
I see that when I use the same procedure as the ping ack example (send, wait for ack), I don't get any response (radio.available() is always 0). Same code was working with old version.
Do you know where can I start to debug it?

@TMRh20
Copy link
Member

TMRh20 commented Nov 28, 2014

Well, there is some issue on the wiki about troubleshooting hardware issues.
https://github.com/TMRh20/RF24/wiki/GettingStarted-sketch-failing-to-send:-how-to-diagnose%3F

Beyond that I don't have much to go on besides pointing towards the debug option in RF24_config.h.

This is a good reference for the type of info that is needed to address potential software issues: http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question

@edoardoo
Copy link
Author

Actually I troubleshooted a bit the environment, since it was working until
I updated the library. I knew the hardware was working, and it is right now
because I kept a copy of the old libraries and software and when I use them
everything works fine.

When I switch to the new libs, the raspberry it's only capable of send, not
to receive (or at least I'm at this point right now). I'll send you more
information.
Thanks for the debug flag.

2014-11-28 7:35 GMT+01:00 TMRh20 notifications@github.com:

Well, there is some issue on the wiki about troubleshooting hardware
issues.

https://github.com/TMRh20/RF24/wiki/GettingStarted-sketch-failing-to-send:-how-to-diagnose%3F

Beyond that I don't have much to go on besides pointing towards the debug
option in RF24_config.h.

This is a good reference for the type of info that is needed to address
potential software issues:
http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question


Reply to this email directly or view it on GitHub
#44 (comment).

Edoardo Odorico
edoardoo.com

@edoardoo
Copy link
Author

Sorry for confusion, you've been very kind, late night hacking...

*My goal *is to make raspberry and arduino communicate again (sort of
messaging with ack) with NRF24l01+ modules, after a library update.
Everything was working before the libs (RF24, librf23-bcm) update.

My problem, is that raspberry is sending message, arduino receive it,
then send back the ack package, but raspberry is not listening (or it's not
availlable to listen).

Troubleshooting I've made: I've tried slightly modifying the ping/pong
ack code with no luck.
I know the arduino is working because with old library (librf24 without
bcm), old ping/pong c++ code (only millis() and library ref change) on the
raspy, everything it's fully working.

I'll try to insert some capacitors, if you think this could help.
Is there any reason why the raspy should not be able to listen anymore?
I've seen recently you changed available() function.
Maybe some timeout on available() is not fine with my lack of capacitors?
I'll try to revert to the commit before that change and see what happens.

If you have any further suggestion (like which commit to revert for
tracking back the problem) please do not hesitate to write me.

Thanks again for your time and your work.

2014-11-28 12:45 GMT+01:00 Edoardo Odorico edoubuntu@gmail.com:

Actually I troubleshooted a bit the environment, since it was working
until I updated the library. I knew the hardware was working, and it is
right now because I kept a copy of the old libraries and software and when
I use them everything works fine.

When I switch to the new libs, the raspberry it's only capable of send,
not to receive (or at least I'm at this point right now). I'll send you
more information.
Thanks for the debug flag.

2014-11-28 7:35 GMT+01:00 TMRh20 notifications@github.com:

Well, there is some issue on the wiki about troubleshooting hardware
issues.

https://github.com/TMRh20/RF24/wiki/GettingStarted-sketch-failing-to-send:-how-to-diagnose%3F

Beyond that I don't have much to go on besides pointing towards the debug
option in RF24_config.h.

This is a good reference for the type of info that is needed to address
potential software issues:
http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question


Reply to this email directly or view it on GitHub
#44 (comment).

Edoardo Odorico
edoardoo.com

Edoardo Odorico
edoardoo.com

@TMRh20 TMRh20 closed this as completed Nov 30, 2014
@TMRh20 TMRh20 added the invalid label Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants