Real-time concurrent wireless communication method and system based on Beidou high-precision time service
By dividing time slots at the microcontroller end and using the Beidou satellite timing module for time synchronization, the problem of real-time concurrent communication in the prior art is solved, and the communication effect with high efficiency and low energy consumption is achieved.
Patent Information
- Application Number
- CN202411512069.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-03-14
AI Technical Summary
The prior art cannot realize real-time concurrent communication in high-concurrency data communication scenarios, resulting in long communication time and large energy consumption. The equipment cost of satellite time-based combined with frequency division multiplexing technology is high, and the frequency utilization rate is low, and the time synchronization method lacks reliability and stability.
The real-time concurrent wireless communication method based on Beidou high-precision timing is adopted. Time slot division is divided on the microcontroller end and the master-slave time synchronization is used to realize time division multiplexing technology to stabilize and reliably carry out real-time concurrent communication between master and slave.
It realizes stable and reliable real-time concurrent communication between master and slave in one-to-many communication application scenarios, reduces the time and energy consumed by communication, and improves the real-time and time scale accuracy of communication.
Smart Images

Figure CN119629719A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of instrumentation technology, and in particular to a real-time concurrent wireless communication method and system based on Beidou high-precision timing. Background Art
[0002] With the rapid development of Internet of Things technology, the demand for wireless communication technology is becoming increasingly stringent. In high-concurrency data communication application scenarios, such as the communication scenario where thousands of heliostats in a solar photovoltaic power station adjust their angles according to the real-time changes of the sun to ensure maximum light energy collection efficiency, there are high requirements for the stability, real-time and time-scale accuracy of wireless communication technology due to the large number of heliostats, different angle adjustments and the need to be completed in a timely manner. In addition, for applications with extremely strong energy control requirements such as water meters and gas meters, high-concurrency data communication can effectively reduce the active time of the communication module and save battery energy consumption, and also has high requirements for the real-time and time-scale accuracy of wireless communication.
[0003] The following summarizes some background technologies related to the present invention in one-to-many communication application scenarios by searching and introducing relevant patents and documents.
[0004] Luo Guiying designed a water meter reading system based on LoRa, in which the concentrator and each water meter form a one-to-many application scenario. The system adopts a multi-channel working mode, dividing the frequency range into ten channels, avoiding the unnecessary workload of the terminal due to the use of a single channel (such as receiving and parsing data that does not belong to it). The uplink data is sent on a fixed channel, and the remaining channels are used to send instructions. During the meter reading process, after receiving the meter reading command, the concentrator collects data from each terminal in turn according to the recorded meter number, as well as the set collection frequency and time.
[0005] Liu Ying designed a remote wireless meter reading system based on ZigBee and GPRS. In this system, the concentrator and each water meter form a one-to-many application scenario. The system combines ZigBee and GPRS technologies, using ZigBee short-range wireless communication technology within the local area network and GPRS long-range wireless communication technology in the wide area network, making the entire meter reading system low-cost, self-organizing and self-adaptive. In this system, meter reading is mainly achieved by point reading.
[0006] Wang Rui and others invented a high data rate wireless communication method and system, in which the communication between a data aggregator and several terminal devices is a one-to-many communication application scenario. In this invention, several terminal devices upload data through a fixed polling method, and the receiving end is a data aggregator. Multiple data aggregators interact with external servers through wireless communication.
[0007] Li Haozhen and others invented and designed a wireless communication system and method for a solar thermal mirror field. In this method, the host computer and each heliostat form a one-to-many application scenario. In this invention, the network architecture has two operating modes: polling mode and broadcast mode. In the polling mode, the host computer obtains feedback status information from all heliostats in turn, determines the heliostats to be controlled and sends target instructions. In the broadcast mode, the host computer determines all heliostats as heliostats to be controlled, and sends target instructions to each heliostat respectively. Among them, in order to ensure that there is no packet loss, it is necessary to send the target instruction twice in succession within a certain interval, and then receive the status information of each heliostat by polling.
[0008] In the multi-priority time slot allocation algorithm based on LoRa networking designed by Yao Yindi et al., each node completes the time slot calibration and synchronizes the local clock by taking the data frame with control information and time slot allocation information sent by the gateway.
[0009] Ni Zuyao and others invented and designed a wireless communication method based on time-space reference, which is suitable for one-to-many communication. In this method, the satellite timing equipment is used to obtain the second pulse signal and time information to obtain the standard time slot pulse signal, and the transmitter and receiver coordinates are obtained from the positioning equipment to calculate the end-to-end delay. During the communication process, this method uses OFDM / SC-FDMA communication technology, that is, orthogonal frequency division multiplexing technology and single carrier frequency division multiple access technology, to send the serial data stream in the form of parallel low-speed data streams. During the transmission process, the sending time is offset according to the delay to ensure that the arrival time falls accurately in the standard time slot.
[0010] From the above, it can be seen that the communication method of checking water meters in sequence in the prior art, the polling method used for communication between the data aggregator and several terminal devices, and the polling mode communication of the network architecture cannot achieve real-time concurrent communication, and it takes a long time and consumes a lot of energy. The communication method of satellite timing combined with frequency division multiplexing technology used in the prior art has the disadvantages of high equipment cost and low frequency utilization. The gateway-based time synchronization method used in the prior art lacks reliability and stability because its time synchronization depends on the gateway, and is not suitable for application scenarios that require strict time synchronization. Summary of the invention
[0011] The purpose of the present invention is to provide a real-time concurrent wireless communication method and system based on Beidou high-precision timing, so as to stably and reliably realize real-time concurrent communication between master and slave machines and reduce the time and energy consumed in communication.
[0012] The technical solution adopted by the present invention is: The real-time concurrent wireless communication method based on Beidou high-precision timing includes the following steps: Step s1, divide the time slots at the microcontroller end and assign corresponding time slots to each slave; Step s2, using the high-precision time (second pulse) provided by the satellite timing module for master-slave time synchronization; Step s3: Based on the divided time slots and the received high-precision time (second pulse), the master-slave communication is completed using a wireless communication method.
[0013] Furthermore, the satellite timing module includes a Beidou satellite timing module and a GPS satellite timing module.
[0014] Furthermore, step s1 specifically includes the following steps: Step s11, determine the number of slaves required to communicate, the size of the slave transmission data, the communication time, the wireless communication technology used and its communication rate, and then divide the time slot (microcontroller embedded timer); Step s12: Bind each time slot to a corresponding slave.
[0015] Furthermore, step s2 specifically includes the following steps: Step s21, the selected satellite timing module (but not limited to Beidou / GPS, etc.) is used for high-precision timing; Step s22: using high-precision time to calibrate local clocks and perform time synchronization before the master and slave machines communicate.
[0016] Furthermore, step s3 specifically includes the following steps: Step s31, the distribution phase of communication: the distribution phase is the sending phase of the host and the receiving phase of the slave; when the host sends data, it accurately transmits data in the pre-allocated time slot according to the ID information of the target slave to ensure that each slave receives the correct data; when the slave receives data, each slave receives the broadcast signal from the host and selects the corresponding time slot to receive information according to its own ID; Step s32, reporting phase of communication: the reporting phase is the sending phase of the slave and the receiving phase of the host; whenever the slave receives a signal sent by the host and the distribution phase is completed, each slave transmits information to the host in the corresponding time slot according to its own ID information, and the corresponding information is spliced into a data signal of a period of time in the radio transmission; the host receives the data signal of the corresponding period of time transmitted from each slave, and receives the information of the slave belonging to the corresponding ID according to the time slot number.
[0017] A real-time concurrent wireless communication system based on Beidou high-precision timing includes at least one timing satellite, at least one host and more than two slaves, the host and the slaves are respectively connected to the timing satellite and simultaneously high-precision time; the host divides time slots according to the number of slaves required to communicate, the size of slave transmission data, and the communication time, and allocates a time slot to each slave; the host and the slaves send and receive data at the same high-precision time; the host sends data according to the time slot where the target slave is located, and the slave selects the corresponding time slot to receive information according to its own ID; the slave transmits information to the host in the corresponding time slot according to its own ID information, and the corresponding information is spliced into a data signal of a period of time in radio transmission; the host receives the data signals of the corresponding period of time transmitted from each slave, and receives the information of the slave belonging to the corresponding ID according to the time slot number.
[0018] Furthermore, timing satellites include Beidou satellites and GPS satellites.
[0019] The present invention adopts the above technical scheme. In a one-to-many communication application scenario, according to the time division multiplexing technology, the communication time of the master and slave machines is divided into time slots, and each time slot corresponds to a slave machine. At the same time, in order to reduce the influence of the master-slave machine time asynchrony or the unstable time synchronization mechanism on the communication, the present invention adds a Beidou satellite timing module (but not limited to Beidou / GPS, etc.) to synchronize the master and slave machines, and provide an accurate time synchronization reference for the time division multiplexing of the host and the slave machines, so as to stably and reliably realize the real-time concurrent communication of the master and slave machines, and reduce the time and energy consumed by communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments; Figure 1 Schematic diagram of time slot division; Figure 2 It is a structural schematic diagram of the real-time concurrent wireless communication system based on Beidou high-precision timing of the present invention; Figure 3 It is a flow chart of a real-time concurrent wireless communication method based on Beidou high-precision timing according to the present invention; Figure 4 This is a schematic diagram of the principle of the distribution and reporting mechanism of the present invention; Figure 5 It is a schematic diagram of the distribution stage of the present invention; Figure 6 This is a schematic diagram of the reporting stage of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0022] like Figures 1 to 6 As shown in one, in view of the problems of long time and high energy consumption caused by failure to realize real-time concurrent communication in one-to-many communication application scenarios, as well as the lack of reliability and stability of the time synchronization method and the high cost and low frequency utilization of frequency division multiplexing technology equipment, the present invention discloses a real-time concurrent wireless communication method based on Beidou high-precision timing, which includes the following steps: Step s1, divide the time slots at the microcontroller end and assign corresponding time slots to each slave; Step s2, using the high-precision time (second pulse) provided by the satellite timing module for master-slave time synchronization; Step s3: Based on the divided time slots and the received high-precision time (second pulse), the master-slave communication is completed using a wireless communication method.
[0023] Furthermore, the satellite timing module includes a Beidou satellite timing module and a GPS satellite timing module.
[0024] Furthermore, if Figure 1 As shown, step s1 specifically includes the following steps: Step s11, determine the number of slaves required to communicate, the size of the slave transmission data, the communication time, the wireless communication technology used and its communication rate, and then divide the time slot (microcontroller embedded timer); Step s12: Bind each time slot to a corresponding slave.
[0025] Specifically, as a feasible implementation method, taking the slave as a water meter, determine the number of water meters to be checked and the size of the data required for the water meter to transmit, set the number of water meters to N, and each water meter needs Mbyte to transmit data. At the same time, set the wireless communication technology used to be LoRa wireless communication technology, and determine the communication rate of LoRa wireless communication technology to Z Byte / s. If the communication time is K s, the total size of the data that can be transmitted is Z*K byte, the time occupied by each time slot is K / N s, and it is necessary to satisfy Z*K / N>M.
[0026] Each water meter has its own unique MAC address, and each water meter is assigned a unique serial number, which corresponds to the time slot number.
[0027] Furthermore, if Figure 2 As shown, step s2 specifically includes the following steps: Step s21, selecting a suitable satellite timing module (but not limited to Beidou / GPS, etc.) for high-precision timing; Step s22: using high-precision time to calibrate local clocks and perform time synchronization before the master and slave machines communicate.
[0028] Specifically, as a feasible implementation, select a Beidou module suitable for use on the STM32 end, connect the selected Beidou module to the STM32 and configure the serial port. The STM32 end receives and parses the data sent by the Beidou module through the serial port, extracts the time information and synchronizes it to the internal real-time clock, regularly obtains time data from the Beidou module, compares and calibrates it with the local clock, and ensures that the clock remains synchronized.
[0029] Furthermore, if Figure 3 and Figure 4 As shown, step s3 specifically includes the following steps: Step s31, the distribution phase of communication: the distribution phase is the sending phase of the host and the receiving phase of the slave; when the host sends data, it accurately transmits data in the pre-allocated time slot according to the ID information of the target slave to ensure that each slave receives the correct data; when the slave receives data, each slave receives the broadcast signal from the host and selects the corresponding time slot to receive information according to its own ID; Step s32, reporting phase of communication: the reporting phase is the sending phase of the slave and the receiving phase of the host; whenever the slave receives a signal sent by the host and the distribution phase is completed, each slave transmits information to the host in the corresponding time slot according to its own ID information, and the corresponding information is spliced into a data signal of a period of time in the radio transmission; the host receives the data signal of the corresponding period of time transmitted from each slave, and receives the information of the slave belonging to the corresponding ID according to the time slot number.
[0030] Specifically, continuing with the above example, as a feasible implementation method, the water meter wakes up regularly every month, and after waking up, it performs time synchronization through the high-precision time of the Beidou satellite timing module. Then, the host sends a meter reading instruction to each water meter in the corresponding time slot. After receiving the instruction, each water meter transmits the water meter data in its own time slot. The host receives the data according to the time slot sequence. After completing the communication activity, the communication module enters sleep mode and waits for the next stimulation.
[0031] A real-time concurrent wireless communication system based on Beidou high-precision timing includes at least one timing satellite, at least one host and more than two slaves, the host and the slaves are respectively connected to the timing satellite and simultaneously high-precision time; the host divides time slots according to the number of slaves required to communicate, the size of slave transmission data, and the communication time, and allocates a time slot to each slave; the host and the slaves send and receive data at the same high-precision time; the host sends data according to the time slot where the target slave is located, and the slave selects the corresponding time slot to receive information according to its own ID; the slave transmits information to the host in the corresponding time slot according to its own ID information, and the corresponding information is spliced into a data signal of a period of time in radio transmission; the host receives the data signals of the corresponding period of time transmitted from each slave, and receives the information of the slave belonging to the corresponding ID according to the time slot number.
[0032] Furthermore, timing satellites include Beidou satellites and GPS satellites.
[0033] The present invention can be applied to water meter, gas meter and other inspection activities. In the present invention, in order to reduce the battery power consumption of the water meter or gas meter, the water meter or gas meter is in a low power consumption state most of the time, and the communication module is in a dormant state. The water meter or gas meter inspection activity can be set to be performed once a month (not limited to once a month), and a timed wake-up is performed. After each wake-up, the time is synchronized through the high-precision time of the Beidou satellite timing module (but not limited to Beidou / GPS, etc.). After time synchronization, the host sends a meter reading instruction to each water meter in the corresponding time slot. After receiving the instruction, each water meter transmits the water meter data in its own time slot. The host receives the data according to the time slot sequence. After completing the communication activity, the communication module enters sleep and waits for the next stimulation.
[0034] The present invention can be applied to the real-time concurrent control of a large number of heliostats in a solar thermal power station. Since the heliostat control system needs to track the position changes of the sun in real time and quickly adjust the angle of the heliostat according to its changes, and since there are a large number of heliostats in the heliostat field, and the angle changes of each heliostat or the heliostats in each area are different, there are high requirements for the real-time, low latency and reliability of the communication method and system. In the present invention, efficient and synchronous adjustment of a large number of heliostats is achieved in a real-time concurrent manner. As the azimuth and altitude angles of the sun in the sky continue to change, thousands of heliostats need to be adjusted in real time. The host will issue angle adjustment instructions for thousands of heliostats in the corresponding time slots of each heliostat, and these heliostats will receive their own angle adjustment instructions in their corresponding time slots and make corresponding adjustments quickly.
[0035] The present invention adopts the above technical scheme. In a one-to-many communication application scenario, according to the time division multiplexing technology, the communication time of the master and slave machines is divided into time slots, and each time slot corresponds to a slave machine. At the same time, in order to reduce the influence of the master-slave machine time asynchrony or the unstable time synchronization mechanism on the communication, the present invention adds a Beidou satellite timing module (but not limited to Beidou / GPS, etc.) to synchronize the master and slave machines, and provide an accurate time synchronization reference for the time division multiplexing of the host and the slave machines, so as to stably and reliably realize the real-time concurrent communication of the master and slave machines, and reduce the time and energy consumed by communication.
[0036] Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present application is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians of the art without making creative work are within the scope of protection of the present application.
Claims
1. A real-time concurrent wireless communication method based on Beidou high-precision timing, characterized in that: It includes the following steps: Step s1, divide the time slots at the microcontroller end and assign corresponding time slots to each slave; Step s2, using the high-precision time provided by the satellite timing module for master-slave time synchronization; Step s3: Based on the divided time slots and the received high-precision time, the master-slave communication is completed using a wireless communication method.
2. The real-time concurrent wireless communication method based on Beidou high-precision timing according to claim 1 is characterized in that: The satellite timing module includes the Beidou satellite timing module and the GPS satellite timing module.
3. The real-time concurrent wireless communication method based on Beidou high-precision timing according to claim 1 is characterized in that: Step s1 specifically includes the following steps: Step s11, determining the number of slaves required to communicate, the size of slave transmission data, the communication time, and the wireless communication technology used and its communication rate, and then dividing the time slots; Step s12: Bind each time slot to a corresponding slave.
4. The real-time concurrent wireless communication method based on Beidou high-precision timing according to claim 1 is characterized in that: Step s2 specifically includes the following steps: Step s21, the selected satellite timing module is used for high-precision timing; Step s22: using high-precision time to calibrate local clocks and perform time synchronization before the master and slave machines communicate.
5. The real-time concurrent wireless communication method based on Beidou high-precision timing according to claim 1 is characterized in that: Step s3 specifically includes the following steps: Step s31, the distribution phase of communication: the distribution phase is the sending phase of the host and the receiving phase of the slave; when the host sends data, it accurately transmits data in the pre-allocated time slot according to the ID information of the target slave to ensure that each slave receives the correct data; when the slave receives data, each slave receives the broadcast signal from the host and selects the corresponding time slot to receive information according to its own ID; Step s32, reporting phase of communication: the reporting phase is the sending phase of the slave and the receiving phase of the host; whenever the slave receives a signal sent by the host and the distribution phase is completed, each slave transmits information to the host in the corresponding time slot according to its own ID information, and the corresponding information is spliced into a data signal of a period of time in the radio transmission; the host receives the data signal of the corresponding period of time transmitted from each slave, and receives the information of the slave belonging to the corresponding ID according to the time slot number.
6. A real-time concurrent wireless communication system based on Beidou high-precision timing, according to any one of claims 1 to 5, characterized in that: The system includes at least one timing satellite, at least one host and more than two slaves. The host and the slaves are respectively connected to the timing satellite and simultaneously set high-precision time; the host divides time slots according to the number of slaves required to communicate, the size of slave transmission data, and the communication time, and allocates a time slot to each slave; the host and the slaves send and receive data at the same high-precision time; the host sends data according to the time slot where the target slave is located, and the slave selects the corresponding time slot to receive information according to its own ID; the slave transmits information to the host in the corresponding time slot according to its own ID information, and the corresponding information is spliced into a data signal of a period of time in radio transmission; the host receives the data signals of the corresponding period of time transmitted from each slave, and receives the information of the slave belonging to the corresponding ID according to the time slot number.
7. The real-time concurrent wireless communication system based on Beidou high-precision timing according to claim 6 is characterized in that: Timing satellites include Beidou satellites and GPS satellites.
Citation Information
Patent Citations
Synchronous frequency hopping orthogonal networking method based on Beidou time transfer
CN108347261A
Communication method and system, master device and slave device applying same, and unmanned aerial vehicle
CN108495371A
Time synchronization method and device for wireless communication
CN115694705A
Primary and secondary clock time synchronization method and system based on wireless communication
CN117320144A
Method for selecting master in TDMA network and user terminal for thereof
KR102097704B1
