etrombly/RFM69

Stuck at verify chip syncing

Gaz83 opened this issue · 4 comments

Gaz83 commented

I have tried the code and it never seems to get passed initializing.
I put in a couple of prints to see where it was getting stuck in the RFM69.py file and it was at here

#verify chip is syncing?
while self.readReg(REG_SYNCVALUE) != 0xAA:
self.writeReg(REG_SYNCVALUE1, 0xAA)

I added a print and self.readReg(REG_SYNCVALUE) is always 0 so this loops forever. Any ideas?

that's the first line that it actually tries to communicate with the chip. Could be not hooked up correctly, or some other communication problem. Do you have any other spi devices to test with? I'm packing my stuff up to move, so can't test myself for a while.

Gaz83 commented

I have buzzed out the connections and they seem fine. I had to change the REST pin to 16 as I was getting errors saying the channel was in use. Looking online, there was a comment saying don't go over 28. Not sure why so I switched to 16 and the error went away.

I do have an Arduino I guess I could hook up. That was connected to the module and worked fine. Will have a go with the Arduino and report back

Gaz83 commented

So I unplugged my RF module and in its place I wired in my Arduino (nano v3.0). (I did not unplug anything from the Rapsberry pi)
I used the code from this tutorial http://mitchtech.net/raspberry-pi-arduino-spi/
and did the test and I could see "HELLO WORD" appears on my Arduino. So it looks like the spi connection is good.

I am also having that problem and have the radios working fine on the Arduino Uno. Wondering if you had a chance to look into this and if you had a fix?
Thanks!