BobGlicksman / LoRa_experiments

tests of LoRA module ranging and low power
0 stars 1 forks source link

With logging: atmega works for sensor to send, receive does not #19

Closed jschrempp closed 2 days ago

jschrempp commented 1 month ago

In this code the sensor LED will blink several times if it does not get a good response when reading the LoRa module.

When the sensor button is pressed, a message is sent to the hub. Debug prints from the hub show that the message is received and that the hub responds with the correct message.

However, the sensor reports 7 flashes. This indicates that the string the sensor got from LoRa was not one of these:

+OK or a string that starts with +RCV

I added a delay of one second between LoRa_Serial.Available and LoRa_Serial.ReadString but that did not help. The next step might be to try this code in a Photon2 just to see that it does work there. This code has

#define PARTICLEPROCESSOR 0

in tpp_LoRa.h Set the define to 1 if running on a Particle processor.