Time synchronization method and device, computer equipment and storage medium
A time synchronization and computer technology, applied in time division multiplexing system, electrical components, multiplexing communication, etc., can solve the problem of misalignment of equipment on the same screen, and achieve the effect of time synchronization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] figure 1 It is a flow chart of a time synchronization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of maintaining time synchronization of RF slave devices. The method can be executed by a time synchronization device, which can be implemented by software and / or Hardware to achieve, and generally integrated in the RF slave device.
[0024] like figure 1 As shown, the technical solution of the embodiment of the present invention specifically includes the following steps:
[0025] S110. Receive a time packet regularly broadcast by the master device.
[0026] The time package includes a target time package sending time, wherein the target time package is sent before the current time package.
[0027] Among the RF devices on the same channel, only one RF master device is used to broadcast time packets, and the RF master device needs to keep sending time packets regularly.
[0028] In the embodiment of the present...
Embodiment 2
[0039] Figure 2a It is a flow chart of a time synchronization method provided by Embodiment 2 of the present invention. On the basis of the above-mentioned embodiments, the embodiment of the present invention further specifies the steps of updating the slave device time, and adds the judging current time package Whether the receiving time satisfies the time range condition and the time synchronization interval condition, and the processing process when the time range condition or the time synchronization interval condition is not satisfied.
[0040] Correspondingly, such as Figure 2a As shown, the technical solution of the embodiment of the present invention specifically includes the following steps:
[0041] S210. Receive a time packet regularly broadcast by the master device.
[0042] Optionally, the RF master device may send a time packet every 1000 ms, but this embodiment does not limit it.
[0043] S220. Obtain the receiving time of the current time packet and the re...
Embodiment 3
[0077] image 3 It is a schematic structural diagram of a time synchronization device provided in Embodiment 3 of the present invention. The device is deployed in an RF slave device and used in conjunction with an RF master device. The device includes: a time packet receiving module 310 , a receiving time determining module 320 and a time updating module 330 . in:
[0078] The time packet receiving module 310 is used to receive the time packet regularly broadcast by the master device; the time packet includes the sending time of the current time packet and the sending time of the target time packet, wherein the target time packet is sent before the current time packet ;
[0079] The receiving time determination module 320 is used to obtain the receiving time of the current time packet and the receiving time of the target time packet;
[0080] The time update module 330 is configured to update the time of the slave device according to the sending time of the current time pac...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


