The invention relates to a method and a
system for optimizing Age of information (AoI) of
uplink transmission of a data packet under a pure
Aloha protocol in LoRa, and aims to improve the timeliness of the data packet, optimize the quality of
data transmission and reduce
information delay and
system response time. Comprising the following steps: establishing a
system model for collision and
retransmission in a LoRa data
packet transmission process under a pure
Aloha protocol, and analyzing the possible influence of data packet
retransmission on LoRa security. According to the model, channel selection, SF (
Spreading Factor) setting and possible data
packet collision conditions in the LoRa network are considered. By analyzing the transmission effects of different channel and
spreading factor combinations, the
collision probability of the data packet in the transmission process and the influence of the
collision probability on the AoI can be calculated. In order to realize optimal channel and SF selection, a deep
reinforcement learning method is adopted, a training model is constructed to dynamically select an optimal transmission strategy, and collision events and
retransmission times are reduced through intelligent adjustment of channel selection and spreading factors, so that the timeliness of data packets and the security of the LoRa network are improved. The method is suitable for various LoRa
Internet of Things applications, including but not limited to the fields of intelligent cities, environment monitoring, intelligent
agriculture, intelligent logistics and the like, and particularly has important practical value for
Internet of Things application scenes needing high timeliness and real-
time response.