Time synchronization system and method based on virtual-real joint simulation of TDMA system wireless network

By using a TDMA-based wireless network virtual-physical co-simulation system, time synchronization is achieved through time slot pulses and numerical signals, solving the problem of high-precision synchronization between physical and virtual nodes, and realizing microsecond-level time synchronization and resource efficiency improvement.

CN116405104BActive Publication Date: 2026-07-07THE 20TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
THE 20TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORP
Filing Date
2023-03-14
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

In existing technologies, the time synchronization accuracy between physical nodes and virtual nodes is poor and the resource consumption is high, which cannot meet the high-precision synchronization requirements of TDMA wireless networks.

Method used

The TDMA-based wireless network virtual-physical co-simulation system achieves time synchronization through time slot pulse signals and time slot numerical signals of physical nodes. It utilizes IO level ports and RS422 interfaces to generate high-level pulses and time slot numerical signals, and combines them with Ethernet UDP communication for synchronization.

Benefits of technology

It achieves high-precision time synchronization between physical nodes and virtual nodes, with synchronization accuracy reaching the microsecond level, reducing resource overhead and communication complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116405104B_ABST
    Figure CN116405104B_ABST
Patent Text Reader

Abstract

The application provides a time synchronization system and method based on a TDMA system wireless network virtual-real joint simulation, which comprises a physical network and a virtual network simulation system, time synchronization between multiple physical nodes of the physical network is completed through radio frequency signals, and wireless communication of the TDMA system is adopted; one of the physical nodes is a gateway node, the gateway node is provided with a first interface and a second interface, the first interface is used for generating a time slot pulse signal, and the second interface is used for generating a time slot numerical signal; the virtual network simulation system communicates with the physical network, and the virtual physical network system is provided with a third interface for receiving the time slot pulse signal and a fourth interface for receiving the time slot numerical signal; wherein the time slot pulse signal carries synchronization interrupt information, the time slot numerical signal carries time slot time information, and the virtual network simulation system realizes time synchronization with the physical network through the time slot pulse signal and the time slot numerical signal. The application has high time synchronization precision and low resource consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a time synchronization system and method based on virtual-real co-simulation of TDMA wireless networks. Background Technology

[0002] TDMA wireless networks divide time into periodic and non-overlapping time slots, which are allocated to network nodes as their communication channels to resolve wireless communication resource conflicts. Therefore, TDMA networks are synchronous networks and must have a unified time base, with all network nodes synchronizing with the time base.

[0003] Currently, network physical nodes and computer-simulated virtual nodes generally synchronize time through network interface communication. One type is the one-way time synchronization method, which directly transmits time information to the computer via the network interface as a time source for computer simulation. However, due to problems such as large communication latency and poor time determinism in network interface communication, the time synchronization accuracy between physical and virtual nodes is very poor. Another type is the round-trip timing multi-round iterative synchronization method. For example, physical and virtual nodes exchange time synchronization information in multiple rounds according to the NTP protocol, calculating the time error between the virtual and physical nodes to correct the virtual node's time. This type of method requires the exchange of a large amount of time synchronization information, consumes a lot of communication resources, and the synchronization accuracy is generally in the millisecond range. Summary of the Invention

[0004] The technical problem to be solved by this invention is how to achieve low-overhead, high-precision time synchronization between physical nodes and virtual nodes. This invention proposes a time synchronization system and method based on TDMA-based virtual-physical co-simulation of wireless networks.

[0005] A time synchronization system based on TDMA-based virtual-real co-simulation of wireless networks according to an embodiment of the present invention includes:

[0006] The physical network includes multiple physical nodes, which synchronize time with each other via radio frequency signals and use TDMA wireless communication. One of the physical nodes is a gateway node, which has a first interface and a second interface. The first interface is used to generate time slot pulse signals, and the second interface is used to generate time slot value signals.

[0007] A virtual network simulation system communicates with the physical network. The virtual physical network system has a third interface for receiving the time slot pulse signal and a fourth interface for receiving the time slot numerical signal.

[0008] The time slot pulse signal carries synchronization interruption information, and the time slot value signal carries time slot time information. The virtual network simulation system achieves time synchronization with the physical network through the time slot pulse signal and the time slot value signal.

[0009] According to some embodiments of the present invention, the time slot value signal is associated with the time slot pulse signal, and a time slot value signal is associated with each time slot pulse signal interruption at a predetermined interval.

[0010] In some embodiments of the present invention, the first interface is the IO level port of the gateway node, which generates a time-slot pulse with a high level duration of 10us; the second interface is the RS422 interface of the gateway node, with a baud rate set to 921600bps.

[0011] According to some embodiments of the present invention, the third interface is a PCIE-GPIO acquisition card interface, and the fourth interface is an RS422 interface.

[0012] In some embodiments of the present invention, the virtual network simulation system uses a TDMA mechanism to communicate with the physical network via Ethernet UDP.

[0013] According to an embodiment of the present invention, a time synchronization method for virtual-real co-simulation of a TDMA-based wireless network is provided. The synchronization method is used to synchronize the time of a time synchronization system employing the aforementioned TDMA-based virtual-real co-simulation of a wireless network. The synchronization method includes:

[0014] S10, the virtual network simulation system program runs, the quasi-synchronization flag and the synchronization flag are both set to 0, the simulation time slot counter is initialized, and the time slot pulse signal is continuously monitored to make the time frequency of the virtual network simulation system consistent with the time frequency of the physical network.

[0015] S20: Listen to the time slot numerical signal, obtain the time synchronization information of the entity node. If both the quasi-synchronization flag and the synchronization flag are 0, parse the current time slot numerical signal, assign it to the simulation time slot counter, and set the quasi-synchronization flag to 1.

[0016] S30: Listen to the time slot numerical signal and obtain the time synchronization information of the physical node. If the quasi-synchronization flag is 1 and the synchronization flag is 0, parse the current time slot numerical signal and compare it with the current value of the simulation time slot counter. If they are equal, set the synchronization flag to 1 and the quasi-synchronization flag to 0 to complete the time synchronization and time correction within this cycle. If they are not equal, set the quasi-synchronization flag to 0 and jump to step S20.

[0017] According to some embodiments of the present invention, the method further includes:

[0018] S30, set the time synchronization period according to the requirements. At the beginning of the time synchronization period, set both the quasi-synchronization flag and the synchronization flag to 0, and jump to step S20.

[0019] According to an embodiment of the present invention, a time synchronization device for virtual-real co-simulation of a TDMA-based wireless network is provided. The synchronization device is used to synchronize the time of a time synchronization system employing the aforementioned TDMA-based virtual-real co-simulation of a wireless network. The synchronization device includes:

[0020] The time-frequency calibration module is used to set both the quasi-synchronization flag and the synchronization flag to 0, initialize the simulation time slot counter, and continuously monitor the time slot pulse signal during the running of the virtual network simulation system program, so as to make the time frequency of the virtual network simulation system consistent with the time frequency of the physical network.

[0021] The time slot value acquisition module is used to listen to the time slot value signal and obtain the time synchronization information of the entity node. If both the quasi-synchronization flag and the synchronization flag are 0, the current time slot value signal is parsed, assigned to the simulation time slot counter, and the quasi-synchronization flag is set to 1.

[0022] The time slot value calibration module is used to monitor the time slot value signal and obtain the time synchronization information of the physical node. If the quasi-synchronization flag is 1 and the synchronization flag is 0, the current time slot value signal is parsed and compared with the current value of the simulation time slot counter. If they are equal, the synchronization flag is set to 1 and the quasi-synchronization flag is set to 0, completing the time synchronization calibration within this cycle; if they are not equal, the quasi-synchronization flag is set to 0.

[0023] According to some embodiments of the present invention, the synchronization device further includes:

[0024] The time synchronization cycle setting module is used to set the time synchronization cycle according to requirements. At the beginning of the time synchronization cycle, both the quasi-synchronization flag and the synchronization flag are set to 0.

[0025] The present invention has the following beneficial effects:

[0026] 1) High time synchronization accuracy. High time synchronization accuracy between physical nodes and virtual nodes is achieved through pulse synchronization. The transmission delay of the synchronization pulse is very low and the time determinism is strong, reaching the microsecond level.

[0027] 2) Low resource overhead and simple, efficient process. Synchronization signals are generated based on pulse signals and 422 serial port information, eliminating the need for multiple rounds of back-and-forth iterations, resulting in a simple, efficient process and significantly reduced resource overhead. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of the connection framework of a virtual-real co-simulation time synchronization system according to an embodiment of the present invention;

[0029] Figure 2 This is a schematic diagram of the synchronization signal frame format according to an embodiment of the present invention;

[0030] Figure 3 This is a flowchart illustrating the virtual-to-real network time synchronization process according to an embodiment of the present invention. Detailed Implementation

[0031] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.

[0032] The steps described in the specification and the flowcharts in the accompanying drawings of this invention are not necessarily to be strictly followed according to the step numbers; the execution order of the steps can be changed. Furthermore, certain steps can be omitted, multiple steps can be combined into one step, and / or one step can be broken down into multiple steps.

[0033] Existing methods for synchronizing the time between physical and virtual nodes via network interface communication suffer from poor synchronization accuracy due to factors such as large network interface communication latency and poor time determinism. Even methods employing round-trip timing and multi-round iterative approaches like the NTP protocol improve synchronization accuracy to the millisecond level, but these processes are complex and consume significant communication resources. For time-sensitive TDMA wireless networks, millisecond-level synchronization accuracy is insufficient for simulation requirements. Furthermore, excessive resources used for time synchronization negatively impact the overall network protocol performance simulation results. Therefore, a low-overhead, high-accuracy time synchronization method between physical and virtual nodes is needed.

[0034] The present invention employs the following scheme to achieve high-precision time synchronization between physical nodes and computer-simulated virtual nodes during the virtual-physical co-simulation of a TDMA-based wireless network.

[0035] like Figure 1 As shown, the time synchronization system based on TDMA-based wireless network virtual-physical co-simulation according to an embodiment of the present invention includes: a physical network simulation system and a virtual network simulation system.

[0036] The physical network includes multiple physical nodes, which synchronize time with each other via radio frequency signals and use TDMA wireless communication. One of the physical nodes is a gateway node, which has a first interface and a second interface. The first interface is used to generate time slot pulse signals, and the second interface is used to generate time slot numerical signals.

[0037] The virtual network simulation system communicates with the physical network. The virtual physical network system has a third interface for receiving time slot pulse signals and a fourth interface for receiving time slot numerical signals.

[0038] The time-slot pulse signal carries synchronization interruption information, enabling synchronization of the time interval between the virtual network simulation system and the physical network; the time-slot numerical signal carries time-slot information, enabling synchronization of the time values ​​between the virtual network simulation system and the physical network. Therefore, the virtual network simulation system achieves time synchronization with the physical network through the time-slot pulse signal and the time-slot numerical signal.

[0039] The time synchronization system for virtual-physical co-simulation of wireless networks based on the TDMA system according to embodiments of the present invention achieves time synchronization between the physical network and the virtual network simulation system by combining time-slot pulse signals and time-slot numerical signals. The transmission delay of the time-slot pulse signals and time-slot numerical signals is very low and the time determinism is strong, reaching the microsecond level. Moreover, it eliminates the need for multiple rounds of back-and-forth interaction and iteration, making the process simple and efficient, and greatly reducing resource consumption.

[0040] According to some embodiments of the present invention, the time slot value signal is associated with the time slot pulse signal, and a time slot value signal is associated with each time slot pulse signal interruption at a predetermined interval. For example... Figure 2 As shown, "the time slot numerical signal is associated with the time slot pulse signal" can be understood as associating a time slot numerical signal with each preset number of time slot pulse signal interruptions. For example, a time slot numerical signal can be associated with every 100 time slot pulse signal interruptions.

[0041] In some embodiments of the present invention, the first interface is the I / O level port of the gateway node, which generates a high-level time slot pulse with a duration of 10µs; the second interface is the RS422 interface of the gateway node, with a baud rate set to 921600bps. It should be noted that increasing the baud rate to 921600bps can effectively reduce the latency of transmitting the time slot number value containing time information to the virtual network simulation system through the second interface.

[0042] According to some embodiments of the present invention, such as Figure 1 As shown, the third interface is a PCIE-GPIO acquisition card interface, and the fourth interface is an RS422 interface.

[0043] In some embodiments of the present invention, the virtual network simulation system uses TDMA to communicate with the physical network via Ethernet UDP.

[0044] According to an embodiment of the present invention, a time synchronization method for virtual-real co-simulation of a TDMA-based wireless network is provided. This synchronization method is used to synchronize the time of a time synchronization system employing the aforementioned TDMA-based virtual-real co-simulation of a wireless network. Figure 3 As shown, the synchronization methods include:

[0045] S10, the virtual network simulation system program runs, the quasi-synchronization flag and the synchronization flag are both set to 0, the simulation time slot counter is initialized, and the time slot pulse signal is continuously monitored to make the time frequency of the virtual network simulation system consistent with the time frequency of the physical network.

[0046] S20: Listen to the time slot numerical signal, obtain the time synchronization information of the entity node. If both the quasi-synchronization flag and the synchronization flag are 0, parse the current time slot numerical signal, assign it to the simulation time slot counter, and set the quasi-synchronization flag to 1.

[0047] S30: Listen to the time slot numerical signal and obtain the time synchronization information of the physical node. If the quasi-synchronization flag is 1 and the synchronization flag is 0, parse the current time slot numerical signal and compare it with the current value of the simulation time slot counter. If they are equal, set the synchronization flag to 1 and the quasi-synchronization flag to 0 to complete the time synchronization and time correction within this cycle. If they are not equal, set the quasi-synchronization flag to 0 and jump to step S20.

[0048] According to some embodiments of the present invention, such as Figure 3 As shown, the synchronization method also includes:

[0049] S40, set the time synchronization period according to the requirements. At the beginning of the time synchronization period, set both the quasi-synchronization flag and the synchronization flag to 0, and jump to step S20.

[0050] According to an embodiment of the present invention, a time synchronization device for virtual-real co-simulation of a TDMA-based wireless network is provided. The synchronization device is used to synchronize the time of a time synchronization system using the TDMA-based virtual-real co-simulation of a wireless network as described above. The synchronization device includes: a time-frequency calibration module, a time slot value acquisition module, and a time slot value calibration module.

[0051] Among them, the time and frequency calibration module is used to set both the quasi-synchronization flag and the synchronization flag to 0 when the virtual network simulation system program is running, initialize the simulation time slot counter, continuously monitor the time slot pulse signal, and realize that the time frequency of the virtual network simulation system is consistent with the time frequency of the physical network.

[0052] The time slot value acquisition module is used to listen to the time slot value signal and obtain the time synchronization information of the entity node. If both the quasi-synchronization flag and the synchronization flag are 0, the current time slot value signal is parsed, assigned to the simulation time slot counter, and the quasi-synchronization flag is set to 1.

[0053] The time slot value calibration module is used to monitor the time slot value signal and obtain the time synchronization information of the physical node. If the quasi-synchronization flag is 1 and the synchronization flag is 0, the current time slot value signal is parsed and compared with the current value of the simulation time slot counter. If they are equal, the synchronization flag is set to 1 and the quasi-synchronization flag is set to 0, completing the time synchronization calibration within this cycle; if they are not equal, the quasi-synchronization flag is set to 0.

[0054] According to some embodiments of the present invention, the synchronization device further includes:

[0055] The time synchronization cycle setting module is used to set the time synchronization cycle according to requirements. At the beginning of the time synchronization cycle, both the quasi-synchronization flag and the synchronization flag are set to 0.

[0056] The present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the following description is merely exemplary and should not be construed as a specific limitation of the present invention.

[0057] (1) Virtual-Real Synchronization System Connection Framework:

[0058] like Figure 1 The diagram illustrates the time synchronization framework for co-simulation between the physical and virtual networks. The physical network contains several wireless nodes, one of which acts as a gateway node connected to the virtual network computer. The gateway node generates a synchronization signal to achieve time synchronization between the physical and virtual networks. Service messages between the physical and virtual networks are communicated via Ethernet UDP.

[0059] (2) Synchronization pulse signal is generated on the physical network side:

[0060] In a TDMA wireless ad hoc network, each node uses its own time base as the network's system time, describing it through time elements, time frames, and time slots. Within a TDMA network, each member strictly adheres to time slots for information transmission and reception. Therefore, when synchronizing time, the virtual network system needs to receive the current time slot value from the physical network to maintain consistency with it.

[0061] The synchronization signal mainly consists of two parts: time-slot pulses and time-slot values. The time-slot pulses provide synchronization interrupts to the virtual network simulation system, while the time-slot values ​​provide the network time-slot duration. Specific parameters are as follows: a time-slot pulse with a high-level duration of 10µs is generated by the I / O port of the virtual-real synchronization gateway. The associated time-slot value is generated by the RS422 interface of the virtual-real synchronization gateway, with a baud rate set to 921600bps. Every 100 time-slot pulse interrupts generate a serial time-slot value, which is sent to the virtual network simulation system for virtual-real co-simulation time synchronization.

[0062] (3) The virtual simulation network side receives the synchronization pulse signal and completes the time slot synchronization:

[0063] The steps to achieve synchronization on the virtual network side are as follows:

[0064] S10, the computer virtual simulation network program runs, the quasi-synchronization flag and synchronization flag are set to 0, the simulation time slot counter is initialized, and the count is continuously accumulated by listening to the 10ms pulse interrupt, thus realizing that the virtual simulation time frequency is consistent with the physical node time frequency.

[0065] S20, listen for interrupt 422, receive time synchronization information from the physical node, if the quasi-synchronization flag and synchronization flag are 0, parse the current time slot number, assign it to the simulation time slot counter, and set the quasi-synchronization flag to 1;

[0066] S30, listen for interrupt 422, receive time synchronization information from the physical node. If the quasi-synchronization flag is set to 1 and the synchronization flag is 0, parse the current time slot number and compare it with the current value of the simulation time slot counter. If they are equal, it means that the virtual simulation time value is consistent with the physical node time value, that is, time synchronization is achieved. Set the synchronization flag to 1 and the quasi-synchronization flag to 0. If they are not equal, it means that the synchronization has failed. Set the quasi-synchronization flag to 0 and jump to step S20.

[0067] S40, set the time synchronization period according to the requirements. When the new time synchronization period begins, set the quasi-synchronization flag and synchronization flag to 0, and jump to step S20.

[0068] The present invention has the following advantages:

[0069] 1) High time synchronization accuracy: The time synchronization between physical nodes and virtual nodes is achieved through pulse synchronization. The transmission delay of the synchronization pulse is very low and the time determinism is strong, which can reach the microsecond level.

[0070] 2) Low resource overhead and simple and efficient process: The synchronization signal is generated based on the pulse signal and 422 serial port information, eliminating the need for multiple rounds of back-and-forth interaction and iteration. The process is simple and efficient, and the resource overhead is greatly reduced.

[0071] Through the description of specific embodiments, a more in-depth and specific understanding should be gained of the technical means and effects adopted by the present invention to achieve the intended purpose. However, the accompanying drawings are only provided for reference and illustration and are not intended to limit the present invention.

Claims

1. A time synchronization system based on virtual-real co-simulation of a TDMA wireless network, characterized in that, include: The physical network includes multiple physical nodes, which synchronize time with each other via radio frequency signals and use TDMA wireless communication. in One of the entity nodes is a gateway node. The gateway node has a first interface and a second interface. The first interface is used to generate a time slot pulse signal, and the second interface is used to generate a time slot value signal. The first interface is the IO level port of the gateway node, and the second interface is the RS422 interface of the gateway node. A virtual network simulation system communicates with the physical network. The virtual network simulation system has a third interface for receiving the time slot pulse signal and a fourth interface for receiving the time slot numerical signal. The third interface is a PCIE-GPIO acquisition card interface, and the fourth interface is an RS422 interface. The time slot pulse signal carries synchronization interruption information, and the time slot value signal carries time slot time information. The virtual network simulation system achieves time synchronization with the physical network through the time slot pulse signal and the time slot value signal.

2. The time synchronization system based on TDMA-based virtual-real co-simulation of wireless networks according to claim 1, characterized in that, The time slot value signal is associated with the time slot pulse signal, and each time slot pulse signal interruption at a preset interval is associated with one time slot value signal.

3. The time synchronization system based on TDMA-based virtual-real co-simulation of wireless networks according to claim 2, characterized in that, The IO level port generates a high-level time-slot pulse with a duration of 10µs; the baud rate of the second interface is set to 921600bps.

4. The time synchronization system based on TDMA-based wireless network virtual-real co-simulation according to any one of claims 1-3, characterized in that, The virtual network simulation system uses TDMA to communicate with the physical network via Ethernet UDP.

5. A time synchronization method based on virtual-real co-simulation of a TDMA-based wireless network, characterized in that, The synchronization method is used to synchronize the time of a time synchronization system based on TDMA wireless network virtual-real co-simulation as described in any one of claims 1-4. The synchronization method includes: S10, the virtual network simulation system program runs, the quasi-synchronization flag and the synchronization flag are both set to 0, the simulation time slot counter is initialized, and the time slot pulse signal is continuously monitored to make the time frequency of the virtual network simulation system consistent with the time frequency of the physical network. S20: Listen to the time slot numerical signal, obtain the time synchronization information of the entity node. If both the quasi-synchronization flag and the synchronization flag are 0, parse the current time slot numerical signal, assign it to the simulation time slot counter, and set the quasi-synchronization flag to 1. S30: Listen to the time slot numerical signal and obtain the time synchronization information of the physical node. If the quasi-synchronization flag is 1 and the synchronization flag is 0, parse the current time slot numerical signal and compare it with the current value of the simulation time slot counter. If they are equal, set the synchronization flag to 1 and the quasi-synchronization flag to 0 to complete the time synchronization and time correction within this cycle. If they are not equal, set the quasi-synchronization flag to 0 and jump to step S20.

6. The time synchronization method for virtual-real co-simulation of a TDMA-based wireless network according to claim 5, characterized in that, The synchronization method further includes: S40, set the time synchronization period according to the requirements. At the beginning of the time synchronization period, set both the quasi-synchronization flag and the synchronization flag to 0, and jump to step S20.

7. A time synchronization device based on TDMA-based virtual-real co-simulation of wireless networks, characterized in that, The synchronization device is used to perform time synchronization on a time synchronization system based on TDMA wireless network virtual-real co-simulation as described in any one of claims 1-4. The synchronization device includes: The time-frequency calibration module is used to set both the quasi-synchronization flag and the synchronization flag to 0, initialize the simulation time slot counter, and continuously monitor the time slot pulse signal during the running of the virtual network simulation system program, so as to make the time frequency of the virtual network simulation system consistent with the time frequency of the physical network. The time slot value acquisition module is used to listen to the time slot value signal and obtain the time synchronization information of the entity node. If both the quasi-synchronization flag and the synchronization flag are 0, the current time slot value signal is parsed, assigned to the simulation time slot counter, and the quasi-synchronization flag is set to 1. The time slot value calibration module is used to monitor the time slot value signal and obtain the time synchronization information of the physical node. If the quasi-synchronization flag is 1 and the synchronization flag is 0, the current time slot value signal is parsed and compared with the current value of the simulation time slot counter. If they are equal, the synchronization flag is set to 1 and the quasi-synchronization flag is set to 0, completing the time synchronization calibration within this cycle; if they are not equal, the quasi-synchronization flag is set to 0.

8. The time synchronization device for virtual-real co-simulation of TDMA-based wireless networks according to claim 7, characterized in that, The synchronization device further includes: The time synchronization cycle setting module is used to set the time synchronization cycle according to requirements. At the beginning of the time synchronization cycle, both the quasi-synchronization flag and the synchronization flag are set to 0.