Clock synchronization setting method and device, and storage medium

A technology of clock synchronization and storage media, applied in time division multiplexing systems, electrical components, generation/distribution signals, etc., can solve problems such as network device system time synchronization, and achieve the effect of solving system time synchronization problems

Pending Publication Date: 2020-04-28
GENEW TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is that, aiming at the defects of the prior art, the present invention provides a clock synchronization setting method, device and storage medium, and sets a custom command through t

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Clock synchronization setting method and device, and storage medium
  • Clock synchronization setting method and device, and storage medium
  • Clock synchronization setting method and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] See figure 1 , figure 1 It is a flow chart of the clock synchronization setting method in the preferred embodiment of the present invention.

[0047] Such as figure 1 As shown, in an implementation manner of the embodiment of the present invention, the clock synchronization setting method includes the following steps:

[0048] Step S100, setting a custom command through the IIC protocol, and performing timing for the service board according to the custom command.

[0049] In this embodiment, the clock synchronization setting method is applied to network equipment, so as to set the system time of each service board in the network device to the same time, and realize the synchronization between the system time of each business board and the main control Board system time synchronization; Among the network equipment, at least one main control board and a plurality of service single boards are included; an MPU (Microprocessor Unit, microprocessor) is arranged inside the ...

Embodiment 2

[0115] See Figure 5 , Figure 5 It is a functional schematic diagram of the clock synchronization setting device of the present invention.

[0116] Such as Figure 5 As shown, this embodiment provides a clock synchronization setting device, which includes: a main control board 10 and a service single board 20, and the main control board 10 is connected to the service single board 20;

[0117] The service single board 20 is used to receive the synchronous read command sent by the main control board 10, and send the current time of the service single board 20 to the main control board 10; The timing write command sent by 10 sets the system time of the service single board 20 to be synchronized with the system time of the main control board 10;

[0118] The main control board 10 is used to set a custom command through the IIC protocol, and perform time service to the service single board 20 according to the custom command, so that the system time of the service single board 2...

Embodiment 3

[0121] This embodiment provides a storage medium, wherein the storage medium stores a clock synchronization setting program, and when the clock synchronization setting program is executed by a processor, it is used to implement the clock synchronization setting method as described in Embodiment 1; Specifically as above.

[0122] In summary, the present invention sets a custom command through the IIC protocol, so that the main control board can use the synchronous read command in the custom command to read the current time of each business single board, and use the timing write command to write to each The service board performs time service; in addition, the data transmission delay between the main control board and each service board is obtained through calculation, so that each service board can synchronize its own system time according to the system time and transmission delay of the main control board . The present invention sets custom commands through the IIC protocol t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a clock synchronization setting method and device and a storage medium, and the method comprises the steps: setting a custom command through an IIC protocol, and carrying out the time service of a service single board according to the custom command; when time service is carried out on the service single board, reading the current time of the service single board, and recording the current time of a main control board; calculating a transmission delay between the main control board and the service single board according to the current time of the service single board and the current time of the main control board; and setting the system time of the service single board through the transmission delay so as to synchronize the system time of the service single board with the system time of the main control board. According to the invention, the custom command is set through the IIC protocol, and the system time of the main control board and the system time of eachservice single board are synchronized by using the custom command, so that the problem that the system time of network equipment cannot be synchronized without the Ethernet is solved.

Description

technical field [0001] The invention relates to the application field of network equipment, in particular to a clock synchronization setting method, equipment and storage medium. Background technique [0002] In most network devices, it is required to set the same time for the entire network device or the boards on the entire chassis. Only the synchronized time setting can reflect the significance of the network device time. [0003] Among existing technologies, NTP protocol (Network Time Protocol, Network Time Protocol), SNTP protocol (Simple Network Time Protocol, Simple Network Time Protocol) and 1588PTP protocol (Precision Time Protocol, 1588PTP protocol is a network measurement and The precision clock synchronization protocol standard of the control system) to obtain the time on the network, so as to set the time on each board synchronously; however, these protocols are all implemented based on Ethernet, that is to say, in the absence of Ethernet Under normal circumsta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F1/12H04J3/06
CPCG06F1/12H04J3/0685
Inventor 戴瑜吴闽华孟庆晓杨超
Owner GENEW TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products