CN112866098B - Gateway time service method, device, electronic equipment and computer readable medium - Google Patents

Gateway time service method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112866098B
CN112866098B CN202011634331.2A CN202011634331A CN112866098B CN 112866098 B CN112866098 B CN 112866098B CN 202011634331 A CN202011634331 A CN 202011634331A CN 112866098 B CN112866098 B CN 112866098B
Authority
CN
China
Prior art keywords
clock signal
gateway
counter value
time
output frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011634331.2A
Other languages
Chinese (zh)
Other versions
CN112866098A (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN202011634331.2A priority Critical patent/CN112866098B/en
Publication of CN112866098A publication Critical patent/CN112866098A/en
Application granted granted Critical
Publication of CN112866098B publication Critical patent/CN112866098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/25Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS
    • G01S19/256Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS relating to timing, e.g. time of week, code phase, timing offset
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The disclosed embodiment provides a gateway time service method, a gateway time service device, an electronic device and a computer readable medium; relates to the technical field of the Internet of things. The gateway time service method comprises the following steps: continuously capturing second pulse signals of a positioning system, and determining a first counter value and a second counter value of gateway equipment respectively corresponding to adjacent second pulse signals; calculating the current output frequency (i.e. the actual oscillation number of the voltage-controlled crystal oscillator per second) of the local clock signal of the gateway device through the first counter value and the second counter value, so as to adjust the clock signal through the current output frequency; and carrying out time service on each node corresponding to the gateway equipment based on the adjusted clock signal. According to the technical scheme of the embodiment of the disclosure, when the signal of the positioning system is weak, the local clock signal of the gateway device is utilized to time each node, so that each node has uniform time.

Description

Gateway time service method, device, electronic equipment and computer readable medium
Technical Field
The disclosure relates to the technical field of internet of things, and particularly relates to a gateway time service method, a gateway time service device, electronic equipment and a computer readable medium.
Background
The internet of things is that any object or process needing monitoring, connection and interaction is collected in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems and laser scanners, various required information such as sound, light, heat, electricity, mechanics and positions of the object or process is collected, ubiquitous connection of objects and people is achieved through network access, and intelligent sensing, identification and management of the process of the objects are achieved. The internet of things is an information bearer based on the internet, and all common physical objects which can be independently addressed form an interconnected network.
Because the clocks of various internet of things devices are not uniform, the data of each node cannot be comprehensively analyzed in uniform time. In order to solve this problem, the gateway device provides time to each node in the network through an external GPS (Global Positioning System) synchronization clock. The GPS synchronous clock is a time service application developed based on a GPS high-precision positioning system, and can output a time information format conforming to a protocol according to the requirements of a user, so that synchronous time service is completed. However, the cost of the GPS synchronous clock is very high, and the output interface has limited functions, which cannot meet the requirements of large-scale popularization and application.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiments of the present disclosure provide a gateway time service method, a gateway time service apparatus, an electronic device, and a computer readable medium, which can provide time service for each node by using a clock signal of a gateway device, not only can solve the problem of high cost caused by a GPS synchronous clock and reduce cost, but also can correct the clock signal by using the time of a positioning system to ensure the precision of the clock signal.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, a method for time service of a gateway is provided, including: continuously capturing second pulse signals of a positioning system, and determining a first counter value and a second counter value of gateway equipment respectively corresponding to adjacent second pulse signals;
calculating the current output frequency of the clock signal of the gateway device through the first counter value and the second counter value, so as to adjust the clock signal through the current output frequency;
and carrying out time service on the gateway node corresponding to the gateway equipment based on the adjusted clock signal.
In an exemplary embodiment of the present disclosure, adjusting the clock signal by the output frequency includes:
determining a standard value of the clock signal;
and comparing the standard value with the current output frequency of the clock signal, and adjusting the input voltage corresponding to the clock signal according to the comparison result.
In an exemplary embodiment of the present disclosure, adjusting the clock signal according to the comparison result includes:
when the current output frequency in the comparison result is smaller than the standard value, the input voltage of the clock signal is increased;
and when the current output frequency in the comparison result is greater than the standard value, reducing the input voltage of the clock signal.
In an exemplary embodiment of the present disclosure, wherein the clock signal is provided by a crystal oscillator in the gateway device, adjusting the clock signal by the current output frequency comprises:
acquiring the current working temperature of the crystal oscillator;
calculating a temperature compensation parameter for the crystal oscillator using the current operating temperature;
adjusting the clock signal based on the temperature compensation parameter and the current output frequency.
In an exemplary embodiment of the present disclosure, timing each node corresponding to the gateway device based on the adjusted clock signal includes:
determining a target output frequency of the adjusted clock signal;
determining a third counter value at the time of receiving the pulse per second signal;
calculating a fourth counter value according to the third counter value and the target output frequency;
and when the counter value corresponding to the clock signal is equal to the fourth counter value, controlling the clock signal to be output to each node so as to time each node.
In an exemplary embodiment of the present disclosure, timing each node corresponding to the gateway device based on the adjusted clock signal includes:
acquiring time information of a positioning system corresponding to the pulse per second signal;
and carrying out time service on each node corresponding to the gateway equipment based on the time information and the adjusted clock signal.
In an exemplary embodiment of the present disclosure, timing each node corresponding to the gateway device based on the time information and the adjusted clock signal includes:
when the time information is received, if the time information is synchronous with the time information, time service is carried out on each node corresponding to the gateway equipment through the time information;
and if the time information is out-of-step information, timing each node corresponding to the gateway equipment through the adjusted clock signal.
According to a second aspect of the embodiments of the present disclosure, a gateway time service device is provided, which may include a signal capture module, a clock correction module, and a node time service module.
The signal capturing module is used for continuously capturing the pulse-per-second signals of the positioning system, and determining a first counter value and a second counter value of the gateway device corresponding to the adjacent pulse-per-second signals respectively.
And the clock correction module is used for calculating the current output frequency of the clock signal of the gateway equipment through the first counter value and the second counter value so as to adjust the clock signal through the current output frequency.
And the node time service module is used for carrying out time service on each node corresponding to the gateway equipment based on the adjusted clock signal.
In an exemplary embodiment of the present disclosure, the clock correction module includes a standard value acquisition unit, and a contrast adjustment unit.
The standard value acquiring unit is used for determining a standard value of the clock signal.
And the comparison adjusting unit is used for comparing the standard value with the current output frequency of the clock signal and adjusting the input voltage corresponding to the clock signal according to the comparison result.
In an exemplary embodiment of the present disclosure, the contrast adjusting unit may be configured to: when the current output frequency in the comparison result is smaller than the standard value, the input voltage of the clock signal is increased; and when the current output frequency in the comparison result is greater than the standard value, reducing the input voltage of the clock signal.
In an exemplary embodiment of the present disclosure, a clock correction module includes a temperature acquisition unit, a compensation parameter determination unit, and a signal adjustment unit.
The temperature acquisition unit is used for acquiring the current working temperature of the crystal oscillator.
A compensation parameter determination unit for calculating a temperature compensation parameter for the crystal oscillator using the current operating temperature.
A signal adjusting unit for adjusting the clock signal based on the temperature compensation parameter and the current output frequency.
In an exemplary embodiment of the present disclosure, the node timing module may include a frequency determining unit, a counter value determining unit, a value calculating unit, and a signal output unit.
And the frequency determining unit is used for determining the target output frequency of the adjusted clock signal.
And the counter value determining unit is used for determining a third counter value when the pulse per second signal is received.
And the numerical value calculating unit is used for calculating a fourth counter numerical value according to the third counter numerical value and the target output frequency.
And the signal output unit is used for controlling the clock signal to be output to each node when the counter value corresponding to the clock signal is equal to the fourth counter value so as to time each node.
In an exemplary embodiment of the disclosure, the node timing module may include a time acquisition unit and a time synchronization unit.
And the time acquisition unit is used for acquiring the time information of the positioning system corresponding to the pulse per second signal.
And the time synchronization unit is used for carrying out time service on each node corresponding to the gateway equipment based on the time information and the adjusted clock signal.
In an exemplary embodiment of the disclosure, the node time service module may be configured to: when the time information is received, if the time information is synchronous with the time information, time service is carried out on each node corresponding to the gateway equipment through the time information; and if the time information is the out-of-step information, carrying out time service on each node corresponding to the gateway equipment through the adjusted clock signal.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: one or more processors; a storage device, configured to store one or more programs, where when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the gateway time service method according to the first aspect of the foregoing embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the gateway time service method according to the first aspect in the above embodiments.
According to the gateway time service method, the gateway time service device, the electronic equipment and the computer readable medium provided by the embodiment of the disclosure, the output frequency of the clock signal is calculated through the counter value corresponding to the adjacent pulse per second signal, and then the clock signal is adjusted through the calculated output frequency, so that the clock signal can be ensured to be consistent with the pulse per second signal of the positioning system, and the precision of the clock signal is improved; each node in the gateway is timed through the clock signal of the gateway equipment, so that the dependence on a positioning system can be avoided, and the network robustness is enhanced; in addition, the gateway equipment can provide a clock, a GPS synchronous clock is not needed for time service, the cost can be reduced, and the popularization and the application of the Internet of things equipment are facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 schematically illustrates an exemplary system architecture diagram of a gateway time service method or a gateway time service device applied to the embodiment of the present disclosure;
FIG. 2 is a flow chart schematically illustrating a method for time service by a gateway according to an embodiment of the present disclosure;
FIG. 3 schematically shows a schematic block diagram of a gateway device in an embodiment according to the present disclosure;
FIG. 4 is a flow chart schematically illustrating a gateway time service method according to another embodiment of the present disclosure;
FIG. 5 is a flow chart schematically illustrating a method for time service of a gateway according to an embodiment of the present disclosure;
FIG. 6 is a flow chart schematically illustrating a method for gateway time service according to another embodiment of the present disclosure;
FIG. 7 is a flow chart schematically illustrating a method for time service of a gateway according to an embodiment of the present disclosure;
FIG. 8 is a flow chart schematically illustrating a method for gateway time service according to another embodiment of the present disclosure;
figure 9 schematically shows a block diagram of a gateway time service apparatus according to an embodiment of the present disclosure;
FIG. 10 illustrates a schematic structural diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In this specification, the terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of one or more elements/components/etc.; the terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first," "second," "third," and the like are used merely as labels, and are not limiting as to the number of objects.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
Fig. 1 is a schematic diagram illustrating a system architecture of an exemplary application environment to which a gateway time service method or a gateway time service apparatus according to an embodiment of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a gateway device 105. The network 104 serves to provide a medium for communication links between the terminal devices 101, 102, 103 and the gateway device 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may interact with the gateway device 105 through the network 104 using the terminal devices 101, 102, 103 for information exchange and communication. The terminal devices 101, 102, and 103 may be various information sensing devices, or various electronic devices having a display screen and supporting web browsing, including but not limited to radio frequency identification devices, infrared sensors, global positioning systems, laser scanners, and the like, or desktop computers, portable computers, smart phones and tablets, wearable devices, virtual reality devices, smart homes, and the like.
The gateway device 105 may be a computer system or device providing network protocol translation services, enabling network interconnection between different protocols, for example providing communication between devices operated by users with the terminal devices 101, 102, 103. The gateway equipment of the Internet of things can control each node in the network, for example, the identification, the state, the attribute and the like of the node are obtained, and each node is upgraded, controlled and maintained remotely.
For example, the gateway device 105 may, for example, continuously capture the pulse-per-second signal of the positioning system, determine the first counter value and the second counter value, thereby calculating the current output frequency of the clock signal, and adjust the clock signal by the current output frequency; and after the adjustment, each node is subjected to time service through a clock signal.
It should be understood that the number of terminal devices, networks and gateway devices in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and gateway devices, as desired for implementation.
The gateway time service method provided by the embodiment of the present disclosure is generally executed by the gateway device 105, and accordingly, the gateway time service apparatus is generally disposed in the gateway device 105.
Based on this, the technical scheme of the gateway time service method provided by the embodiment of the disclosure can adjust the clock signal in the gateway device by using the pulse per second signal of the positioning system, so that the adjusted clock signal is used for time service of the nodes in the gateway, and each node in the internet of things has uniform time, thereby facilitating acquisition and analysis of data of the internet of things.
Illustratively, in an application scenario of the present disclosure, the gateway device is connected to each infrared data acquisition node in the smart room, information acquired by each infrared data acquisition node at the same time point is acquired, and the posture of a person in the smart room at the time point is analyzed through the acquired information, so that an alarm can be automatically performed when the posture of the person is abnormal, thereby improving intelligence of the smart room and timeliness of information processing. For example, this wisdom room can be used for old person's intelligence system of nursing care, can carry out timely safe the nursing to the old person.
As shown in fig. 2, the gateway time service method provided by the embodiment of the present disclosure may include step S21, step S22, and step S23.
In step S21, pulse-per-second signals of the positioning system are continuously captured, and a first counter value and a second counter value of the gateway device respectively corresponding to adjacent pulse-per-second signals are determined.
The positioning system may be referred to as a GPS system, among others. The Pulse Per Second signal may refer to a Pulse signal sent every Second by the GPS system, and may also be referred to as a PPS (Pulse Per Second) signal. The positioning system may emit a one second pulse signal every second, which serves to indicate the time of the entire second, which can be generally indicated by the rising edge of the second pulse signal. The gateway device may capture one pulse per second every whole second time, record the value of the counter when the pulse per second signal is captured, and record the start time of the pulse per second signal. After a plurality of second pulse signals of a certain time are continuously captured, a plurality of counter values arranged according to a time sequence can be obtained. The counter is a counter local to the gateway device, such as a 32-bit pulse input capture counter contained inside the CPU chip. For example, when a first pulse per second signal is received, the value of the counter at that time may be recorded as a first counter value, and when a second pulse per second signal is received, the value of the counter may be recorded as a second counter value, and so on. Once per second, the second pulse signal may store the recorded counter values in a sequence, and further divide the second pulse signal into a plurality of pairs in a manner that every two adjacent counter values are adjacent to each other, for example, the counter value obtained within 10 seconds is [1,2,3,4,5,6,7,8,9, 10], and then two counter values adjacent to each other are divided into a group, which are respectively (1,2), (2,3), (3,4), (4,5) …, and the like, and the two counter values in each group may be a first counter value and a second counter value, respectively.
In an exemplary embodiment, the gateway device may include a processor module, a GPS module, an external interface module, as shown in fig. 3. The processor module 301 may include various main control chips, such as an ARM; the ARM can be used as a CPU processor to run an operating system, so that various service functions such as data acquisition management, data storage and the like are provided for the gateway equipment; and an oscillator module 3012 may also be included in the processor module; the oscillator module 3012 may include various crystal oscillators, such as a temperature compensated crystal oscillator, an oven controlled crystal oscillator, a voltage controlled crystal oscillator, etc., to provide a time reference for the processor module; in addition, a counter module 3011 for counting the number of times of the crystal oscillator, such as a 32-bit counter, may also be included in the processor module; the GPS module 302 may include various GPS receivers, and corresponding GPS antenna devices, such as an LEA5S GPS receiver and a mating antenna; the external interface module 303 may include various types of interfaces provided by the gateway device, such as a bluetooth interface, a WIFI interface, an ethernet interface, a ZIGBEE interface, and so on. In addition, the gateway device 300 may further include other modules, such as a power supply, an IO (input/output) module, a bus, and an FPGA (Field Programmable Gate Array) chip for programming a hardware circuit of the gateway device and implementing data conversion and exchange functions.
For example, the GPS module is connected with a serial port of the main control chip ARM, the pulse-per-second signal can be captured through the IO port, when the GPS is synchronous and effective, the information of the module is continuously updated, and the pulse-per-second signal is always kept, so that a plurality of pulse-per-second signals can be continuously captured. And the ARM internally comprises at least one 32-bit counter for counting the voltage-controlled crystal oscillator externally connected with the ARM. The crystal oscillator essentially provides the clock pulses for the entire circuit of the gateway device. When the ARM receives the pulse per second signal of the GPS system, the output channel of the counter may output the current counter value, for example, when the first pulse per second signal of the GPS system is received, the output of the counter is 1000, when the second pulse per second signal of the GPS system is received, the output of the counter is 2000, and so on. Continuously capturing a certain number of pulse-per-second signals, and recording the counter value corresponding to each pulse-per-second signal, so as to obtain the first counter value corresponding to each pair of adjacent pulse signals adjacent to each other, and the second counter. For example, the pulse per second signal may be captured continuously for 1 minute, 3 minutes, and 5 minutes, which is not limited in this embodiment.
With continued reference to fig. 2, in step S22, a current output frequency of a clock signal of the gateway device is calculated by the first counter value and the second counter value, so as to adjust the clock signal by the current output frequency.
Wherein the clock signal of the gateway device is provided by a crystal oscillator in the gateway device. The crystal oscillator can provide stable and accurate single-frequency oscillation in a resonance state by using a crystal which can convert electric energy and mechanical energy into each other, and can be also called as a crystal oscillator. The chip of the gateway device needs to control the circuit logic according to the clock signal to realize various functions.
The standard time of the GPS system can be obtained through the pulse per second signal of the positioning system, and the time length between every two adjacent pulse per second signals is 1 second of the standard time. Two adjacent counter values of a counter of the gateway equipment, the duration of 1 second of a crystal oscillator in the gateway equipment is between the first counter value and the second counter value, and the starting time of each pulse signal per second is the time of the rising edge output by the crystal oscillator. The current output frequency of the crystal oscillator, namely the actual oscillation number of the crystal oscillator per second, can be determined according to the difference value of the first counter and the second counter, and the local crystal oscillator frequency of the gateway equipment can be determined to be too fast or too slow through the current output frequency, so that the local clock pulse of the gateway equipment is adjusted to be consistent with the standard time of a GPS system. Specifically, the method may include step S41 and step S42, as shown in fig. 4.
In step S41, a standard value of the clock signal is determined. The standard value of the clock signal may be determined according to actual conditions, and different crystal oscillators may correspond to different standard values, for example, 10 mhz, and the like, which is not limited in this embodiment.
In step S42, comparing the standard value with the current output frequency of the clock signal, and adjusting the voltage input corresponding to the clock signal according to the comparison result. In this embodiment, the output frequency of the crystal oscillator can be adjusted by adjusting the input voltage of the voltage controlled crystal oscillator. Comparing the standard value with the current output frequency, if the current output frequency in the comparison result is less than the standard value, the crystal oscillator is too slow, and the input voltage can be increased; if the current output frequency in the comparison result is greater than the standard value, the crystal oscillator is too fast, and the input voltage can be reduced. The output frequency of the local crystal oscillator can be repeatedly corrected by the difference between a plurality of adjacent first counter values and second counter values, so that the crystal oscillator is adjusted to a standard value.
In an exemplary embodiment, the operating temperature of a crystal oscillator may affect its output frequency, resulting in large errors. Therefore, the method may further include steps S51 to S53, as shown in fig. 5.
In step S51, the current operating temperature of the crystal oscillator is acquired. The current working temperature can be read through a temperature sensor in the gateway equipment and can be read once every a period of time, so that timely and effective temperature compensation is carried out on the crystal oscillator, and error increase caused by the lapse of time is avoided.
In step S52, a temperature compensation parameter for the crystal oscillator is calculated using the current operating temperature. Wherein the temperature compensation parameter refers to the frequency deviation of the crystal oscillator at different temperatures. When the GPS loses step and uses the voltage-controlled crystal oscillator inside the gateway to feed outwards, if the temperature change of the equipment is overlarge, the oscillation frequency of the crystal oscillator can change every second due to the self physical characteristics (the temperature can be increased quickly and the temperature can be reduced slowly), in order to prevent the time error from accumulating, a temperature change crystal oscillator frequency change number table which is tested and calibrated in advance must be used for correcting the actual oscillation number of the crystal oscillator per second at the current temperature and compensating the influence of the temperature. For example, at 30 degrees celsius, the number of oscillations per second is calculated as M, and when the temperature is 55 degrees celsius, the table lookup indicates that the number of oscillations per second is increased by N, and then the actual number of oscillations per second should be M + N.
In step S53, the clock signal is adjusted based on the temperature compensation parameter and the current output frequency. Because the current working temperature can affect the output frequency of the crystal oscillator to cause a certain frequency deviation, after the frequency deviation is determined according to the temperature compensation parameters, the adjustment degree can be determined by combining the frequency deviation and the current output frequency. For example, if the current output frequency is m less than the standard value, the input voltage needs to be increased by a, and the current temperature compensation parameter is n, the input voltage needs to be increased by a + n in combination with the temperature compensation parameter.
In this embodiment, the adjusted clock signal completely matches the pulse waveform of the pulse per second signal of the positioning system, and the clock signal may also output the pulse per second waveform externally as a time reference of the local gateway device.
In step S23, each node corresponding to the gateway device is timed based on the adjusted clock signal.
After the clock signal is adjusted, the gateway device can utilize the clock signal provided by the local crystal oscillator to time each node, so that when the GPS signal is weak or the GPS signal cannot be received, accurate time can be provided by utilizing the local clock signal. The time service is carried out on each node, so that the time of each gateway node is uniform, the collected data of each node can be collected at uniform time, and the data can be conveniently and uniformly analyzed and processed. Specifically, the method includes step S61 and step S62, as shown in fig. 6.
In step S61, time information of the positioning system corresponding to the pulse per second signal is acquired. The time information of the signal output, such as year, month, day, hour, minute and second, can be obtained when the pulse-per-second signal of the positioning system is captured. For example, after the GPS module receives the satellite signal received by the GPS antenna, the time information corresponding to the pulse-per-second signal may be extracted from the received information. The time information may be a standard time provided by the GPS system. The time information may be updated each time a pulse of seconds is received so that the time information remains synchronized with the GPS system.
In step S62, each node corresponding to the gateway device is timed based on the time information and the adjusted clock signal. In this embodiment, the time information updated each time may be sent to each node, for example, each time the time information is updated, the time of each node is updated each time the updated time information is sent to each node, so that each node is kept consistent with the standard time of the GPS system. Or predicting the time information at the next updating time by using the recorded updated time information through a local clock signal, and sending the predicted time information to each node to time each node. For example, the currently recorded updated time is T1, the time duration S of one second can be determined according to the output frequency of the local clock signal, and then T1+ S is output to each node as the updated time T2 when the time reaches one second. For example, a synchronization period is preset, for example, 10 minutes of synchronization per week, in the synchronization period, time information of the positioning system can be used for time service of each node, and a local clock signal is adjusted according to the time information, so that the problem of error increase caused by long-time output of the clock signal is avoided; after the synchronization period is finished, the local clock signal is adopted to time each node, so that the high cost brought by a positioning system is reduced.
In an exemplary embodiment, when the time information of the positioning system is received, the time is checked, and if the time information is the synchronization information, time service is performed on each node corresponding to the gateway device through the time information. And if the time information is the out-of-step information, timing each node corresponding to the gateway equipment through the adjusted clock signal. Time service is carried out in a mode of combining a positioning system and a local clock signal, so that time errors can be reduced, and time uniformity and reliability of gateway nodes are further improved.
When the positioning system provides the time information, the time information may be transmitted in the form of a time data packet, and the time data packet may include verification information for verifying the time information, and it may be determined whether the current time is synchronized through the verification information. For example, the check information is a flag, and if the flag is 0, the check information is out-of-sync time, and if the flag is 1, the check information is in-sync time. If the time information is the synchronization time, the signal of the current positioning system is normal, and the provided time information is effective, the acquired time information can be synchronized to each node to time each node. If the current time information is the out-of-step time, the signal of the positioning system is abnormal, the provided time is empty or inaccurate, and the time can be calculated according to the clock signal to time each node.
The method for timing each node by the adjusted clock signal may include steps S71 to S74, as shown in fig. 7.
In step S71, a target output frequency of the adjusted clock signal is determined. In this embodiment, the adjusted clock signal has a stable output frequency, and when the output frequency of the crystal oscillator is stable during the adjustment process, the adjustment may be stopped, and the current output frequency is read as the target output frequency.
In step S72, the third counter value at the time of reception of the pulse-per-second signal is determined. In this embodiment, the third counter value may refer to a value corresponding to the counter when the second pulse signal is synchronized to the positioning system last time. For example, a time period may be preset, during which the pulse-per-second signals are captured continuously, and a counter value corresponding to each pulse-per-second signal is recorded, and the last counter value obtained may be used as the third counter value.
In step S73, a fourth counter value is calculated based on the third counter value and the target output frequency. The number of times of vibration of the crystal oscillator per second can be determined according to the target output frequency, the third counter is the current number of times of vibration of the crystal oscillator, and the number of times of vibration of one second is increased on the basis of the value of the third counter to obtain the number of times of vibration of the crystal oscillator of the next second, namely the value of the fourth counter. For example, if the third counter value is M and the target output frequency is X hz, the fourth counter is M + X.
In step S74, when the counter value corresponding to the clock signal is equal to the fourth counter value, the clock signal is controlled to be output to each node, so as to time each node. The local clock signal of the gateway device may output the pulse per second to the outside, that is, the clock signal may also provide one pulse per second to the control chip of the gateway device, and the control chip may control the gateway device to send the pulse per second to each node. When the counter value is equal to the fourth counter value, the gateway apparatus may output a clock signal to each node so that each node has a uniform time.
Fig. 8 schematically illustrates a method of tuning a crystal oscillator. As shown in fig. 8, the method is as follows:
in step S801, GPS information is read; the GPS information may include time information and a pulse per second signal; in step S802, it is determined whether the GPS information is synchronized; judging whether the time information in the GPS information is synchronous time, if so, executing a step S803, otherwise, executing a step S804; in step S803, a counter value corresponding to the current GPS information is recorded; in step S804, a counter value is predicted according to the last second GPS information; in step S805, the counter value is inserted into the queue, and an average difference between adjacent counter values is calculated; the queue comprises a plurality of counter values, and after the difference value between every two adjacent counter values is calculated respectively, the calculated difference value is averaged to obtain an average difference value; in step S806, calculating a crystal oscillation deviation according to the average difference; the crystal oscillator deviation is the deviation between the current output frequency of the crystal oscillator and a standard value; in step S807, the current operating temperature is read; in step S808, a temperature compensation parameter is calculated using the current operating temperature; in step S809, calculating a total crystal oscillator deviation by combining the temperature compensation parameter and the crystal oscillator deviation; in step S810, determining whether the crystal oscillator needs to be adjusted according to the total deviation of the crystal oscillator; if the total deviation of the crystal oscillator is greater than a preset threshold value, the adjustment is needed; if the total deviation of the crystal oscillator is not greater than the preset threshold value, no adjustment is needed; in step S811, the input voltage is adjusted; the input voltage can be adjusted through the D/A converter, so that the size of the input voltage is changed; then, in step S812, the crystal oscillator frequency is waited for to stabilize, and the crystal oscillator adjustment is completed.
Embodiments of the apparatus of the present disclosure are described below, which may be used to perform the above-described gateway timing method of the present disclosure. Referring to fig. 9, a gateway time service apparatus 900 provided in an embodiment of the present disclosure may include: the system comprises a signal capturing module 910, a clock correcting module 920 and a node timing module 930.
The signal capturing module 910 is configured to continuously capture pulse-per-second signals of the positioning system, and determine a first counter value and a second counter value of the gateway device, where the first counter value and the second counter value correspond to adjacent pulse-per-second signals, respectively.
A clock correction module 920, configured to calculate a current output frequency of a clock signal of the gateway device through the first counter value and the second counter value, so as to adjust the clock signal through the current output frequency.
And a node time service module 930, configured to time service each node corresponding to the gateway device based on the adjusted clock signal.
In an exemplary embodiment of the present disclosure, the clock correction module 920 includes a standard value obtaining unit and a contrast adjusting unit.
And the standard value acquisition unit is used for determining the standard value of the clock signal.
And the comparison adjusting unit is used for comparing the standard value with the current output frequency of the clock signal and adjusting the input voltage corresponding to the clock signal according to a comparison result.
In an exemplary embodiment of the present disclosure, the contrast adjusting unit may be configured to: when the current output frequency in the comparison result is smaller than the standard value, the input voltage of the clock signal is increased; and when the current output frequency in the comparison result is greater than the standard value, reducing the input voltage of the clock signal.
In an exemplary embodiment of the present disclosure, the clock correction module 920 includes a temperature acquisition unit, a compensation parameter determination unit, and a signal adjustment unit.
The temperature acquisition unit is used for acquiring the current working temperature of the crystal oscillator.
A compensation parameter determination unit for calculating a temperature compensation parameter for the crystal oscillator using the current operating temperature.
A signal adjusting unit for adjusting the clock signal based on the temperature compensation parameter and the current output frequency.
In an exemplary embodiment of the present disclosure, the node timing module 930 may include a frequency determining unit, a counter value determining unit, a value calculating unit, and a signal output unit.
And the frequency determining unit is used for determining the target output frequency of the adjusted clock signal.
And the counter value determining unit is used for determining a third counter value when the pulse per second signal is received.
A value calculating unit for calculating a fourth counter value according to the third counter value and the target output frequency.
And the signal output unit is used for controlling the clock signal to be output to each node when the counter value corresponding to the clock signal is equal to the fourth counter value so as to time each node.
In an exemplary embodiment of the present disclosure, the node timing module 930 may include a time acquisition unit and a time synchronization unit.
And the time acquisition unit is used for acquiring the time information of the positioning system corresponding to the pulse per second signal.
And the time synchronization unit is used for carrying out time service on each node corresponding to the gateway equipment based on the time information and the adjusted clock signal.
In an example embodiment of the present disclosure, the node time service 930 may be configured to: when the time information is received, if the time information is synchronous with the time information, time service is carried out on each node corresponding to the gateway equipment through the time information; and if the time information is the out-of-step information, carrying out time service on each node corresponding to the gateway equipment through the adjusted clock signal.
Since each functional module of the gateway time service device in the exemplary embodiment of the present disclosure corresponds to the steps of the exemplary embodiment of the gateway time service method, please refer to the embodiment of the gateway time service method in the present disclosure for details that are not disclosed in the embodiment of the present disclosure.
Referring now to FIG. 10, shown is a block diagram of a computer system 1000 suitable for use in implementing the electronic devices of embodiments of the present disclosure. The computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU) 1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 10010 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU 1201, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 1001.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer 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 of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device is enabled to implement the gateway time service method in the embodiment.
For example, the electronic device may implement the following as shown in fig. 2: s21, continuously capturing second pulse signals of a positioning system, and determining a first counter value and a second counter value example of gateway equipment respectively corresponding to adjacent second pulse signals; step S22, calculating the current output frequency of the clock signal of the gateway device through the first counter value and the second counter value, so as to adjust the clock signal through the current output frequency; and S23, timing each node corresponding to the gateway equipment based on the adjusted clock signal.
As another example, the electronic device may implement the various steps shown in fig. 3-8.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method for time service of a gateway is characterized by comprising the following steps:
continuously capturing second pulse signals of a positioning system, and determining a first counter value and a second counter value of gateway equipment respectively corresponding to adjacent second pulse signals;
calculating the current output frequency of the clock signal of the gateway device through the first counter value and the second counter value, so as to adjust the clock signal through the current output frequency;
carrying out time service on each node corresponding to the gateway equipment based on the adjusted clock signal, and the method comprises the following steps: acquiring time information of a positioning system corresponding to the pulse per second signal; and carrying out time service on each node corresponding to the gateway equipment based on the time information and the adjusted clock signal.
2. The method of claim 1, wherein adjusting the clock signal by the output frequency comprises:
determining a standard value of the clock signal;
and comparing the standard value with the current output frequency of the clock signal, and adjusting the input voltage corresponding to the clock signal according to the comparison result.
3. The method of claim 2, wherein adjusting the clock signal according to the comparison comprises:
when the current output frequency in the comparison result is smaller than the standard value, the input voltage of the clock signal is increased;
and when the current output frequency in the comparison result is greater than the standard value, reducing the input voltage of the clock signal.
4. The method of claim 1, wherein the clock signal is provided by a crystal oscillator in the gateway device, and wherein adjusting the clock signal by the current output frequency comprises:
acquiring the current working temperature of the crystal oscillator;
calculating a temperature compensation parameter for the crystal oscillator using the current operating temperature;
adjusting the clock signal based on the temperature compensation parameter and the current output frequency.
5. The method according to claim 1, wherein each node corresponding to the gateway device is timed based on the adjusted clock signal, further comprising:
determining a target output frequency of the adjusted clock signal;
determining a third counter value at the time of receiving the pulse-per-second signal;
calculating a fourth counter value according to the third counter value and the target output frequency;
and when the counter value corresponding to the clock signal is equal to the fourth counter value, controlling the clock signal to be output to each node so as to time each node.
6. The method according to claim 1, wherein the time service for each node corresponding to the gateway device based on the time information and the adjusted clock signal comprises:
when the time information is received, if the time information is synchronous information, time service is carried out on each node corresponding to the gateway equipment through the time information;
and if the time information is out-of-step information, timing each node corresponding to the gateway equipment through the adjusted clock signal.
7. A gateway time service device, comprising:
the signal acquisition module is used for continuously acquiring the pulse per second signals of the positioning system and determining a first counter value and a second counter value of the gateway equipment respectively corresponding to the adjacent pulse per second signals;
the clock correction module is used for calculating the current output frequency of the clock signal of the gateway equipment through the first counter value and the second counter value so as to adjust the clock signal through the current output frequency;
the node time service module is used for carrying out time service on each node corresponding to the gateway device based on the adjusted clock signal, and comprises: acquiring time information of a positioning system corresponding to the pulse per second signal; and carrying out time service on each node corresponding to the gateway equipment based on the time information and the adjusted clock signal.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the gateway time service method of any of claims 1-6.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, implements the gateway timing method according to any one of claims 1 to 6.
CN202011634331.2A 2020-12-31 2020-12-31 Gateway time service method, device, electronic equipment and computer readable medium Active CN112866098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011634331.2A CN112866098B (en) 2020-12-31 2020-12-31 Gateway time service method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011634331.2A CN112866098B (en) 2020-12-31 2020-12-31 Gateway time service method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112866098A CN112866098A (en) 2021-05-28
CN112866098B true CN112866098B (en) 2022-12-30

Family

ID=76000077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011634331.2A Active CN112866098B (en) 2020-12-31 2020-12-31 Gateway time service method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112866098B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257556A (en) * 2021-12-21 2022-03-29 四川灵通电讯有限公司 Multi-access information processing device and communication method
CN114296337A (en) * 2021-12-29 2022-04-08 湖南国科微电子股份有限公司 High-precision time service frequency-granting receiver
CN114745362B (en) * 2022-03-25 2023-08-29 中国科学院国家授时中心 Remote upgrading method and system based on optical fiber time service
CN115032449A (en) * 2022-08-10 2022-09-09 北京智芯半导体科技有限公司 Electric energy metering method and device, electronic equipment, chip and readable storage medium
CN116155434A (en) * 2023-04-19 2023-05-23 南京万形电气有限公司 Millisecond-level deep time service improvement method based on HPLC local communication module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848076A (en) * 2010-05-10 2010-09-29 新邮通信设备有限公司 Clock signal holding method and device
CN202514075U (en) * 2011-12-01 2012-10-31 北京航天测控技术有限公司 Intermediate piece device in wireless sensor network
CN106922015A (en) * 2015-12-25 2017-07-04 联芯科技有限公司 Wireless Telecom Equipment and its frequency synchronization method
CN110879519A (en) * 2019-11-08 2020-03-13 中国科学院长春光学精密机械与物理研究所 Time system method and system for aerial stereo mapping camera

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559156A (en) * 2015-09-29 2017-04-05 中兴通讯股份有限公司 The method and apparatus of clock frequency identification

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848076A (en) * 2010-05-10 2010-09-29 新邮通信设备有限公司 Clock signal holding method and device
CN202514075U (en) * 2011-12-01 2012-10-31 北京航天测控技术有限公司 Intermediate piece device in wireless sensor network
CN106922015A (en) * 2015-12-25 2017-07-04 联芯科技有限公司 Wireless Telecom Equipment and its frequency synchronization method
CN110879519A (en) * 2019-11-08 2020-03-13 中国科学院长春光学精密机械与物理研究所 Time system method and system for aerial stereo mapping camera

Also Published As

Publication number Publication date
CN112866098A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN112866098B (en) Gateway time service method, device, electronic equipment and computer readable medium
US10739814B2 (en) Time-synchronizing a group of nodes
US11811501B2 (en) Clock synchronization method and apparatus, and storage medium
US20110222561A1 (en) Systems and methods for providing time synchronization
Coviello et al. A novel low-power time synchronization algorithm based on a fractional approach for wireless body area networks
JP6898903B2 (en) Transceiver with real-time clock
US20220085968A1 (en) Communication system, communication device, and program
CN112969229B (en) Clock correction method and device and network equipment
Leva et al. High-precision low-power wireless nodes’ synchronization via decentralized control
CN102916654A (en) Crystal oscillator ageing compensation method
JP5372315B2 (en) Telemeter system slave station equipment
CN111769895B (en) Multi-device timing method and system and device timing method and device
CN111884751A (en) Smart grid time synchronization method and device based on PTP
CN115102657B (en) Clock frequency synchronization method and device of metering device and storage medium
CN113259037B (en) Time synchronization method, medium, and apparatus based on sensor time synchronization system
CN103513698B (en) A kind of clock signal calibration, device and electronic equipment
CN113783649B (en) Terminal timing method, system, electronic equipment and storage medium
WO2022110280A1 (en) Method and apparatus for updating local time, device, and storage medium
CN110750424B (en) Resource inspection method and device
CN114285514A (en) Clock synchronization method and device
CN113259039A (en) Time synchronization method and device, computer equipment and storage medium
JP2009246744A (en) Apparatus with clock generation function, method for setting reference frequency or the like, and method for adjusting reference frequency or the like
JP2007147484A (en) Time correction system
CN113691339B (en) Clock synchronization method, device, equipment and storage medium
CN109561497B (en) Wireless synchronization method and system applied to one master device and multiple slave devices

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