Node synchronization method and device for wireless ad hoc network

By sending broadcast messages to synchronization reference nodes in the wireless ad hoc network and adjusting the time slot start time, the problem of time slot synchronization between nodes in the non-centered wireless ad hoc network is solved, and stable synchronization and normal operation of communication between nodes are achieved.

CN118695350APending Publication Date: 2024-09-24SHENZHEN ZTE TRUNKING TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310301383.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In a centerless wireless ad hoc network, it is difficult to maintain time slot synchronization between nodes, resulting in unstable communication. It is difficult for existing technologies to effectively solve this problem.

Method used

By sending the first system broadcast message to the predetermined synchronization reference node at the time slot start time of the wireless ad hoc network node, receiving and adjusting the time slot start time according to the first time deviation so that it is consistent with the time slot start time of the synchronization reference node. Alignment to achieve time slot synchronization between nodes.

Benefits of technology

It effectively solves the problem of time slot synchronization between nodes in a centerless wireless ad hoc network, avoids communication interruption caused by central node failure, maintains the synchronization consistency of time slots between nodes, and ensures normal communication in the ad hoc network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695350A
    Figure CN118695350A
Patent Text Reader

Abstract

The embodiment of the invention provides a node synchronization method and device for a wireless ad hoc network, and the method comprises the steps: transmitting a first system broadcast message to a predetermined synchronization reference node at a time slot starting moment of a current node, and receiving a second system broadcast message sent by the synchronous reference node after determining a first time deviation between the synchronous reference node and the current node, and adjusting the time slot starting moment of the current node according to the first time deviation, so that the time slot starting moment of the current node is aligned with the time slot starting moment of the synchronous reference node. According to the embodiment of the invention, the problem that the time slot synchronization cannot be kept between the nodes in the centerless wireless ad hoc network in the related technology can be solved, the time slot synchronization between the nodes in the ad hoc network is kept in a centerless mode, and the normal communication of the ad hoc network is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method and device for synchronizing nodes in a wireless ad hoc network. Background Art

[0002] Time division multiple access is a widely used channel access method in wireless ad hoc networks. In ad hoc networks that use time division multiple access channel access, nodes need to maintain a time reference benchmark to achieve conflict-free time division multiple access communication. For decentralized wireless ad hoc networks, the traditional method is to set up a fixed central node or a temporary central node to unify the clock, but this method does not achieve a truly decentralized network.

[0003] In the prior art, one solution is to select a specific node in the ad hoc network as the synchronization source, and other nodes use the synchronization source node as a time reference. The main problem with this solution is that once the central node fails, the ad hoc network will be unavailable for a certain period of time. Another solution is to use a distributed clock solution, where each node maintains a synchronization clock and adjusts the time slot synchronization. The problem with this solution is that it is difficult to maintain the convergence of the ad hoc network synchronization clock, and time slot asynchronism is likely to occur between different nodes after a period of working time.

[0004] Therefore, there is no good solution to the problem in the related art that the time slot synchronization cannot be maintained between nodes in a decentralized wireless ad hoc network. Summary of the invention

[0005] The embodiments of the present application provide a method and device for synchronizing nodes in a wireless ad hoc network, so as to at least solve the problem in the related art that time slot synchronization cannot be maintained between nodes in a decentralized wireless ad hoc network.

[0006] According to one embodiment of the present application, a node synchronization method for a wireless self-organizing network is provided, the method comprising: sending a first system broadcast message to a predetermined synchronization reference node at the start time of a time slot of a current node, wherein the current node is any member node in the wireless self-organizing network; receiving a second system broadcast message sent by the synchronization reference node after determining a first time deviation between the synchronization reference node and the current node, wherein the second system broadcast message carries a first time deviation, and the first time deviation is the difference between the time when the synchronization reference node receives the first system broadcast message and the start time of the time slot of the synchronization reference node; adjusting the start time of the time slot of the current node according to the first time deviation, so that the start time of the time slot of the current node is aligned with the start time of the time slot of the synchronization reference node.

[0007] According to another embodiment of the present application, a node synchronization device for a wireless self-organizing network is provided, and the device includes: a sending module, used to send a first system broadcast message to a predetermined synchronization reference node at the start time of the time slot of the current node, wherein the current node is any member node in the wireless self-organizing network; a receiving module, used to receive a second system broadcast message sent by the synchronization reference node after determining a first time deviation between the synchronization reference node and the current node, wherein the second system broadcast message carries a first time deviation, and the first time deviation is the difference between the time when the synchronization reference node receives the first system broadcast message and the start time of the time slot of the synchronization reference node; an adjustment module, used to adjust the start time of the time slot of the current node according to the first time deviation, so that the start time of the time slot of the current node is aligned with the start time of the time slot of the synchronization reference node.

[0008] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program executes the steps of any of the above method embodiments when executed by a processor.

[0009] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0010] Through the embodiments of the present application, time slot synchronization is performed on any member node in a wireless self-organizing network in a decentralized manner. Each member node is synchronized according to the time deviation information obtained from the corresponding synchronization reference node, thereby ensuring that the time slot deviation does not increase with time, thereby solving the problem of the inability to maintain time slot synchronization between nodes in a decentralized wireless self-organizing network in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a hardware structure block diagram of a node synchronization method for a wireless ad hoc network according to an embodiment of the present application;

[0012] Figure 2 is a flow chart of a node synchronization method for a wireless ad hoc network according to an embodiment of the present application;

[0013] Figure 3 is a schematic diagram of a physical layer frame structure of a wireless ad hoc network according to an embodiment of the present application;

[0014] Figure 4 is a schematic diagram of the structure of a system broadcast frame time slot according to an embodiment of the present application;

[0015] Figure 5 is a schematic diagram of a system broadcast message in a coarse synchronization solution according to an embodiment of the present application;

[0016] Figure 6 is a schematic diagram of node time slots in a coarse synchronization scheme according to an embodiment of the present application;

[0017] Figure 7 is a schematic diagram of a system broadcast message in a fine synchronization solution according to an embodiment of the present application;

[0018] Figure 8 is a schematic diagram of node time slots in a fine synchronization scheme according to an embodiment of the present application;

[0019] Fig. 9 It is a block diagram of a node synchronization device for a wireless ad hoc network according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0022] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 is a hardware structure block diagram of a node synchronization method for a wireless ad hoc network according to an embodiment of the present application, such as Figure 1 As shown, the hardware board may include one or more ( Figure 1 Only one is shown in the figure) a processor 12 (the processor 12 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device) and a memory 14 for storing data, wherein the mobile terminal may also include a transmission device 16 for communication functions and an input and output device 18. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0023] The memory 14 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the node synchronization method of the wireless ad hoc network in the embodiment of the present application. The processor 12 executes various functional applications and the node synchronization method of the wireless ad hoc network by running the computer program stored in the memory 14, that is, to implement the above method. The memory 14 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 14 may further include a memory remotely arranged relative to the processor 12, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0024] The transmission device 16 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider. In one example, the transmission device 16 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 16 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0025] In one embodiment of the present application, a node synchronization method for a wireless ad hoc network is provided. Figure 2 is a flowchart of a node synchronization method for a wireless ad hoc network according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0026] Step S202, sending a first system broadcast message to a predetermined synchronization reference node at the start time of the time slot of the current node;

[0027] Step S204, receiving a second system broadcast message sent by the synchronization reference node after determining a first time offset between the synchronization reference node and the current node;

[0028] Step S206: adjust the time slot start time of the current node according to the first time offset, so that the time slot start time of the current node is aligned with the time slot start time of the synchronization reference node.

[0029] In this embodiment, the current node in step S202 may be any member node in the wireless ad hoc network.

[0030] In this embodiment, the second system broadcast message in step S204 carries a first time offset. Specifically, the first time offset is the difference between the time when the synchronization reference node receives the first system broadcast message and the time slot start time of the synchronization reference node.

[0031] In one embodiment, step S202 may specifically include: broadcasting a first system broadcast message at the start time of the time slot of the current node.

[0032] Furthermore, the first system broadcast message carries a node identifier of a synchronization reference node, and the first system broadcast message is used to instruct any member node that receives the first system broadcast message to determine the first time deviation when its own node identifier is consistent with the node identifier of the synchronization reference node. Correspondingly, if the node identifier of a member node that receives the first system broadcast message is inconsistent, the member node can ignore the first system broadcast message and does not perform subsequent processing.

[0033] In another embodiment, before step S202, the method may further include the following steps:

[0034] Step S2012, receiving a third system broadcast message sent by any member node other than the current node in the wireless ad hoc network;

[0035] Step S2014, when the current node is in a non-networked state, selecting one from the member nodes that send the third system broadcast message as the synchronization reference node, and determining the time when the third system broadcast message sent by the synchronization reference node is received as the time slot start time of the current node;

[0036] Step S2016: When the current node is in a networked state, one or more member nodes that send the third system broadcast message are selected as the synchronization reference nodes.

[0037] In this embodiment, selecting one from the member nodes that send the third system broadcast message as the synchronization reference node in step S2014 may specifically include: determining the signal strength of each of the third system broadcast messages respectively; and determining the member node of the third system broadcast message that sends the largest signal strength as the synchronization reference node.

[0038] Furthermore, different weights can be set for different member nodes, and a synchronization reference node can be selected in combination with multiple parameters. The basis for selecting the synchronization reference node in step S2016 is similar to that in step S2014, except that when the current node is not in the network state, in order to achieve rapid network access, only one synchronization reference node needs to be selected for synchronization, and when the current node is in the network state, in order to achieve rapid convergence of the wireless ad hoc network, multiple synchronization reference nodes can be selected for synchronization.

[0039] In an optional embodiment, after step S202, the method may further include: if the second system broadcast message is not received within a preset time or the second system broadcast message does not carry the first time deviation, reselecting a new synchronization reference node from other member nodes that send the third system broadcast message other than the synchronization reference node; determining the time when the third system broadcast message sent by the new synchronization reference node is received as the time slot start time of the current node; and sending the first system broadcast message to the new synchronization reference node at the re-determined time slot start time of the current node.

[0040] Furthermore, when reselecting the synchronization reference node, a selection can be made based on signal strength. For example, the synchronization reference node selects the member node corresponding to the third system broadcast message with the largest signal strength, and when reselecting, the member node corresponding to the third system broadcast message with the second largest signal strength can be selected.

[0041] The embodiments of the present application can avoid the situation where, when a specific central node is used to synchronize nodes in a wireless ad hoc network, a failure of the central node will cause the entire ad hoc network to be unavailable for a certain period of time. When a node fails, a new synchronization reference node can be selected for time slot synchronization.

[0042] In this embodiment, step S206 can be divided into two adjustment modes: coarse synchronization and fine synchronization. Coarse synchronization is for initial access nodes and can facilitate nodes to quickly join the network. Fine synchronization is for nodes that have joined the network and can maintain the node time slot convergence state.

[0043] In this embodiment, step S206 may specifically include:

[0044] Step S2062, when the current node is in a non-networked state and the first time offset is one, adjusting the time slot start time of the current node in a preset time slot synchronization adjustment manner according to the first time offset, and adjusting the state of the current node to a networked state;

[0045] Step S2064, when the current node is in a networked state, the first time deviation is one or more, and the time slot start time of the current node is adjusted in a preset time slot synchronization maintaining manner according to the one or more first time deviations.

[0046] Further, step S2062 may specifically include: adjusting the time slot start time of the current node forward by a first predetermined value, wherein the first predetermined value is half of the first time deviation.

[0047] Correspondingly, step S2064 may specifically include: adjusting the time slot start time of the current node forward or backward by a second predetermined value, wherein the second predetermined value is an average value or a weighted average value of the one or more first time deviations.

[0048] The embodiment of the present application is a method for adjusting time slot synchronization or maintaining time slot synchronization under ideal conditions. Technicians can also set corresponding compensation amounts according to the transmission delay generated during the actual broadcast message transmission process, and then adjust the time slot start time of the current node in combination with other algorithms or calculation methods.

[0049] Furthermore, in an ideal state without message transmission delay, the purpose of adjustment is to align the time slot start time of each member node with each other. Step S2062, for nodes that are not connected to the wireless ad hoc network (or nodes that have not yet been synchronized), if the current node is node K, the synchronization reference node is node 1, and node K takes the time when the system message (including the synchronization sequence) is received from node 1 as the start of its own time slot, then the time slot start time of node K is offset from the time slot start time of node 1 by the path propagation delay Δt1 from node 1 to node K. Since node K cannot accurately calculate Δt1, node 1 needs to calculate the first time deviation Δt2 (i.e., the sum of the path propagation delays from node 1 to node K and from node K to node 1), and then align the two through the above step S2062.

[0050] In this embodiment, after joining the network, the node will achieve time slot synchronization with multiple nodes through step S2064, in order to prevent the time slot deviation between each node from increasing over time. Since it is difficult to truly align the time slot start times of all nodes in actual work, the technician only needs to adjust the start time of the node time slot to within a preset range according to a preset algorithm or adjustment plan.

[0051] In this embodiment, after step S2012, the method further includes step S2013, which specifically includes the following steps:

[0052] Step S2013a, when the current node is in a networked state, obtaining a synchronization sequence of a corresponding target member node from each of the third system broadcast messages;

[0053] Step S2013b, determining the time slot start time of the target member node according to the synchronization sequence of the target member node;

[0054] Step S2013c, determining the difference between the time when the current node receives the third system broadcast message and the time slot start time of the target member node as the second time offset between the current node and the target member node;

[0055] Step S2013d: performing time slot synchronization on the target member node according to the second time offset.

[0056] In this embodiment, step S2013d may specifically further include: when the synchronization reference node and the target member node are different nodes, sending a fourth system broadcast message to the target member node to align the time slot start time of the target member node with the time slot start time of the current node, wherein the fourth system broadcast message carries the second time deviation; when the synchronization reference node and the target member node are the same node, sending the second time deviation to the target member node via the first system broadcast message to align the time slot start time of the target member node with the time slot start time of the current node.

[0057] In this embodiment, the current node can be synchronized by the synchronization reference node and can also serve as the synchronization reference node of other synchronized nodes. In order to save system broadcast resources, when the synchronization reference node and the synchronized node are the same, the same broadcast message can be used to send both the synchronization request and the synchronization parameter.

[0058] In another embodiment, the system broadcast frame time slot of each member node in the wireless ad hoc network has a unique system broadcast time slot number, and each of the system broadcast frame time slots includes multiple synchronization symbols and multiple system broadcast message symbols, wherein the synchronization symbol is used to transmit the synchronization sequence of the corresponding member node, and the system broadcast message symbol is used to transmit the message content of the system broadcast message of the corresponding member node, and the synchronization symbol and the system broadcast message symbol are orthogonal frequency division multiplexing OFDM symbols.

[0059] Furthermore, each member node in the wireless ad hoc network sends a system broadcast message in its own system broadcast frame time slot, and can receive the system broadcast message in any other system broadcast frame time slot. Performing time slot synchronization adjustment can avoid the current node not completing the transmission when the broadcast message of other nodes arrives, thereby losing part of the broadcast message that arrived in advance.

[0060] In this embodiment, after step S204, the method further includes:

[0061] In a case where the node identifier of the synchronization reference node is directly carried in the second system broadcast message, acquiring the node identifier of the synchronization reference node from the second system broadcast message;

[0062] In the case where the node identifier of the synchronization reference node is indirectly carried in the second system broadcast message, the target system broadcast time slot number is determined according to the target system broadcast frame time slot that receives the second system broadcast message; based on the pre-established mapping relationship between the system broadcast time slot number and the node identifier, the node identifier of the synchronization reference node corresponding to the target system broadcast time slot number is determined.

[0063] Furthermore, each system broadcast message sent by each member node in the wireless ad hoc network can carry its own node identification Node_ID information in an explicit or implicit manner. The explicit method refers to directly sending the Node_ID information element in the system broadcast message; the implicit method is to pre-establish a mapping table between the Node_ID and the system broadcast time slot number SlotNumber, and map the Node_ID of the node that sent the system broadcast message according to the Slot Number of the received system broadcast message.

[0064] In this embodiment, a node can also serve as a synchronization reference node for multiple nodes at the same time. When the synchronization parameters (including the first / second time deviations) are sent through a system broadcast message, each time deviation corresponds to a corresponding synchronized node. The multiple nodes that receive the system broadcast message can determine whether it is their own synchronization information based on the node identifier in the synchronization parameter.

[0065] Specifically, node K is taken as the synchronization reference node and node i is taken as the synchronized node. Node i sends a broadcast message carrying the node's synchronization sequence to node K. Node K calculates the time deviation information Δt(i, k) based on the node i synchronization sequence and the start time of the time slot of node K. Node K sends a broadcast message carrying the synchronization parameter node_i_Δt. Node i will maintain time slot synchronization according to the value of the time deviation information Δt(i, k) carried in the synchronization parameter node_i_Δt.

[0066] In the embodiment of the present application, through the above steps S202 to S206, the problem that the time slot synchronization cannot be maintained between the nodes in the wireless ad hoc network without a center in the related art can be solved, and the time slot synchronization between the nodes in the ad hoc network is achieved in a centerless manner, thereby ensuring the normal communication of the ad hoc network. At the same time, since the embodiment of the present application adopts a centerless manner, the problem that the ad hoc network cannot communicate normally due to a central node failure can also be avoided.

[0067] Figure 3 Schematic diagram of the physical layer frame structure of a wireless ad hoc network according to an embodiment of the present application. Figure 3 As shown, the physical layer frame structure of the ad hoc network includes N system broadcast frames (N is equal to the maximum node data of the system).

[0068] In the broadband ad hoc network system of this embodiment, the ad hoc network node sends a system broadcast message through the system broadcast frame time slot (System Information Slot) during the initial access process of the ad hoc network.

[0069] Furthermore, during the initial access process of each node to the ad hoc network system, the node (such as node K) selects a system broadcast frame time slot for sending a system broadcast message. After the node completes the initial access, the node uses the specific system broadcast frame time slot to send the system broadcast message. In addition to sending system broadcast messages in specific system broadcast frame time slots, each node in the ad hoc network system also needs to try to receive system broadcast messages sent by other ad hoc network nodes in other system broadcast frame time slots.

[0070] Figure 4 Schematic diagram of the structure of the system broadcast frame time slot according to an embodiment of the present application. Figure 4 As shown, the system broadcast frame time slot contains synchronization symbols and system broadcast message symbols.

[0071] In this embodiment, a system broadcast frame time slot is composed of a number of orthogonal frequency division multiplexing (OFDM) symbols, wherein the OFDM symbol used to transmit the synchronization sequence is called a synchronization symbol, and the symbol used to transmit the system broadcast message content is called a system broadcast message symbol.

[0072] Figure 5 Schematic diagram of a system broadcast message in a coarse synchronization scheme according to an embodiment of the present application. Figure 5 As shown, the initial access node K discovers the ad hoc network by trying to receive the "system broadcast message" sent by the nodes in the ad hoc network, and requests time slot synchronization by sending a "system broadcast message (K)" at the selected synchronization reference node.

[0073] In this embodiment, the initial access node K discovers the ad hoc network member node 1 and the ad hoc network member node 2. For example, node 1 occupies the system broadcast frame time slot 0 to send "system broadcast message (1)", and node 2 occupies the system broadcast frame time slot 2 to send "system broadcast message (2)".

[0074] In this embodiment, the "system broadcast message" sent by the node 1 and the node 2 in the ad hoc network can carry their own "node identification" Node_ID information in an explicit or implicit manner.

[0075] Specifically, the explicit method refers to directly sending the Node_ID information element in the "system broadcast message"; the implicit method is to pre-establish a mapping table between Node_ID and system broadcast time slot number Slot Number, and map the Node_ID of the node sending the system broadcast message according to the Slot Number of the received system broadcast message.

[0076] Figure 6 Schematic diagram of node time slots in a coarse synchronization scheme according to an embodiment of the present application. Figure 6 As shown, the vertical line is the time slot start time of the corresponding node. In the coarse synchronization process, the node K needs to select a synchronization reference node for coarse synchronization.

[0077] In this embodiment, the initial access node K selects node 1 in the self-organizing network as the synchronization reference point based on the signal strength of the received "system broadcast message". Node K takes the moment when the "system broadcast message (1)" (including the synchronization sequence) is received from node 1 as the start of its own time slot. At this time, the start of the time slot of node K is offset from the start of the time slot of node 1 by the path propagation delay Δt1 from node 1 to node K.

[0078] Furthermore, when initially setting the time slot start time of node K, the specific value of the path propagation delay Δt1 cannot usually be determined, and the time slot start time needs to be adjusted through a coarse synchronization scheme to align the time slots of node K with those of node 1.

[0079] In this embodiment, after determining the start position of the time slot, node K sends a "system broadcast message (K)" at the start position of its own time slot. After receiving the "system broadcast message (K)" sent by node K, node 1 calculates the time deviation Δt2 of the synchronization sequence received by node 1 from node K, and carries the value of the time deviation Δt2 through the synchronization parameter node_K_Δt2 in the next "system broadcast message (1)". Node K attempts to receive the "system broadcast message (1)" in the system broadcast frame time slot of node 1, and adjusts its own time slot start position after obtaining the value of the time deviation Δt2 carried in the node_K_Δt2 information.

[0080] Specifically, the time deviation Δt2 is the time difference between the time when node 1 receives the system broadcast message (K) (including the synchronization sequence) sent by node K and the time when node 1 starts its own time slot.

[0081] Through the embodiments of the present application, time slot synchronization between the initial access node K and the networked node 1 can be quickly achieved, thereby accelerating the speed at which the node K joins the wireless ad hoc network.

[0082] In this embodiment, since node K does not carry the information of the synchronization source node (node ​​1) selected by node K in the "system broadcast message (K)" sent by node K, even if node 1 receives the "system broadcast message (K)" sent by node K, it may not assist node K in coarse synchronization for some reasons.

[0083] In an optional embodiment, in order to ensure that node 1 assists node K in performing rough synchronization, node K may carry synchronization source node information Syc_Source_Node_ID in the "system broadcast message (K)". After node 1 receives the "system broadcast message (K)", if the Syc_Source_Node_ID carried therein is consistent with the Node_ID (node ​​identifier) ​​of node 1, node 1 needs to calculate the time deviation Δt2 and send the time deviation Δt2 through the synchronization parameter node_K_Δt2 carried in the next "system broadcast message (1)".

[0084] In another embodiment, if node K does not receive the "System Broadcast Message (1)" sent by node 1 after sending the "System Broadcast Message (K)", or the received "System Broadcast Message (1)" does not carry the node_K_Δt2 parameter, node K will attempt to reselect the synchronization source node.

[0085] Furthermore, node K may select node 2 as a synchronization source reference according to the signal strength of the received "system broadcast message" and re-initiate the coarse synchronization process. The specific process may refer to the coarse synchronization solution in the above embodiment.

[0086] Figure 7 FIG. 1 is a schematic diagram of a system broadcast message in a fine synchronization solution according to an embodiment of the present application. Figure 7 As shown, node i sends a system broadcast message (i) in its own broadcast time slot frame, and receives corresponding system broadcast messages (1) and (K) in the broadcast time slot frames of other nodes (node ​​1 and node K).

[0087] In this embodiment, after completing the coarse synchronization process, node i also starts to occupy a specific system frame time slot to send a "system broadcast message (i)". After node i becomes a node in the ad hoc network, node i needs to perform a fine synchronization process.

[0088] Figure 8 FIG. 1 is a schematic diagram of node time slots in a detailed synchronization scheme according to an embodiment of the present application. Figure 8 As shown in the figure, during the fine synchronization process, node i compares the time of receiving the "system broadcast message (K)" sent by other surrounding nodes (such as node K) with the start time of its own time slot, calculates the value of the time deviation Δt(k,i) for different nodes, and sends the value of Δt(k,i) to other surrounding nodes through the node_K_Δt parameter in the system broadcast message (i).

[0089] Furthermore, after receiving the system broadcast message (i), the node K adjusts the time slot start time of the node K according to the value of Δt(k,i) in the synchronization parameter node_K_Δt carried therein, so as to achieve fine synchronization of the node K.

[0090] In this embodiment, after receiving the system broadcast message (i) (including the synchronization sequence) from the node i, the adjacent node K calculates the deviation Δt(i, k) between the time slot start time of the node K and the time of receiving the synchronization sequence of the system broadcast message (i). The synchronization parameter node_i_Δt carried by the node K in the next system broadcast message (K) carries the value of the time deviation Δt(i, k), and the node i adjusts the fine synchronization parameter according to the value of Δt(i, k) carried in the node_i_Δt parameter received from the system broadcast message (K) to achieve fine synchronization of the node i.

[0091] In this embodiment, there is a time slot deviation δi between the time slot start time of node i and the time slot start time of node K. The time slot deviation δi can be reduced or maintained by fine synchronization adjustment of node i, thereby ensuring the time slot synchronization of member nodes in the entire ad hoc network.

[0092] According to another aspect of the embodiments of the present application, a node synchronization device for a wireless ad hoc network is also provided, which is applied to any member node in the wireless ad hoc network to execute the method in any of the above method embodiments.

[0093] Fig. 9 is a block diagram of a node synchronization device for a wireless ad hoc network according to an embodiment of the present application, such as Fig. 9 As shown, the device comprises:

[0094] A sending module 92, configured to send a first system broadcast message to a predetermined synchronization reference node at the start time of a time slot of a current node, wherein the current node is any member node in the wireless ad hoc network;

[0095] A receiving module 94 is configured to receive a second system broadcast message sent by the synchronization reference node after determining a first time offset between the synchronization reference node and the current node, wherein the second system broadcast message carries the first time offset, and the first time offset is a difference between a time point when the synchronization reference node receives the first system broadcast message and a time slot start time of the synchronization reference node;

[0096] The adjustment module 96 is used to adjust the time slot start time of the current node according to the first time offset so that the time slot start time of the current node is aligned with the time slot start time of the synchronization reference node.

[0097] In this embodiment, the sending module 92 is also used to broadcast the first system broadcast message at the start time of the time slot of the current node, wherein the first system broadcast message carries the node identifier of the synchronization reference node, and the first system broadcast message is used to instruct any member node that receives the first system broadcast message to determine the first time deviation when its own node identifier is consistent with the node identifier of the synchronization reference node.

[0098] In this embodiment, the receiving module 94 specifically further includes the following structure:

[0099] A receiving unit, configured to receive a third system broadcast message sent by any member node other than the current node in the wireless ad hoc network;

[0100] A first selection unit is configured to select, when the current node is in a non-networked state, from the member nodes that send the third system broadcast message as the synchronization reference node, and determine the time when the third system broadcast message sent by the synchronization reference node is received as the time slot start time of the current node;

[0101] The second selection unit selects one or more of the member nodes that send the third system broadcast message as the synchronization reference nodes when the current node is in a network access state.

[0102] In this embodiment, the first selection unit is further configured to respectively determine the signal strength of each of the third system broadcast messages; and determine the member node that sends the third system broadcast message with the largest signal strength as the synchronization reference node.

[0103] In an optional embodiment, the receiving module 94 may also include a reselection unit for reselecting a new synchronization reference node from member nodes other than the synchronization reference node that send the third system broadcast message if the second system broadcast message is not received within a preset time or the second system broadcast message does not carry the first time deviation; and determining the time when the third system broadcast message sent by the new synchronization reference node is received as the start time of the time slot of the current node.

[0104] In an optional embodiment, the sending module 92 is further configured to send the first system broadcast message to the new synchronization reference node at the re-determined time slot start time of the current node.

[0105] In this embodiment, the adjustment module 96 includes a time slot adjustment unit and a time slot holding unit.

[0106] A time slot adjustment unit, configured to, when the current node is in a non-networked state and the first time deviation is one, adjust the time slot start time of the current node in a preset time slot synchronization adjustment manner according to the first time deviation, and adjust the state of the current node to a networked state;

[0107] A time slot keeping unit is used to adjust the time slot start time of the current node in a preset time slot synchronization keeping manner according to one or more first time deviations when the current node is in a networked state.

[0108] In this embodiment, the time slot adjustment unit is further used to adjust the time slot start time of the current node forward by a first predetermined value, wherein the first predetermined value is half of the first time deviation;

[0109] In this embodiment, the time slot holding unit is further used to adjust the time slot start time of the current node forward or backward by a second predetermined value, wherein the second predetermined value is an average value or a weighted average value of the one or more first time deviations.

[0110] In this embodiment, the device also includes a synchronization module, which is used to obtain the synchronization sequence of the corresponding target member node from each of the third system broadcast messages when the current node is in a networked state; determine the time slot start time of the target member node according to the synchronization sequence of the target member node; determine the difference between the time when the current node receives the third system broadcast message and the time slot start time of the target member node as the second time deviation between the current node and the target member node; and perform time slot synchronization on the target member node according to the second time deviation.

[0111] In this embodiment, the sending module 92 is also used to send a fourth system broadcast message to the target member node when the synchronization reference node and the target member node are different nodes, so as to align the time slot start time of the target member node with the time slot start time of the current node, wherein the fourth system broadcast message carries the second time deviation; when the synchronization reference node and the target member node are the same node, the second time deviation is sent to the target member node via the first system broadcast message, so as to align the time slot start time of the target member node with the time slot start time of the current node.

[0112] In this embodiment, the system broadcast frame time slot of each member node in the wireless ad hoc network has a unique system broadcast time slot number, and each of the system broadcast frame time slots includes multiple synchronization symbols and multiple system broadcast message symbols, wherein the synchronization symbol is used to transmit the synchronization sequence of the corresponding member node, and the system broadcast message symbol is used to transmit the message content of the system broadcast message of the corresponding member node, and the synchronization symbol and the system broadcast message symbol are orthogonal frequency division multiplexing OFDM symbols.

[0113] In this embodiment, the receiving module 94 is also used to obtain the node identifier of the synchronization reference node from the second system broadcast message when the node identifier of the synchronization reference node is directly carried in the second system broadcast message; determine the target system broadcast time slot number according to the target system broadcast frame time slot in which the second system broadcast message is received when the node identifier of the synchronization reference node is indirectly carried in the second system broadcast message; and determine the node identifier of the synchronization reference node corresponding to the target system broadcast time slot number according to a pre-established mapping relationship between the system broadcast time slot number and the node identifier.

[0114] Through the embodiments of the present application, in a wireless self-organizing network, a decentralized approach can be adopted to achieve time slot synchronization between nodes in the self-organizing network through algorithms and providing time offset auxiliary information, thereby avoiding the problem in related technologies (such as distributed clock schemes) that it is difficult to maintain the convergence of the self-organizing network synchronization clock, and the problem of time slot asynchrony between different nodes after a period of working time.

[0115] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program executes the steps of any of the above method embodiments when executed by a processor.

[0116] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0117] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0118] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0119] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0120] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0121] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A node synchronization method for a wireless ad hoc network, characterized in that: The method comprises: At the start time of the time slot of the current node, sending a first system broadcast message to a predetermined synchronization reference node, wherein the current node is any member node in the wireless ad hoc network; Receiving a second system broadcast message sent by the synchronization reference node after determining a first time offset between the synchronization reference node and the current node, wherein the second system broadcast message carries the first time offset, and the first time offset is a difference between a time point at which the synchronization reference node receives the first system broadcast message and a time slot start time of the synchronization reference node; The time slot start time of the current node is adjusted according to the first time offset so that the time slot start time of the current node is aligned with the time slot start time of the synchronization reference node.

2. The method according to claim 1, characterized in that The sending of a first system broadcast message to a predetermined synchronization reference node at the start time of the time slot of the current node includes: The first system broadcast message is broadcast at the beginning of the time slot of the current node, wherein the first system broadcast message carries the node identifier of the synchronization reference node, and the first system broadcast message is used to instruct any member node that receives the first system broadcast message to determine the first time deviation when its own node identifier is consistent with the node identifier of the synchronization reference node.

3. The method according to claim 1, characterized in that Before sending the first system broadcast message to the predetermined synchronization reference node, the method further includes: Receiving a third system broadcast message sent by any member node other than the current node in the wireless ad hoc network; When the current node is in a non-networked state, select one from the member nodes that send the third system broadcast message as the synchronization reference node, and determine the time when the third system broadcast message sent by the synchronization reference node is received as the time slot start time of the current node; In a case where the current node is in a networked state, one or more member nodes that send the third system broadcast message are selected as the synchronization reference nodes.

4. The method according to claim 3, characterized in that Selecting one of the member nodes that sends the third system broadcast message as the synchronization reference node includes: respectively determining the signal strength of each of the third system broadcast messages; The member node that sends the third system broadcast message with the largest signal strength is determined as the synchronization reference node.

5. The method according to claim 4, characterized in that After sending the first system broadcast message to the predetermined synchronization reference node, the method further includes: If the second system broadcast message is not received within a preset time or the second system broadcast message does not carry the first time offset, reselect one from other member nodes that send the third system broadcast message except the synchronization reference node as a new synchronization reference node; Determine the time when the third system broadcast message sent by the new synchronization reference node is received as the time slot start time of the current node; The first system broadcast message is sent to the new synchronization reference node at the re-determined time slot start time of the current node.

6. The method according to claim 3, characterized in that Adjusting the time slot start time of the current node according to the first time offset includes: When the current node is in a non-networked state, the first time deviation is one, and the time slot start time of the current node is adjusted in a preset time slot synchronization adjustment manner according to the first time deviation, and the state of the current node is adjusted to a networked state; When the current node is in a networked state, the first time offset is one or more, and the time slot start time of the current node is adjusted in a preset time slot synchronization maintaining manner according to the one or more first time offsets.

7. The method according to claim 6, characterized in that Adjusting the time slot start time of the current node in a preset time slot synchronization adjustment manner according to the first time deviation includes: adjusting the time slot start time of the current node forward by a first predetermined value, wherein the first predetermined value is half of the first time deviation; Adjusting the time slot start time of the current node in a preset time slot synchronization maintaining manner according to one or more of the first time deviations, including: adjusting the time slot start time of the current node forward or backward by a second predetermined value, wherein the second predetermined value is the average value or weighted average value of the one or more first time deviations.

8. The method according to claim 3, characterized in that After receiving a third system broadcast message sent by any member node other than the current node in the wireless ad hoc network, the method further includes: When the current node is in a networked state, acquiring a synchronization sequence of a corresponding target member node from each of the third system broadcast messages; Determine a time slot start time of the target member node according to a synchronization sequence of the target member node; Determine the difference between the time when the current node receives the third system broadcast message and the time slot start time of the target member node as the second time offset between the current node and the target member node; The target member node is synchronized with a time slot according to the second time offset.

9. The method according to claim 8, characterized in that Performing time slot synchronization on the target member node according to the second time offset includes: In the case where the synchronization reference node and the target member node are different nodes, sending a fourth system broadcast message to the target member node to align the time slot start time of the target member node with the time slot start time of the current node, wherein the fourth system broadcast message carries the second time offset; In the case where the synchronization reference node and the target member node are the same node, the second time offset is sent to the target member node via the first system broadcast message so that the time slot start time of the target member node is aligned with the time slot start time of the current node.

10. The method according to any one of claims 1 to 9, characterized in that The system broadcast frame time slot of each member node in the wireless ad hoc network has a unique system broadcast time slot number, and each of the system broadcast frame time slots includes multiple synchronization symbols and multiple system broadcast message symbols, wherein the synchronization symbol is used to transmit the synchronization sequence of the corresponding member node, and the system broadcast message symbol is used to transmit the message content of the system broadcast message of the corresponding member node, and the synchronization symbol and the system broadcast message symbol are orthogonal frequency division multiplexing OFDM symbols.

11. The method according to claim 10, characterized in that After receiving a second system broadcast message sent by the synchronization reference node after determining a first time offset between the synchronization reference node and the current node, the method further includes: In a case where the node identifier of the synchronization reference node is directly carried in the second system broadcast message, acquiring the node identifier of the synchronization reference node from the second system broadcast message; In the case where the node identifier of the synchronization reference node is indirectly carried in the second system broadcast message, the target system broadcast time slot number is determined according to the target system broadcast frame time slot that receives the second system broadcast message; based on the pre-established mapping relationship between the system broadcast time slot number and the node identifier, the node identifier of the synchronization reference node corresponding to the target system broadcast time slot number is determined.

12. A node synchronization device for a wireless ad hoc network, characterized in that: The device comprises: A sending module, configured to send a first system broadcast message to a predetermined synchronization reference node at the start time of a time slot of a current node, wherein the current node is any member node in the wireless ad hoc network; A receiving module, configured to receive a second system broadcast message sent by the synchronization reference node after determining a first time offset between the synchronization reference node and the current node, wherein the second system broadcast message carries the first time offset, and the first time offset is a difference between a time point when the synchronization reference node receives the first system broadcast message and a time slot start time of the synchronization reference node; An adjustment module is used to adjust the time slot start time of the current node according to the first time deviation so that the time slot start time of the current node is aligned with the time slot start time of the synchronization reference node.

13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program executes the method described in any one of claims 1 to 11 when executed by a processor.

14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 11.