Communication equipment synchronization method and device

By comparing the time stamp reference clock homology of communication devices and switching clock sources, the problem of slave devices not supporting synchronous Ethernet frequency synchronization is solved, high-precision frequency synchronization between devices is achieved, and system stability and communication quality are improved.

CN118400795BActive Publication Date: 2024-08-27CHENGDU ARRAYCOMM WIRELESS TECH CO LTD

Patent Information

Application Number
CN202410844043.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-27
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

In modern mobile communication systems, there are errors in time synchronization and frequency synchronization between devices, causing the frequency synchronization accuracy of the timestamp unit to fail to meet the requirements, affecting the accuracy of the entire time synchronization, especially when the slave device does not support or is not compatible with SYNCE-based frequencies. Synchronization scheme.

Method used

By comparing the reference clock homology of the sending timestamp and receiving timestamp of the master device and the slave device, it is determined whether the slave device supports frequency synchronization of synchronous Ethernet, and for devices that do not support it, the reference clock of the master device's sending timestamp is The clock switches to a synchronous Ethernet recovered clock that is the same as the received timestamp to achieve frequency synchronization of the master and slave devices.

Benefits of technology

It ensures high-precision frequency synchronization between devices, improves system stability and time synchronization performance, provides more reliable and accurate data communication, and improves communication quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400795B
    Figure CN118400795B
Patent Text Reader

Abstract

The present application provides a communication device synchronization method and apparatus, the method comprising judging whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device; for the slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp is switched to the synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device. Through the communication device synchronization method of the present application, even if the slave device does not support synchronous Ethernet, it is still possible to ensure high-precision frequency synchronization between the master device and the slave device by switching the reference clock.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication device synchronization method and apparatus. Background Art

[0002] In modern mobile communication systems, time synchronization and frequency synchronization are crucial for communication between devices. In order to meet the needs of high-precision synchronization, the synchronization scheme of packet Ethernet has become the mainstream trend. Among them, SYNCE (Synchronous Ethernet) is used to achieve frequency synchronization, while IEEE 1588 is used to achieve time synchronization. Combining SYNCE with IEEE 1588 (a standard developed by the Institute of Electrical and Electronics Engineers) can meet the needs of high-precision synchronization to a certain extent. The basis of this scheme is to use SYNCE to achieve high-precision clock frequency synchronization. By transmitting and recovering the Ethernet clock frequency between devices and keeping the clock frequency of the timestamp unit consistent, the overall time information synchronization between devices is achieved.

[0003] However, due to hardware differences, differences in clock scheme design or implementation, etc., not all slave devices can fully support the SYNCE-based frequency synchronization scheme. The hardware of some slave devices cannot recover the frequency from the Ethernet link, and some slave devices recover the frequency but do not use it as the reference frequency of the timestamp unit. In addition, there are some slave devices that cannot meet the accuracy requirements of the timestamp unit frequency synchronization due to the large homology error between the timestamp unit frequency and the recovered frequency, thus affecting the accuracy of the entire time synchronization. Summary of the invention

[0004] The present application provides a communication device synchronization method and apparatus, which are used to solve the problem of achieving high-precision frequency synchronization between a slave device and a master device while keeping the slave device unchanged, thereby ensuring synchronization of time information between devices.

[0005] In a first aspect, the present application provides a communication device synchronization method, wherein the communication device includes a master device and a slave device, and based on the master device side, the method includes:

[0006] Determining whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device;

[0007] For a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device.

[0008] In an embodiment of the present application, the step of determining whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device includes:

[0009] Generate a sending timestamp for indicating the current time, and send the sending timestamp and clock information to the slave device via synchronous Ethernet;

[0010] A receiving timestamp is received from the slave device. If the clocks carried by the receiving timestamp and the sending timestamp are both sourced from a reference clock generated by a local crystal oscillator of the master device, it is determined that the slave device supports frequency synchronization based on synchronous Ethernet.

[0011] In an embodiment of the present application, the step of determining whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device further includes:

[0012] Dividing a clock used to represent the master device into a sending clock and a receiving clock to form a corresponding sending timestamp and receiving timestamp;

[0013] Determining a reference clock source of the sending timestamp and the receiving timestamp;

[0014] If the reference clocks of the sending timestamp and the receiving timestamp are not from the same source, it means that the slave device does not support frequency synchronization based on synchronous Ethernet.

[0015] In an embodiment of the present application, for a slave device that does not support synchronous Ethernet, the step of switching the reference clock of the sending timestamp to a synchronous Ethernet recovery clock that is the same as the receiving timestamp includes:

[0016] If the slave device does not support frequency synchronization based on synchronous Ethernet, the clock of the received timestamp is derived from a reference clock generated by a local crystal oscillator of the slave device.

[0017] In an embodiment of the present application, for a slave device that does not support synchronous Ethernet, the step of switching the reference clock of the sending timestamp to a synchronous Ethernet recovery clock that is the same as the receiving timestamp further includes:

[0018] Calling a register configured on the master device, wherein the register is used to control the selection of a reference clock for sending a timestamp;

[0019] The reference clock of the sending timestamp is switched from the local clock to the Ethernet synchronous recovery clock identical to the receiving timestamp through the switch of the register, so that the sending clock and the receiving clock of the master device are both derived from the reference clock source of the slave device.

[0020] In an embodiment of the present application, the switch of the register allows the master device to select a reference clock from two different clock sources, wherein the two different clock sources include a reference clock generated by a local crystal oscillator and a synchronous Ethernet recovered clock.

[0021] In an embodiment of the present application, the method further includes:

[0022] When the slave device does not support frequency synchronization based on synchronous Ethernet, the master device learns that the frequency synchronization has not converged by receiving non-convergence information sent by the slave device;

[0023] When the slave device supports frequency synchronization based on synchronous Ethernet, the master device confirms that the frequency synchronization has converged by receiving convergence information sent by the slave device;

[0024] The convergence information and the non-convergence information are both obtained by checking a log file of the precision time protocol on the slave device.

[0025] In a second aspect, the present application further provides a communication device synchronization apparatus, wherein the communication device includes a master device and a slave device, and based on the master device side, the apparatus includes:

[0026] A detection and identification module, used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device;

[0027] The switching clock module is used for achieving frequency synchronization between the master device and the slave device by switching the reference clock of the sending timestamp to the synchronous Ethernet recovery clock that is the same as the receiving timestamp for the slave device that does not support synchronous Ethernet.

[0028] In a third aspect, the present application further provides a communication device synchronization method, wherein the communication device includes a master device and a slave device, and based on the slave device side, the method includes:

[0029] Receiving a sending timestamp of the master device;

[0030] Based on the received sending timestamp, a receiving timestamp is returned to the master device, wherein the sending timestamp and the receiving timestamp are used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet, and for slave devices that do not support synchronous Ethernet, the reference clock of the sending timestamp of the master device is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device.

[0031] In a fourth aspect, the present application further provides a communication device synchronization apparatus, wherein the communication device includes a master device and a slave device, and based on the slave device side, the apparatus includes:

[0032] A receiving module, used for receiving a sending timestamp of the master device;

[0033] A sending module is used to return a receiving timestamp to the master device based on the received sending timestamp, wherein the sending timestamp and the receiving timestamp are used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet, and for a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp of the master device is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device.

[0034] The present application provides a communication device synchronization method and device. The method can determine whether a slave device supports frequency synchronization based on synchronous Ethernet by comparing the reference clocks of the sending timestamp and receiving timestamp of the master device. The comparison can determine the clock synchronization situation based on the difference in timestamps. And for slave devices that do not support synchronous Ethernet, a switching strategy is adopted. The strategy is to switch the reference clock of the sending timestamp of the master device to the synchronous Ethernet recovery clock that is the same as the receiving timestamp. Through such switching, the frequency between the master device and the slave device is kept consistent, thereby achieving high-precision frequency synchronization.

[0035] Therefore, through the communication device synchronization method described in the present application, even if the slave device does not support synchronous Ethernet, it is still possible to ensure high-precision frequency synchronization between the master device and the slave device by switching the reference clock. This can ensure the synchronization of time information between devices and provide more reliable and accurate data communication. At the same time, the present application can also improve the stability and time synchronization performance of the system and provide better communication quality and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 is a flow chart of a communication device synchronization method provided by the present application;

[0038] Figure 2 It is a schematic diagram of a frequency synchronization detection and switching process based on synchronous Ethernet provided in an embodiment of the present application;

[0039] Figure 3 It is a schematic diagram of a slave device supporting a synchronous Ethernet clock provided by an embodiment of the present application;

[0040] Figure 4 It is a schematic diagram of detection and identification when a slave device does not support synchronous Ethernet provided by an embodiment of the present application;

[0041] Figure 5 It is a schematic diagram of a frequency synchronization clock when a slave device does not support synchronous Ethernet provided in an embodiment of the present application;

[0042] Figure 6 It is a structural diagram of a communication device synchronization device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.

[0045] In modern mobile communication systems, time synchronization and frequency synchronization between devices are very important. The network usually contains multi-level devices, and the signal is forwarded many times, and the path length may reach dozens of hops. If there is an error in the synchronization accuracy between devices, it will be transmitted and accumulated between the multi-level devices, eventually leading to synchronization problems in the entire network. Due to the complexity and multi-level structure of the network, each device needs to be synchronized before processing and forwarding signals. If there is a deviation in the synchronization accuracy, this deviation will gradually accumulate as the signal is transmitted and forwarded, resulting in an increase in the data transmission clock error, which seriously affects the performance and reliability of the communication system.

[0046] In order to solve the problem in the prior art of achieving high-precision frequency synchronization with a master device while keeping the slave device unchanged and ensuring the synchronization of time information between devices, the present application provides a communication device synchronization method and device, which compares the sending timestamp and receiving timestamp of the master device, and judges whether the slave device supports the frequency synchronization of synchronous Ethernet based on the difference between the two. For slave devices that do not support synchronous Ethernet, a switching strategy is adopted to switch the reference clock of the master device to the synchronous Ethernet recovery clock that is the same as the receiving timestamp. This switching is used to keep the frequency consistency between the master device and the slave device, and achieve high-precision frequency synchronization. The present application can ensure the synchronization of time information between devices, provide reliable and accurate data communication, and can also improve system stability and time synchronization performance, and provide better communication quality and user experience.

[0047] Combine the following Figure 1-Figure 6 The present invention describes a communication device synchronization method and apparatus.

[0048] Please refer to Figure 1 , Figure 1 A communication device synchronization method, wherein the communication device comprises a master device and a slave device, and based on the master device, the method comprises:

[0049] Step 110: Determine whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device.

[0050] This step compares the difference between the timestamp sent by the master device and the timestamp received, and can obtain the difference between the two timestamps. If the difference is small, for example, within the preset threshold range, it means that the reference clock frequencies of the two timestamps are relatively consistent, and the slave device supports frequency synchronization based on synchronous Ethernet. On the contrary, if the difference is large, for example, exceeding the preset threshold, it means that the slave device does not support frequency synchronization based on synchronous Ethernet.

[0051] Step 120: For a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device.

[0052] That is to say, when the slave device does not support synchronous Ethernet, it cannot directly use the master device's clock as the reference clock for frequency synchronization. Therefore, in this case, without changing the slave device, the master device can adopt a switching strategy to switch the reference clock of the master device's sending timestamp to the synchronous Ethernet recovery clock that is the same as the receiving timestamp. In this way, the master device can adjust its own clock frequency according to the exact receiving timestamp to keep the same frequency as the slave device.

[0053] Through this step, even if the slave device does not support synchronous Ethernet, it is still possible to ensure high-precision frequency synchronization between the master device and the slave device by switching the reference clock. This ensures the synchronization of time information between devices and provides more reliable and accurate data communication. By switching the reference clock, the frequency synchronization of the master device and the slave device can be achieved, improving the stability and time synchronization performance of the system and providing better communication quality and user experience.

[0054] It should be noted that “while the slave device remains unchanged” means that the hardware or software configuration parameters of the slave device will not be modified or adjusted during the technical implementation process.

[0055] The above steps 110 to 120 are described in detail below.

[0056] In some embodiments of the present application, in the above step 110, the step of determining whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device includes:

[0057] Step 111A, generating a sending timestamp for indicating the current time, and sending the sending timestamp (including the carried clock) to the slave device via synchronous Ethernet.

[0058] Specifically, the master device can generate a timestamp through its own clock system to indicate the current time. The master device sends the generated timestamp and clock information to the slave device through the communication mechanism of synchronous Ethernet. For example, the master device can achieve this by embedding the timestamp information in the data packet and transmitting it through the network protocol stack.

[0059] The purpose of this step is to pass the current time information of the master device to the slave device. By generating a send timestamp and transmitting it through synchronous Ethernet, it can be ensured that the master and slave devices have the same time reference. This can achieve time synchronization between devices, thereby providing more reliable and accurate communication in terms of data transmission, coordination and processing. In addition, sending timestamps through synchronous Ethernet can also improve the stability and time synchronization performance of the system, providing better communication quality and user experience.

[0060] Step 112A, receiving a receiving timestamp from the slave device. If the clock sources of the receiving timestamp and the sending timestamp are both the reference clock generated by the local crystal oscillator of the master device, it is determined that the slave device supports frequency synchronization based on synchronous Ethernet.

[0061] Specifically, the master device receives the receiving timestamp sent by the slave device through synchronous Ethernet. The master device compares the receiving timestamp with the clock source used by its own sending timestamp. If both are reference clocks generated by the master device's local crystal oscillator, the slave device is considered to support frequency synchronization based on synchronous Ethernet.

[0062] The purpose of this step is to determine whether the slave device supports frequency synchronization based on synchronous Ethernet. By judging whether the clock sources of the received timestamp and the sent timestamp are the same, it can be determined whether the slave device uses the same local crystal oscillator as the reference clock as the master device. If the slave device uses the same local crystal oscillator as the reference clock as the master device, it means that the slave device has the ability to support synchronous Ethernet. Such a judgment is very important for the subsequent synchronization strategy selection. If the slave device supports frequency synchronization based on synchronous Ethernet, you can continue to use this mechanism to achieve high-precision frequency synchronization.

[0063] In some embodiments of the present application, in the above step 110, the step of determining whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device further includes:

[0064] Step 111B: divide the clock used to represent the master device into a sending clock and a receiving clock to form a corresponding sending timestamp and receiving timestamp.

[0065] Specifically, the clock source of the master device is divided into a sending clock and a receiving clock. The sending clock is used to generate a sending timestamp, which indicates the time when the data is sent from the master device. The receiving clock is used to generate a receiving timestamp, which indicates the time when the master device receives the data returned from the slave device.

[0066] This step can accurately record the transmission delay and timing of the data by dividing the master device's clock into the sending clock and the receiving clock and generating corresponding timestamps. This allows the time difference to be accurately calculated and calibrated in subsequent data processing and clock synchronization, and provides more reliable and accurate data communication. At the same time, in the process of synchronous Ethernet and frequency synchronization, these timestamps can be used as a reference to help the master device ensure synchronization and coordination with the slave device.

[0067] Step 112B, determining the reference clock source of the sending timestamp and the receiving timestamp.

[0068] Specifically, if the reference clock of the sending timestamp is derived from the clock generated by the local crystal oscillator of the master device, the reference clock of the receiving timestamp is derived from the clock of the sending timestamp recovered by the synchronous Ethernet and is determined to be the clock generated by the local crystal oscillator of the master device.

[0069] That is, the master device uses its own local crystal oscillator as the reference clock to generate the send timestamp. The reference clock of the receive timestamp comes from the clock recovered by the synchronous Ethernet. When the master device receives data from the slave device through the synchronous Ethernet, the master device adjusts its own receive clock according to the clock information provided by the synchronous Ethernet to ensure the accuracy and synchronization of the receive timestamp. By determining the reference clock source of the send timestamp and the receive timestamp, the accuracy and consistency of the timestamp are guaranteed.

[0070] Step 113B: if the reference clocks of the sending timestamp and the receiving timestamp are not from the same source, it means that the slave device does not support frequency synchronization based on synchronous Ethernet.

[0071] Specifically, the reference clock source of the sending timestamp can be found from the acquired timestamp information and recorded. At the same time, the reference clock source of the receiving timestamp can also be found from the acquired timestamp information and recorded. Then, the reference clock sources of the sending timestamp and the receiving timestamp are compared to determine whether they come from the same source. If the reference clocks of the sending timestamp and the receiving timestamp do not come from the same source, that is, the sources are inconsistent, it means that the slave device does not support frequency synchronization based on synchronous Ethernet.

[0072] This step determines whether the slave device has the ability to support frequency synchronization based on synchronous Ethernet based on the comparison of the reference clock source. In addition, by comparing the reference clock sources of the sending timestamp and the receiving timestamp, it can be determined whether the clocks involved in synchronization are from the same source. If the sent and received reference clocks are inconsistent, it means that the slave device uses a different clock source from the master device, that is, the slave device does not support frequency synchronization based on synchronous Ethernet.

[0073] During the frequency synchronization process, if the slave device does not support the synchronous Ethernet-based method, other strategies need to be adopted to ensure the frequency synchronization between the master device and the slave device. Therefore, by accurately judging whether the slave device supports the frequency synchronization based on synchronous Ethernet, a reasonable solution can be provided for the execution of the subsequent time synchronization steps to ensure the accurate synchronization of time between devices and the quality of data communication.

[0074] In some embodiments of the present application, in the above step 120, for a slave device that does not support synchronous Ethernet, the step of switching the reference clock of the sending timestamp to the synchronous Ethernet recovery clock that is the same as the receiving timestamp includes:

[0075] Step 121: If the slave device does not support frequency synchronization based on synchronous Ethernet, the clock for receiving the timestamp is derived from a reference clock generated by a local crystal oscillator of the slave device.

[0076] Specifically, through the above step 113B, a judgment is first made to determine whether the slave device supports frequency synchronization based on synchronous Ethernet. If the slave device does not support frequency synchronization based on synchronous Ethernet, the master device will re-acquire the reference clock information generated by the local crystal oscillator of the slave device. Through the switching strategy, the reference clock originally used by the master device is changed to the reference clock generated by the local crystal oscillator of the slave device, which is used as the clock source for receiving the timestamp.

[0077] This step is for slave devices that do not support synchronous Ethernet. The reference clock of the received timestamp is switched to the reference clock generated by the local crystal oscillator of the slave device. When the slave device does not support the frequency synchronization of synchronous Ethernet, it cannot directly use the clock of the master device as the reference clock for frequency synchronization. Therefore, the reference clock of the received timestamp is changed from the original master device reference clock to the reference clock generated by the local crystal oscillator of the slave device through the switching strategy. In this way, the master device will adjust its own receiving clock according to the exact local clock of the slave device to keep the frequency consistent with that of the slave device.

[0078] Through this step, even if the slave device does not support synchronous Ethernet, it can still achieve frequency synchronization between the master and slave devices by switching the reference clock for receiving timestamps. This ensures the synchronization of time information between devices and provides more reliable and accurate data communication. By switching the reference clock, the frequency synchronization performance of the master and slave devices can be improved, while providing better communication quality and user experience.

[0079] In some embodiments of the present application, in the above step 120, for a slave device that does not support synchronous Ethernet, the step of switching the reference clock of the sending timestamp to the synchronous Ethernet recovery clock that is the same as the receiving timestamp includes:

[0080] Step 122: call a register configured on the master device, where the register is used to control the selection of a reference clock for sending a timestamp.

[0081] Specifically, the register used to control the reference clock switching can be predetermined, for example, a specific register address or bit field, whose function is to control the selection of the reference clock. Before switching, the value of the current register needs to be read to obtain the selection state of the current reference clock.

[0082] Step 123, switch the reference clock of the sending timestamp from the local clock to the Ethernet synchronous recovery clock that is the same as the receiving timestamp through the switch of the register, so that the sending clock and the receiving clock of the master device are both derived from the reference clock source of the slave device.

[0083] Specifically, the specific operation of switching the reference clock can be achieved by setting the control register. For example, the register includes a switch, and the selection of the reference clock is switched by the state of the switch (on or off). It is also possible to modify certain bits (or bytes) of the register to switch the reference clock as needed. The specific bit setting or clearing depends on the design and usage specifications of the register, which is not limited in this application. Then, the updated register value is written back to the register address to make the switch effective.

[0084] It should be noted that the switch of the register allows the master device to select a reference clock from two different clock sources, wherein the two different clock sources include a reference clock generated by a local crystal oscillator and a synchronous Ethernet recovered clock.

[0085] That is to say, by setting the switch in the control register, the master device can flexibly choose which clock source to use as the reference clock for sending the timestamp. You can choose from two different clock sources as needed. Among them, the reference clock generated by the local crystal oscillator is the clock source inside the master device itself. By setting the switch in the control register, the master device can choose to use the reference clock generated by the local crystal oscillator as the reference clock for sending the timestamp. This clock source can be the internal clock of the master device, with a stable frequency and precise clock characteristics. The synchronous Ethernet recovered clock refers to the Ethernet synchronous recovered clock that is the same as the received timestamp. By setting the switch in the control register, the master device can choose to use the synchronous Ethernet recovered clock as the reference clock for sending the timestamp. This clock source comes from the reference clock source of the slave device, and the synchronous Ethernet recovery mechanism is used to maintain frequency synchronization with the slave device and ensure clock consistency.

[0086] The above steps 122 and 123 are to switch the reference clock of the sending timestamp to the Ethernet synchronous recovery clock that is the same as the receiving timestamp. By calling and controlling the register, the master device can flexibly select the source of the reference clock of the sending timestamp. In this case, the master device switches the reference clock of the sending timestamp from the local clock to the Ethernet synchronous recovery clock that is the same as the receiving timestamp.

[0087] By switching the reference clock of the transmit timestamp to the same Ethernet synchronous recovery clock as the receive timestamp, both the transmit and receive clocks of the master device will come from the reference clock source of the slave device. In this way, the master device can synchronize according to the reference clock of the slave device and maintain the consistency of the transmit and receive clocks. This strategy of switching reference clocks helps improve the frequency synchronization performance between the master and slave devices and ensures the quality of data communication and the accuracy of time information between devices.

[0088] The communication device synchronization method described in the present application is described below through an embodiment.

[0089] Please refer to Figure 2 , Figure 2 This is a schematic diagram of a frequency synchronization detection and switching process based on synchronous Ethernet provided by an embodiment of the present application. This embodiment can effectively identify whether a slave device supports a frequency synchronization scheme based on synchronous Ethernet, and by configuring and switching the reference clock of the master device, the entire system supports frequency synchronization based on synchronous Ethernet, thereby improving the frequency synchronization accuracy of the entire system synchronization scheme.

[0090] The flowchart includes two steps: a) detection and identification step; b) clock switching step.

[0091] Among them, TOD (Time of Day) represents the absolute timestamp of the master device and the slave device. After the slave device and the master device perform high-precision time synchronization, the timestamp difference between them can reach the nanosecond level. According to the definition of the ITU-T 8275.1 protocol, the accuracy of the timestamp difference after synchronization is divided into four levels, namely 110ns for CLASS A, 70ns for CLASS B, 30ns for CLASS C, and 5ns for CLASS D. The slave device will continuously compare the timestamp difference between the master and slave devices and make adjustments to control the difference within a specific synchronization level (for example, 30ns for CLASS C). After multiple corrections and synchronizations, the timestamp difference will tend to be stable. If the slave device is required to support the time synchronization accuracy of the synchronization level CLASS C, the stability of the timestamp difference within 30ns indicates convergence.

[0092] PTP4L is an open source software for time synchronization that complies with the message format and interaction process defined by the IEEE 1588 standard. It is widely used in the field of time synchronization, and each manufacturer can modify and customize it according to their own needs. The slave device implements 1588 time synchronization by running the PTP4L software, and the absolute timestamp difference between the slave device and the master device can be obtained through the log file of the PTP4L software.

[0093] Exemplarily, in the step a) of identifying whether the slave device supports frequency synchronization based on synchronous Ethernet, the master device uses a local crystal oscillator to generate the working clock of all modules. The present application divides the absolute timestamp TOD of the module into two parts: a transmit timestamp (TX_TOD) and a receive timestamp (RX_TOD), and constructs two different reference clock paths on the master device, so as to quickly determine whether the slave device supports frequency synchronization based on synchronous Ethernet. The master device uses a local crystal oscillator to generate a reference clock for the transmit timestamp, and uses a clock recovered from synchronous Ethernet to generate a reference clock for the receive timestamp. When the transmit timestamp and the receive timestamp are not from the same reference clock, the master device and the slave device cannot achieve frequency synchronization, and the convergence of the slave device PTP (Precision Time Protocol) timestamp cannot be guaranteed. Therefore, the timestamp difference cannot be stably maintained at the nanosecond level.

[0094] That is, when the slave device does not support frequency synchronization based on synchronous Ethernet, the master device receives the non-convergence information sent by the slave device to learn that the frequency synchronization has not converged; when the slave device supports frequency synchronization based on synchronous Ethernet, the master device receives the convergence information sent by the slave device to confirm that the frequency synchronization has converged. The convergence information and the non-convergence information are obtained by checking the log file of the precision time protocol on the slave device.

[0095] Therefore, when the slave device does not support frequency synchronization based on synchronous Ethernet, the master device can learn whether the frequency synchronization has been completed by receiving the non-convergence information sent by the slave device. When the slave device cannot achieve frequency synchronization, the master device will receive the non-convergence information sent by the slave device, which indicates that the frequency synchronization has not reached a stable state. When the slave device supports frequency synchronization based on synchronous Ethernet, the master device can confirm whether the frequency synchronization has been completed by receiving the convergence information sent by the slave device. In this case, the slave device will send information to the master device to indicate that the frequency has been successfully synchronized and has reached a convergence state.

[0096] Whether it is convergence information or non-convergence information, they are obtained by checking the log file of the precise time protocol on the slave device. The log file records important events and information about the time synchronization process, including key information such as the status of frequency synchronization and convergence. By reading the log file of the slave device, the master device can identify and determine whether the status of frequency synchronization is convergence or non-convergence, and take further actions and adjustments accordingly.

[0097] Please refer to Figure 3 , Figure 3 It is a schematic diagram of a slave device supporting a synchronous Ethernet clock according to an embodiment of the present application. Figure 3 The figure shows the situation when the slave device supports the frequency synchronization scheme based on synchronous Ethernet. When synchronous Ethernet is supported, the slave device can recover the reference clock generated by the master device's local crystal oscillator from the clock transmitted through the Ethernet message, and apply it to the entire system, including the Ethernet working clock and absolute timestamp clock, that is, the clock carried by the PTP (Precision Time Protocol) message sent by the slave device is the clock recovered from the master device. In other words, if synchronous Ethernet is supported, the reference clock will be recovered from the Ethernet link, and the clock generated by the slave device's local crystal oscillator will not be used as the reference clock, so the clock recovered here is the clock generated by the master device's local crystal oscillator.

[0098] Among them, the PTP message is a specific Ethernet message used to transmit time synchronization information in the network, and the PTP timestamp is the key information contained in the PTP message, which is used to measure and synchronize the clocks of each node in the network.

[0099] Among them, the PLL of the clock chip is a Phase-Locked Loop, which is an electronic circuit used to generate a stable clock signal. The SERDES (Serializer / Deserializer) clock is a clock signal used to control and synchronize SERDES operations. The SERDES clock is also called the serial deserialization link clock. The SERDES physical interface contains clock information and can be used to recover the reference clock. In serial transmission, data is divided into bit-by-bit or byte-by-byte transmission, and the SERDES clock is used to divide the data frame to ensure data synchronization between the sender and the receiver. The SERDES clock plays a key role in the transmission process. It can ensure that the data is transmitted at the correct rate and order, and it must be synchronized with the receiver's clock to ensure the reliability and accuracy of the data.

[0100] Among them, the IEEE 1588 standard has multiple versions, including the original IEEE 1588-2002 and the subsequent revised version IEEE 1588-2008 (also known as 1588v2). The 1588v2 protocol achieves high-precision time synchronization and timestamp distribution through the collaboration of clock synchronization devices in the network (such as 1588 clock devices) and switches or gateways that support the 1588v2 protocol.

[0101] Figures 3 to 5 The example is based on the 1588v2 protocol, indicating clock synchronization software based on the 1588v2 protocol. It can also be based on other protocols.

[0102] On the master side, the master also recovers the clock from the message sent by the slave and applies it to the receiving timestamp of the receiving end as a reference. At this point, it can be observed that the clocks of the sending timestamp and the receiving timestamp are both derived from the reference clock generated by the local crystal oscillator of the master. Therefore, all frequencies come from the same reference clock source, thus achieving high-precision frequency synchronization between the master and slave. This frequency synchronization enables the PTP timestamp of the slave to gradually converge to the timestamp of the master.

[0103] Therefore, in the case of synchronous Ethernet, the reference clock generated by the local crystal oscillator of the master device is recovered from the slave device through the clock transmitted in the Ethernet message and applied to the whole system. In this way, high-precision frequency synchronization can be achieved between the master and slave devices to ensure the convergence of timestamps. This synchronization is achieved by recovering the clock from the same reference clock source, and the frequency consistency can be maintained at both the sending and receiving ends of the message.

[0104] It should be noted that Figure 3 The bold arrow on the master device side indicates the reference clock (i.e., local clock) generated by the master device's local crystal oscillator, and the dotted arrow on the slave device side indicates the reference clock generated by the slave device's local crystal oscillator, but not used by the slave device.

[0105] Please refer to Figure 4 , Figure 4 is a schematic diagram of detection and identification when a slave device does not support synchronous Ethernet provided by an embodiment of the present application, Figure 4 The figure shows the situation when the slave device does not support the frequency synchronization scheme based on synchronous Ethernet. It should be noted that the bold arrow on the master device side in the figure represents the clock generated by the master device's local crystal oscillator (i.e., the local clock), and the dotted arrow on the slave device side represents the clock that the slave device will not recover from synchronous Ethernet. Here, the slave device uses the reference clock generated by the local crystal oscillator.

[0106] For example, if synchronous Ethernet is not supported, the slave device cannot recover the clock from Ethernet, so the clock of the absolute timestamp of the slave device still comes from the reference clock of the local crystal oscillator of the slave device. The clock transmitted in the Ethernet link is also the local reference clock of the slave device. In other words, if synchronous Ethernet is not supported, the reference clock will not be recovered from the Ethernet link, and the clock generated by the local crystal oscillator of the slave device will be used as the reference clock.

[0107] On the master device side, the receiving timestamp clock is the clock recovered from the Ethernet link, which comes from the local crystal reference clock of the slave device, while the sending timestamp clock comes from the local crystal reference clock of the master device. Since these two clocks do not come from the same device, frequency synchronization cannot be achieved, resulting in the failure of PTP timestamp convergence. This can be used as a basis for judging whether the slave device supports frequency synchronization based on synchronous Ethernet.

[0108] Therefore, if synchronous Ethernet is not supported, the slave device cannot recover the clock through Ethernet, so its timestamp still depends on the local crystal reference clock. At the same time, since the master and slave devices use different reference clock sources, frequency synchronization cannot be achieved, resulting in the failure of PTP timestamp convergence. Therefore, this situation can be used to determine whether the slave device supports the frequency synchronization function based on synchronous Ethernet.

[0109] Figure 5 is a schematic diagram of a frequency synchronization clock when a slave device does not support synchronous Ethernet provided in an embodiment of the present application, Figure 5 The figure shows the strategy adopted when the slave device does not support the frequency synchronization scheme based on synchronous Ethernet. It should be noted that the dotted arrow on the master device side in the figure represents the clock generated by the master device's local crystal oscillator (i.e., the local clock), and the dotted line means it is not used. The bold arrow on the slave device side represents the clock used for synchronous Ethernet recovery, which is the clock generated by the slave device's local crystal oscillator. Figure 5 It can be seen that all clocks of the master device select the clock recovered by synchronous Ethernet as the reference clock, which is the local clock of the slave device here.

[0110] Exemplarily, in the step b) of the master device recovering the clock from the synchronous Ethernet to achieve system frequency synchronization, if a slave device that does not support synchronous Ethernet is encountered, the reference clock for sending the timestamp is switched by configuring the switch of the register in the present application. At this time, the reference clock for sending the timestamp is switched from the local clock to the synchronous Ethernet recovery clock that is the same as the received timestamp, and the local clock of the master device is no longer used. In other words, if the slave device does not support synchronous Ethernet, the reference clock will not be recovered from the Ethernet link, and all the clocks of the slave device are referenced by the clock generated by the local crystal oscillator. By switching, the master device makes all the clocks come from the slave device, so that the frequency synchronization effect between the master device and the slave device can be achieved.

[0111] Under the premise of ensuring frequency synchronization, the slave device can easily achieve high-precision time synchronization by using the open source software PTP4L of IEEE1588. By configuring the register switch, the reference clock of the sending timestamp is aligned with the reference clock of the receiving timestamp, and no longer relying on the local clock of the master device, thereby achieving the frequency synchronization effect between the master device and the slave device. This method enables the slave device to use PTP4L software to achieve accurate time synchronization under the premise of high-precision time synchronization.

[0112] In summary, the present application provides a communication device synchronization method, which can achieve synchronization between communication devices based on synchronous Ethernet and 1588v2 protocol. In the case of supporting synchronous Ethernet, the slave device can recover the reference clock generated by the local crystal oscillator of the master device from the clock transmitted through the Ethernet message, and apply it to the entire system. At the same time, the master device will recover the clock from the message sent by the slave device, and apply it to the receiving timestamp of the receiving end as a reference. For slave devices that are identified as not supporting synchronous Ethernet, the reference clock of the master device's sending timestamp is switched from the local clock to the synchronous Ethernet recovery clock that is the same as the receiving timestamp by configuring the register switch in the master device, thereby achieving frequency synchronization between the master and slave devices.

[0113] It can be seen that by combining synchronous Ethernet and 1588v2 protocol, the problem of achieving high-precision frequency synchronization between master and slave devices in synchronous communication equipment is solved. Synchronous Ethernet allows the slave device to recover the reference clock of the master device's local crystal oscillator, thereby achieving frequency synchronization. For slave devices that do not support synchronous Ethernet, the clock source is switched through the master device configuration register switch to solve the problem of inconsistent frequencies.

[0114] The 1588v2 protocol is used to achieve high-precision time synchronization between communication devices. The 1588v2 protocol uses a master / slave model and precision time protocol message passing to enable devices to maintain a unified time at the microsecond or sub-microsecond level through interaction and correction processes.

[0115] Therefore, by using synchronous Ethernet to recover the reference clock and configure the register switch to switch the clock source, high-precision frequency synchronization is achieved between the master device and the slave device that does not support synchronous Ethernet. The frequency consistency of the entire system is ensured, and the accuracy and reliability of the clock signal are guaranteed. In addition, high-precision time synchronization between communication devices is achieved through the 1588v2 protocol. By using master / slave devices and precise time protocol message transmission, the time synchronization accuracy between devices is ensured to be at the microsecond or sub-microsecond level, meeting the application scenarios with high requirements for time synchronization accuracy.

[0116] In summary, the communication equipment synchronization method provided in this application solves the technical problems of frequency synchronization and time synchronization by combining synchronous Ethernet and 1588v2 protocol, and achieves high-precision frequency and time synchronization effects, which has important application value.

[0117] It should be noted that the communication device synchronization method provided in this application is not limited to the 1588v2 protocol. Although the above description mentions the use of the 1588v2 protocol to achieve high-precision time synchronization between communication devices, the method can adapt to different time synchronization protocols or technologies according to actual needs.

[0118] The core idea of ​​this method is to use synchronous Ethernet to achieve frequency synchronization and combine it with other applicable time synchronization protocols to achieve time synchronization. In addition to the 1588v2 protocol, other time synchronization technologies such as NTP (Network Time Protocol) can also be considered.

[0119] In the case of not being limited to 1588v2, a suitable time synchronization protocol or technology can be selected according to specific application requirements. In this way, communication equipment can flexibly select a suitable time synchronization method according to actual conditions to meet the requirements of time synchronization accuracy and reliability in different application scenarios.

[0120] Therefore, the communication device synchronization method provided in the present application is not limited to the 1588v2 protocol, and can adapt to different time synchronization protocols or technologies according to actual needs to achieve high-precision frequency and time synchronization between communication devices.

[0121] The communication device synchronization apparatus provided in the present application is described below. The communication device synchronization apparatus described below and the communication device synchronization method described above can be referenced to each other.

[0122] Please refer to Figure 6 , Figure 6A communication device synchronization device 600 is provided. The communication device includes a master device and a slave device. Based on the master device, the device includes a detection and identification module 610 and a switching clock module 620.

[0123] Exemplarily, the detection and identification module 610 is used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device.

[0124] Exemplarily, the clock switching module 620 is used for achieving frequency synchronization between the master device and the slave device for a slave device that does not support synchronous Ethernet by switching the reference clock of the sending timestamp to the synchronous Ethernet recovery clock that is the same as the receiving timestamp.

[0125] Exemplarily, the detection and identification module 610 is further used for:

[0126] Generate a sending timestamp for indicating the current time, and send the sending timestamp and clock information to the slave device via synchronous Ethernet;

[0127] A receiving timestamp is received from the slave device. If the clocks carried by the receiving timestamp and the sending timestamp are both sourced from a reference clock generated by a local crystal oscillator of the master device, it is determined that the slave device supports frequency synchronization based on synchronous Ethernet.

[0128] Exemplarily, the detection and identification module 610 is further used for:

[0129] Dividing a clock used to represent the master device into a sending clock and a receiving clock to form a corresponding sending timestamp and receiving timestamp;

[0130] Determining a reference clock source of the sending timestamp and the receiving timestamp;

[0131] If the reference clocks of the sending timestamp and the receiving timestamp are not from the same source, it means that the slave device does not support frequency synchronization based on synchronous Ethernet.

[0132] Exemplarily, the switching clock module 620 is further configured to:

[0133] If the slave device does not support frequency synchronization based on synchronous Ethernet, the clock of the received timestamp is derived from a reference clock generated by a local crystal oscillator of the slave device.

[0134] Exemplarily, the switching clock module 620 is further configured to:

[0135] Calling a register configured on the master device, wherein the register is used to control the selection of a reference clock for sending a timestamp;

[0136] The reference clock of the sending timestamp is switched from the local clock to the Ethernet synchronous recovery clock identical to the receiving timestamp through the switch of the register, so that the sending clock and the receiving clock of the master device are both derived from the reference clock source of the slave device.

[0137] Exemplarily, the switch of the register allows the master device to select a reference clock from two different clock sources, wherein the two different clock sources include a reference clock generated by a local crystal oscillator and a synchronous Ethernet recovered clock.

[0138] Exemplarily, the communication device synchronization apparatus 600 is further used for:

[0139] When the slave device does not support frequency synchronization based on synchronous Ethernet, the master device learns that the frequency synchronization has not converged by receiving non-convergence information sent by the slave device;

[0140] When the slave device supports frequency synchronization based on synchronous Ethernet, the master device confirms that the frequency synchronization has converged by receiving convergence information sent by the slave device;

[0141] The convergence information and the non-convergence information are both obtained by checking a log file of the precision time protocol on the slave device.

[0142] In some embodiments of the present application, the present application further provides a communication device synchronization method, wherein the communication device includes a master device and a slave device, and based on the slave device side, the method includes:

[0143] Receiving a sending timestamp of the master device;

[0144] Based on the received sending timestamp, a receiving timestamp is returned to the master device, wherein the sending timestamp and the receiving timestamp are used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet, and for slave devices that do not support synchronous Ethernet, the reference clock of the sending timestamp of the master device is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device.

[0145] The method describes the operation steps of the slave device, namely, receiving the sending timestamp of the master device, and returning the receiving timestamp to the master device based on the received sending timestamp, so as to realize that the master device transmits the sending timestamp to the slave device, and the slave device returns the receiving timestamp, so as to perform time comparison and synchronization operations.

[0146] By comparing the receive timestamp returned by the slave device with the timestamp sent by the master device, it can be determined whether the slave device supports frequency synchronization based on synchronous Ethernet. If the receive timestamp returned by the slave device is slightly different from the send timestamp, it indicates that the slave device has the frequency synchronization capability based on synchronous Ethernet. For slave devices that do not support synchronous Ethernet, the reference clock of the master device's send timestamp is switched to the synchronous Ethernet recovered clock that is the same as the receive timestamp to achieve frequency synchronization between the master and slave devices. Even if the slave device does not support synchronous Ethernet, switching the clock source can ensure that the frequency between the master and slave devices remains synchronized. This can achieve frequency consistency across the entire system and ensure the accuracy and reliability of the clock signal.

[0147] In summary, the master device sends the timestamp and the slave device returns the received timestamp to determine whether the slave device supports the frequency synchronization of synchronous Ethernet, and the master device and the slave device are synchronized by switching the clock source for the slave device that does not support synchronous Ethernet. This ensures that the frequency between the communication devices remains synchronized and the accuracy and reliability of the clock signal.

[0148] In some embodiments of the present application, the present application further provides a communication device synchronization apparatus, wherein the communication device includes a master device and a slave device, and based on the slave device side, the apparatus includes:

[0149] A receiving module, used for receiving a sending timestamp of the master device;

[0150] A sending module is used to return a receiving timestamp to the master device based on the received sending timestamp, wherein the sending timestamp and the receiving timestamp are used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet, and for a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp of the master device is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device.

[0151] Similarly, the present application also provides a communication device synchronization device, which can determine whether the slave device supports frequency synchronization based on synchronous Ethernet through a receiving module and a sending module, and provides a corresponding frequency synchronization solution for slave devices that do not support synchronous Ethernet. This ensures that the frequency between the master device and the slave device remains synchronized, and guarantees the accuracy and stability of the synchronization of the communication device.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A communication device synchronization method, characterized in that: The communication device includes a master device and a slave device. Based on the master device, the method includes: Determining whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device; For a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp to achieve frequency synchronization between the master device and the slave device, including: Calling a register configured on the master device, wherein the register is used to control the selection of a reference clock for sending a timestamp; The reference clock of the sending timestamp is switched from the local clock to the Ethernet synchronous recovery clock identical to the receiving timestamp through the switch of the register, so that the sending clock and the receiving clock of the master device are both derived from the reference clock source of the slave device.

2. The communication device synchronization method according to claim 1, characterized in that: The step of judging whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device comprises: Generate a sending timestamp for indicating the current time, and send the sending timestamp and clock information to the slave device via synchronous Ethernet; A receiving timestamp is received from the slave device. If the clocks carried by the receiving timestamp and the sending timestamp are both sourced from a reference clock generated by a local crystal oscillator of the master device, it is determined that the slave device supports frequency synchronization based on synchronous Ethernet.

3. The communication device synchronization method according to claim 1, characterized in that: The step of judging whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device also includes: Dividing a clock used to represent the master device into a sending clock and a receiving clock to form a corresponding sending timestamp and receiving timestamp; Determining a reference clock source of the sending timestamp and the receiving timestamp; If the reference clocks of the sending timestamp and the receiving timestamp are not from the same source, it means that the slave device does not support frequency synchronization based on synchronous Ethernet.

4. The communication device synchronization method according to claim 1, characterized in that: The step of switching the reference clock of the sending timestamp to the synchronous Ethernet recovery clock that is the same as the receiving timestamp for the slave device that does not support synchronous Ethernet comprises: If the slave device does not support frequency synchronization based on synchronous Ethernet, the clock of the received timestamp is derived from a reference clock generated by a local crystal oscillator of the slave device.

5. The communication device synchronization method according to claim 1, characterized in that: The switch of the register allows the master device to select a reference clock from two different clock sources, including a reference clock generated by a local crystal oscillator and a synchronous Ethernet recovered clock.

6. The communication device synchronization method according to claim 1, characterized in that: The method further comprises: When the slave device does not support frequency synchronization based on synchronous Ethernet, the master device learns that the frequency synchronization has not converged by receiving non-convergence information sent by the slave device; When the slave device supports frequency synchronization based on synchronous Ethernet, the master device confirms that the frequency synchronization has converged by receiving convergence information sent by the slave device; The convergence information and the non-convergence information are both obtained by checking a log file of the precision time protocol on the slave device.

7. A communication device synchronization device, characterized in that: The communication device includes a master device and a slave device. Based on the master device, the apparatus includes: A detection and identification module, used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet by comparing the homology of the reference clocks of the sending timestamp and the receiving timestamp of the master device; A switching clock module, for a slave device that does not support synchronous Ethernet, switches the reference clock of the sending timestamp to a synchronous Ethernet recovery clock that is the same as the receiving timestamp to achieve frequency synchronization between the master device and the slave device, including: Calling a register configured on the master device, wherein the register is used to control the selection of a reference clock for sending a timestamp; The reference clock of the sending timestamp is switched from the local clock to the Ethernet synchronous recovery clock identical to the receiving timestamp through the switch of the register, so that the sending clock and the receiving clock of the master device are both derived from the reference clock source of the slave device.

8. A communication device synchronization method, characterized in that: The communication device includes a master device and a slave device. Based on the slave device, the method includes: Receiving a sending timestamp of the master device; Based on the received sending timestamp, a receiving timestamp is returned to the master device, wherein the sending timestamp and the receiving timestamp are used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet, and for a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp of the master device is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device, including: The master device calls a register configured on the master device, where the register is used to control the selection of a reference clock for sending the timestamp; The master device switches the reference clock of the sending timestamp from the local clock to the Ethernet synchronous recovery clock that is the same as the receiving timestamp through the switch of the register, so that the sending clock and receiving clock of the master device are both derived from the reference clock source of the slave device.

9. A communication device synchronization device, characterized in that: The communication device includes a master device and a slave device. Based on the slave device, the apparatus includes: A receiving module, used for receiving a sending timestamp of the master device; A sending module, used for returning a receiving timestamp to the master device based on the received sending timestamp, wherein the sending timestamp and the receiving timestamp are used to determine whether the slave device supports frequency synchronization based on synchronous Ethernet, and for a slave device that does not support synchronous Ethernet, the reference clock of the sending timestamp of the master device is switched to a synchronous Ethernet recovery clock that is the same as the receiving timestamp, so as to achieve frequency synchronization between the master device and the slave device, including: the master device calls a register configured on the master device, and the register is used to control the selection of the reference clock of the sending timestamp; the master device switches the reference clock of the sending timestamp from a local clock to an Ethernet synchronous recovery clock that is the same as the receiving timestamp through the switch of the register, so that the sending clock and the receiving clock of the master device are both from the reference clock source of the slave device.

Citation Information

Patent Citations

  • Clock management method and system

    CN101902321A

  • Method and device for adjusting frequency

    CN103001718A

  • Game machine

    JP2012245255A

  • Synchronous ethernet device

    JP2014127888A

Cited By

  • Serializer and method for operating the same

    US12689381B2

  • Serializer and method for operating the same

    US20250364998A1