-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unreliable connection to chip #10
Comments
For the connection issue, I do not encounter them myself but I have the board soldered to a PCB, maybe it is a wiring issue. |
It is not the wiring. I soldered the wires again and made sure they were working correctly, and I still get the SPI write errors, that only get fixed when I reconnect the module (without touching the wires at all). How often do you receive packets, and how many of them when you do? |
@ivan-avalos , I've seen SPI connectivity issues with some transceivers and Orange PI boards, but usually they are unable to communicate at all, instead of stopping randomly. (In my case it was an Orange PI PC and a bare SX1276 board, while SX1278 was working without any issues.) For your case I'd recommend checking the following:
Personally I've been running a similar configuration with SX1278 on Orange Pi Zero for months without any communication issues. Regarding the missing packets - it's normal sometimes a packet to be missed, but not that often as you are describing.
It's not rarity if LoRaWAN is used, because of the specification, the sender can randomly pick different frequency, and also adjust the SF. For e.g. the MCCI Catena's Arduino LMIC library behaves like that. In such cases extra code is needed to enforce fixed transmission parameters in order to work every time with a single channel gateway. Lastly there's 1 more thing in the context of LoRaWAN - the node to node communication is different from the node to gateway one, because of the IQ inversion approach. I'll check both sketches (yours and mine) for discrepancies... |
I've looked at your sketch and library. The modem config is effectively:
Unless an explicit header is used in the sender, and the gateway has its sync word changed to 18 (the default value for the chip) you shouldn't be able to receive any data. Am I missing something? |
I changed |
I'm also having issues receiving the data from my Transmit example. I'm looking into that as well... |
@ivan-avalos , the Transmit example should be fixed now, and if it's working for you, I hope we can safely exclude the transmission part out of the equation. Edit: On the SPI communication: I've remembered you can enforce paranoid mode, which improves the robustness of the communication with the chip, but at the price of slowing the process down because of the extra checks, thus there's a higher chance during bidirectional communication the node to miss messages from the gateway. If that's not a problem then you can try adding |
Three days ago, I came across this project, which is exactly what I needed, as I have an Orange Pi One and a 433MHz SX1278. I've been trying to get this working (with the default config), only partly successfully, because sometimes, randomly, the program suddenly fails with:
It only works again when I manually reset the module (by disconnecting and connecting VDD) and rerun the program. I don't know why it is happening. It could be faulty wires (I did the soldering myself), some problem with spidev (
/dev/spidev0.0
is present, though), or some problem with this project. I really don't know at this point.There's another issue. I'm transmitting messages from another SX1278 module, using this board and this sketch, but the packet forwarder only receives the datagrams a few times (10 at most), and then nothing. I'm getting tired of trying. I tried with the sketch in this repository, but the packet forwarder never received anything at all.
The text was updated successfully, but these errors were encountered: