Open arifainchtein opened 11 months ago
You should use CAD (Channel Activity Detection) to make sure that the other sender isn't already transmitting: what you are seeing is most probably interferences between both senders, which are at times sending, or trying to, at the same time.
Unfortunately CAD hasn't been implemented in the original library, but I seem to remember someone has a fork with CAD added to it. This is the main weakness of this library – it has been abandoned, mostly, and various people have made an effort to improve it, but these improvements have by and far not been integrated in the original library.
CAD has been merge via #334 but a release has not been done. I called for testing and none of the regulars responded. Additionally in that comment I pointed out, I believe, CAD does not work the way most people are assuming. I wanted to run some tests to confirm this but haven't had the free time (or pay) to get to this.
https://github.com/sandeepmistry/arduino-LoRa/pull/334#issuecomment-1489462169
Oh thanks I wasn't aware (OBVIOUSLY!)... How could I help with testing?
Hello, I have made custom boards using Esp32 WROOM 32E and Ra-02 as lora ic.
I have two senders S1 and S2, which are deivces will collect sensor data and send it to the receiver R1. The issue is that R1 is not reliably receiving data from S1 and S2. Some times I restart R1 and it will receive from S1, others i restart R1 and it will start receiving from S2 but not S1, occasionally it receives from both.
I have also check to see if the receiver need to be on before the senders and that did not make any difference. Here is the code that i use to initialise, it is the same in both the senders and receiver:
Here is the basic code of the sender
and here is the receiving code:
Any suggestions on how to change the code so that R1 receives data from both S1 and S2? S1 is sending every 10 seconds and S2 is sending every 30 seconds. Is that too often?
thanks