CN-121985418-A - Real-time control master-slave LoRa network time-slotted scheduling system
Abstract
The invention belongs to the technical field of LoRa wireless communication, in particular to a real-time control master-slave LoRa network time-slotted scheduling system, which comprises a dynamic scheduling module, a deterministic time-slot allocation module and a perception and decision module. The method comprises the steps of generating a dynamic time slot allocation table according to a sensing and decision-making module, broadcasting the dynamic time slot allocation table to the whole network through a beacon frame, receiving the dynamic time slot allocation table by a deterministic time slot allocation module, feeding back to a slave service state sensing according to a communication result of the preemptive execution of a conventional time slot and an emergency time slot, synthesizing the slave service state, finally sending the decision-making result to a dynamic adjustment module so as to generate the dynamic time slot allocation table, and organically integrating the service state sensing, deterministic time slot allocation and a real-time preemption channel so as to form closed loop control of service sensing instruction execution. And the dynamic time slot allocation mechanism based on service awareness improves the timeliness of the whole system network and reduces the energy consumption of the whole network.
Inventors
- YANG HAO
- LAI LIUQI
- LI QIANG
- ZHANG XIN
- LI JIASHUANG
Assignees
- 重庆云铭科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260203
Claims (10)
- 1. A real-time control master-slave LoRa network time-slotted scheduling system comprises a dynamic scheduling module, a deterministic time-slot allocation module and a perception and decision module, and is characterized in that: The dynamic scheduling module is used for generating a dynamic time slot allocation table according to the sensing and decision module and broadcasting the dynamic time slot allocation table to the whole network through a beacon frame; The deterministic time slot allocation module divides the dynamic time slot into a conventional time slot and an emergency time slot, wherein the conventional time slot is used for conflict-free communication, and the emergency time slot is preset in a superframe structure; And the sensing and decision module is used for comprehensively providing a scheduling decision basis for the host computer according to the communication results of the conventional time slot and the emergency time slot preemptive execution and the service state of the slave computer.
- 2. The real-time controlled master-slave LoRa network time-slotted scheduling system of claim 1, wherein the superframe structure is configured to divide time into second-level continuous periods, each period comprising a synchronization beacon frame broadcasted by a master and pre-allocated slave dedicated time slots, the dedicated time slot lengths being dynamically adjusted according to traffic demands.
- 3. The real-time controlled master-slave LoRa network time-slotted scheduling system according to claim 1, wherein the scheduling system execution flow comprises the following steps: S1, reporting sensor data, equipment state, service attribute labels and local channel evaluation information by a slave machine, and providing an original basis for dynamic scheduling for a host machine; S2, the host computer operates a scheduling algorithm based on the dynamic network mapping table to generate a time slot allocation table; And S3, after the slave machine is synchronized, the slave machine is communicated according to the allocated time slot, and when a high-priority event occurs to the slave machine, the emergency time slot protocol in the superframe structure can be immediately triggered to realize conflict-free preemption communication regardless of the conventional time slot arrangement.
- 4. The master-slave network time-slotted scheduling system of claim 3, wherein said scheduling algorithm is capable of: a. The communication period of the slave machine with stable state and tension electric quantity is automatically prolonged; b. Allocating more frequent communication opportunities to slaves needing important monitoring or poor channel quality; c. the host computer broadcasts through the beacon frame period to realize the time synchronization of the whole network millisecond level and the dispatch instruction.
- 5. The real-time controlled master-slave LoRa network slotted scheduling system of claim 1, wherein the scheduling system is applied to a wireless initiation control system, wherein a master is a wireless initiator for generating a dynamic slot allocation table and broadcasting through a beacon frame, a slave is a wireless terminal for uploading sensor data and status information in the allocated slots, and the wireless initiation control system comprises a service sensing module, a dynamic network mapping table module, a dynamic slot scheduling module and a deterministic slot communication and emergency preemption module.
- 6. The real-time control master-slave LoRa network time-slotted scheduling system of claim 5, wherein said service awareness module uploads data to the host in the corresponding dedicated time slot by reporting status data from the slave.
- 7. The real-time control master-slave LoRa network time-slot scheduling system according to claim 5, wherein said dynamic network mapping table module dynamically updates parameters in the network mapping table according to the status data reported by the slave, and provides a dynamic scheduling basis for the next superframe transmission.
- 8. The real time controlled master-slave LoRa network time-slotted scheduling system of claim 5, wherein said dynamic time slot scheduling module comprises: the abnormal slave priority allocation unit is used for detecting fault codes and allocating standard time slots; a dense monitoring allocation unit for allocating time slots based on continuous monitoring requirements; And the period extension judging unit only distributes time slots when the dormancy super frame numbers are matched.
- 9. The real time controlled master-slave LoRa network time slotted scheduling system of claim 5, wherein said deterministic time slot communication and emergency preemption module comprises: the slave synchronization unit compensates clock deviation through the high-precision timer; A one-to-one protocol unit is asked in the standard time slot to realize the two-way communication between the host and the slave; And the hierarchical emergency time slot processing unit comprises a micro-competition window and a controlled response window.
- 10. The real-time control master-slave LoRa network time-slotted scheduling system according to claim 9, wherein the hierarchical emergency time-slot processing unit comprises the following specific steps: A1, a micro-competition window, wherein the window is divided into a plurality of micro time slots; A2, host computer arbitrating and roll call, the host computer monitors the whole micro competition window, records all successfully decoded data, then, the host computer broadcasts an emergency response list frame in a controlled response window, roll call the devices in sequence; and A3, controlled reporting, namely sequentially reporting the complete emergency data packet by the roll-called slave machine in a conflict-free manner in a sub-response window appointed by the host machine according to the sequence in the list.
Description
Real-time control master-slave LoRa network time-slotted scheduling system Technical Field The invention belongs to the technical field of LoRa wireless communication, and particularly relates to a real-time control master-slave LoRa network time-slotted scheduling system. Background At present, in a wireless detonation control system, networking detonation is mostly carried out by using a master multi-slave mode, namely, a wireless detonator is adopted as a master device, a plurality of wireless terminals are adopted as slave devices, an electronic detonator detonates in a wireless mode, high requirements are provided for real-time performance and distance, and a LoRa module is generally adopted for wireless communication in practical application. In the existing LoRa point-to-multipoint application, in order to solve the problems of high conflict and delay uncertainty caused by the random access of the ALOHA communication mode and the problems of response stiffness and long polling period caused by the host polling mode, the adoption of time division multiple access time slot allocation is a common technical path. The time division multiple access is a periodic frame structure, each frame comprises a plurality of fixed or dynamic allocated time slots, each user only carries out data transmission in the appointed time slots, so that signal collision is avoided and the frequency spectrum utilization rate is improved, each time slot corresponds to an exclusive communication period of one user, and the time slot allocation can be static or dynamic, and is more suitable for a high-dynamic scene. In the current LoRa communication scheme, when dealing with the specific scene of 'one-to-many and high real-time control', the prior scheme adopts fixed or quasi-static time slot allocation, although research is carried out on dynamic adjustment thought combining fixed time slots and dynamic time slots, the adjustment is limited to network load or simple priority, and the adjustment cannot be deeply coupled with the specific and diversified service states of an upper layer, so that the on-demand communication and the network energy efficiency optimization cannot be realized. To this end, the invention provides a master-slave LoRa network time-slotted scheduling system controlled in real time. Disclosure of Invention In order to overcome the deficiencies of the prior art, at least one technical problem presented in the background art is solved. The technical scheme adopted by the invention for solving the technical problems is that the real-time control master-slave LoRa network time-slotted scheduling system comprises a dynamic scheduling module, a deterministic time-slot allocation module and a perception and decision module; The dynamic scheduling module is used for generating a dynamic time slot allocation table according to the sensing and decision module and broadcasting the dynamic time slot allocation table to the whole network through a beacon frame; The deterministic time slot allocation module divides the dynamic time slot into a conventional time slot and an emergency time slot, wherein the conventional time slot is used for conflict-free communication, and the emergency time slot is preset in a superframe structure; And the sensing and decision module is used for comprehensively providing a scheduling decision basis for the host computer according to the communication results of the conventional time slot and the emergency time slot preemptive execution and the service state of the slave computer. Preferably, the superframe structure is configured to divide time into second-level continuous periods, where each period includes a synchronization beacon frame broadcasted by a host and a pre-allocated dedicated time slot of a slave, and the dedicated time slot length is dynamically adjusted according to service requirements. Preferably, the execution flow of the scheduling system includes the following steps: S1, reporting sensor data, equipment state, service attribute labels and local channel evaluation information by a slave machine, and providing an original basis for dynamic scheduling for a host machine; S2, the host computer operates a scheduling algorithm based on the dynamic network mapping table to generate a time slot allocation table; And S3, after the slave machine is synchronized, the slave machine is communicated according to the allocated time slot, and when a high-priority event occurs to the slave machine, the emergency time slot protocol in the superframe structure can be immediately triggered to realize conflict-free preemption communication regardless of the conventional time slot arrangement. Preferably, the scheduling algorithm can implement the following aspects: a. The communication period of the slave machine with stable state and tension electric quantity is automatically prolonged; b. Allocating more frequent communication opportunities to slaves needing important monitoring or poor