Wireless network node synchronization method, system, device and readable storage medium

Through calculation of the deviation duration between wireless network nodes, the dependence of timestamps is reduced, efficient synchronization of wireless network nodes is achieved, and the problem of large network overhead in industrial control is solved, and it is suitable for industrial control networks.

CN116017670BActive Publication Date: 2025-08-19SHENZHEN INOVANCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211596884.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2025-08-19
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

The existing wireless network node synchronization mechanism is relatively expensive in industrial control due to frequent carrying timestamps, and is particularly prominent in networks with low throughput rates.

Method used

By receiving the master node signal from the node as a reference, generating a local signal to send a beat, and calculating the transmission delay based on the deviation time, synchronizing between nodes is achieved, reducing the dependence on the timestamp, and only receiving the timing signal of the master node once is required.

Benefits of technology

It greatly reduces the network overhead required for synchronization, meets application scenarios with relatively low industrial network throughput, and realizes fast synchronization perception and correction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017670B_ABST
    Figure CN116017670B_ABST
Patent Text Reader

Abstract

The present application discloses a wireless network node synchronization method, system, device and readable storage medium. In the present application, the slave node sends a first signal to the master node based on local timing. The master node obtains the deviation duration by comparing the first signal with its own local signal transmission rhythm and sends it to the slave node. The slave node obtains the transmission delay between the slave node and the master node after receiving the deviation duration, thereby achieving time synchronization between the two nodes based on the transmission delay. Compared with the existing timestamp-based synchronization mechanism, the signal used to achieve synchronization in the present application does not need to include a timestamp, and only needs to receive the timing signal sent by the master node once, which greatly reduces the network overhead required for synchronization and meets the application scenario with relatively low throughput of industrial networks. In addition, the present application can also quickly perceive and correct the timing deviation caused by actual applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a wireless network node synchronization method, system, device and readable storage medium. Background Art

[0002] In the field of industrial control, collaboration between multiple nodes (such as control nodes, drive nodes, or sensor nodes) requires each node to perform actions synchronously or in an orderly manner. Therefore, maintaining time synchronization between nodes is very important for industrial control.

[0003] Existing synchronization solutions primarily utilize a timestamp-based synchronization mechanism. For example, two nodes each send and receive data once. The sender includes a precise timestamp in the data packet, and the receiver records the exact local time of reception, thereby calculating the link's transmission delay. This approach is relatively mature in wired networks. However, due to the mobility of wireless nodes, the transmission delay between nodes varies rapidly. Frequent synchronization requires a timestamp for each synchronization, requiring two transmission and reception processes. This results in high overhead, which is particularly pronounced in industrial networks with relatively low throughput.

[0004] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of this application is to provide a wireless network node synchronization method, aiming to solve the technical problem of high overhead of the current timestamp-based synchronization machine.

[0006] To achieve the above object, the present application provides a wireless network node synchronization method, wherein the wireless network node includes a master node and a slave node, and the wireless network node synchronization method is applied to the slave node, and the method includes the following steps:

[0007] The time when the second signal sent by the master node is received is used as a reference beat point, the second number of the second signal is used as the number of the reference beat point, and the first local signal sending beat is generated based on the preset beat interval between the reference beat points;

[0008] Sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal;

[0009] receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat by the master node with the actual receiving moment of the first signal by the master node;

[0010] Synchronize with the master node based on the transmission delay.

[0011] Furthermore, the step of sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal includes:

[0012] Determining the first beat point corresponding to the first number in the first local signal sending beat;

[0013] The first signal is sent to the master node a preset time ahead of the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0014] Furthermore, the step of generating the transmission delay between the slave node and the master node based on the deviation duration includes:

[0015] Using the sum of the preset duration and the deviation duration as the new preset duration, and sending the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat;

[0016] If the deviation duration is not received again within the preset duration, the preset duration and half of the deviation duration are used as the transmission delay between the slave node and the master node;

[0017] If the deviation duration is received again within the preset duration, a new first local signal sending beat is generated based on the second number of the second signal carrying the deviation duration, and the step of taking the sum of the preset duration and the deviation duration as the new preset duration is executed.

[0018] Furthermore, before the step of sending the first signal to the master node at a preset time in advance relative to the first beat point, the method further includes:

[0019] Receiving preset prior information sent by the master node;

[0020] Calculating the transmission distance of the signal between the slave node and the master node according to the transmission loss of the preset prior information;

[0021] Calculating the transmission time of the signal between the slave node and the master node according to the transmission distance;

[0022] Twice the transmission duration is used as the initial preset duration.

[0023] To achieve the above object, the present application further provides a wireless network node synchronization method, wherein the wireless network node includes a master node and a slave node, and the wireless network node synchronization method is applied to the master node, and the method includes the following steps:

[0024] Sending a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate a first local signal sending beat;

[0025] receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat;

[0026] Compare the second moment of the second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with the actual receiving moment of the first signal to obtain a deviation duration;

[0027] The deviation duration is sent to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node.

[0028] Furthermore, the step of receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat includes:

[0029] The step of receiving the first signal sent by the slave node at a first beat point corresponding to the first local signal sending beat based on the first signal includes:

[0030] Receive the first signal sent by the slave node in advance of a preset time length relative to the first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time length is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0031] Furthermore, the step of sending the deviation duration to the slave node includes:

[0032] Determine whether the length of the deviation time is within a preset allowable error range;

[0033] If the length of the deviation time is within a preset allowable error range, it is determined that the master node is synchronized with the slave node;

[0034] If the length of the deviation duration is not within the preset allowable error range, it is determined that the slave node is out of synchronization, and the deviation duration is sent to the slave node.

[0035] To achieve the above objectives, the present application further provides a wireless network node synchronization system, the wireless network node synchronization system comprising:

[0036] The slave node is configured to use the moment of receiving the second signal sent by the master node as a reference beat point, use the second number of the second signal as the number of the reference beat point, and generate a first local signal sending beat based on a preset beat interval between the reference beat points;

[0037] Sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal;

[0038] receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration;

[0039] Synchronize with the master node based on the transmission delay;

[0040] The master node is configured to send a second signal to the slave node based on a second local signal sending beat;

[0041] receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat;

[0042] Compare the second moment of the second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with the actual receiving moment of the first signal to obtain a deviation duration;

[0043] The deviation duration is sent to the slave node.

[0044] To achieve the above-mentioned object, the present application further provides a wireless network node synchronization device, wherein the wireless network node includes a master node and a slave node, and the wireless network node synchronization device is applied to the slave node, and the wireless network node synchronization device includes:

[0045] A first generating module is configured to use the moment when the second signal sent by the master node is received as a reference beat point, use the second number of the second signal as the number of the reference beat point, and generate a first local signal sending beat based on a preset beat interval between the reference beat points;

[0046] A first sending module, configured to send the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on a first number of the first signal;

[0047] a second generating module, configured to receive a deviation duration generated by the master node based on the first signal, and generate a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing a second moment of a second beat point corresponding to the first number in a second local signal sending beat by the master node with an actual receiving moment of the first signal by the master node;

[0048] A synchronization module is used to synchronize with the master node based on the transmission delay.

[0049] To achieve the above-mentioned object, the present application further provides a wireless network node synchronization device, wherein the wireless network node includes a master node and a slave node, and the wireless network node synchronization device is applied to the master node, and the wireless network node synchronization device includes:

[0050] A second sending module is configured to send a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate the first local signal sending beat;

[0051] A first receiving module is configured to receive the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat;

[0052] A comparison module, configured to compare a second moment of a second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with an actual receiving moment of the first signal to obtain a deviation duration;

[0053] The third sending module sends the deviation duration to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node.

[0054] To achieve the above-mentioned purpose, the present application also provides a wireless network node synchronization device, which includes: a memory, a processor, and a wireless network node synchronization program stored on the memory and runnable on the processor. When the wireless network node synchronization program is executed by the processor, the steps of the wireless network node synchronization method as described above are implemented.

[0055] To achieve the above objectives, the present application also provides a readable storage medium, which stores a wireless network node synchronization program. When the wireless network node synchronization program is executed by a processor, it implements the steps of the wireless network node synchronization method as described above.

[0056] The embodiments of the present application provide a wireless network node synchronization method, system, device, and readable storage medium. The wireless network node includes a master node and a slave node. The wireless network node synchronization method is applied to the slave node. The method includes the following steps:

[0057] The moment of receiving the second signal sent by the master node is used as a reference beat point, and the second number of the second signal is used as the number of the reference beat point, and the first local signal sending beat is generated based on the preset beat interval between the reference beat points; the first signal is sent to the master node based on the first beat point corresponding to the first number of the first signal in the first local signal sending beat; the deviation duration generated by the master node based on the first signal is received, and the transmission delay between the slave node and the master node is generated based on the deviation duration, wherein the deviation duration is generated by the master node comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat with the actual receiving moment of the master node receiving the first signal; synchronization is performed with the master node based on the transmission delay.

[0058] The wireless network node synchronization method is applied to the master node, and the method includes the following steps: sending a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate a first local signal sending beat; receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat; comparing the second moment of the second beat point corresponding to the first number of the first signal in the second local signal sending beat with the actual receiving moment of the first signal to obtain a deviation duration; sending the deviation duration to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node.

[0059] That is, in this application, the slave node will construct its own first local signal sending beat based on the second signal sent by the master node, so as to clarify that the signal sending beat of the two nodes is a transmission delay. The slave node then sends the first signal to the master node based on the first signal sending beat. The master node obtains the deviation time between the first signal and its own second local signal sending beat and sends it to the slave node. The slave node can obtain the transmission delay between the slave node and the master node based on the received deviation time, thereby realizing the time synchronization between the two nodes based on the transmission delay. Compared with the existing timestamp-based synchronization mechanism, the signal used to achieve synchronization in this application does not need to include a timestamp, and only needs to receive the timing signal sent by the master node once, which greatly reduces the network overhead required for synchronization and meets the application scenario with relatively low throughput of industrial networks. In addition, for the first signal sent by the slave node, the master node will compare the second moment corresponding to the first signal in the local timing signal with its actual receiving moment to obtain the deviation time, thereby realizing the rapid judgment and perception of whether the master node and the slave node are synchronized, and the corresponding deviation time is sent to the slave node, thereby realizing the rapid correction of the deviation between the two nodes to achieve synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;

[0061] Figure 2 This is a flowchart of the first embodiment of the wireless network node synchronization method of the present application;

[0062] Figure 3 This is a flow chart of the second embodiment of the wireless network node synchronization method of the present application;

[0063] Figure 4 This is a flowchart of the third embodiment of the wireless network node synchronization method of the present application;

[0064] Figure 5 This is a flowchart of the fourth embodiment of the wireless network node synchronization method of the present application;

[0065] Figure 6 This is a flowchart of the fifth embodiment of the wireless network node synchronization method of the present application;

[0066] Figure 7 This is a schematic diagram of a scenario in which the first signal is sent in advance in the wireless network node synchronization method of the present application;

[0067] Figure 8 This is a schematic diagram of a first signal transmission and reception scenario in the wireless network node synchronization method of the present application;

[0068] Figure 9This is a schematic diagram of a receiving scene of a first signal in the wireless network node synchronization method of the present application;

[0069] Figure 10 This is a structural diagram of a wireless network node synchronization device in the wireless network node synchronization method of the present application;

[0070] Figure 11 This is a structural diagram of another wireless network node synchronization device in the wireless network node synchronization method of the present application.

[0071] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0072] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0073] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.

[0074] The device in the embodiment of the present application can be a servo structure, or it can be an electronic terminal device with network communication function such as a PC, a smart phone, a tablet computer, or a portable computer.

[0075] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0076] Optionally, the device may also include a camera, RF (Radio Frequency) circuit, sensor, audio circuit, WiFi module, etc. Among them, sensors include light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor can turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0077] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0078] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a wireless network node synchronization program.

[0079] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the wireless network node synchronization program stored in the memory 1005 and perform the following operations:

[0080] Applied to slave nodes, including:

[0081] The time when the second signal sent by the master node is received is used as a reference beat point, the second number of the second signal is used as the number of the reference beat point, and the first local signal sending beat is generated based on the preset beat interval between the reference beat points;

[0082] Sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal;

[0083] receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat by the master node with the actual receiving moment of the first signal by the master node;

[0084] Synchronize with the master node based on the transmission delay.

[0085] Furthermore, the processor 1001 may call the wireless network node synchronization program stored in the memory 1005 and further perform the following operations:

[0086] The step of sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal includes:

[0087] Determining the first beat point corresponding to the first number in the first local signal sending beat;

[0088] The first signal is sent to the master node a preset time ahead of the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0089] Furthermore, the processor 1001 may call the wireless network node synchronization program stored in the memory 1005 and further perform the following operations:

[0090] The step of generating the transmission delay between the slave node and the master node based on the deviation duration includes:

[0091] Using the sum of the preset duration and the deviation duration as the new preset duration, and sending the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat;

[0092] If the deviation duration is not received again within the preset duration, the preset duration and half of the deviation duration are used as the transmission delay between the slave node and the master node;

[0093] If the deviation duration is received again within the preset duration, a new first local signal sending beat is generated based on the second number of the second signal carrying the deviation duration, and the step of taking the sum of the preset duration and the deviation duration as the new preset duration is executed.

[0094] Furthermore, the processor 1001 may call the wireless network node synchronization program stored in the memory 1005 and further perform the following operations:

[0095] Before the step of sending the first signal to the master node in advance of the first beat point by a preset time length, the method further includes:

[0096] Receiving preset prior information sent by the master node;

[0097] Calculating the transmission distance of the signal between the slave node and the master node according to the transmission loss of the preset prior information;

[0098] Calculating the transmission time of the signal between the slave node and the master node according to the transmission distance;

[0099] Twice the transmission duration is used as the initial preset duration.

[0100] Furthermore, the processor 1001 may call the wireless network node synchronization program stored in the memory 1005 and further perform the following operations:

[0101] Applied to the master node, including:

[0102] Sending a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate a first local signal sending beat;

[0103] receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat;

[0104] Compare the second moment of the second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with the actual receiving moment of the first signal to obtain a deviation duration;

[0105] The deviation duration is sent to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node.

[0106] Furthermore, the processor 1001 may call the wireless network node synchronization program stored in the memory 1005 and further perform the following operations:

[0107] The step of receiving the first signal sent by the slave node at a first beat point corresponding to the first local signal sending beat based on the first signal includes:

[0108] Receive the first signal sent by the slave node in advance of a preset time length relative to the first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time length is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0109] Furthermore, the processor 1001 may call the wireless network node synchronization program stored in the memory 1005 and further perform the following operations:

[0110] The step of sending the deviation duration to the slave node comprises:

[0111] Determine whether the length of the deviation time is within a preset allowable error range;

[0112] If the length of the deviation time is within a preset allowable error range, it is determined that the master node is synchronized with the slave node;

[0113] If the length of the deviation duration is not within the preset allowable error range, it is determined that the slave node is out of synchronization, and the deviation duration is sent to the slave node.

[0114] Reference Figure 2 In a first embodiment of the wireless network node synchronization method of the present application, the wireless network node includes a master node and a slave node, and the wireless network node synchronization method is applied to the slave node, the method comprising:

[0115] Step S10: The moment of receiving the second signal sent by the master node is used as a reference beat point, the second number of the second signal is used as the number of the reference beat point, and the first local signal sending beat is generated based on the preset beat interval of the reference beat point interval.

[0116] It should be noted that wireless networks can currently be divided into two categories based on their topology type: star networks and mesh networks. In star or mesh wireless networks, synchronization between nodes can be achieved through pairwise synchronization between adjacent nodes. Pairwise synchronization can be achieved by determining the time required for a wireless frame to be transmitted between two nodes. It is understood that after determining the transmission time of a signal between any two nodes, each node can determine a unified time reference. In this embodiment, synchronization between two adjacent communication nodes is used as an example for explanation. That is, the wireless network will include a master node and a slave node, and the slave node will synchronize based on the master node. It is understood that the master node and slave node in a wireless network in this embodiment are not fixed. That is, after a slave node completes synchronization with the master node, it can serve as the master node of another adjacent node. For example, if node B is adjacent to node A and node C respectively, node A will initially serve as the master node and node B will serve as the slave node. After node B synchronizes based on node A, node B will again serve as the master node, and the corresponding node C will serve as the slave node. Node C will then synchronize based on node B.

[0117] Specifically, in this embodiment, the implementation subject of the wireless network node synchronization method of the present application is the slave node. The second signal sent by the master node to the slave node, and the second signal sent by the slave node to the master node, can be a signal for normal communication between the master node and the slave node, or a synchronization signal specifically used for synchronization. The above-mentioned first local signal transmission beat is the local signal transmission beat of the slave node. The local signal transmission beat is the local time with a fixed time interval beat, and the beat point of each beat corresponds to a moment in local time.

[0118] The second signal sent by the master node to the slave node is a radio frame. Typically, the length of a radio frame is 10ms, and the corresponding local signal transmission beat interval can be 10ms, such as an FDD (Frequency Division Duplexing) frame. An FDD frame can be divided into 20 subframes, such as subframe #0, subframe #1, subframe #2, ..., subframe #19. Among them, subframe #0 will contain a specific signal, namely the number of the radio frame. Typically, the number of the radio frame is generated by the node based on the local fixed signal. For example, when sending a radio frame, the node can choose to send it at the beat point of the local signal transmission beat, and the beat point number is the number of the radio frame sent at that beat point. The second signal sent by the master node to the slave node is sent by the master node at each beat point in the second local signal transmission beat. The slave node uses the moment of receiving the second signal as a reference beat point, and uses the second number in the second signal as the number of the reference beat point. Based on the reference beat point, each beat point in the first local signal sending beat is obtained in sequence at a preset beat interval, and the number of each beat point is incremented in sequence. Among them, the preset beat interval is the same as the beat interval in the second local signal sending beat of the master node. At this time, the first local signal sending beat of the slave node is not consistent with the second local signal sending beat of the master node, and the first local signal lags behind the second local signal sending beat. It can be understood that the generation process of the above-mentioned first local signal can be considered to be generated based on the alignment of the second number in the second signal, but in actual application, the first local signal sending beat does not necessarily have to be generated based on the reference number alignment. The reference beat point can also be obtained by adaptively adjusting the actual receiving time of the reference signal, but the calculation amount of the transmission delay is increased. Therefore, in this embodiment, the slave node will use an alignment method to generate the first local timing signal.

[0119] Step S20: sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal;

[0120] Specifically, in this embodiment, when the slave node sends the first signal to the master node, it can be sent to the master node based on the first number of the first signal (the position of the first beat point corresponding to the first number in the first local signal sending beat. For example, if the first signal with a first number of 3 is sent, the corresponding beat point numbered 3 in the first local signal sending beat can be sent.

[0121] Step S30: receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat by the master node with the actual receiving moment of the first signal by the master node;

[0122] Specifically, the slave node receives a deviation duration generated by the master node based on the first signal of the slave node, wherein the deviation duration is generated by the master node comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat with the actual receiving time of the master node receiving the first signal. If the beat interval is 0 and the accurate transmission delay is also 0, then the first local signal sending beat will lag behind the second local signal sending beat by the duration of 0, that is, beat point 3 in the second local signal sending beat corresponds to beat point 2 in time of the first local signal, and the first signal with a frame code of 2 is sent at beat point 2 of the first local signal sending beat, while the actual time when the master node receives the first signal should be beat point 4 in the second local signal sending beat (it takes a duration of 0 to transmit the signal). The master node subtracts the time corresponding to beat point 4 from the second moment corresponding to beat point 2 to obtain the deviation duration (two beat intervals), and uses half of the deviation duration as the transmission delay.

[0123] Step S40: Synchronize with the master node based on the transmission delay.

[0124] Specifically, if the transmission delay between the slave node and the master node is determined, the slave node and the master node can achieve time synchronization. For example, the slave node can delay the actual reception time of the signal sent by the master node by one transmission delay to determine the actual transmission time of the signal. In addition, other synchronization methods will not be detailed here.

[0125] In this embodiment, the moment when the second signal sent by the master node is received is used as a reference beat point, and the second number of the second signal is used as the number of the reference beat point. The first local signal sending beat is generated based on the preset beat interval between the reference beat points; the first signal is sent to the master node based on the first beat point corresponding to the first number of the first signal in the first local signal sending beat; the deviation duration generated by the master node based on the first signal is received, and the transmission delay between the slave node and the master node is generated based on the deviation duration, wherein the deviation duration is generated by the master node comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat with the actual receiving moment of the master node receiving the first signal; synchronization with the master node is performed based on the transmission delay. That is, in this application, the slave node will construct its own first local signal sending beat based on the second signal sent by the master node, so as to clarify that the signal sending beat of the two nodes is a transmission delay. The slave node then sends the first signal to the master node based on the first signal sending beat. The master node obtains the deviation time between the first signal and its own second local signal sending beat and sends it to the slave node. The slave node can obtain the transmission delay between the slave node and the master node based on the received deviation time, thereby realizing the time synchronization between the two nodes based on the transmission delay. Compared with the existing timestamp-based synchronization mechanism, the signal used to achieve synchronization in this application does not need to include a timestamp, and only needs to receive the timing signal sent by the master node once, which greatly reduces the network overhead required for synchronization and meets the application scenario with relatively low throughput of industrial networks. In addition, for the first signal sent by the slave node, the master node will compare the second moment corresponding to the first signal in the local timing signal with its actual receiving moment to obtain the deviation time, thereby realizing the rapid judgment and perception of whether the master node and the slave node are synchronized, and the corresponding deviation time is sent to the slave node, thereby realizing the rapid correction of the deviation between the two nodes to achieve synchronization.

[0126] Further, refer to Figure 3 Based on the first embodiment of the wireless network node synchronization method of the present application, a second real-time embodiment of the wireless network node synchronization method of the present application is proposed. In this embodiment, the same or similar contents as the above embodiment can be referred to the above introduction and will not be repeated hereafter. The steps of the wireless network node synchronization method include:

[0127] Step S100: taking the moment of receiving the second signal sent by the master node as a reference beat point, taking the second number of the second signal as the number of the reference beat point, and generating a first local signal sending beat based on a preset beat interval between the reference beat points;

[0128] Step S200, determine the first beat point corresponding to the first number in the first local signal sending beat; send the first signal to the master node a preset time length in advance relative to the first beat point, wherein the preset time length is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0129] Step S300: Receive a deviation duration generated by the master node based on the first signal, use the sum of the preset duration and the deviation duration as the new preset duration, and send the first signal to the master node in advance by the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat;

[0130] Step S310: If the deviation duration is not received again within the preset duration, the preset duration and half of the deviation duration are used as the transmission delay between the slave node and the master node; and synchronization is performed with the master node based on the transmission delay;

[0131] Step S320: If the deviation duration is received again within the preset duration, a new first local signal sending beat is generated based on the second number of the second signal carrying the deviation duration, and the step of adding the preset duration and the deviation duration as the new preset duration is executed.

[0132] In this embodiment, when sending the first signal from the node to the master node, in addition to sending the first signal at the position of the first beat point corresponding to the first signal, it can also be sent in advance relative to the first signal. Specifically, when sending the first signal from the node to the master node, it will first determine the first beat point corresponding to the first number of the first signal in the sending beat of the first local signal, and then send the first signal in advance of the first beat point by a preset time length, wherein the preset time length is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal. The initial value of the preset time length can be a default value set by a technician, and the transmission delay between the two nodes can be estimated, and twice the transmission delay can be used as the preset time length, for example, any value selected in the interval [0, c] can be used as the estimated transmission delay, wherein c is the protection time interval reserved for the signal sent by the node during design, which is determined by the characteristics of the signal itself and will not be repeated here. As shown in FIG. Figure 7, is a schematic diagram of a scenario in which the first signal is sent in advance in the wireless network node synchronization method of the present application, the figure includes the first signal and the first local signal sending beat, wherein the first signal is numbered 3 (i.e., the first number is 3), and each beat point of the first local signal sending beat corresponds to a number. In the case of not sending in advance, the first signal will be sent at the beat point of the first local signal sending beat 3 at the corresponding moment of local time (i.e., the above-mentioned first moment), but in this embodiment, when sending a signal from the node to the master node, it will be sent in advance, such as Figure 7 In the example, the first signal numbered 3 will be sent to the master node in advance by 3 beat points d in the first local signal sending beat (i.e. the above-mentioned preset duration). It can be understood that if the actual first local signal sending beat lags behind the second local signal sending beat by one transmission time, and the preset duration in advance is exactly two transmission delays, then the actual receiving moment of the master node receiving the first signal is the same as the second moment corresponding to the first number of the first signal in the second local signal sending beat of the master node. At this point, it can be determined that the first local signal sending beat does lag behind the second local signal sending beat by one transmission time, the time period of one transmission time is half of the preset duration, and the synchronization between the slave node and the master node is completed. As shown in the reference Figure 8 , which is a schematic diagram of the first signal transmission and reception scenario in the wireless network node synchronization method of the present application. In order to clearly illustrate the scenario, the following settings are made: the first local signal transmission beat of the slave node lags behind the second local signal transmission beat c of the master node (c is set to be equivalent to the length of a subframe in the wireless frame), and the corresponding setting is that the transmission delay required for the slave node to send a wireless frame to the master node is also c. Figure 8 In the example, the slave node sends the first signal numbered 3 to the master node after a preset time (twice the transmission delay, i.e., twice c, for example, the first signal numbered 3 is sent at beat point 1 in the figure). After the transmission delay c, the master node actually receives the first signal at the time corresponding to beat point 3 of the second local signal transmission beat, i.e., the actual reception time is the same as the second time. Conversely, if the master node's actual reception time of the first signal is different from the second time corresponding to the first number of the first signal in the master node's second local signal transmission beat, the master node will send the difference between the two times to the slave node.

[0133] After the master node receives the first signal sent by the slave node, it will generate a deviation duration based on the first signal, that is, the master node receives the first signal sent by the slave node; compares the second moment corresponding to the first number of the first signal in the second local signal sending beat with the actual receiving moment of the first signal, and obtains the deviation duration between the second moment and the actual receiving moment; and sends the deviation duration to the slave node so that the slave node generates a transmission delay based on the deviation duration. Specifically, when the slave node receives the deviation duration sent by the master node, it will generate a transmission delay between the master node and the master node based on the preset duration and the deviation duration. If the first local signal sending beat lags behind the second local signal sending beat by a transmission delay, the slave node will use half of the sum of the preset duration and the deviation duration as the transmission delay between the master node and the master node (e.g., transmission delay = (d+d1) / 2, where d is the preset duration and d1 is the deviation duration).

[0134] In addition, it should be noted that, in theory, when calculating the transmission delay, the slave node only needs to receive the deviation duration sent by the master node once, and use half of the sum of the deviation duration and the preset duration as the transmission delay. However, in actual application, the transmission delay calculated at this time may be inaccurate due to objective factors such as hardware or transmission. In this regard, to further ensure the accuracy of the calculated transmission delay, after receiving the deviation duration sent by the master node, the slave node does not directly calculate the transmission delay, but uses the sum of the preset duration and the received deviation duration as the new preset duration, and executes the step of sending the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat. The specific process is not repeated here. It can be understood that if the newly obtained preset duration is actually twice the transmission delay, the master node will obtain a deviation duration of zero after receiving the first signal. In order to reduce the communication overhead between the two nodes, the master node can stop sending the deviation duration. On the contrary, if the newly obtained preset duration is not actually twice the transmission delay, the deviation duration obtained by the master node after receiving the first signal is not zero, and the master node can continue to send the deviation duration to ensure the accuracy of the calculated transmission delay.

[0135] Furthermore, if the slave node does not receive the deviation duration within the preset duration, it means that the deviation duration calculated by the master node is zero or smaller, and the slave node then uses half of the preset duration at this time as the transmission delay between it and the master node. The preset duration can be set by technicians according to actual conditions and is not specifically limited here. In actual applications, especially in wireless network scenarios, the positions of various network nodes may move. For example, after the position of the slave node or the master node moves, the transmission delay between the two nodes will change, and the master node will also send a deviation duration accordingly. Specifically, if the slave node receives the deviation duration within the preset duration, in addition to executing the step of adding the preset duration and the deviation duration as the new preset duration, in order to further ensure the accuracy of the calculated transmission delay, the slave node will reinitialize the first local signal sending beat, that is, based on the second number alignment of the second signal carrying the deviation duration, a new first local signal sending beat is generated. The alignment generation process can be referred to the above content and will not be repeated here.

[0136] It is understandable that in this embodiment, when the slave node sends the first signal, it will be sent in advance for a preset time period, so that the master node can determine whether it is synchronized with the slave node without knowing the transmission delay. For example, in the case of synchronization and the slave node sends the first signal in advance, the deviation duration calculated by the master node will remain zero or close to zero. However, in the case of synchronization and the slave node does not send the first signal in advance, the deviation duration calculated by the master node is not zero and has a corresponding relationship with the transmission time. In the case that the slave node does not send the first signal in advance, the master node cannot compare the calculated deviation duration with zero to simply determine whether the slave node is synchronized with the master node.

[0137] Further, refer to Figure 4 Based on the second embodiment of the wireless network node synchronization method of the present application, a third real-time example of the wireless network node synchronization method of the present application is proposed.

[0138] Before the step of sending the first signal to the master node in advance of the first beat point by a preset time length, the method further includes:

[0139] Step S11, receiving preset prior information sent by the master node;

[0140] Step S12, calculating the transmission distance of the signal between the slave node and the master node according to the transmission loss of the preset prior information;

[0141] Step S13, calculating the transmission time of the signal between the slave node and the master node according to the transmission distance;

[0142] Step S14: twice the transmission duration is used as the initial preset duration.

[0143] In this embodiment, a method for estimating an initial preset duration is mainly provided. The slave node can estimate the transmission delay based on preset a priori information sent by the master node. For example, the slave node has preset a priori information Ps of the master node's transmit power (this information can be broadcast by the master node, obtained by the slave node in a one-to-one manner, or specified in a protocol). Based on the actual received power Pr of the preset a priori information, the slave node can estimate the path propagation loss PL between the master and slave nodes as Ps - Pr. Based on the path loss PL, the propagation distance can be estimated (different scenarios have corresponding path loss models, and the path loss value has a functional relationship with the propagation distance. For example, the free space path loss model is: PL = 201g(F) + 201g(D) + 32.4, where F is the frequency, which is known to both the sender and receiver, and D is the propagation distance in kilometers. Therefore, knowing PL allows D to be inferred). The transmission delay can then be calculated based on the propagation distance D and the speed of light. Furthermore, the transmission delay can be calculated by building a database of Ps - Pr and propagation delay using historical data, and then using a table lookup to determine the transmission delay. It is understandable that in this implementation, the number of times the master node sends the deviation duration will be reduced by generating an accurate preset duration, thereby reducing the network overhead required for synchronization.

[0144] Further, refer to Figure 5 In a fourth embodiment of the wireless network node synchronization method of the present application, the wireless network includes a master node and a slave node, and the wireless network node synchronization method is applied to the master node. In this embodiment, the same or similar contents as the above embodiments may be referred to above and will not be described in detail. The method includes:

[0145] Step B10: Sending a second signal to the slave node based on the second local signal sending beat, wherein the second signal is used by the slave node to generate the first local signal sending beat;

[0146] In this embodiment, when the master node sends the second signal to the slave node, it sends the second signal at the beat point corresponding to the second number of the second signal in the second local signal transmission beat. The slave node uses the time of receiving the second signal as a reference beat point and the second number of the second signal as the number of the reference beat point. It generates the first local signal transmission beat based on the preset beat interval between the reference beat points. This results in the generated first local signal transmission beat lagging behind the second local timing signal by a transmission delay.

[0147] Step B20, receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat;

[0148] Specifically, the master node receives the first signal sent by the slave node based on the first number of the first signal at the position of the first beat point corresponding to the first number in the first local signal sending beat. For example, if the first signal with the first number 3 is sent, the corresponding beat point numbered 3 in the first local signal sending beat is sent.

[0149] Step B30: Compare the second time of the second beat point corresponding to the first number of the first signal in the second local signal sending beat with the actual receiving time of the first signal to obtain a deviation time length;

[0150] Specifically, the master node subtracts the actual receiving moment of the first signal from the second moment of the second beat point corresponding to the first number of the first signal in the second local signal sending beat to obtain the deviation duration.

[0151] Step B40: Send the deviation duration to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node.

[0152] Specifically, the master node sends the calculated deviation duration to the slave node, so that the slave node can generate a transmission delay based on the deviation duration. For example, when the first local signal sending beat lags behind the second local timing signal by a transmission delay, the slave node can use half of the deviation duration as the transmission delay.

[0153] In this embodiment, the master node sends a second signal to the slave node based on the second local signal sending beat, wherein the second signal is used by the slave node to generate the first local signal sending beat; receives the first signal sent by the slave node based on the first signal at the first beat point corresponding to the first local signal sending beat; compares the second moment of the second beat point corresponding to the first number of the first signal in the second local signal sending beat with the actual receiving moment of the first signal to obtain a deviation duration; sends the deviation duration to the slave node so that the slave node can generate a transmission delay based on the deviation duration and synchronize with the master node. That is, in this application, the slave node sends the first signal to the master node based on local timing, the master node obtains the deviation duration by comparing the first signal with its own local signal sending beat and sends it to the slave node, and the slave node obtains the transmission delay between the slave node and the master node upon receiving the deviation duration, thereby achieving time synchronization between the two nodes based on the transmission delay. Compared to the existing timestamp-based synchronization mechanism, the signal used to achieve synchronization in this application does not need to include a timestamp, and only needs to receive the timing signal sent by the master node once, which greatly reduces the network overhead required for synchronization and meets the application scenario with relatively low throughput of industrial networks. In addition, for the first signal sent by the slave node, the master node will compare the second moment corresponding to the first signal in the local timing signal with its actual reception moment to obtain the deviation duration, thereby achieving rapid judgment and perception of whether the master node and the slave node are synchronized, and then send the corresponding deviation duration to the slave node, thereby achieving rapid correction of the deviation between the two nodes and achieving synchronization.

[0154] Further, refer to Figure 6 Based on the fourth embodiment of the wireless network node synchronization method of the present application, a fifth embodiment of the wireless network node synchronization method of the present application is proposed. In this embodiment, the same or similar contents as the above embodiments can be referred to the above introduction and will not be described in detail later. The method includes:

[0155] Step B100: Sending a second signal to the slave node based on the second local signal sending beat, wherein the second signal is used by the slave node to generate the first local signal sending beat;

[0156] Step B200: receiving the first signal sent by the slave node a preset time ahead of a first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time ahead is a difference between a first moment corresponding to the first beat point and an actual sending moment of the first signal;

[0157] Step B300: Compare the second time of the second beat point corresponding to the first number of the first signal in the second local signal sending beat with the actual receiving time of the first signal to obtain a deviation duration;

[0158] Step B400, determining whether the length of the deviation time is within a preset allowable error range;

[0159] Step B410: If the length of the deviation time is within a preset allowable error range, it is determined that the master node is synchronized with the slave node;

[0160] Step B420: If the length of the deviation duration is not within the preset allowable error range, it is determined that the slave node is out of synchronization with the slave node, and the deviation duration is sent to the slave node so that the slave node can generate a transmission delay based on the deviation duration and synchronize with the master node.

[0161] Specifically, when the master node receives the first signal sent in advance by the slave node, the master node will determine the actual receiving time of the first signal. Then, it will obtain the first number corresponding to the first signal from the first signal, determine the time (i.e., the second time) of the beat point corresponding to the first frame code in the second timing signal, and make a difference between the actual receiving time and the second time, thereby comparing and obtaining the deviation time between the second time and the actual receiving time. Figure 9 , a schematic diagram of the receiving scenario of the first signal in the wireless network node synchronization method of the present application, in which the slave node sends the first signal numbered 3 to the master node in advance for a preset duration d based on the first local signal sending beat, and the master node compares the actual receiving time of the received first signal numbered 3 with the second time corresponding to the beat point numbered 3 in the second local signal sending beat to obtain the deviation duration d1.

[0162] Furthermore, in order to balance the accuracy of calculating the transmission delay and the overhead required for synchronization, the master node can judge the size of the deviation duration before sending the deviation duration to the slave node, such as judging whether the deviation duration is within the preset allowable error range [-n, n]. If it is within the preset allowable error range, the master node determines that it is synchronized with the slave node and stops sending the deviation duration to the slave node. Conversely, if the length of the deviation duration is not within the preset allowable error range, the master node determines that it is not synchronized with the slave node and sends the deviation duration to the slave node. To ensure the accuracy of the calculated transmission delay, the judgment condition of the deviation duration can also be set to judge whether the deviation duration is zero. If it is zero, it is determined to be synchronized with the slave node and stop sending the deviation duration to the slave node; if it is not zero, it is determined to be not synchronized with the slave node and send the deviation duration to the slave node. This allows the slave node to calculate the transmission delay based on the deviation duration and complete the time synchronization between the two nodes. In addition, it should be noted that the deviation duration is usually added to the second signal sent by the master node to the slave node and sent together. If the second signal at this time does not have enough time slots to store the deviation duration, it can also be chosen not to send the deviation delay, and wait until the next deviation duration is calculated and there are enough time slots in the second signal before sending it. It can be understood that the master node will calculate the deviation duration for the first signal sent by the slave node, thereby achieving fast perception of the master-slave node asynchrony, and when it perceives that different situations have occurred, it will send the deviation duration to the slave node to quickly correct the deviation between the two nodes and achieve synchronization.

[0163] In addition, an embodiment of the present application further provides a wireless network node synchronization system, the wireless network node synchronization system comprising:

[0164] The slave node is configured to use the moment of receiving the second signal sent by the master node as a reference beat point, use the second number of the second signal as the number of the reference beat point, and generate a first local signal sending beat based on a preset beat interval between the reference beat points;

[0165] Sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal;

[0166] receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration;

[0167] Synchronize with the master node based on the transmission delay;

[0168] The master node is configured to send a second signal to the slave node based on a second local signal sending beat;

[0169] receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat;

[0170] Compare the second moment of the second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with the actual receiving moment of the first signal to obtain a deviation duration;

[0171] The deviation duration is sent to the slave node.

[0172] Optionally, the slave node is further configured to:

[0173] Determining the first beat point corresponding to the first number in the first local signal sending beat;

[0174] The first signal is sent to the master node a preset time ahead of the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0175] Optionally, the slave node is further configured to:

[0176] Using the sum of the preset duration and the deviation duration as the new preset duration, and sending the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat;

[0177] If the deviation duration is not received again within the preset duration, the preset duration and half of the deviation duration are used as the transmission delay between the slave node and the master node;

[0178] If the deviation duration is received again within the preset duration, a new first local signal sending beat is generated based on the second number of the second signal carrying the deviation duration, and the step of taking the sum of the preset duration and the deviation duration as the new preset duration is executed.

[0179] Optionally, the slave node is further configured to:

[0180] Receiving preset prior information sent by the master node;

[0181] Calculating the transmission distance of the signal between the slave node and the master node according to the transmission loss of the preset prior information;

[0182] Calculating the transmission time of the signal between the slave node and the master node according to the transmission distance;

[0183] Twice the transmission duration is used as the initial preset duration.

[0184] Optionally, the master node is further configured to:

[0185] Receive the first signal sent by the slave node in advance of a preset time length relative to the first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time length is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0186] Optionally, the master node is further configured to:

[0187] Determine whether the length of the deviation time is within a preset allowable error range;

[0188] If the length of the deviation time is within a preset allowable error range, it is determined that the master node is synchronized with the slave node;

[0189] If the length of the deviation duration is not within the preset allowable error range, it is determined that the slave node is out of synchronization, and the deviation duration is sent to the slave node.

[0190] The wireless network node synchronization system provided by this application utilizes the wireless network node synchronization system method of the aforementioned embodiment to resolve the technical issue of high overhead associated with current timestamp-based synchronization machines. Compared to the prior art, the beneficial effects of the electronic device provided by the embodiment of this application are the same as those of the wireless network node synchronization method provided by the aforementioned embodiment 1. Other technical features of the wireless network node synchronization system are the same as those disclosed in the aforementioned embodiment method and are not further described here.

[0191] In addition, refer to Figure 10 The embodiment of the present application further provides a wireless network node synchronization device 100A, wherein the wireless network node includes a master node and a slave node. The wireless network node synchronization device 100A is applied to the slave node. The wireless network node synchronization device 100A includes:

[0192] The first generating module 10A is configured to use the moment of receiving the second signal sent by the master node as a reference beat point, use the second number of the second signal as the number of the reference beat point, and generate a first local signal sending beat based on a preset beat interval between the reference beat points;

[0193] A first sending module 20A is configured to send the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal;

[0194] a second generating module 30A, configured to receive a deviation duration generated by the master node based on the first signal, and generate a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat by the master node with the actual receiving moment of the first signal by the master node;

[0195] The synchronization module 40A is configured to synchronize with the master node based on the transmission delay.

[0196] Optionally, the first sending module 10A is further configured to:

[0197] Determining the first beat point corresponding to the first number in the first local signal sending beat;

[0198] The first signal is sent to the master node a preset time ahead of the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0199] Optionally, the second generating module 30A is further configured to:

[0200] Using the sum of the preset duration and the deviation duration as the new preset duration, and sending the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat;

[0201] If the deviation duration is not received again within the preset duration, the preset duration and half of the deviation duration are used as the transmission delay between the slave node and the master node;

[0202] If the deviation duration is received again within the preset duration, a new first local signal sending beat is generated based on the second number of the second signal carrying the deviation duration, and the step of taking the sum of the preset duration and the deviation duration as the new preset duration is executed.

[0203] Optionally, the wireless network node synchronization apparatus 100A further includes a priori module 50A, and the priori module 50A is configured to:

[0204] Receiving preset prior information sent by the master node;

[0205] Calculating the transmission distance of the signal between the slave node and the master node according to the transmission loss of the preset prior information;

[0206] Calculating the transmission time of the signal between the slave node and the master node according to the transmission distance;

[0207] Twice the transmission duration is used as the initial preset duration.

[0208] In addition, refer to Figure 11 The embodiment of the present application further provides another wireless network node synchronization device 100B, wherein the wireless network node includes a master node and a slave node. The wireless network node synchronization device 100B is applied to the master node, and the wireless network node synchronization device 100B includes:

[0209] A second sending module 10B is configured to send a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate a first local signal sending beat;

[0210] A first receiving module 20B is configured to receive the first signal sent by the slave node at a first beat point corresponding to the first local signal sending beat based on the first signal;

[0211] A comparing module 30B is configured to compare a second time point of a second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with an actual receiving time point of receiving the first signal to obtain a deviation duration;

[0212] The third sending module 40B sends the deviation duration to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node.

[0213] Optionally, the first receiving module 20B is further configured to:

[0214] Receive the first signal sent by the slave node in advance of a preset time length relative to the first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time length is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal.

[0215] Optionally, the third sending module 40B is further configured to:

[0216] Determine whether the length of the deviation time is within a preset allowable error range;

[0217] If the length of the deviation time is within a preset allowable error range, it is determined that the master node is synchronized with the slave node;

[0218] If the length of the deviation duration is not within the preset allowable error range, it is determined that the slave node is out of synchronization, and the deviation duration is sent to the slave node.

[0219] The wireless network node synchronization device provided in this application utilizes the wireless network node synchronization method described in the aforementioned embodiments to address the high overhead associated with current timestamp-based synchronization mechanisms. Compared to the prior art, the wireless network node synchronization device provided in this application's embodiments achieves the same beneficial effects as the wireless network node synchronization method described in the aforementioned embodiments. Other technical features of the wireless network node synchronization device are the same as those disclosed in the aforementioned embodiments and are not further detailed here.

[0220] In addition, an embodiment of the present application also proposes a wireless network node synchronization device, which includes: a memory, a processor, and a wireless network node synchronization program stored on the memory and runnable on the processor. When the wireless network node synchronization program is executed by the processor, the steps of the wireless network node synchronization method as described above are implemented.

[0221] The specific implementation of the wireless network node synchronization device of the present application is basically the same as the embodiments of the wireless network node synchronization method described above, and will not be repeated here.

[0222] In addition, an embodiment of the present application further provides a readable storage medium, on which a wireless network node synchronization program is stored. When the wireless network node synchronization program is executed by a processor, the steps of the wireless network node synchronization method described above are implemented.

[0223] The specific implementation of the medium of the present application is basically the same as the embodiments of the wireless network node synchronization method described above, and will not be repeated here.

[0224] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0225] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0226] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0227] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A wireless network node synchronization method, characterized in that: The wireless network node includes a master node and a slave node, and the wireless network node synchronization method is applied to the slave node. The method includes the following steps: The time when the second signal sent by the master node is received is used as a reference beat point, the second number of the second signal is used as the number of the reference beat point, and the first local signal sending beat is generated based on the preset beat interval between the reference beat points; Sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal; receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing the second moment of the second beat point corresponding to the first number in the second local signal sending beat by the master node with the actual receiving moment of the first signal by the master node; Synchronize with the master node based on the transmission delay; The step of sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal includes: Determining the first beat point corresponding to the first number in the first local signal sending beat; Sending the first signal to the master node a preset time in advance relative to the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal; The step of generating the transmission delay between the slave node and the master node based on the deviation duration includes: Using the sum of the preset duration and the deviation duration as the new preset duration, and sending the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat; If the deviation duration is not received again within the preset duration, the preset duration and half of the deviation duration are used as the transmission delay between the slave node and the master node; If the deviation duration is received again within the preset duration, a new first local signal sending beat is generated based on the second number of the second signal carrying the deviation duration, and the step of taking the sum of the preset duration and the deviation duration as the new preset duration is executed.

2. The wireless network node synchronization method according to claim 1, wherein: Before the step of sending the first signal to the master node in advance of the first beat point by a preset time length, the method further includes: Receiving preset prior information sent by the master node; Calculating the transmission distance of the signal between the slave node and the master node according to the transmission loss of the preset prior information; Calculating the transmission time of the signal between the slave node and the master node according to the transmission distance; Twice the transmission duration is used as the initial preset duration.

3. A wireless network node synchronization method, characterized in that: The wireless network node includes a master node and a slave node, and the wireless network node synchronization method is applied to the master node. The method includes the following steps: Sending a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate a first local signal sending beat; receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat; Compare the second moment of the second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with the actual receiving moment of the first signal to obtain a deviation duration; Sending the deviation duration to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node; The step of receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat includes: receiving the first signal sent by the slave node a preset time length in advance of a first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time length is a difference between a first moment corresponding to the first beat point and an actual sending moment of the first signal; The step of sending the deviation duration to the slave node includes: Determine whether the length of the deviation time is within a preset allowable error range; If the length of the deviation time is within a preset allowable error range, it is determined that the master node is synchronized with the slave node; If the length of the deviation duration is not within the preset allowable error range, it is determined that the slave node is out of synchronization, and the deviation duration is sent to the slave node.

4. A wireless network node synchronization system, characterized in that: The wireless network node synchronization system includes: The slave node is configured to use the moment of receiving the second signal sent by the master node as a reference beat point, use the second number of the second signal as the number of the reference beat point, and generate a first local signal sending beat based on a preset beat interval between the reference beat points; Sending the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on the first number of the first signal; receiving a deviation duration generated by the master node based on the first signal, and generating a transmission delay between the slave node and the master node based on the deviation duration; Synchronize with the master node based on the transmission delay; The master node is configured to send a second signal to the slave node based on a second local signal sending beat; receiving the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat; Compare the second moment of the second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with the actual receiving moment of the first signal to obtain a deviation duration; Sending the deviation duration to the slave node; The slave node is further configured to: determine the first beat point corresponding to the first number in the first local signal sending beat; and send the first signal to the master node a preset time in advance of the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal; The slave node is further configured to: take the sum of the preset duration and the deviation duration as the new preset duration, and send the first signal to the master node in advance by the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat; if the deviation duration is not received again within the preset duration, take the preset duration and half of the deviation duration as the transmission delay between the slave node and the master node; if the deviation duration is received again within the preset duration, generate a new first local signal sending beat based on the second number of the second signal carrying the deviation duration, and execute the step of taking the sum of the preset duration and the deviation duration as the new preset duration; The master node is further configured to: receive the first signal sent by the slave node at a preset time in advance relative to a first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time is a difference between a first moment corresponding to the first beat point and an actual sending moment of the first signal; The master node is also used to: take the sum of the preset duration and the deviation duration as the new preset duration, and send the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat; if the deviation duration is not received again within the preset duration, take the preset duration and half of the deviation duration as the transmission delay between the slave node and the master node; if the deviation duration is received again within the preset duration, generate a new first local signal sending beat based on the second number of the second signal carrying the deviation duration, and execute the step of taking the sum of the preset duration and the deviation duration as the new preset duration.

5. A wireless network node synchronization device, characterized in that: The wireless network node includes a master node and a slave node, and the wireless network node synchronization device is applied to the slave node. The wireless network node synchronization device includes: A first generating module is configured to use the moment when the second signal sent by the master node is received as a reference beat point, use the second number of the second signal as the number of the reference beat point, and generate a first local signal sending beat based on a preset beat interval between the reference beat points; A first sending module, configured to send the first signal to the master node at a first beat point corresponding to the first local signal sending beat based on a first number of the first signal; a second generating module, configured to receive a deviation duration generated by the master node based on the first signal, and generate a transmission delay between the slave node and the master node based on the deviation duration, wherein the deviation duration is generated by comparing a second moment of a second beat point corresponding to the first number in a second local signal sending beat by the master node with an actual receiving moment of the first signal by the master node; a synchronization module, configured to synchronize with the master node based on the transmission delay; The first sending module is further configured to: determine the first beat point corresponding to the first number in the first local signal sending beat; and send the first signal to the master node a preset time in advance of the first beat point, wherein the preset time is the difference between the first moment corresponding to the first beat point and the actual sending moment of the first signal; The second generating module is also used to: take the sum of the preset duration and the deviation duration as the new preset duration, and send the first signal to the master node in advance of the preset duration relative to the first beat point corresponding to the first signal in the first local signal sending beat; if the deviation duration is not received again within the preset duration, take the preset duration and half of the deviation duration as the transmission delay between the slave node and the master node; if the deviation duration is received again within the preset duration, generate a new first local signal sending beat based on the second number of the second signal carrying the deviation duration, and execute the step of taking the sum of the preset duration and the deviation duration as the new preset duration.

6. A wireless network node synchronization device, characterized in that: The wireless network node includes a master node and a slave node. The wireless network node synchronization device is applied to the master node. The wireless network node synchronization device includes: A second sending module is configured to send a second signal to the slave node based on a second local signal sending beat, wherein the second signal is used by the slave node to generate the first local signal sending beat; A first receiving module is configured to receive the first signal sent by the slave node based on the first signal at a first beat point corresponding to the first local signal sending beat; A comparison module, configured to compare a second moment of a second beat point corresponding to the first number of the first signal in the sending beat of the second local signal with an actual receiving moment of the first signal to obtain a deviation duration; A third sending module sends the deviation duration to the slave node, so that the slave node generates a transmission delay based on the deviation duration and synchronizes with the master node; The first receiving module is further configured to: receive the first signal sent by the slave node in advance of a preset time length relative to a first beat point corresponding to the first signal in the first local signal sending beat, wherein the preset time length is a difference between a first moment corresponding to the first beat point and an actual sending moment of the first signal; The third sending module is also used to: determine whether the length of the deviation duration is within the preset allowable error range; if the length of the deviation duration is within the preset allowable error range, determine that the master node is synchronized with the slave node; if the length of the deviation duration is not within the preset allowable error range, determine that it is not synchronized with the slave node, and send the deviation duration to the slave node.

7. A wireless network node synchronization device, characterized in that: The wireless network node synchronization device includes: a memory, a processor, and a wireless network node synchronization program stored in the memory and executable on the processor. When the wireless network node synchronization program is executed by the processor, the steps of the wireless network node synchronization method according to any one of claims 1 to 3 are implemented.

8. A readable storage medium, characterized in that: The readable storage medium stores a wireless network node synchronization program, which, when executed by a processor, implements the steps of the wireless network node synchronization method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and network node for facilitating timing synchronization in network

    CN106797247A

  • Clock synchronization device and method for wireless distributed network

    CN113055117A