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

Stuck at verify chip syncing #26

Open
Gaz83 opened this issue Jul 22, 2017 · 4 comments
Open

Stuck at verify chip syncing #26

Gaz83 opened this issue Jul 22, 2017 · 4 comments

Comments

@Gaz83
Copy link

Gaz83 commented Jul 22, 2017

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?

@etrombly
Copy link
Owner

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
Copy link
Author

Gaz83 commented Jul 22, 2017

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
Copy link
Author

Gaz83 commented Jul 22, 2017

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.

@stevie1gear
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants