Delays in LoRa Message Transmission with AVR128DA48 and SX1276 Module for Real-Time Alerts

Hey guys, I’m working on a real-time alert system using LoRa to notify operators when a sensor picks up a problem, like high temperatures. I’m using the AVR128DA48 and the LoRa SX1276 module. This is the code I’ve written for sending a basic alert:
void lora_send_alert() {
lora_send(lora_dev, "High temperature detected!", sizeof("High temperature detected!"));
}
void lora_send_alert() {
lora_send(lora_dev, "High temperature detected!", sizeof("High temperature detected!"));
}
However, I’ve noticed a significant delay in the message transmission, which really undermines the idea of real-time alerts. I’ve double-checked the module’s configurations, and everything seems to be set up correctly. Can anyone help me figure out what might be causing this delay in transmission? I’d love to hear any tips on how I can optimize the system for quicker response times using the MC.
3 Replies
wafa_ath
wafa_ath2mo ago
The delay could be due to the spreading factor (SF), Lower the SF for faster transmission, and ensure your module isn’t in sleep mode before sending alerts.
Camila_99$$
Camila_99$$2mo ago
@wafa_ath Great suggestion about the SF and sleep mode! Another thing to consider is checking the timing of your sensor data collection. If there’s any delay in how the sensor data is processed or queued before sending the alert, it could contribute to the overall latency. You might also look into using interrupts to trigger the alert immediately when a problem is detected, ensuring realtime responsiveness.
Dtynin
Dtynin2mo ago
Thanks guys @wafa_ath @Camila_99$$ I'd look into it 🫡
Want results from more Discord servers?
Add your server