Development of Embedded Software for Esp32-based Lora Modules With Adaptive Configuration and Link Quality Monitoring
Year: 2025
Type: article
Abstract: The article describes a new approach to developing embedded software for LoRa modules based on the ESP32 microcontroller. The main idea behind the work is to create universal firmware with a minimalist architecture and advanced configuration options that ensures reliable peer-to-peer data exchange. The developed system uses a simplified text command format (COMMAND;PARAM=VALUE) instead of JSON, which reduces computational costs and speeds up processing. This simplifies integration into application solutions and increases the efficiency of hardware resource utilization. The firmware integrates a delivery confirmation (ACK) mechanism with retransmission in case of packet loss, which increases the reliability of the communication channel. Additionally, the CONFIG_SYNC command is implemented for automatic synchronization of parameters between nodes, which ensures stability in dynamic conditions. The proposed approach also includes a PING/PING_ACK function, which, in addition to checking connection availability, provides diagnostic characteristics, including RSSI, SNR, TOA, DELAY, and data transfer rate. It is possible to transmit large messages using a packet segmentation and aggregation algorithm that overcomes the hardware limitations of the LoRa SX1276 chip. During the study, the firmware was experimentally tested with variations in key parameters: spreading factor, bandwidth, coding rate, transmission power, and preamble length. The results confirmed the patterns of influence of these parameters on delay, speed, RSSI, and signal-to-noise ratio, which made it possible to form practical recommendations for optimizing the system. The proposed solution combines ease of use, configuration flexibility, and communication quality assessment tools, providing a balance between performance and scalability. Further development involves the integration of artificial intelligence modules, in particular reinforcement learning, for automatic selection of optimal parameters in real time, which opens up prospects for the creation of intelligent self-configuring wireless systems.
Authors: Yu. Shkoropad, H. Beshley
Language: English
Topic: IoT Networks and Protocols
Subfield: Electrical and Electronic Engineering
Field: Engineering
Domain: Physical Sciences
Open Access status: bronze
OpenAlex ID: W4414913871
