Author Topic: RF24 radio.write fails - SOLVED  (Read 12061 times)

mtnbikeray

  • Newbie
  • *
  • Posts: 5
RF24 radio.write fails - SOLVED
« on: December 30, 2013, 12:51:53 pm »
I'm still at it and having issues, although I really don't think it's digiX related.

I'm using the maniacbug RF24 library

I'm still trying to get the 'gettingstarted ' example working...it's basically working, but I have a strange problem.  In fact even the pingpair example behaves the same way...

Between an Arduino UNO and my DIGIX, when I send a message the message arrives (confirmed by some print statements on the receive side), but the radio.write() method returns a false (failure) status code. I think this means that the outgoing message was received, but the sender did not receive an ack from the receiver. I see this in both directions regardless of which is sending and which is receiving.
After looking through various forums(http://maniacalbits.blogspot.com/2013_04_01_archive.html), I found references to needing to be careful in the selection of the pipe addresses.  The examples used 0xF0F0F0F0E1LL and 0xF0F0F0F0D2LL.  Using these it would fail 100% of the time.  Changing ONLY the pipe addresses to 0xAAAAAAAAE1LL and 0xAAAAAAAAD2LL improved it to working about 60% of the time (but they say to avoid 0xAA as an octet in the address - go figure).  I've tried lots of other addresses none seem to be more than 60% reliable.  I think it's a radio issue, but how do I fix it?

Ray
« Last Edit: December 30, 2013, 07:12:49 pm by mtnbikeray »

mtnbikeray

  • Newbie
  • *
  • Posts: 5
Re: RF24 radio.write fails - SOLVED
« Reply #1 on: December 30, 2013, 07:12:09 pm »
SOLVED !

It turns out that the RF24 module was bad.  Swapping it with another solved all my problems !

Boy that hurt !

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: RF24 radio.write fails - SOLVED
« Reply #2 on: January 05, 2014, 02:55:14 am »
NRF works out of the box in the newest release: http://digistump.com/wiki/digix/tutorials/software