-
Notifications
You must be signed in to change notification settings - Fork 20
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
Issues with device #30
Comments
I don't think it's a root raspberry pi issue. There's a chance it's a power supply issue, but that also wouldn't be my first guess. Where the example is dying is where the code first tries to even communicate with the radio. It tries to write to one of the registers, and then waits up to 15 seconds to see if the write was successful. I'm not sure what the problem could be, since it looks like you have everything wired up correctly. Have you successfully tried your radio with an Arduino (or some other board)? |
Hey there, thank you so much for the reply ! I ended up basically unistalling python3-rpi.gpio and installing python3-rpi-lgpio and this worked and I can actually get passed that step. Not 100% sure why though. My next step is understanding the networkID and how that relates to the nodeID and recipient_id, is it possible to run the script without using a networkID and plainly sending to the nodes? |
|
Thank you for that! Essentially I am trying to port this into micropython and am having issues (all good if you don't know btw) but I am hanging and waiting for this: while (self._readReg(REG_IRQFLAGS2) & RF_IRQFLAGS2_PACKETSENT) == 0x00:
Again genuinely don't feel obliged to respond if you don't know ! But thank you for the help anyways :) |
Hey there!
First of all, thank you so much for making this repo it is genuinely amazing documentation wise.
I have however run into various different problems potentially due to the breakout I am using which is the red sparkfun 915MHz breakout. This is with a raspberry Pi 3B+ by the way.
Basically when I follow the tutorial connecting the pins to the physical pins as follows:
Miso - 21
Mosi - 19
SCK - 23
NSS - 24
RST - 22
GND - 20
Vin - 17
And run the example_rxtx.py file with the only difference being this :
board = {'isHighPower': True, 'interruptPin': 18, 'resetPin': 22, 'spiDevice': 0}
I get this output:
or in case the above doesnt load:
python3 example_rxtx.py
/home/pi/Thesis/rpi-rfm69/RFM69/radio.py:115: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(self.rstPin, GPIO.OUT)
Traceback (most recent call last):
File "/home/pi/Thesis/rpi-rfm69/example_rxtx.py", line 23, in
with Radio(FREQ_915MHZ, node_id, network_id, verbose=False, **board) as radio:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/Thesis/rpi-rfm69/RFM69/radio.py", line 87, in init
self._initialize(freqBand, nodeID, networkID)
File "/home/pi/Thesis/rpi-rfm69/RFM69/radio.py", line 96, in _initialize
self._reset_radio()
File "/home/pi/Thesis/rpi-rfm69/RFM69/radio.py", line 135, in _reset_radio
raise Exception('Failed to sync with radio') # pylint: disable=broad-exception-raised
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Failed to sync with radio
Any help would be appreciated and I have looked into each of the separate examples separately to no avail.
Could it be an issue with power supply? Or is this a rooted raspberry pi issue.
Thanks!
The text was updated successfully, but these errors were encountered: