CN118316562B - Clock synchronization method of dual-mode communication module - Google Patents

Clock synchronization method of dual-mode communication module Download PDF

Info

Publication number
CN118316562B
CN118316562B CN202410734699.8A CN202410734699A CN118316562B CN 118316562 B CN118316562 B CN 118316562B CN 202410734699 A CN202410734699 A CN 202410734699A CN 118316562 B CN118316562 B CN 118316562B
Authority
CN
China
Prior art keywords
chip
clock synchronization
broadcast frame
node
bluetooth
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
CN202410734699.8A
Other languages
Chinese (zh)
Other versions
CN118316562A (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.)
Zhejiang Chint Instrument and Meter Co Ltd
Original Assignee
Zhejiang Chint Instrument and Meter Co 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 Zhejiang Chint Instrument and Meter Co Ltd filed Critical Zhejiang Chint Instrument and Meter Co Ltd
Priority to CN202410734699.8A priority Critical patent/CN118316562B/en
Publication of CN118316562A publication Critical patent/CN118316562A/en
Application granted granted Critical
Publication of CN118316562B publication Critical patent/CN118316562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of dual-mode communication and discloses a clock synchronization method of a dual-mode communication module. The method is used for clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network, and comprises the following steps: sending a clock synchronization request frame to a first parent node; receiving a broadcast frame sent by a first parent node; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time period from the first time stamp to the completion of transmitting the broadcast frame; analyzing the broadcast frame, and recording the time length used for analyzing the broadcast frame to obtain a second time delay; and obtaining a clock calibration value based on the first time stamp, the first time delay and the second time delay so as to perform clock synchronization calibration. By the scheme, the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.

Description

Clock synchronization method of dual-mode communication module
Technical Field
The invention relates to the technical field of dual-mode communication, in particular to a clock synchronization method of a dual-mode communication module.
Background
Power line carrier communication (power LINE CARRIER communication) is power system communication using a transmission line as a transmission medium of a carrier signal. However, the problem of communication island caused by incapability of communication of certain nodes due to power line interference in practical application of a simple high-speed power line carrier communication network can be introduced, so that Bluetooth communication can be introduced, the high-speed power line carrier and Bluetooth form a dual-mode heterogeneous communication network, a large number of low-power consumption sensors are connected by utilizing the low-power consumption and easy-connection performance of the Bluetooth communication, multi-dimensional energy utilization and state data acquisition are realized, and the application capacity of a comprehensive energy efficiency management system in the power industry can be greatly expanded.
However, in a heterogeneous network composed of two communication technologies, seamless transmission of a unified power line carrier application communication protocol is required, and thus a method for implementing clock synchronization of a communication network between the two heterogeneous communication technologies is needed.
Disclosure of Invention
In view of the above, the present invention provides a clock synchronization method of a dual-mode communication module to solve the problem of implementing clock synchronization of a communication network between two heterogeneous communication technologies.
In a first aspect, the present invention provides a clock synchronization method of a dual-mode communication module, where the method is used for performing clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, and the at least two layers of communication nodes include a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth; the method is performed by the first child node, the method comprising: sending a clock synchronization request frame to the first parent node; receiving a broadcast frame sent by the first parent node; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time length from a first time stamp to completion of transmitting the broadcast frame; analyzing the broadcast frame, and recording the time length used for analyzing the broadcast frame to obtain a second time delay; and obtaining a clock calibration value based on the first timestamp, the first time delay and the second time delay so as to perform clock synchronization calibration.
According to the scheme, the first child node firstly sends the clock synchronization request frame to the first parent node, after the first parent node receives the clock synchronization request frame, the first time stamp of the broadcast frame to be sent is intercepted, the broadcast frame is sent to the first child node after the first time stamp of the broadcast frame to be sent is inserted into the broadcast frame from the beginning to the completion of the broadcast frame to be sent, the first child node analyzes the broadcast frame to obtain the first time stamp and the first time delay, and clock synchronization calibration is carried out according to the first time stamp, the first time delay and the clock calibration value obtained by analyzing the second time delay of the broadcast frame, so that the influence of single clock synchronization calibration of the time length of the first parent node for sending the broadcast frame and the time length of the first child node for analyzing the broadcast frame during clock synchronization is avoided, and the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is ensured.
In an alternative embodiment, each of the communication nodes includes a bluetooth chip and a carrier chip; the Bluetooth chip is in communication connection with the carrier chip; the method further comprises the steps of: sending a clock synchronization instruction to a second chip through a first chip; the first chip is one of a Bluetooth chip or a carrier chip which acquires a time stamp of a beacon frame in advance; the second chip is the other one of the Bluetooth chip or the carrier chip except the first chip; receiving interrupt enabling signals through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp; the third timestamp is used for indicating the moment when the interrupt enabling signal is received by the first chip; the fourth timestamp is used for indicating the moment when the interrupt enabling signal is received by the second chip; transmitting the third timestamp to the second chip through the first chip; and receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp.
According to the scheme, the step of clock synchronization between the carrier chip and the Bluetooth chip is limited in each communication node if the carrier function and the Bluetooth function are respectively arranged on the carrier chip and the Bluetooth chip, the scheme is thinned, and the accuracy of clock synchronization on the carrier Bluetooth dual-mode heterogeneous communication network when the carrier function and the Bluetooth function are arranged on different chips is ensured.
In an alternative embodiment, the method further comprises: if the clock synchronization completion confirmation instruction of the first parent node is received, the clock synchronization is not completed, and then a clock synchronization incompletion response frame is sent to the first parent node; and receiving the broadcast frame retransmitted by the first parent node to perform clock synchronization calibration.
According to the scheme, the step of how to carry out clock synchronization calibration again when the first child node does not complete the clock synchronization calibration is limited, the scheme is thinned, and further the accuracy of clock synchronization on the carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.
In an alternative embodiment, the method further comprises: when the times of incomplete response frames of the clock synchronization are detected to meet the specified conditions, bluetooth connection with the first parent node is disconnected, and other parent nodes except the first parent node are selected to carry out Bluetooth connection.
According to the scheme, the step of how to continue clock synchronization calibration when the number of times of clock synchronization calibration incomplete by the first child node meets the specified condition is limited, the scheme is thinned, and further the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.
In a second aspect, the present invention provides a clock synchronization method of a dual-mode communication module, where the method is used for performing clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, and the at least two layers of communication nodes include a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth; the method is performed by the first parent node, the method comprising: when receiving a clock synchronization request frame sent by the first child node, sending a broadcast frame to the first child node so that the first child node obtains a clock calibration value based on a first time stamp, a first time delay and a second time delay to perform clock synchronization calibration; the second time delay is obtained by analyzing the broadcast frame by the first sub-node and recording the time length used for analyzing the broadcast frame; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time period from the first time stamp to the completion of transmitting the broadcast frame.
According to the scheme, after the first master node receives the clock synchronization request frame, the first time stamp of the broadcast frame to be sent is intercepted, the broadcast frame is inserted into the first time delay from the beginning of the broadcast frame to the completion of the broadcast frame sending, the broadcast frame is sent to the first sub-node, the first sub-node analyzes the broadcast frame to obtain the first time stamp and the first time delay, and clock synchronization calibration is carried out according to the first time stamp, the first time delay and the clock calibration value obtained by analyzing the second time delay of the broadcast frame, so that the influence of independent clock synchronization calibration of the time length of the first master node for sending the broadcast frame and the time length of the first sub-node for analyzing the broadcast frame during clock synchronization is avoided, and the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is ensured.
In an alternative embodiment, each of the communication nodes includes a bluetooth chip and a carrier chip; the Bluetooth chip is in communication connection with the carrier chip; the method further comprises the steps of: sending a clock synchronization instruction to a second chip through a first chip; the first chip is one of a Bluetooth chip or a carrier chip which acquires a time stamp of a beacon frame in advance; the second chip is the other one of the Bluetooth chip or the carrier chip except the first chip; receiving interrupt enabling signals through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp; the third timestamp is used for indicating the moment when the interrupt enabling signal is received by the first chip; the fourth timestamp is used for indicating the moment when the interrupt enabling signal is received by the second chip; transmitting the third timestamp to the second chip through the first chip; and receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp.
According to the scheme, the step of clock synchronization between the carrier chip and the Bluetooth chip is limited in each communication node if the carrier function and the Bluetooth function are respectively arranged on the carrier chip and the Bluetooth chip, the scheme is thinned, and the accuracy of clock synchronization on the carrier Bluetooth dual-mode heterogeneous communication network when the carrier function and the Bluetooth function are arranged on different chips is ensured.
In an alternative embodiment, the method further comprises: if the clock synchronization uncompleted response frame sent by the first sub-node is received, a broadcast frame is sent to the first sub-node again so that the first sub-node can calibrate the clock synchronization again; the clock synchronization incomplete response frame is sent by the first child node when the clock synchronization is not completed after receiving the clock synchronization completion confirmation instruction of the first parent node.
According to the scheme, the step of how the first master node performs clock synchronization calibration again when the first slave node does not complete the secondary clock synchronization calibration is limited, the scheme is thinned, and the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is further ensured.
In an alternative embodiment, the method further comprises: when the times of receiving the clock synchronization incomplete response frames are detected to meet the specified conditions, the Bluetooth connection with the first child node is disconnected, so that the first child node can select other parent nodes except the first parent node to carry out Bluetooth connection.
According to the scheme, the step of how to continue clock synchronization calibration when the first child node does not complete clock synchronization calibration times and meets the specified conditions is limited, the scheme is refined, and further the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.
In a third aspect, the present invention provides a clock synchronization device of a dual-mode communication module, where the device is configured to perform clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, and the at least two layers of communication nodes include a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth; the apparatus is performed by the first child node, the apparatus comprising:
A synchronization request sending module, configured to send a clock synchronization request frame to the first parent node;
A broadcast frame receiving module, configured to receive a broadcast frame sent by the first parent node; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time length from a first time stamp to completion of transmitting the broadcast frame;
the broadcast frame analysis module is used for analyzing the broadcast frame and recording the duration used for analyzing the broadcast frame so as to obtain a second time delay;
and the clock synchronization module is used for obtaining a clock calibration value based on the first time stamp, the first time delay and the second time delay so as to perform clock synchronization calibration.
In a fourth aspect, the present invention provides a clock synchronization device of a dual-mode communication module, where the device is configured to perform clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, and the at least two layers of communication nodes include a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth; the apparatus is performed by the first parent node, the apparatus comprising:
The broadcast frame sending module is used for sending a broadcast frame to the first sub-node when receiving the clock synchronization request frame sent by the first sub-node, so that the first sub-node obtains a clock calibration value based on a first time stamp, a first time delay and a second time delay to perform clock synchronization calibration; the second time delay is obtained by analyzing the broadcast frame by the first sub-node and recording the time length used for analyzing the broadcast frame; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time period from the first time stamp to the completion of transmitting the broadcast frame.
In a fifth aspect, the present invention provides a computer device comprising: the memory and the processor are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions, so that the clock synchronization method of the dual-mode communication module of the first aspect or any implementation manner corresponding to the first aspect is executed.
In a sixth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the clock synchronization method of the dual mode communication module of the first aspect or any of its corresponding embodiments.
In a seventh aspect, the present invention provides a computer program product comprising computer instructions for causing a computer to perform the clock synchronization method of the dual mode communication module of the first aspect or any of its corresponding embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of clock synchronization for a dual mode communication module according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of clock synchronization for another dual-mode communication module in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a method of clock synchronization for a further dual mode communication module in accordance with an embodiment of the present invention;
Fig. 4 shows a schematic structural diagram of a carrier bluetooth dual-mode heterogeneous communication network according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of clock synchronization between a first parent node and a first child node according to an embodiment of the present invention;
FIG. 6 shows a clock synchronization timing diagram in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram showing clock synchronization between a first chip and a second chip according to an embodiment of the present invention;
FIG. 8 is a block diagram of a clock synchronization apparatus of a dual mode communication module according to an embodiment of the present invention;
FIG. 9 is a block diagram of a clock synchronization apparatus of another dual-mode communication module according to an embodiment of the present invention;
Fig. 10 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Power line carrier communication (power LINE CARRIER communication) is power system communication using a transmission line as a transmission medium of a carrier signal. Because the transmission line has a very firm supporting structure and is erected with more than 3 conductors (generally three-phase good conductors and one or two overhead ground wires), the transmission line is used for transmitting carrier signals while transmitting power frequency current, and is economical and reliable. However, the problem of communication island caused by incapability of communication of certain nodes due to power line interference in practical application of a simple high-speed power line carrier communication network can be introduced, so that Bluetooth communication can be introduced, the high-speed power line carrier and Bluetooth form a dual-mode heterogeneous communication network, a large number of low-power consumption sensors are connected by utilizing the low-power consumption and easy-connection performance of the Bluetooth communication, multi-dimensional energy utilization and state data acquisition are realized, and the application capacity of a comprehensive energy efficiency management system in the power industry can be greatly expanded.
However, in a heterogeneous network formed by two communication technologies, seamless connection transmission of a unified power line carrier application communication protocol needs to be realized, so that the embodiment of the invention provides a clock synchronization method of a dual-mode communication module, and a clock calibration value is obtained through interaction between a first parent node and a first child node so as to achieve the effect of ensuring clock synchronization accuracy.
According to an embodiment of the present invention, a clock synchronization method embodiment of a dual mode communication module is provided, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
In this embodiment, a clock synchronization method of a dual-mode communication module is provided, where the method is used for performing clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, where the at least two layers of communication nodes include a first parent node and a first child node, where the first parent node is connected with the first child node by bluetooth, and the method is performed by the first child node. Fig. 1 is a flowchart of a clock synchronization method of a dual mode communication module according to an embodiment of the present invention, as shown in fig. 1, the flowchart including the steps of:
step S101, a clock synchronization request frame is sent to the first parent node.
The first child node completes Bluetooth connection with the first parent node in advance, and sends a clock synchronization request frame to the first parent node through Bluetooth to request clock synchronization calibration with the first parent node. After receiving the clock synchronization request frame of the first child node, the first parent node intercepts the first time stamp, records the first time delay, plugs the first time stamp and the first time delay into a broadcast frame, and sends the broadcast frame to the first child node.
Step S102, receiving a broadcast frame sent by the first parent node.
The first child node receives a broadcast frame sent by the first parent node, wherein the broadcast frame comprises a first time stamp and a first time delay, the first time stamp is used for indicating the moment when the broadcast frame starts to be sent, and the first time delay is used for indicating the duration from the first time stamp to the completion of sending the broadcast frame.
Step S103, analyzing the broadcast frame, and recording the time length used for analyzing the broadcast frame to obtain a second time delay.
The first child node analyzes the received broadcast frame to obtain a first time stamp and a first time delay, and takes the time length used for analyzing the broadcast frame as a second time delay.
Step S104, based on the first time stamp, the first time delay and the second time delay, a clock calibration value is obtained to perform clock synchronization calibration.
The first node obtains a clock calibration value according to the analyzed first time stamp, the first time delay and the recorded second time delay, and performs clock synchronous calibration according to the clock calibration value. The first time stamp is the time when the first master node starts to send the broadcast frame, the first time delay is the time from the first master node to the time when the first master node finishes sending the broadcast frame to the time when the first slave node finishes sending the broadcast frame, the time from the time when the first master node finishes sending the broadcast frame to the time when the first slave node receives the broadcast frame is negligible, and the second time delay is the time used by the first slave node to analyze the broadcast frame, so that the time spent by the first time stamp and the time spent by the first master node from the time when the first master node starts to send the broadcast frame to the time when the first slave node finishes analyzing the broadcast frame are added, the clock synchronization target time when the first slave node finishes analyzing the broadcast frame can be obtained, and the clock synchronization calibration can be carried out by comparing the time stamp corresponding to the time when the first slave node finishes analyzing the broadcast frame with the clock synchronization target time. Illustratively, the sum of the first timestamp, the first delay, and the second delay is taken as a clock calibration value to perform clock synchronization calibration.
Optionally, the first parent node sends the broadcast frame every other target duration, and the first child node executes steps S102 to S104 again after receiving the broadcast frame, so as to ensure accuracy of clock synchronization.
According to the clock synchronization method of the dual-mode communication module, firstly, a first child node sends a clock synchronization request frame to a first parent node, after the first parent node receives the clock synchronization request frame, a first time stamp for starting to send the broadcast frame and a first time delay for stopping to send the broadcast frame from the beginning to the end are intercepted, the broadcast frame is sent to the first child node, the first child node analyzes the broadcast frame to obtain the first time stamp and the first time delay, and clock synchronization calibration is carried out according to the first time stamp, the first time delay and a second time delay for analyzing the broadcast frame to obtain a clock calibration value, so that the influence of independent clock synchronization calibration on the time length for sending the broadcast frame by the first parent node and the time length for analyzing the broadcast frame by the first child node during clock synchronization is avoided, and the accuracy of clock synchronization of a carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.
In this embodiment, a clock synchronization method of a dual-mode communication module is provided, where the method is used for performing clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, where the at least two layers of communication nodes include a first parent node and a first child node, where the first parent node is connected with the first child node by bluetooth, and the method is performed by the first parent node. Fig. 2 is a flowchart of a clock synchronization method of a dual mode communication module according to an embodiment of the present invention, as shown in fig. 2, the flowchart including the steps of:
Step S201, when receiving the clock synchronization request frame sent by the first child node, sending a broadcast frame to the first child node, so that the first child node obtains a clock calibration value based on the first timestamp, the first delay and the second delay, so as to perform clock synchronization calibration.
The broadcast frame includes a first time stamp indicating a time at which the broadcast frame starts to be transmitted and a first time delay indicating a time period from the first time stamp to completion of transmitting the broadcast frame. After receiving the clock synchronization request frame of the first child node, the first parent node intercepts the first time stamp, records the first time delay, plugs the first time stamp and the first time delay into a broadcast frame, and sends the broadcast frame to the first child node. The second time delay is obtained by analyzing the broadcast frame by the first child node and recording the time length used for analyzing the broadcast frame. And adding the first time stamp and the time spent between the first master node starting to send the broadcast frame and the first child node finishing analyzing the broadcast frame, so that the clock synchronization target time when the first child node finishes analyzing the broadcast frame can be obtained under the condition that the time of the first master node is taken as a standard, and then comparing the time stamp corresponding to the time stamp which finishes analyzing the broadcast frame with the clock synchronization target time, so that the clock synchronization calibration can be carried out.
According to the clock synchronization method of the dual-mode communication module, after the first parent node receives the clock synchronization request frame, the first time stamp of the broadcast frame to be sent is intercepted, the broadcast frame is inserted into the first time delay from the beginning of the broadcast frame to the completion of the broadcast frame sending, the broadcast frame is sent to the first child node, the first child node analyzes the broadcast frame to obtain the first time stamp and the first time delay, and clock synchronization calibration is carried out according to the first time stamp, the first time delay and the second time delay for analyzing the broadcast frame to obtain the clock calibration value, so that the influence of independent clock synchronization calibration on the time length of the first parent node for sending the broadcast frame and the time length of the first child node for analyzing the broadcast frame during clock synchronization is avoided, and the accuracy of clock synchronization of the carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.
In this embodiment, a clock synchronization method of a dual-mode communication module is provided, where the method is used for performing clock synchronization on a carrier bluetooth dual-mode heterogeneous communication network, where the carrier bluetooth dual-mode heterogeneous communication network includes at least two layers of communication nodes, where the at least two layers of communication nodes include a first parent node and a first child node, where the first parent node is connected with the first child node by bluetooth, and the method is performed jointly by the first child node and the first parent node. Fig. 3 is a flowchart of a clock synchronization method of a dual mode communication module according to an embodiment of the present invention, as shown in fig. 3, the flowchart including the steps of:
In step S301, the first child node sends a clock synchronization request frame to the first parent node.
Fig. 4 is a schematic structural diagram of a carrier bluetooth dual-mode heterogeneous communication network according to an embodiment of the present application. As shown in fig. 4, the carrier bluetooth dual-mode heterogeneous communication network includes respective parent nodes and child nodes, each node corresponding to one communication device in the carrier bluetooth dual-mode heterogeneous communication network. The nodes can be connected through carrier waves or Bluetooth, the Bluetooth communication protocol is an independent communication protocol, data of the high-speed power line carrier communication protocol is transmitted through the Bluetooth communication protocol in the past in a relay mode, clock deviation of a carrier processing chip and a Bluetooth processing chip in the nodes must be accurately calculated, and error calibration is carried out. The parent node may be a central coordinator CCO (central coordinator) or a proxy coordinator PCO (proxy coordinator), the child node may be a proxy coordinator PCO or a station STA (station), the central coordinator CCO is a central coordinator node of the entire network, the proxy coordinator PCO is an intermediate node, the station STA is a peripheral node in the network, and when the station STA has a point of the next hierarchy, it is converted into the proxy coordinator PCO. The communication process of the carrier bluetooth dual-mode heterogeneous communication network is orderly performed based on beacon slots, so that the network reference time NTB (Network Time Base) of the whole network needs to be unified, and all communication devices in the network must be synchronized to the same clock. The communication equipment where the central coordinator CCO is located periodically transmits NTB, other communication equipment sequentially receives and synchronizes to the NTB, and the main function of synchronizing to the NTB is to analyze the time slot allocation of the CCO by taking the NTB as a reference, so that unified time slot allocation of communication nodes of the whole network can be achieved. The synchronization of the NTB may also be used for clock synchronization of the physical layer, so that the message signal can be correctly sent and the message signal can be correctly parsed in practical applications. Illustratively, each communication device maintains a 32-bit timer ntb_sta locally, and the timers of the respective communication devices need to be kept synchronized in frequency and absolute value.
Fig. 5 shows a schematic diagram of clock synchronization between a first parent node and a first child node according to an embodiment of the present invention, where the first parent node corresponds to a module a and the first child node corresponds to a module B. Fig. 6 shows a clock synchronization timing diagram according to an embodiment of the present invention. When a first child node needs to access a carrier Bluetooth dual mode heterogeneous communication network, a GATT (Generic Attribute Profile, general attribute profile) is initiated to a first parent node to establish a Bluetooth connection. Next, the first child node transmits a clock synchronization request frame to the first parent node to request clock synchronization with the first parent node.
In step S302, when receiving the first child node sending a clock synchronization request frame, the first parent node sends a broadcast frame to the first child node.
When the first parent node receives the clock synchronization request frame of the first child node, it transmits a broadcast frame to the first child node, the broadcast frame including a first time stamp (time t0 in fig. 6) and a first time delay (time t0 in fig. 6)) The first time stamp is used for indicating the time when the broadcast frame starts to be transmitted, and the first time delay is used for indicating the time period from the first time stamp to the completion of transmitting the broadcast frame. Illustratively, at the first timestamp, the first parent node inserts the current accurate timestamp (i.e., the first timestamp) into the broadcast frame, and also puts the first delay into the broadcast frame, and then sends the broadcast frame to the first child node. Note that, the time t1 in fig. 6 is the time when the transmission of the broadcast frame is completed.
In step S303, the first child node receives the broadcast frame sent by the first parent node.
The first child node receives a broadcast frame with a first timestamp and a first delay.
In step S304, the first child node parses the broadcast frame, and records a duration used for parsing the broadcast frame, so as to obtain a second delay.
That is, the length of time taken to parse the broadcast frame is the second delay (in fig. 6). It should be noted that the first child node may also intercept the time when the broadcast frame is received (t 2 in fig. 6), but the bluetooth transmission speed is very fast, and the gap between t1 and t2 is very small, so this scheme is not counted in performing clock synchronization. The time t3 in fig. 6 is the time when the analysis of the broadcast frame is completed.
In step S305, the first child node obtains a clock calibration value based on the first timestamp, the first delay and the second delay, so as to perform clock synchronization calibration.
Optionally, the first child node uses the sum of the first time stamp, the first time delay and the second time delay as a clock calibration value to perform clock synchronization calibration, wherein the instant Zhong Jiao standard value is
In step S306, the first parent node sends a clock synchronization completion confirmation instruction to the first child node.
The first parent node needs to confirm whether the first child node completes clock synchronization, and therefore sends a clock synchronization completion confirmation instruction to the first child node.
In step S307, the first child node receives the clock synchronization completion confirmation instruction sent by the first parent node.
And if the first master node receives the clock synchronization incomplete response frame sent by the first child node, a new broadcast frame is sent to the first child node again so that the first child node can perform clock synchronization calibration again. The new broadcast frame contains a time at which the new broadcast frame starts to be transmitted and a time period from the transmission to the completion of the transmission.
Further, the first child node receives the broadcast frame retransmitted by the first parent node, so as to perform clock synchronization calibration.
In an actual application scenario, a situation that clock synchronization calibration is not achieved between the first child node and the first parent node for multiple times may occur, and optionally, when the first child node detects that the number of times of sending the clock synchronization incomplete response frame meets a specified condition, the Bluetooth connection between the first child node and the first parent node is disconnected, and other parent nodes except the first parent node are selected to conduct Bluetooth connection. Next, step S301 to step S307 are performed again with the new parent node. Optionally, the operation of disconnecting the bluetooth connection may also be performed by the first parent node, and when the first parent node detects that the number of times of receiving the clock synchronization incomplete response frame meets the specified condition, the bluetooth connection with the first child node is disconnected, so that the first child node selects other parent nodes except the first parent node to perform bluetooth connection. The specified condition may be set according to actual demands, for example, to be set such that the number of times exceeds three or the time period spent performing three clock syncs exceeds a specified time period, or the like.
In an actual application scene, aiming at each communication node, if the Bluetooth function and the carrier function in the communication node are in the SOC design of a single chip, namely the Bluetooth function and the carrier function are arranged in the same chip, a timer is shared, and clock synchronization of the Bluetooth chip and the carrier chip is not needed; if the bluetooth function and the carrier function are respectively arranged in the bluetooth chip and the carrier chip, the clock synchronization of the bluetooth chip and the carrier chip is needed. Fig. 7 shows a schematic diagram of clock synchronization between a first chip and a second chip according to an embodiment of the present invention. Optionally, each of the communication nodes includes a bluetooth chip and a carrier chip, where the bluetooth chip and the carrier chip are communicatively connected, for example, through an SPI interface (SERIAL PERIPHERAL INTERFACE, synchronous serial bus) for data transmission.
In the same communication node, the step of clock synchronization between the Bluetooth chip and the carrier chip comprises the following steps:
Firstly, a clock synchronization instruction is sent to a second chip through a first chip, wherein the first chip is one of a Bluetooth chip or a carrier chip which obtains a time stamp of a beacon frame in advance, the second chip is the other chip except the first chip, that is, one of the Bluetooth chip and the carrier chip which receives the time stamp of the beacon frame first is the first chip, and the other chip is the second chip.
And then, receiving an interrupt enabling signal through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp, wherein the third time stamp is used for indicating the moment when the interrupt enabling signal is received by the first chip, and the fourth time stamp is used for indicating the moment when the interrupt enabling signal is received by the second chip. That is, both the first chip and the second chip receive the interrupt enable signal, which is pulled by the carrier chip side, the first chip intercepts the third timestamp when receiving the interrupt enable signal, and the second chip intercepts the fourth timestamp when receiving the interrupt enable signal.
The third timestamp is then sent to the second chip by the first chip. That is, the chip that first acquired the timestamp of the beacon frame transmits the timestamp intercepted when the interrupt enable signal is received to another chip.
And finally, receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp. That is, the chip that does not acquire the time stamp of the beacon frame receives the time stamp that was acquired first of all of the time stamp of the beacon frame, intercepts the time stamp when the interrupt enable signal is received, and compares the received time stamp with the time stamp that was intercepted by itself when the interrupt enable signal is received, to perform clock synchronization calibration, for example, clock synchronization calibration using the time difference between the third time stamp and the fourth time stamp as a calibration value.
Optionally, the central coordinator of the carrier bluetooth dual-mode heterogeneous communication network sends a broadcast frame once every target time length, and each communication node performs clock synchronization calibration when receiving the broadcast frame, so as to ensure the consistency of bluetooth clocks of each communication node in the carrier bluetooth dual-mode heterogeneous communication network. That is, after the first parent node and the first child node successfully perform clock synchronization calibration once, that is, after the first child node successfully accesses the carrier bluetooth dual-mode heterogeneous communication network, the first parent node and the first child node execute steps S303 to S307 once every a target time length, so as to ensure the bluetooth clock consistency of the first parent node and the first child node. The target duration may be set according to an actual regular beacon period, for example, set to 2-10 seconds.
According to the clock synchronization method of the dual-mode communication module, firstly, a first child node sends a clock synchronization request frame to a first parent node, after the first parent node receives the clock synchronization request frame, a first time stamp for starting to send the broadcast frame and a first time delay for stopping to send the broadcast frame from the beginning to the end are intercepted, the broadcast frame is sent to the first child node, the first child node analyzes the broadcast frame to obtain the first time stamp and the first time delay, and clock synchronization calibration is carried out according to the first time stamp, the first time delay and a second time delay for analyzing the broadcast frame to obtain a clock calibration value, so that the influence of independent clock synchronization calibration on the time length for sending the broadcast frame by the first parent node and the time length for analyzing the broadcast frame by the first child node during clock synchronization is avoided, and the accuracy of clock synchronization of a carrier Bluetooth dual-mode heterogeneous communication network is guaranteed.
The embodiment also provides a clock synchronization device of the dual-mode communication module, which is used for implementing the above embodiment and the preferred implementation manner, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment provides a clock synchronization device of a dual-mode communication module, which is used for performing clock synchronization on a carrier Bluetooth dual-mode heterogeneous communication network, wherein the carrier Bluetooth dual-mode heterogeneous communication network comprises at least two layers of communication nodes, and the at least two layers of communication nodes comprise a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth; the apparatus is executed by the first child node, as shown in fig. 8, and the apparatus includes:
a synchronization request sending module 801, configured to send a clock synchronization request frame to the first parent node;
A broadcast frame receiving module 802, configured to receive a broadcast frame sent by the first parent node; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time period from the first time stamp to the completion of transmitting the broadcast frame;
a broadcast frame parsing module 803, configured to parse the broadcast frame, and record a duration used for parsing the broadcast frame, so as to obtain a second time delay;
The clock synchronization module 804 is configured to obtain a clock calibration value based on the first timestamp, the first delay and the second delay, so as to perform clock synchronization calibration.
In one possible implementation, each of the communication nodes includes a bluetooth chip and a carrier chip; the Bluetooth chip is in communication connection with the carrier chip; the apparatus further comprises a communication node synchronization module for: sending a clock synchronization instruction to a second chip through a first chip; the first chip is one of a Bluetooth chip or a carrier chip which acquires a time stamp of a beacon frame in advance; the second chip is the other chip except the first chip in the Bluetooth chip or the carrier chip; receiving interrupt enabling signals through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp; the third timestamp is used for indicating the moment when the interrupt enabling signal is received by the first chip; the fourth timestamp is used for indicating the moment when the interrupt enabling signal is received by the second chip; transmitting the third timestamp to the second chip through the first chip; and receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp.
In one possible implementation manner, the apparatus further includes a first synchronization confirmation module configured to: if the clock synchronization completion confirmation instruction of the first parent node is received, the clock synchronization is not completed, and then a clock synchronization incompletion response frame is sent to the first parent node; and receiving the broadcast frame retransmitted by the first parent node to perform clock synchronization calibration.
In one possible implementation manner, the device further includes a first bluetooth connection module, configured to disconnect bluetooth connection with the first parent node when it is detected that the number of times of sending the clock synchronization incomplete response frame meets a specified condition, and select other parent nodes except for the first parent node to perform bluetooth connection.
The embodiment provides a clock synchronization device of a dual-mode communication module, which is used for performing clock synchronization on a carrier Bluetooth dual-mode heterogeneous communication network, wherein the carrier Bluetooth dual-mode heterogeneous communication network comprises at least two layers of communication nodes, and the at least two layers of communication nodes comprise a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth; the apparatus is executed by the first parent node, as shown in fig. 9, and includes:
The broadcast frame sending module 901 is configured to send a broadcast frame to the first child node when receiving the clock synchronization request frame sent by the first child node, so that the first child node obtains a clock calibration value based on a first timestamp, a first delay and a second delay, so as to perform clock synchronization calibration; the second time delay is obtained by analyzing the broadcast frame by the first child node and recording the time length used for analyzing the broadcast frame; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used to indicate a duration from the first time stamp to completion of transmitting the broadcast frame.
In one possible implementation, each of the communication nodes includes a bluetooth chip and a carrier chip; the Bluetooth chip is in communication connection with the carrier chip; the method further comprises the steps of: sending a clock synchronization instruction to a second chip through a first chip; the first chip is one of a Bluetooth chip or a carrier chip which acquires a time stamp of a beacon frame in advance; the second chip is the other chip except the first chip in the Bluetooth chip or the carrier chip; receiving interrupt enabling signals through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp; the third timestamp is used for indicating the moment when the interrupt enabling signal is received by the first chip; the fourth timestamp is used for indicating the moment when the interrupt enabling signal is received by the second chip; transmitting the third timestamp to the second chip through the first chip; and receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp.
In one possible implementation manner, the apparatus further includes a second synchronization confirmation module, configured to: if the clock synchronization uncompleted response frame sent by the first sub-node is received, a broadcast frame is sent to the first sub-node again so that the first sub-node can calibrate the clock synchronization again; the clock synchronization incomplete response frame is sent by the first child node when the clock synchronization is not completed after receiving the clock synchronization completion confirmation instruction of the first parent node.
In one possible implementation manner, the device further includes a second bluetooth connection module, configured to disconnect the bluetooth connection with the first child node when it is detected that the number of times of receiving the clock synchronization incomplete response frame meets a specified condition, so that the first child node selects other parent nodes except the first parent node to perform bluetooth connection.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The clock synchronization means of the dual mode communication module in this embodiment is presented in the form of functional units, where the units are ASIC (Application SPECIFIC INTEGRATED Circuit) circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the above functions.
The embodiment of the invention also provides a computer device, which is provided with the clock synchronization device of the dual-mode communication module shown in the figure 8 or the figure 9.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 10, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 10.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Portions of the present invention may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or aspects in accordance with the present invention by way of operation of the computer. Those skilled in the art will appreciate that the form of computer program instructions present in a computer readable medium includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Herein, a computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by a computer.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (13)

1. The clock synchronization method of the dual-mode communication module is characterized by being used for carrying out clock synchronization on a carrier Bluetooth dual-mode heterogeneous communication network, wherein the carrier Bluetooth dual-mode heterogeneous communication network comprises at least two layers of communication nodes, and the at least two layers of communication nodes comprise a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth;
The method is performed by the first child node, the method comprising:
sending a clock synchronization request frame to the first parent node;
Receiving a broadcast frame sent by the first parent node; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time length from a first time stamp to completion of transmitting the broadcast frame;
Analyzing the broadcast frame, and recording the time length used for analyzing the broadcast frame to obtain a second time delay;
Obtaining a clock calibration value based on the first timestamp, the first time delay and the second time delay so as to perform clock synchronization calibration; wherein the sum of the first timestamp, the first delay and the second delay is taken as a clock calibration value.
2. The method of claim 1, wherein each of the communication nodes includes a bluetooth chip and a carrier chip; the Bluetooth chip is in communication connection with the carrier chip; the method further comprises the steps of:
Sending a clock synchronization instruction to a second chip through a first chip; the first chip is one of a Bluetooth chip or a carrier chip which acquires a time stamp of a beacon frame in advance; the second chip is the other one of the Bluetooth chip or the carrier chip except the first chip;
Receiving interrupt enabling signals through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp; the third timestamp is used for indicating the moment when the interrupt enabling signal is received by the first chip; the fourth timestamp is used for indicating the moment when the interrupt enabling signal is received by the second chip;
transmitting the third timestamp to the second chip through the first chip;
and receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
if the clock synchronization completion confirmation instruction of the first parent node is received, the clock synchronization is not completed, and then a clock synchronization incompletion response frame is sent to the first parent node;
and receiving the broadcast frame retransmitted by the first parent node to perform clock synchronization calibration.
4. A method according to claim 3, characterized in that the method further comprises:
When the times of incomplete response frames of the clock synchronization are detected to meet the specified conditions, bluetooth connection with the first parent node is disconnected, and other parent nodes except the first parent node are selected to carry out Bluetooth connection.
5. The clock synchronization method of the dual-mode communication module is characterized by being used for carrying out clock synchronization on a carrier Bluetooth dual-mode heterogeneous communication network, wherein the carrier Bluetooth dual-mode heterogeneous communication network comprises at least two layers of communication nodes, and the at least two layers of communication nodes comprise a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth;
the method is performed by the first parent node, the method comprising:
When receiving a clock synchronization request frame sent by the first child node, sending a broadcast frame to the first child node so that the first child node obtains a clock calibration value based on a first time stamp, a first time delay and a second time delay to perform clock synchronization calibration; the second time delay is obtained by analyzing the broadcast frame by the first sub-node and recording the time length used for analyzing the broadcast frame; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time length from a first time stamp to completion of transmitting the broadcast frame; wherein the sum of the first timestamp, the first delay and the second delay is taken as a clock calibration value.
6. The method of claim 5, wherein each of the communication nodes includes a bluetooth chip and a carrier chip; the Bluetooth chip is in communication connection with the carrier chip; the method further comprises the steps of:
Sending a clock synchronization instruction to a second chip through a first chip; the first chip is one of a Bluetooth chip or a carrier chip which acquires a time stamp of a beacon frame in advance; the second chip is the other one of the Bluetooth chip or the carrier chip except the first chip;
Receiving interrupt enabling signals through the first chip and the second chip respectively, and intercepting a third time stamp and a fourth time stamp; the third timestamp is used for indicating the moment when the interrupt enabling signal is received by the first chip; the fourth timestamp is used for indicating the moment when the interrupt enabling signal is received by the second chip;
transmitting the third timestamp to the second chip through the first chip;
and receiving the third time stamp through the second chip, and performing clock synchronization calibration between the first chip and the second chip based on the third time stamp and the fourth time stamp.
7. The method according to claim 5 or 6, characterized in that the method further comprises:
If the clock synchronization uncompleted response frame sent by the first sub-node is received, a broadcast frame is sent to the first sub-node again so that the first sub-node can calibrate the clock synchronization again; the clock synchronization incomplete response frame is sent by the first child node when the clock synchronization is not completed after receiving the clock synchronization completion confirmation instruction of the first parent node.
8. The method of claim 7, wherein the method further comprises:
when the times of receiving the clock synchronization incomplete response frames are detected to meet the specified conditions, the Bluetooth connection with the first child node is disconnected, so that the first child node can select other parent nodes except the first parent node to carry out Bluetooth connection.
9. The clock synchronization device of the dual-mode communication module is characterized by being used for carrying out clock synchronization on a carrier Bluetooth dual-mode heterogeneous communication network, wherein the carrier Bluetooth dual-mode heterogeneous communication network comprises at least two layers of communication nodes, and the at least two layers of communication nodes comprise a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth;
the apparatus is performed by the first child node, the apparatus comprising:
A synchronization request sending module, configured to send a clock synchronization request frame to the first parent node;
A broadcast frame receiving module, configured to receive a broadcast frame sent by the first parent node; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time length from a first time stamp to completion of transmitting the broadcast frame;
the broadcast frame analysis module is used for analyzing the broadcast frame and recording the duration used for analyzing the broadcast frame so as to obtain a second time delay;
the clock synchronization module is used for obtaining a clock calibration value based on the first time stamp, the first time delay and the second time delay so as to perform clock synchronization calibration; wherein the sum of the first timestamp, the first delay and the second delay is taken as a clock calibration value.
10. The clock synchronization device of the dual-mode communication module is characterized by being used for carrying out clock synchronization on a carrier Bluetooth dual-mode heterogeneous communication network, wherein the carrier Bluetooth dual-mode heterogeneous communication network comprises at least two layers of communication nodes, and the at least two layers of communication nodes comprise a first parent node and a first child node; the first parent node is connected with the first child node through Bluetooth;
The apparatus is performed by the first parent node, the apparatus comprising:
The broadcast frame sending module is used for sending a broadcast frame to the first sub-node when receiving the clock synchronization request frame sent by the first sub-node, so that the first sub-node obtains a clock calibration value based on a first time stamp, a first time delay and a second time delay to perform clock synchronization calibration; the second time delay is obtained by analyzing the broadcast frame by the first sub-node and recording the time length used for analyzing the broadcast frame; the broadcast frame includes a first timestamp and a first delay; the first timestamp is used for indicating the moment when the broadcast frame starts to be sent; the first time delay is used for indicating a time length from a first time stamp to completion of transmitting the broadcast frame; wherein the sum of the first timestamp, the first delay and the second delay is taken as a clock calibration value.
11. A computer device, comprising:
a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the clock synchronization method of the dual mode communication module of any of claims 1 to 8.
12. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the clock synchronization method of the dual mode communication module of any one of claims 1 to 8.
13. A computer program product comprising computer instructions for causing a computer to perform the clock synchronization method of the dual mode communication module of any one of claims 1 to 8.
CN202410734699.8A 2024-06-07 2024-06-07 Clock synchronization method of dual-mode communication module Active CN118316562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410734699.8A CN118316562B (en) 2024-06-07 2024-06-07 Clock synchronization method of dual-mode communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410734699.8A CN118316562B (en) 2024-06-07 2024-06-07 Clock synchronization method of dual-mode communication module

Publications (2)

Publication Number Publication Date
CN118316562A CN118316562A (en) 2024-07-09
CN118316562B true CN118316562B (en) 2024-08-20

Family

ID=91730577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410734699.8A Active CN118316562B (en) 2024-06-07 2024-06-07 Clock synchronization method of dual-mode communication module

Country Status (1)

Country Link
CN (1) CN118316562B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102869087A (en) * 2012-09-26 2013-01-09 重庆邮电大学 Hardware time synchronization implementation method for industrial Internet of things chip
AU2015204359A1 (en) * 2011-03-11 2015-08-06 Interdigital Madison Patent Holdings Decoder and method at the decoder for synchronizing the rendering of contents received through different networks

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100542346B1 (en) * 2003-07-30 2006-01-11 삼성전자주식회사 method and apparatus for packet processing in WLAN access point
CN102025586B (en) * 2009-09-09 2014-07-09 华为技术有限公司 Intercommunicating method, device and system for multiple protocol label switching network and Ethernet
CN101867605A (en) * 2010-05-21 2010-10-20 中兴通讯股份有限公司 Method, device and system for improving synchronous efficiency of RSS (Really Simple Syndication) business
CN102215078A (en) * 2011-06-09 2011-10-12 国网电力科学研究院 Method for realizing hardware timestamp based on FPGA (field programmable gate array)
US9924010B2 (en) * 2015-06-05 2018-03-20 Apple Inc. Audio data routing between multiple wirelessly connected devices
CN110958070B (en) * 2018-09-27 2021-08-20 华为技术有限公司 Reference time determination method and device
CN111147907B (en) * 2019-12-26 2022-05-10 深圳市优必选科技股份有限公司 Method, device and system for synchronously playing multiple intelligent terminals and intelligent terminal
US11316912B2 (en) * 2020-05-26 2022-04-26 Grass Valley Canada System and method for synchronizing transmission of media content using timestamps
CN112714490B (en) * 2020-12-29 2022-07-29 京信网络系统股份有限公司 Time delay calibration method, time delay calibration device, computer equipment and computer readable storage medium
CN113225151B (en) * 2021-04-19 2023-08-25 杭州康吉森自动化科技有限公司 Clock synchronization system, method and device based on CAN bus
CN113316097B (en) * 2021-07-29 2021-11-05 广州慧睿思通科技股份有限公司 Time slot calibration method, intercom device, system, electronic device and storage medium
CN113923596B (en) * 2021-11-23 2024-01-30 中国民用航空总局第二研究所 Indoor positioning method, device, equipment and medium
WO2023198464A1 (en) * 2022-04-13 2023-10-19 Imec Vzw Impactless associating in a wireless time sensitive network
CN115065929B (en) * 2022-06-09 2023-03-17 青岛柯锐思德电子科技有限公司 UWB TDOA positioning method based on clock pseudo-synchronization
CN115361084A (en) * 2022-08-23 2022-11-18 歌尔科技有限公司 Method, device, equipment and medium for synchronizing clocks
CN115347972B (en) * 2022-10-18 2024-01-16 杭州聆巡科技有限公司 Sonar clock synchronization method, device, equipment and storage medium
CN117858030B (en) * 2024-03-05 2024-05-31 北京三圣凯瑞科技有限公司 Wireless communication calibration method, system, terminal and storage medium
CN118102434A (en) * 2024-04-18 2024-05-28 南京乐韵瑞信息技术有限公司 Audio synchronous playing method, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2015204359A1 (en) * 2011-03-11 2015-08-06 Interdigital Madison Patent Holdings Decoder and method at the decoder for synchronizing the rendering of contents received through different networks
CN102869087A (en) * 2012-09-26 2013-01-09 重庆邮电大学 Hardware time synchronization implementation method for industrial Internet of things chip

Also Published As

Publication number Publication date
CN118316562A (en) 2024-07-09

Similar Documents

Publication Publication Date Title
US11609598B2 (en) Network card, time synchronization methods and devices, and computer storage media
WO2017024688A1 (en) Control method and system capable of system upgrade without interrupting services
US9900120B2 (en) Clock synchronization method and apparatus
US20120219099A1 (en) System, method, and device to distribute accurate synchronization timestamps in an expandable and timing critical system
US10462759B2 (en) System and method for clock synchronization on a wireless network
CN103312428B (en) For the method and apparatus of precision clock protocol synchronization network
CN110493744A (en) A kind of synchronous data sampling method and system of master-slave radio sensor
CN111061338B (en) Method, system and equipment for updating time sequence of baseboard management controller
US20120079310A1 (en) Communication system, communication interface, and synchronization method
US12082268B2 (en) Resource processing method and device
CN112838903A (en) Clock synchronization method, equipment and storage medium
CN107947888B (en) A kind of task level synchronous method based on network communication
CN109996325B (en) Clock synchronization system and method of wireless sensor network
CN107888434B (en) Network equipment configuration synchronization method and device
CN109471588A (en) A kind of synchronous method and equipment
CN118316562B (en) Clock synchronization method of dual-mode communication module
CN113630203A (en) Multi-device trigger synchronization method
CN111884751A (en) Smart grid time synchronization method and device based on PTP
EP4254831A1 (en) Method and device for selecting clock source
CN102983959B (en) Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
WO2016000324A1 (en) Method and apparatus for implementing time synchronization
CN112511255B (en) Time synchronization method and device
CN112820092B (en) Method for collecting electricity consumption data, terminal equipment and storage medium
CN112261715B (en) Synchronization method, device and system of indoor distribution communication system
CN112019288B (en) Time synchronization method, service single board and network equipment

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