CN110831146B - Method for node synchronization in wireless network, terminal device and storage medium - Google Patents

Method for node synchronization in wireless network, terminal device and storage medium Download PDF

Info

Publication number
CN110831146B
CN110831146B CN201810924164.1A CN201810924164A CN110831146B CN 110831146 B CN110831146 B CN 110831146B CN 201810924164 A CN201810924164 A CN 201810924164A CN 110831146 B CN110831146 B CN 110831146B
Authority
CN
China
Prior art keywords
frame
node
deviation
adjustment value
zero
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810924164.1A
Other languages
Chinese (zh)
Other versions
CN110831146A (en
Inventor
曹瑶
安林峰
喻该
管鲍
刘恒甫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN201810924164.1A priority Critical patent/CN110831146B/en
Publication of CN110831146A publication Critical patent/CN110831146A/en
Application granted granted Critical
Publication of CN110831146B publication Critical patent/CN110831146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/26Systems using multi-frequency codes
    • H04L27/2601Multicarrier modulation systems
    • H04L27/2647Arrangements specific to the receiver only
    • H04L27/2655Synchronisation arrangements
    • H04L27/2657Carrier synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method for synchronizing nodes in a wireless network, which comprises the following steps: acquiring frame header offset information of a reference node; calculating the first frame deviation of the current node and the reference node at the current moment according to the frame header offset information; acquiring a second frame deviation of the current node and the reference node at the previous moment; determining an adjustment value required by a crystal oscillator corresponding to the current node according to the magnitude relation between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation; on the basis of the initial voltage control value of the crystal oscillator, the voltage control of the crystal oscillator is compensated in real time according to the adjustment value so that the frequency of the current node and the frequency of the reference node are synchronous or tend to be synchronous. According to the method and the device, the adjustment value required by the crystal oscillator is determined according to the magnitude relation between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation, and the frequency synchronization between the nodes can be realized without depending on an external synchronization source. The application also provides a terminal device and a storage medium with a storage function.

Description

Method for node synchronization in wireless network, terminal device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for node synchronization in a wireless network, a terminal device, and a storage medium.
Background
The Wireless Mesh Network (Wireless Mesh Network) is a high-capacity and high-bandwidth distributed Network, can be regarded as the integration of a Wireless Local Area Network (WLAN) and an Ad hoc mobile Ad hoc Network, and exerts the advantages of the WLAN and the Ad hoc mobile Ad hoc Network, the coverage area of the Wireless Mesh Network can be large or small, and the Wireless Mesh Network can be an office building or a city. The wireless Mesh network emphasizes that Multi-hop (Multi-hop) wireless communication is realized in a wide area, and based on the characteristics of a Multi-hop wireless channel, a network system is flexible to establish and strong in survivability. At any time, network nodes with wireless transceiving systems in the network can be connected through wireless channels to form an arbitrary Mesh topology structure, that is, data interaction can be performed between any network nodes with wireless transceiving systems in the network, so that the synchronization of each node in the network becomes a critical problem affecting the performance of the Mesh network. In the prior art, most of the synchronization methods of the Mesh network adopt an external synchronization source for synchronization. However, in many environments (inside buildings, underground parking lots), the synchronization reference signal or the high-quality reference signal cannot be received, so that the network synchronization performance is affected, and therefore, the scheme adopting the external synchronization source has great dependence on the external environment.
Disclosure of Invention
The technical problem mainly solved by the present application is to provide a method for node synchronization in a wireless network, a terminal device, and a storage medium having a storage function. The synchronization of the nodes in the wireless network can be realized under the condition of not depending on an external synchronization source.
In order to solve the technical problem, the application adopts a technical scheme that: there is provided a method of node synchronization in a wireless network, the method comprising:
acquiring frame header offset information of a reference node;
calculating a first frame deviation between the current node and the reference node at the current moment according to the frame header offset information;
acquiring a second frame deviation of the current node and the reference node at the last moment;
determining an adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relation between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation;
and compensating the voltage control of the crystal oscillator in real time according to the adjustment value on the basis of the initial voltage control value of the crystal oscillator so as to enable the frequency of the current node and the frequency of the reference node to be synchronous or tend to be synchronous.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a terminal device: the terminal device includes: a processor, a memory, and a communication circuit, the processor connecting the memory and the communication circuit;
wherein the communication circuit is configured to transmit a message in response to an instruction from the processor;
the memory is used for storing program data;
the processor is configured to execute the program data to perform the method for node synchronization in a wireless network as described above.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a storage medium having a storage function, where the storage medium stores program data, and the program data, when executed, implements the method for node synchronization in a wireless network as described above.
According to the scheme, the frame header offset information of the reference node is obtained, the first frame deviation of the current node and the reference node at the current moment is calculated according to the obtained frame header offset information, and the crystal oscillator required adjustment value corresponding to the current node is determined according to the size relation between the calculated first frame deviation and the second frame deviation of the current node and the reference node at the previous moment and the size of the first frame deviation. On the basis of an initial value of the voltage control of the crystal oscillator, the crystal oscillator is compensated in real time according to the adjustment value obtained by calculation so that the synchronization of the frequency of the current node and the reference node is realized, and in the synchronization process, the frequency synchronization between the nodes is quickly and simply realized under the condition of not depending on an external synchronization source.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of a method for node synchronization in a wireless network according to the present application;
fig. 2 is a flow chart illustrating another embodiment of a method for node synchronization in a wireless network according to the present application;
fig. 3 is a flowchart illustrating a method for node synchronization in a wireless network according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for node synchronization in a wireless network according to yet another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a storage medium with a storage function according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first" and "second" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The technical scheme provided by the application is used for node network synchronization in a wireless network. The wireless network refers to a wireless mesh network, and is based on a network structure of mutual cooperation and cooperation among a plurality of nodes distributed in a mesh shape. The node in the network refers to a terminal device accessing to the network, specifically, the terminal device accessing to the wireless network includes a mobile phone, a computer, a PDA, a tablet computer, a television, and the like, and in the following description, the node is referred to as the terminal device in the wireless network. Data interaction can be performed among all nodes in the wireless network, so that the synchronism of all nodes of the network becomes a critical problem affecting the performance of the network. It should be noted that the wireless network in the present application is a wireless mesh network in some embodiments, and details will not be described below. The method for node synchronization in a wireless network provided by the present application will be further described in detail with reference to specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for node synchronization in a wireless network according to an embodiment of the present invention. As can be seen from the figure, in the current embodiment, the method provided by the present application includes steps S110 to S150. Wherein the content of the first and second substances,
s110: and acquiring frame header offset information of the reference node.
After the current node is added into the current wireless network, frame header offset information of the reference node is obtained. It should be noted that, in the present application, all nodes in the accessed network may send frame header offset information to other nodes at regular time according to a set time period. The reference node is a node with network signal strength exceeding a preset threshold value with a current node, and the current node is a node newly accessed into a current wireless network or a node needing frequency adjustment to achieve synchronization with one or more nodes in the network. The reference node provided by the present application can be used as a reference node for two nodes at the same time, and is not limited herein. Details regarding the selection of reference nodes are further detailed below. Wherein the frame header offset information includes: the offset between the frame headers of two frames of the reference node and the current node, and the frame header offset information that can be understood may further include: frequency information of the reference node, an address (such as a mac address) of the reference node in the network, and the like.
In one embodiment, step S110 further includes: and acquiring frame header offset information of the reference node at preset time intervals. The preset time interval is set according to the communication frequency between each node in the wireless network, and may also be adjusted and set according to an empirical value, which is not limited herein.
S120: and calculating the first frame deviation of the current node and the reference node at the current moment according to the frame header deviation information.
And calculating to obtain the first frame deviation of the current node at the current moment according to the frame header offset information acquired in the step S110. The first frame offset refers to a frame offset between the current node and the reference node at the current time.
Further, in an embodiment, the first frame offset calculated in step S120 is a frame offset between the reference node and the first time after the current node joins the wireless network. In this embodiment, after the step S120, when the obtained deviation of the first frame exceeds the preset range, the current node is further pre-synchronized. For details of pre-synchronization, see below.
S130: and acquiring a second frame deviation of the current node and the reference node at the last moment.
In the technical solution provided in the present application, after the current node joins the wireless network, when the first frame offset is calculated in step S120 or after the first frame offset is obtained by calculation, a second frame offset of the current node and the reference node at the previous time is further obtained. In this embodiment, the first frame offset calculated in step S120 is a frame offset between the current node and the reference node at a second time after the current node joins the current network and after the second time. The second frame offset is a frame offset between the current node and the reference node at a time prior to the current time.
In the technical scheme provided by the application, after the current node is accessed into the wireless network, the first frame deviation between the node and the reference node at the current moment is obtained through calculation, and the calculated frame deviation and related information are further stored for calling.
S140: and determining an adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relation between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation.
Further, after a second frame deviation between the current node and the reference node at the previous time is obtained in step S130, the magnitude relationship between the first frame deviation and the second frame deviation is further compared, and then the adjustment value required by the crystal oscillator corresponding to the current node is determined by combining the magnitude of the first frame deviation. The crystal oscillator adjustment value required by the current node is a value required by adjusting the crystal oscillator of the current node, so that the current node and the reference node are synchronized in frequency.
In one embodiment, the reference in step S140 is the magnitude relationship between the first frame offset and the second frame offset, the magnitude of the absolute value of the first frame offset, and the result of comparing the first frame offset with zero to finally obtain the above adjustment value. That is, in the current embodiment, the size of the first frame offset includes: the magnitude of the absolute value of the first frame offset is related to the magnitude of the comparison of the first frame offset with zero (in other words, whether the first frame offset belongs to the interval from zero to positive infinity, or to the interval from negative infinity to zero, or whether the first frame offset is exactly equal to zero). Specifically, how to determine the adjustment value required by the current node corresponding to the crystal oscillator according to the magnitude relationship between the first frame offset and the second frame offset and the magnitude of the first frame offset is further detailed below.
S150: on the basis of the initial voltage control value of the crystal oscillator, the voltage control of the crystal oscillator is compensated in real time according to the adjustment value so that the frequency of the current node and the frequency of the reference node are synchronous or tend to be synchronous.
After the adjustment value required by the crystal oscillator of the current node is obtained through calculation in step S140, the voltage control of the crystal oscillator is compensated in real time according to the adjustment value on the basis of the initial voltage control value of the crystal oscillator, so that the current node and the reference node are synchronized in frequency, or the frequency difference between the current node and the reference node is reduced, thereby achieving synchronization. The trend synchronization means that the frame deviation between the current node and the reference node is smaller, and the trend synchronization is more than that before no adjustment compensation is carried out, but real synchronization is not realized.
It can be understood that, since the frequency difference between the current node and the reference node is not constant, in the current embodiment, the frequency difference between the current node and the reference node is small, and the synchronization of the frequency between the current node and the reference node can be achieved through one adjustment from the above step S110 to step S150. In another embodiment, when the frequency difference between the current node and the reference node is too large, the frequency difference between the current node and the reference node may be adjusted through the steps as described in S110 to S150 multiple times so that the frequencies of the current node and the reference node tend to be synchronized, and finally, the frequency synchronization between the current node and the reference node is achieved.
Through the steps S110 to S150, frequency synchronization between nodes can be quickly achieved without depending on an external synchronization source, and finally, communication quality between nodes in a wireless network is improved. In addition, as in the technical solutions described in steps S110 to S150, the synchronization of the frequencies between the nodes can be achieved without changing the original communication mode, which is simple and easy to implement.
As can be obtained from the foregoing steps S110 to S150, in the method for synchronizing nodes in a wireless network provided in the present application, before the frequency synchronization between a node and a reference node is achieved, the method further includes: and selecting a reference node, wherein the reference node is the node with the strongest network signal strength with the current node. In a wireless network, all accessed nodes send frame header offset information to the outside or to other nodes in other networks, so that the nodes in the network can directly measure the signal strength of other nodes. In the current embodiment, since the strength of the network signal between the nodes is related to the distance between the nodes and the obstacle, the point with the strongest network signal strength between the current nodes may be a node closer to the current node, generally the closest node, and when the closest node is blocked by the obstacle, the closest node may also be another closer node. Of course, in other embodiments, the reference node may also be a node whose signal strength exceeds a preset threshold, where the preset threshold is set based on an empirical value.
Further, please refer to fig. 2, which is a flowchart illustrating a method for node synchronization in a wireless network according to another embodiment of the present invention. The difference between this embodiment and the previous embodiment is that this embodiment specifically explains how to adjust the frequency of the current node and the frequency of the reference node to be synchronized or to approach to be synchronized according to the magnitude relationship between the first frame offset and the second frame offset and by determining the adjustment value required by the crystal oscillator corresponding to the current node in combination with the magnitude of the first frame offset. The method in this embodiment includes steps S210 to S250, where steps S210, S220, S230, and S250 are respectively consistent with step S110, step S120, step S130, and step S150 in the previous embodiment, and are not described herein again. Specifically, the method comprises the following steps:
s210: and acquiring frame header offset information of the reference node.
S220: and calculating the first frame deviation of the current node and the reference node at the current moment according to the frame header deviation information.
S230: and acquiring a second frame deviation of the current node and the reference node at the last moment.
S240: when the first frame offset is greater than the second frame offset, the adjustment value is zero or a positive value.
In an embodiment, when it is determined that the first frame deviation is greater than the second frame deviation and the first frame deviation is less than zero, the adjustment value required by the crystal oscillator corresponding to the current node is zero. That is, in the current embodiment, no adjustment is made to the crystal oscillator corresponding to the current node.
In another embodiment, when the first frame offset is greater than the second frame offset and the first frame offset is equal to zero, the adjustment value required by the crystal oscillator corresponding to the current node is a positive first calibration value. The first calibration value is determined based on an empirical value, and may be a value with the highest frequency obtained by multiple tests, or may be an average value of adjustment values obtained by tests, which is not specifically limited herein.
In another embodiment, when the first frame deviation is greater than the second frame deviation and the first frame deviation is greater than zero, the adjustment value required by the crystal oscillator corresponding to the current node is a positive second calibration value. The second calibration value is similar to the first calibration value, and is determined by an empirical value, which is not limited herein. In the current embodiment, the first calibration value and the second calibration value are different values. It will be appreciated that in other embodiments, the first and second calibration values may be the same or adjacent values, and the determination of the first and second calibration values is determined based on their corresponding empirical values. The sizes of the first calibration value and the second calibration value are set according to the environment of the mesh network, when the mesh network covers an office building and covers a relatively spacious place, the sizes of the first calibration value and the second calibration value in the two places are slightly changed, and an administrator can adjust and set the first calibration value and the second calibration value according to actual needs.
It should be noted that the first calibration value and the second calibration value refer to that the absolute value of the adjustment value is the first calibration value or the second calibration value, in a specific embodiment, the adjustment value is divided into positive and negative values, and in this application, the positive adjustment value indicates that the voltage control of the crystal oscillator is adjusted to be larger on the basis of the voltage control initial value of the crystal oscillator, so as to implement the synchronization of the frequency; the negative adjustment value is used for adjusting the voltage of the crystal oscillator to be small on the basis of the voltage control initial value of the crystal oscillator so as to realize frequency synchronization.
S250: on the basis of the initial voltage control value of the crystal oscillator, the voltage control of the crystal oscillator is compensated in real time according to the adjustment value so that the frequency of the current node and the frequency of the reference node are synchronous or tend to be synchronous.
Please refer to fig. 3, which is a flowchart illustrating a method for node synchronization in a wireless network according to another embodiment of the present invention. Similar to fig. 2, the difference between this embodiment and the embodiment corresponding to fig. 1 is that this embodiment specifically explains how to adjust the frequency synchronization between the current node and the reference node or approach synchronization by determining the adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relationship between the first frame deviation and the second frame deviation and combining the magnitude of the first frame deviation. The method in this embodiment includes steps S310 to S350, wherein steps S310, S320, S330, and S350 are respectively identical to step S110, step S120, step S130, and step S150 in the embodiment corresponding to fig. 1, and are not repeated herein.
S310: and acquiring frame header offset information of the reference node.
S320: and calculating the first frame deviation of the current node and the reference node at the current moment according to the frame header deviation information.
S330: and acquiring a second frame deviation of the current node and the reference node at the last moment.
S340: when the first frame deviation is smaller than the second frame deviation, the adjustment value is zero or a negative value.
In an embodiment, when it is determined that the first frame deviation is smaller than the second frame deviation and the first frame deviation is smaller than zero, the adjustment value of the crystal oscillator corresponding to the current node is a negative second calibration value. When the adjustment value is a negative second calibration value, the voltage control of the crystal oscillator at the current node is adjusted to be smaller than the second calibration value, and if the second calibration value is Δ vc1, the initial value of the voltage control of the crystal oscillator is V1, when the adjustment value is the negative second calibration value, the voltage control of Δ vc1 needs to be subtracted on the basis of V1, that is, the adjusted voltage control of the crystal oscillator is V1- Δ vc 1.
In another embodiment, when the first frame deviation is determined to be smaller than the second frame deviation and the first frame deviation is equal to zero, the adjustment value of the crystal oscillator corresponding to the current node is a negative first calibration value. When the adjustment value is a negative first calibration value, the voltage control of the crystal oscillator of the current node is adjusted to be smaller than the first calibration value.
In another embodiment, when the first frame deviation is smaller than the second frame deviation and the first frame deviation is greater than zero, the adjustment value of the crystal oscillator corresponding to the current node is zero. That is, at this time, it is not necessary to perform any adjustment on the crystal oscillator corresponding to the current node.
S350: on the basis of the initial voltage control value of the crystal oscillator, the voltage control of the crystal oscillator is compensated in real time according to the adjustment value so that the frequency of the current node and the frequency of the reference node are synchronous or tend to be synchronous.
Please refer to fig. 4, which is a flowchart illustrating a method for node synchronization in a wireless network according to an embodiment of the present application. Similar to fig. 2 and fig. 3, the embodiment of the present invention is different from the embodiment of fig. 1 in that the present embodiment specifically explains how to adjust the frequency of the current node and the reference node to be synchronized or to approach to be synchronized according to the magnitude relationship between the first frame deviation and the second frame deviation and by determining the adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude of the first frame deviation. The method in this embodiment includes steps S410 to S450, wherein steps S410, S420, S430, and S450 are respectively identical to step S110, step S120, step S130, and step S150 in the embodiment corresponding to fig. 1, and are not repeated herein. Based on the determination result of the relationship between the magnitudes of the first frame deviation and the second frame deviation, in the present embodiment, step S140: determining the adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relationship between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation includes the steps described in step S441. Wherein the content of the first and second substances,
s410: and acquiring frame header offset information of the reference node.
S420: and calculating the first frame deviation of the current node and the reference node at the current moment according to the frame header deviation information.
S430: and acquiring a second frame deviation of the current node and the reference node at the last moment.
S440: when the first frame offset is equal to the second frame offset, the adjustment value is zero or a second calibration value.
In an embodiment, when it is determined that the first frame deviation is equal to the second frame deviation and the first frame deviation is equal to zero, the adjustment value of the crystal oscillator corresponding to the current node is zero, that is, the crystal oscillator of the current node is not adjusted.
In another embodiment, when the first frame deviation is determined to be equal to the second frame deviation and the first frame deviation is greater than zero, the adjustment value of the crystal oscillator corresponding to the current node is a positive second calibration value. When the adjustment value is a positive second calibration value, the voltage control of the crystal oscillator of the current node is adjusted to be larger than the second calibration value.
In another embodiment, when the first frame deviation is determined to be equal to the second frame deviation and the first frame deviation is less than zero, the adjustment value of the crystal oscillator corresponding to the current node is a negative second calibration value. When the adjustment value is a negative second calibration value, the voltage control of the crystal oscillator of the current node is adjusted to be smaller than the first calibration value.
S450: on the basis of the initial voltage control value of the crystal oscillator, the voltage control of the crystal oscillator is compensated in real time according to the adjustment value so that the frequency of the current node and the frequency of the reference node are synchronous or tend to be synchronous.
In an embodiment, for the embodiments corresponding to fig. 1 to fig. 4, before the step S140 (or the corresponding step of the step S140 in various embodiments), the following steps should be further included: and judging the size range to which the absolute value of the first frame deviation belongs to determine the sizes of the first calibration value and the second calibration value.
The magnitudes of the first calibration value and the second calibration value are obtained based on the empirical values, and have a relationship with the magnitude range to which the obtained absolute value of the first frame deviation belongs, that is, the first calibration value and the second calibration value change in different magnitude intervals, and the adjustment value is determined according to the embodiments corresponding to fig. 2 to fig. 4. For example, in one embodiment, the first frame deviation absolute value interval is divided into 6 intervals, wherein the sizes of the first frame deviation absolute value intervals are 0 to 10, 11 to 20, 21 to 30, 31 to 40, 41 to 50 and 50, and the 6 intervals have different corresponding first calibration values and second calibration values. Assume that the first calibration value in the interval 11 to 20 is set by empirical values to 5, the second calibration value to 8, the first calibration value in the interval 21 to 30 to 10, and the second calibration value to 15. In this embodiment, when the first frame offset calculated in step S120 is 15 or time-15, the absolute value of the first frame offset is 15 at this time, and belongs to the interval from 11 to 20, and the first calibration value corresponding to the first frame offset is 5 at this time, and the second calibration value is 8 at this time. If the measured deviation of the first frame is 27, the first frame deviation corresponds to a first calibration value of 10 and the second calibration value of 15.
Optionally, in an embodiment, when the first frame deviation calculated in the comparing step S120 is not within the preset range, a pre-synchronization operation is performed on the current node first. Also as an example in the above embodiment, if the measured first frame offset is 105, which belongs to the interval above 50, the reference node needs to be pre-synchronized.
Referring to fig. 5, a schematic structural diagram of a terminal device 500 according to an embodiment of the present application includes: a processor 501, a memory 502, and a communication circuit 503. The processor 501 is connected to the memory 502 and the communication circuit 503. The communication circuit 503 is used for transmitting messages in response to instructions from the processor 501 and receiving message information from other devices, wherein the message information includes frame offset information from other nodes (terminal devices). The memory 502 stores the program data and the processing result of the processor 501 when executing the method, and the processor 501 executes the program data stored in the memory 502 to realize the method for synchronizing the nodes in the wireless mesh network.
Referring to fig. 6, the present invention also provides a storage medium 600 having a storage function, the storage medium 600 stores program data, and the program data when executed implements the method for node synchronization in a wireless mesh network described in the above embodiments. Specifically, the storage medium 600 having the storage function may be one of a memory of a mobile terminal, a personal computer, a server, a network device, or a usb disk.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (9)

1. A method of node synchronization in a wireless network, the method comprising:
acquiring frame header offset information of a reference node;
calculating a first frame deviation between the current node and the reference node at the current moment according to the frame header offset information;
acquiring a second frame deviation of the current node and the reference node at the last moment;
determining an adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relation between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation;
compensating the voltage control of the crystal oscillator in real time according to the adjustment value on the basis of the initial voltage control value of the crystal oscillator so as to enable the current node and the reference node to be synchronous in frequency or tend to be synchronous;
the step of determining the adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relationship between the first frame deviation and the second frame deviation and by combining the magnitude of the first frame deviation further includes:
when the first frame offset is greater than the second frame offset, the adjustment value is zero or a positive value;
when the first frame deviation is less than zero, the adjustment value is zero, when the first frame deviation is equal to zero, the adjustment value is a positive first calibration value, and when the first frame deviation is greater than zero, the adjustment value is a positive second calibration value.
2. The method of claim 1, wherein the obtaining frame header offset information of a reference node comprises:
and acquiring frame header offset information of the reference node at preset time intervals.
3. The method of claim 1, wherein the obtaining frame header offset information of the reference node further comprises:
and selecting a reference node, wherein the reference node is the node with the strongest network signal strength with the current node.
4. The method of node synchronization in a wireless network according to claim 1, wherein the adjustment value is zero or negative when the first frame offset is smaller than the second frame offset;
when the first frame deviation is less than zero, the adjustment value is a negative second calibration value, when the first frame deviation is equal to zero, the adjustment value is a negative first calibration value, and when the first frame deviation is greater than zero, the adjustment value is zero.
5. The method of node synchronization in a wireless network of claim 1, wherein the adjustment value is zero or a second calibration value when the first frame offset is equal to the second frame offset;
when the deviation of the first frame is equal to zero, the adjustment value is zero, when the deviation of the first frame is greater than zero, the adjustment value is a positive second calibration value, and when the deviation of the first frame is less than zero, the adjustment value is a negative second calibration value.
6. The method according to any of claims 4 or 5, wherein the step of determining the adjustment value required by the crystal oscillator corresponding to the current node according to the magnitude relationship between the first frame offset and the second frame offset and by combining the magnitude of the first frame offset further comprises:
and judging the size range to which the absolute value of the first frame deviation belongs to determine the sizes of the first calibration value and the second calibration value.
7. The method of node synchronization in a wireless network of claim 1, wherein the step of calculating a first frame offset of a current node from the reference node based on the frame offset information further comprises:
and when the deviation of the first frame is determined not to be in a preset range, performing pre-synchronization processing on the current node.
8. A terminal device, characterized in that the terminal device comprises: a processor, a memory, and a communication circuit, the processor connecting the memory and the communication circuit;
wherein the communication circuit is configured to transmit a message in response to an instruction from the processor;
the memory is used for storing program data;
the processor is configured to execute the program data to perform the method according to any one of claims 1 to 7.
9. A storage medium having a storage function, wherein the storage medium stores program data that, when executed, implements the method of any one of claims 1 to 7.
CN201810924164.1A 2018-08-14 2018-08-14 Method for node synchronization in wireless network, terminal device and storage medium Active CN110831146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810924164.1A CN110831146B (en) 2018-08-14 2018-08-14 Method for node synchronization in wireless network, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810924164.1A CN110831146B (en) 2018-08-14 2018-08-14 Method for node synchronization in wireless network, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN110831146A CN110831146A (en) 2020-02-21
CN110831146B true CN110831146B (en) 2021-12-24

Family

ID=69547451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810924164.1A Active CN110831146B (en) 2018-08-14 2018-08-14 Method for node synchronization in wireless network, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110831146B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378818A (en) * 2013-08-13 2015-02-25 中兴通讯股份有限公司 Clock synchronization method and device and base station subsystem
CN105743598A (en) * 2016-01-26 2016-07-06 华中科技大学 Industrial Ethernet clock synchronization method and system
CN106028272A (en) * 2016-07-25 2016-10-12 广东乐心医疗电子股份有限公司 Time synchronization method and device based on distributed BLE communication protocol wireless sensing system
CN107925972A (en) * 2015-08-14 2018-04-17 华为技术有限公司 Synchronous method, base station and control network element between one kind station

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102067479B1 (en) * 2013-01-03 2020-01-20 한국전자통신연구원 Method and apparatus for correcting reference time for distributed time synchronization
CN103797868B (en) * 2013-07-01 2017-06-06 华为技术有限公司 The method of air interface synchronization, base station, control device and wireless communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378818A (en) * 2013-08-13 2015-02-25 中兴通讯股份有限公司 Clock synchronization method and device and base station subsystem
CN107925972A (en) * 2015-08-14 2018-04-17 华为技术有限公司 Synchronous method, base station and control network element between one kind station
CN105743598A (en) * 2016-01-26 2016-07-06 华中科技大学 Industrial Ethernet clock synchronization method and system
CN106028272A (en) * 2016-07-25 2016-10-12 广东乐心医疗电子股份有限公司 Time synchronization method and device based on distributed BLE communication protocol wireless sensing system

Also Published As

Publication number Publication date
CN110831146A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
US11290173B2 (en) Radio link monitoring method and apparatus
CN113382419B (en) Measurement configuration method, terminal and network side equipment
RU2639660C2 (en) System information signaling to tts-devices
US10631336B2 (en) Wireless communication terminal, wireless communication method, and recording medium
CN111683413B (en) Method, terminal, network access device and storage medium for establishing multilink connection
CN108370610A (en) Interference mitigation in dense grid network
US9408181B2 (en) Automatic calibration of probe request received signal strength indication (RSSI) threshold to control associations
CN110446252A (en) Energy threshold for orienting LBT determines method, orientation LBT method and device, storage medium, terminal, base station
CN110831146B (en) Method for node synchronization in wireless network, terminal device and storage medium
CN107534853A (en) A kind of method and apparatus for starting relay function
WO2017190501A1 (en) Method and system for realizing communication between antenna cloud nodes in indoor high-density network
CN116367023A (en) Passive Optical Network (PON) -based resource scheduling method, device and system
US8792463B2 (en) Method for managing a distribution of bandwidth in a communications network, corresponding storage means and slave node
WO2019024781A1 (en) Cell quality calculation method, parameter configuration method and related device
US20100278198A1 (en) Method and apparatus for providing quantization of synchronization signals
US20230162006A1 (en) Server and agent for reporting of computational results during an iterative learning process
CN103701952A (en) Downlink transmission method of business data and grouped data gateway
JP2014072743A (en) Apparatus for estimating number of wirelessly connected terminals, method for estimating number of wirelessly connected terminals and computer program
CN105025491B (en) A kind of network allocation vector setting method and equipment
CN113924810A (en) Data transmission processing method, device, communication equipment and storage medium
US20230412242A1 (en) User equipment comprising multiple antennas
US20230269122A1 (en) Method and device for determining vortex wave phase deviation, and storage medium
WO2023020383A1 (en) Information processing method and apparatus, and terminal
WO2022104679A1 (en) Method for selecting relay terminal device, and method and device for data transmission
WO2022178787A1 (en) Channel transmission method and device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant