CN111106890A - Method and equipment for time synchronization - Google Patents

Method and equipment for time synchronization Download PDF

Info

Publication number
CN111106890A
CN111106890A CN201811266459.0A CN201811266459A CN111106890A CN 111106890 A CN111106890 A CN 111106890A CN 201811266459 A CN201811266459 A CN 201811266459A CN 111106890 A CN111106890 A CN 111106890A
Authority
CN
China
Prior art keywords
time
difference value
time difference
local
test instrument
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.)
Granted
Application number
CN201811266459.0A
Other languages
Chinese (zh)
Other versions
CN111106890B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811266459.0A priority Critical patent/CN111106890B/en
Publication of CN111106890A publication Critical patent/CN111106890A/en
Application granted granted Critical
Publication of CN111106890B publication Critical patent/CN111106890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/1851Systems using a satellite or space-based relay

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a method and equipment for time synchronization, which are used for solving the problems of lower test precision and larger limitation of a test instrument for time synchronization test in the prior art. According to the clock difference of the satellite time of the time equipment and the local time at the first comparison time and the clock difference of the satellite time of the test instrument and the local time at the second comparison time, the local time of the test instrument is adjusted according to the first time difference and the second time difference, and the time source error of the test instrument in the transmission process of receiving the satellite time is reduced, so that the precision of the test instrument for time synchronization test is improved.

Description

Method and equipment for time synchronization
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for performing time synchronization.
Background
With the development of science and technology, the requirements of various industries on time synchronization are higher and higher, particularly in some key industries with important concerns, accurate time synchronization is very important for designing a plurality of key infrastructures for national economic and social safety, and effective operation of a communication system, a financial system and an electric power system depends on high-precision time synchronization.
Currently, these systems usually acquire time information by building a time synchronization network to meet the requirement of high time precision for time synchronization. For a time synchronization network, a time server is usually deployed at the upstream of a transmission network, the time server acquires a time source through a satellite time service receiver, and then transmits time to a downstream application end according to a time synchronization protocol such as PTP (precision time protocol), and in order to verify whether the time synchronization network meets the time precision requirement, a time synchronization test instrument is required to test the time precision.
The existing time synchronization test instrument generally obtains a time source through a satellite time service receiver, and then compares the time source with a time signal output by network equipment to obtain a time precision test result, however, the time synchronization test instrument has a certain time source error, which results in lower time precision of network equipment test.
At present, in order to avoid the error of the time source of the time synchronization test instrument, in the laboratory test, the time precision of the network equipment or the error introduced by the network can be tested by adopting a loopback test, namely the output of the time synchronization test instrument is used as the input source of the network equipment, then the time output signal of the network equipment is looped back to be used as the input of the time synchronization test instrument, the time synchronization test instrument uses the self time as the reference to test the time output signal of the network equipment, thus the error of the time test instrument can be excluded from the time precision test result, the test is more accurate, but the test of the loop mode can only be carried out when the test instrument is close to the network equipment and the test instrument and the network equipment are in wired connection, the test has larger limitation, for some existing network tests, because each synchronization equipment is not in one place, the test of the loopback mode cannot be performed at a long distance, and the test of the loopback mode is a relative test, which cannot meet the time precision requirement of the network equipment for performing the time synchronization test in the UTC absolute time scene.
In summary, the current test instrument has lower test precision and larger limitation when performing time synchronization test.
Disclosure of Invention
The invention provides a method and equipment for time synchronization, which are used for solving the problems of lower test precision and larger limitation of a test instrument for time synchronization test in the prior art.
In a first aspect, a method for performing time synchronization provided in an embodiment of the present invention includes:
determining a first time difference value and a second time difference value, wherein the first time difference value is a clock error of the satellite time of the time equipment and the local time at a first comparison time, and the second time difference value is a clock error of the satellite time of the test instrument and the local time at a second comparison time; and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
According to the method, the clock error of the satellite time of the time equipment and the clock error of the local time at the first comparison time and the clock error of the test instrument and the clock error of the satellite time of the test instrument and the local time at the second comparison time are adjusted according to the first time difference and the second time difference, and the time source error of the test instrument in the transmission process of receiving the satellite time is reduced, so that the precision of the test instrument for time synchronization test is improved.
In an alternative embodiment, before determining the first time difference value and the second time difference value, requesting the time device to obtain time information of the time device, wherein the time information includes satellite time and local time of the time device; or the time information is the first time difference value; and determining the first time difference value according to the received time information.
According to the method, when the time information is sent by the time equipment, the satellite time and the local time of the time equipment can be selected to be sent, the first time difference value can also be selected to be sent, and the sending mode is more flexible.
In an optional implementation manner, the time information obtaining request is sent to the time device through the set time device address information.
According to the method, the time information acquisition request can be sent to different time equipment by setting the addresses of the different time equipment, so that the time equipment capable of acquiring the time information has a wider range, is more flexible to operate and has wider applicability.
In an optional implementation manner, before the local time of the test instrument is adjusted according to the first time difference value and the second time difference value, it is determined that the time difference value between the first comparison time and the second comparison time does not exceed a time threshold;
the first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
According to the method, the satellite positions are stable in a certain time, so that the comparison time of the satellite positions and the comparison time of the satellite positions are basically consistent.
In an alternative embodiment, the local time of the test meter is adjusted based on the time difference between the first time difference and the second time difference.
According to the method, the local time of the test instrument is adjusted according to the difference value of the first time difference value and the second time difference value, the time source error of the test instrument in the transmission process of receiving the satellite time can be reduced, and the precision of the test instrument for time synchronization test is improved.
In an alternative embodiment, the time device is a time server or a standard time device.
According to the method, the time server or the standard time equipment has high-precision time, and the precision of the test instrument in time precision measurement can be correspondingly improved when the test instrument is adjusted according to the time server or the standard time equipment.
In a second aspect, an embodiment of the present invention provides an apparatus for performing time synchronization, including: a processor and a transceiver:
the processor is configured to perform data transmission through the transceiver, and determine a first time difference value and a second time difference value, where the first time difference value is a clock difference between a satellite time of the time device and a local time at a first comparison time, and the second time difference value is a clock difference between the satellite time of the test instrument and the local time at a second comparison time; and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
Optionally, the processor is further configured to:
after requesting the time equipment to acquire the time information of the time equipment, determining the first time difference value according to the received time information;
wherein the time information comprises a satellite time and a local time of the time device; or the time information is the first time difference value.
Optionally, the processor is specifically configured to:
and sending a request for acquiring the time information to the time equipment through the set address information of the time equipment.
Optionally, the processor is further configured to:
before adjusting the local time of the test instrument according to the first time difference value and the second time difference value, determining that the time difference value between the first comparison time and the second comparison time does not exceed a time threshold;
the first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
Optionally, the processor is specifically configured to:
and adjusting the local time of the test instrument according to the time difference between the first time difference value and the second time difference value.
Optionally, the time device is a time server or a standard time device.
Optionally, the device is a test meter.
In a third aspect, an embodiment of the present invention further provides an apparatus for performing time synchronization, where the apparatus includes:
at least one processing unit and at least one memory unit, wherein the memory unit has stored program code which, when executed by the processing unit, causes the processing unit to perform the functions of the embodiments of the first aspect described above.
In a fourth aspect, the present invention further provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the steps of the above method.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a method for performing time synchronization according to an embodiment of the present invention;
fig. 2 is a schematic view of a scenario of a first solution according to an embodiment of the present invention;
fig. 3 is a schematic view of a scenario of a second solution provided in the embodiment of the present invention;
FIG. 4 is a functional diagram of a test meter according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a device for synchronization according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another apparatus for synchronization according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for performing synchronization integrity under a scenario of a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
1. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 1, an embodiment of the present invention provides a method for synchronous testing, which specifically includes the following steps:
step 100: determining a first time difference value and a second time difference value, wherein the first time difference value is a clock error of the satellite time of the time equipment and the local time at a first comparison time, and the second time difference value is a clock error of the satellite time of the test instrument and the local time at a second comparison time;
step 101: and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
According to the scheme, the clock error of the satellite time of the time equipment and the clock error of the local time at the first comparison time and the clock error of the test instrument and the clock error of the satellite time of the test instrument and the local time at the second comparison time are adjusted according to the first time difference and the second time difference, and the time source error of the test instrument in the transmission process of receiving the satellite time is reduced, so that the precision of the test instrument for time synchronization test is improved.
The execution subject of the embodiment of the invention can be a test instrument (also called test equipment) and can be used for measuring the time precision of the equipment.
The time device in the embodiment of the invention can be a time server or a standard time device.
The standard Time equipment has absolute standard Time, if the standard Time equipment is used, the first Time difference value of the standard Time equipment is the difference value between UTC (Coordinated Universal Time) Time and satellite Time, namely the Time error of the satellite Time relative to the UTC Time, the local Time of the test instrument is adjusted according to the first Time difference value of the standard Time equipment and the second Time difference value of the test instrument, the Time error of the local Time of the test instrument relative to the UTC Time can be indirectly compared, and the absolute Time precision of the test instrument can be improved by adjusting the local Time of the test instrument through the method disclosed by the invention.
The time server is a time source of a time synchronization network, and transmits time to a downstream application end through a time synchronization Protocol such as PTP (Precision time synchronization Protocol).
That is, the present invention provides two schemes to improve the time accuracy of the test meter, which are described below:
in the first scheme, the time equipment is standard time equipment.
The standard time equipment has various types, and the corresponding standard time also has various types, such as UTC, international atomic time TAI (international atomic time), GPS (Global Positioning system) time, and the like, and the specific manner of the embodiment of the present invention is described below by taking the standard time as UTC as an example:
the method includes that a test instrument and a UTC device with an absolute time source UTC acquire satellite time through a satellite receiver, the UTC device has continuously updated local time and satellite time, an IP address in the same network segment as the UTC device is allocated, the UTC device communicates with the UTC device by searching the IP address of the UTC device, after communication is successful, a request for acquiring time information is sent to the UTC device, and after the UTC device receives the request, the UTC device sends the time information, wherein the UTC device sends the time information in various modes, which is exemplified below:
the first sending mode is as follows: the local time and the satellite time are transmitted.
The UTC equipment transmits the received satellite time and the local time when the satellite time is received;
accordingly, after receiving the time information transmitted by the UTC device, a clock difference (first time difference) between the satellite time of the UTC device and the local time is calculated based on the time information.
And a second transmission mode: sending a first time difference value;
the UTC device determines a clock difference between the local time and the satellite time at a time, which difference is transmitted as a first time difference value to the UTC device, wherein the UTC device determines the time of the first time difference value.
Correspondingly, the receiving UTC equipment transmits the first time difference value.
For time equipment, the addresses of the time equipment in different networks are different, and the embodiment of the invention supports setting different destination addresses, so that a receiving source can be flexibly selected to send request information.
It should be noted that, different destination addresses are supported to be set to implement communication with the time device, the above-mentioned manner of passing through the IP address is only an example, and the communication with other time devices may also be performed by a wireless access manner or a wired connection manner of the mobile communication network, for example: any mode capable of realizing communication with time equipment, such as a Medium Access Control (MAC) address, is applicable to the embodiment of the present invention.
Further, in order to ensure the accuracy of adjusting the test instrument according to the first time difference and the second time difference, an optional case is that the UTC device and the test instrument acquire satellite time at the same time, and since the satellite positions are stable within a certain time, the comparison times of the UTC device and the test instrument are basically consistent. In implementation, it is sufficient to ensure that a time difference between a first comparison time corresponding to the determined first time difference of the UTC device and a second comparison time corresponding to the determined second time difference of the test instrument does not exceed a time threshold.
The first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
For example, if the time threshold between the first comparison time and the second comparison time is 1s, when the satellite time corresponding to the first comparison time is 12:00:01, the time range of the satellite time corresponding to the second comparison time is 12:00:00-12:00:02 under the condition that the time threshold is not exceeded.
The method comprises the steps that a test instrument stores a time difference value of the test instrument in a certain time period, after the satellite time of the UTC equipment at a first comparison time is determined, the time range of a second comparison time under a currently set time threshold is determined according to the first comparison time, the time difference value of the test instrument at any time in the time range under the time threshold is found according to the time difference value stored in the test instrument, and the time difference value at the same time as the first comparison time of the UTC equipment is optimally selected to serve as the second time difference value.
The test instrument sends the time information in the sending manner, the test instrument may also send the satellite time at a certain time within the time threshold range and the local time, and the specific implementation manner may be the sending manner of the UTC device described above by determining the second time difference of the test instrument, which is not described herein again.
Scheme II: the time equipment is a time server;
the time server obtains satellite time through the satellite receiver, the satellite time has continuously updated local time and satellite time, the time server is a time source of a time synchronization network, and the synchronization network transmits the time to the tested equipment through time synchronization protocols such as PTP.
The manner in which the test instrument sends the request for obtaining the time information to the time server and the time server sends the time information to the test instrument may refer to the specific implementation of the UTC device, and is not described herein again.
For the way of determining the first time difference of the time server and the second time difference of the test instrument, reference may be made to the specific implementation of determining the first time difference of the UTC device and determining the second time difference of the test instrument, and details are not described here.
In implementation, a first time difference value of the time device and a second time difference value of the test instrument are determined, wherein the first time difference value is a clock error of the satellite time of the time device and the local time at a first comparison time, and the second time difference value is a clock error of the satellite time of the test instrument and the local time at a second comparison time;
and adjusting the local time of the test instrument according to the time difference between the first time difference value and the second time difference value so as to enable the adjusted local time of the test instrument to be consistent with the local time of the time equipment, wherein the adjusted local time is taken as the test reference time by the test instrument.
For example, the satellite time of the UTC device at the first comparison time is represented as m1Local time is denoted by n1The first time difference value of the UTC equipment at the comparison time is A;
the satellite time of the test instrument at the second comparison time is expressed as m2Local time is denoted by n2The first time difference of the UTC equipment at the comparison timeThe value is B;
there are various algorithms for determining the first time difference value and the second time difference value by debugging, which are exemplified as follows:
the first algorithm is as follows: the first time difference value is equal to the satellite time minus the local time;
wherein if A ═ m1-n1If B is m2-n2If the value of A or B presents negative number, it represents that the satellite time of the corresponding device is slower than the local time.
And adjusting the local time of the test instrument according to the difference value of the first time difference value A and the second time difference value B.
For example, if a is 10ns, B is-5 ns, and a-B is 15ns, it indicates that the satellite time of the UTC device is faster than the local time by 10ns, and the satellite time is slower than the local time by 5s due to the self time source error of the test meter, and the local time needs to be reduced by 15ns, that is, the local time of the test meter is slowed by 15ns, and at this time, the local time is used as the test reference time.
And (3) algorithm II: the first time difference value is equal to the local time minus the satellite time;
wherein if A ═ n1-m1If B is n2-m2If the value of A or B presents negative number, it represents that the satellite time of the corresponding device is faster than the local time.
And adjusting the local time of the test instrument according to the difference value of the first time difference value A and the second time difference value B.
For example, if a is 10ns, B is-5 ns, and a-B is 15ns, it means that the satellite time of the UTC device is slower than the local time by 10ns, and the satellite time is faster than the local time by 5s due to the self time source error of the test instrument, and the local time needs to be accelerated by 15ns, that is, the local time of the test instrument is accelerated by 15ns, and at this time, the local time is used as the test reference time.
It should be noted that the above-mentioned manner of calculating the time difference between the UTC device and the test instrument and the first time difference and the second time difference is only an example, and there are various manners of calculating the difference, for example, when calculating the first time difference and the second time difference, a negative value representing the satellite time may be added to the local time, and the difference obtained by subtraction or addition is only a specific operation of a numerical value in a different expression form; for example, the difference between the first time difference and the second time difference may be calculated by subtracting the first time difference from the second time difference, and if the result obtained by using different algorithms may have a positive or negative score, the adjustment mode of the local time of the test instrument may be adjusted by adaptation, but the principle of the adjustment is not changed, and any algorithm capable of passing through the first time difference and the second time difference is adapted to the present invention.
After the local time of the test instrument is adjusted, the test instrument takes the adjusted local time as the test reference time, and the time precision of the tested equipment is measured by receiving the time output information of the tested equipment.
In the implementation, the test instrument can be adjusted before the test instrument measures the time precision of the tested equipment, and the test instrument can also be adjusted in the test process of the test instrument. The specific adjustment methods are various, and are exemplified as follows:
the first adjustment mode is as follows: adjusting the instrument to be measured according to the adjustment record;
and recording the adjustment value of the instrument to be tested, wherein the test instrument can be disconnected from communication in the test process of the instrument to be tested and adjusted according to the adjustment value.
The second adjustment mode is as follows: adjusting the instrument to be measured according to the adjustment record;
the device is communicated with the measured instrument and the time equipment at any time, and the measured equipment can be adjusted periodically.
For the first scheme, as shown in fig. 2, according to the first time difference of the UTC device and the second time difference of the test instrument, the local time of the test instrument is adjusted in the above manner, and the adjusted test instrument has higher absolute time accuracy and more accurate measurement results of the absolute time accuracy of the device under test.
For the second scheme, as shown in fig. 3, according to the first time difference of the time server serving as the time source of the device to be tested and the second time difference of the test instrument, the local time of the test instrument is adjusted in the above manner, and the adjusted local time of the test instrument is consistent with the time of the time server, so that the measurement result of the test instrument on the device to be tested is equivalent to the time deviation caused by the transmission network from the time server to the device to be tested, that is, the time precision of the test instrument during the current network test is improved.
Of these, there are 4 time sync transfer devices in each of fig. 2 and 3, which function to transfer the time sync of the time server to the devices in the synchronization network.
The time sync transfer devices in the figures may be any devices having time sync transfer capabilities, the number of which depends on the particular synchronization network, and the figures are only examples.
It should be noted that the time synchronization device in the embodiment of the present invention may be a test instrument, or may be used as a separate device for adjusting the local time of the test instrument; the present invention may also be integrated into a test instrument as a functional module, and used as a module with an adjustment function in the test instrument.
As shown in fig. 4, a schematic structural diagram of a device that embeds a device for performing time synchronization into a test meter according to an embodiment of the present invention is provided, and the integrated test meter also has a function of the device for performing time synchronization.
Based on the same inventive concept, the embodiment of the present invention further provides a device for performing time synchronization, and since the device corresponding to the device is a device corresponding to the method for performing time synchronization according to the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the device, the implementation of the device may refer to the implementation of the method for performing time synchronization, and repeated details are omitted.
As shown in fig. 5, an embodiment of the present invention provides an apparatus for performing time synchronization, including: processor 500 and transceiver 501:
the processor 500 is configured to perform data transmission through the transceiver 501, and determine a first time difference value and a second time difference value, where the first time difference value is a clock difference between a satellite time of the time device and a local time at a first comparison time, and the second time difference value is a clock difference between the satellite time of the test instrument and the local time at a second comparison time; and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
Optionally, the processor 500 is further configured to:
after requesting the time equipment to acquire the time information of the time equipment, determining the first time difference value according to the received time information;
wherein the time information comprises a satellite time and a local time of the time device; or the time information is the first time difference value.
Optionally, the processor 500 is further configured to:
before adjusting the local time of the test instrument according to the first time difference value and the second time difference value, determining that the time difference value between the first comparison time and the second comparison time does not exceed a time threshold;
the first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
Optionally, the processor 500 is specifically configured to:
and sending a request for acquiring the time information to the time equipment through the set address information of the time equipment.
Optionally, the processor 500 is further configured to:
and adjusting the local time of the test instrument according to the time difference between the first time difference value and the second time difference value.
Optionally, the time device is a time server or a standard time device.
Optionally, the device is a test meter.
Based on the same concept, as shown in fig. 6, the present invention provides an apparatus for performing time synchronization, the apparatus comprising:
at least one processing unit 600 and at least one memory unit 601, wherein the memory unit 601 stores program code that, when executed by the processing unit 600, causes the processing unit 600 to perform the following:
determining a first time difference value and a second time difference value, wherein the first time difference value is a clock error of the satellite time of the time equipment and the local time at a first comparison time, and the second time difference value is a clock error of the satellite time of the test instrument and the local time at a second comparison time; and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
Optionally, the processing unit 600 is further configured to:
after requesting the time equipment to acquire the time information of the time equipment, determining the first time difference value according to the received time information;
wherein the time information comprises a satellite time and a local time of the time device; or the time information is the first time difference value.
Optionally, the processing unit 600 is specifically configured to:
and sending a request for acquiring the time information to the time equipment through the set address information of the time equipment.
Optionally, the processing unit 600 is further configured to:
before adjusting the local time of the test instrument according to the first time difference value and the second time difference value, determining that the time difference value between the first comparison time and the second comparison time does not exceed a time threshold;
the first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
Optionally, the processing unit 600 is specifically configured to:
and adjusting the local time of the test instrument according to the time difference between the first time difference value and the second time difference value.
Optionally, the time device is a time server or a standard time device.
Optionally, the device is a test meter.
In some possible implementations, the aspects of time synchronization provided by the embodiments of the present invention can also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the method for time synchronization according to various exemplary embodiments of the present invention described in this specification when the program code runs on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A program product for time synchronization according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a server device. However, the program product of the present invention is not limited thereto, and in this document, the readable storage medium may be any tangible medium containing or storing the program, which can be used by or in connection with an information transmission, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the periodic network action system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device.
The embodiment of the invention also provides a storage medium readable by the computing equipment aiming at the time synchronization method, namely, the content is not lost after power failure. The storage medium stores therein a software program, which includes program code, and when the program code runs on a computing device, the software program is read and executed by one or more processors to implement the scheme of time synchronization of any one of the above network-side devices according to the embodiments of the present invention.
The embodiment of the invention also provides a storage medium readable by the computing equipment for the time synchronization method, namely, the content is not lost after power failure. The storage medium has stored therein a software program comprising program code which, when read and executed by one or more processors, implements any of the above aspects of time synchronization of embodiments of the present invention when said program code is run on a computing device.
Based on the same inventive concept, the embodiment of the present invention further provides a method for performing time synchronization, and since the device corresponding to the method is a method corresponding to the device in the system for performing time synchronization according to the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the device, the implementation of the method can refer to the implementation of the system for performing time synchronization, and repeated details are omitted.
Taking the device for performing time synchronization in the embodiment of the present invention as a test instrument and the UTC device as a time device, as shown in fig. 7, a complete method for performing time synchronization in the embodiment of the present invention includes:
step 700: the test instrument sends a request for acquiring time information to the UTC equipment and the test instrument;
step 701: the UTC equipment and the test instrument send the time information to the test instrument;
step 702: the test instrument determines a first time difference value of the UTC equipment at a first comparison time according to the time information of the UTC equipment, and determines a second time difference value of the test instrument at a second comparison time after determining that the time difference value between the first comparison time and the second comparison time does not exceed a time threshold;
step 703: and the test meter adjusts the local time of the test meter according to the time difference between the first time difference value and the second time difference value.
It should be noted that the above manner is only an example, and the time device may be a time server or other standard time devices.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A method for time synchronization, the method comprising:
determining a first time difference value and a second time difference value, wherein the first time difference value is a clock error of the satellite time of the time equipment and the local time at a first comparison time, and the second time difference value is a clock error of the satellite time of the test instrument and the local time at a second comparison time;
and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
2. The method of claim 1, wherein prior to determining the first time difference value and the second time difference value, further comprising:
requesting the time equipment to acquire time information of the time equipment, wherein the time information comprises satellite time and local time of the time equipment; or the time information is the first time difference value;
determining a first time difference value comprising:
and determining the first time difference value according to the received time information.
3. The method of claim 2, wherein the requesting the time device for obtaining the time information of the time device comprises:
and sending a request for acquiring the time information to the time equipment through the set address information of the time equipment.
4. The method of claim 1, wherein prior to adjusting the local time of the test meter based on the first time difference value and the second time difference value, further comprising:
determining that the time difference between the first comparison time and the second comparison time does not exceed a time threshold;
the first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
5. The method of claim 1, wherein said adjusting the local time of the test meter based on the first time difference value and the second time difference value comprises:
and adjusting the local time of the test instrument according to the time difference between the first time difference value and the second time difference value.
6. The method of any one of claims 1 to 5, wherein the time device is a time server or a standard time device.
7. An apparatus for time synchronization, comprising: a processor and a transceiver:
the processor is configured to perform data transmission through the transceiver, and determine a first time difference value and a second time difference value, where the first time difference value is a clock difference between a satellite time of the time device and a local time at a first comparison time, and the second time difference value is a clock difference between the satellite time of the test instrument and the local time at a second comparison time; and adjusting the local time of the test instrument according to the first time difference value and the second time difference value.
8. The device of claim 7, wherein the processor is further configured to:
after requesting the time equipment to acquire the time information of the time equipment, determining the first time difference value according to the received time information;
wherein the time information comprises a satellite time and a local time of the time device; or the time information is the first time difference value.
9. The device of claim 8, wherein the processor is specifically configured to:
and sending a request for acquiring the time information to the time equipment through the set address information of the time equipment.
10. The device of claim 7, wherein the processor is further configured to:
before adjusting the local time of the test instrument according to the first time difference value and the second time difference value, determining that the time difference value between the first comparison time and the second comparison time does not exceed a time threshold;
the first comparison time is satellite time used for determining a first time difference value, and the second comparison time is satellite time used for determining a second time difference value.
11. The device of claim 7, wherein the processor is specifically configured to:
and adjusting the local time of the test instrument according to the time difference between the first time difference value and the second time difference value.
12. The device according to any one of claims 7 to 11, wherein the time device is a time server or a standard time device.
13. The apparatus of claim 7, wherein the apparatus is a test meter.
14. An apparatus for time synchronization, the apparatus comprising: at least one processing unit and at least one memory unit, wherein the memory unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps of the method of any of claims 1 to 5.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201811266459.0A 2018-10-29 2018-10-29 Method and equipment for time synchronization Active CN111106890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811266459.0A CN111106890B (en) 2018-10-29 2018-10-29 Method and equipment for time synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811266459.0A CN111106890B (en) 2018-10-29 2018-10-29 Method and equipment for time synchronization

Publications (2)

Publication Number Publication Date
CN111106890A true CN111106890A (en) 2020-05-05
CN111106890B CN111106890B (en) 2022-12-13

Family

ID=70419628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811266459.0A Active CN111106890B (en) 2018-10-29 2018-10-29 Method and equipment for time synchronization

Country Status (1)

Country Link
CN (1) CN111106890B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105182273A (en) * 2015-09-08 2015-12-23 中国电力科学研究院 Calibration system used for verifying assembly line time value
US20170041128A1 (en) * 2012-07-27 2017-02-09 Nec Corporation Communication apparatus, time synchronization system, and time synchronization method
CN106707736A (en) * 2015-11-17 2017-05-24 惠州市德赛西威汽车电子股份有限公司 Automobile instrument clock precision measuring method and automobile instrument clock precision measuring device
CN109150352A (en) * 2018-07-20 2019-01-04 中国科学院国家授时中心 It is a kind of to compare the split-second precision reproducing method for controlling crystal oscillator based on satellite common vision

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170041128A1 (en) * 2012-07-27 2017-02-09 Nec Corporation Communication apparatus, time synchronization system, and time synchronization method
CN105182273A (en) * 2015-09-08 2015-12-23 中国电力科学研究院 Calibration system used for verifying assembly line time value
CN106707736A (en) * 2015-11-17 2017-05-24 惠州市德赛西威汽车电子股份有限公司 Automobile instrument clock precision measuring method and automobile instrument clock precision measuring device
CN109150352A (en) * 2018-07-20 2019-01-04 中国科学院国家授时中心 It is a kind of to compare the split-second precision reproducing method for controlling crystal oscillator based on satellite common vision

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑曼黎: "我国首次GPS共视时间传输试验的初步结果", 《天文学报》 *

Also Published As

Publication number Publication date
CN111106890B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN111435159B (en) Method and equipment for positioning
JP6343395B2 (en) Distribution of dynamic accuracy information in IEEE 1588 clock network
CN113572560A (en) Method, electronic device, and storage medium for determining clock synchronization accuracy
CN110636536A (en) Frequency calibration method and device
US11489746B2 (en) Detection device, detection method, and detection program
KR101716630B1 (en) Communication device, communication method and computer readable recording medium recording program
CN111106890B (en) Method and equipment for time synchronization
MX2020012264A (en) Communication method, terminal device, and network device.
US20240137246A1 (en) Network node for a vehicle
CN113094272B (en) Application testing method, device, electronic equipment and computer readable medium
CN110633182B (en) System, method and device for monitoring server stability
CN110750424B (en) Resource inspection method and device
CN115802471A (en) Clock synchronization method and equipment
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
EP3038375A1 (en) Communication verification system and method of using the same
US20220167292A1 (en) Wireless communication device, system, and storage medium
CN111314021A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN108429723B (en) Access control method and device
CN111884678A (en) Distribution line distance measurement method based on HPLC technology
KR20150137717A (en) Apparatus and method of managing 4 qubit-mixed states
CN109379252B (en) Network delay measurement method and device based on programmable logic device
CN113691339B (en) Clock synchronization method, device, equipment and storage medium
CN113098648B (en) System and method for power time-frequency tracing comparison
JP2023168879A (en) Communication system, client terminal, communication method, and communication program
JP2022084137A (en) Wireless communication device, system, and program

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