-
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
Inconsistent data in reception with Uno R4 Minima #22
Comments
Hi Wross, |
Ciao Renzo, The code for the transmitter: And for the receiver: And this is the result: It works as well as when I send the device name with the first internal variable in the structure. Other tests... I hope it can be helpful to understand where the problem lies. |
Ciao Renzo, test with the "complete sender and receiver sketch" found at "https://mischianti.org/it/ebyte-lora-e220-llcc68-per-arduino-esp32-o-esp8266-power-saving-ed-invio-di-dati-strutturati-5/" And below are the results: Transmission from Arduino Uno R4 Minima to Esp32 Transmission from Esp32 to Arduino Uno Transmission from Esp32 to Arduino Uno R4 Minima Could this be due to an incompatibility between the library and Arduino Uno R4? Unfortunately, my sketch does not fit in the Arduino Uno by size. Walter |
I am experiencing problems in receiving with the Arduino R4 Minima board, while the same sketch loaded on Arduino Uno R3 works correctly; specifically, the data coming in is not consistent. In transmission everything works correctly.
I have done many tests including;
but without success
Json sent by an esp32:
Payload: {
"dispositivo": "home assistant ",
"presenzaPioggia": "255",
"bloccoIrrigazione": "255",
"temperaturaMassima": "28.4",
"statoDispositivo": "255",
"erroreTx": "255",
"loraRssi": "255",
"wifiRssi": "255"
}
Data received from Arduino R4 Minima:
- Dispositivo: home assistant
- Presenza pioggia: 50
- Blocco irrigazione: 56
- Temperatura massima.: .4
- Stato dispositivo: 40
- Errore Tx: 73
- LoRa RSSI: 0
- WiFi RSSI: 251
Data received from Arduino Uno R3 (R4 Minima replacement and same connections):
- Dispositivo: home assistant
- Presenza pioggia: 255
- Blocco irrigazione: 255
- Temperatura massima.: 28.4
- Stato dispositivo: 1
- Errore Tx: 255
- LoRa RSSI: 240
- WiFiRSSI: 171
The first data item (Dispositivo) is always correct.
The last 4 data are taken from the transmission.
The other three data (Presenza pioggia, Blocco irrigazione, e Temperatura massima) are critical to me, but they are not correct.
Structure in the receiver:
char MessaggioDispositivo[17];
byte MessaggioPresenzaPioggia;
byte MessaggioBloccoIrrigazione;
char MessaggioTemperaturaMax[6];
byte MessaggioStatoDispositivo;
byte MessaggioErroreTx;
byte MessaggioLoRaRSSI;
byte MessaggioWiFiRSSI
In the transmitter I have all the pins of the LoRa module connected, while in the receiver I connected only Tx and Rx (as in the diagram on the library website). However, I also tried connecting the remaining pins, but nothing changes..
Am I doing something wrong?
Does anyone know how I can solve the problem?
The text was updated successfully, but these errors were encountered: