Time service method and device and time service server
By calibrating the clock of the timing server by receiving the radio wave signal from the transmitter, the existing timing server time acquisition methods have solved the problems of high cost and poor signal stability, and achieved low-cost, high security and strong flexibility.
Patent Information
- Application Number
- CN202411708798.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-02-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing time-obtaining methods of time-delivery servers are problematic of high cost, poor signal stability, limited coverage, unsuitable for laboratory environments, and risk of security leakage.
The server's clock is calibrated by the receiving radio wave signal continuously transmitted by the transmitter within a preset time period. This method does not rely on the Internet, GPS or cellular network, and only receives the timing signal through radio waves to ensure time accuracy and security.
It realizes low-cost, high-safety and flexible clock calibration, meets the needs of the laboratory environment, and avoids the problems of signal stability and high cost.
Smart Images

Figure CN119545508A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of clock calibration, and in particular to a timing method, a timing device and a timing server. Background Art
[0002] When testing the accuracy of a server's own clock, a timing server is usually set up to obtain a reference time, and then the clocks of the timing server and other servers are calibrated based on the reference time.
[0003] In the server test laboratory environment, in order to ensure security and confidentiality, a small local area network that is not interconnected with the external network is usually used, which makes it inconvenient to use the timing server that relies on the external Internet. Due to the frequent updates of server products and the changing test environment, the timing solution needs to be independent of the external Internet and take into account the difficulty of implementation, cost and flexible deployment requirements.
[0004] At present, the main methods used by timing servers to obtain reference time have the following problems: using atomic clocks as clock sources has the problem of high cost; using GPS (Global Positioning System) timing has the problem of poor signal stability and high cost; using Beidou timing has the problem of limited coverage and is not suitable for laboratory environment; using cellular network timing requires USIM (Universal Subscriber Identity Module) card, which does not meet the laboratory confidentiality requirements and has the problem of security leakage. These solutions are difficult to meet the cost, flexibility and security requirements of server testing laboratories. Summary of the invention
[0005] The purpose of the present invention is to provide a timing method, device and timing server, which calibrates the clock of the server by receiving radio wave signals continuously sent by a sending end within a preset time period, meets the requirements of low cost, high security and flexibility in a laboratory environment, and is easy to deploy.
[0006] In a first aspect, the present application provides a timing method, which is applied to a timing server, comprising:
[0007] Receiving radio waves continuously sent by a transmitting end within a preset time period, wherein the radio waves include a timing signal;
[0008] Analyzing the radio waves to obtain the timing signal;
[0009] Calibrate the clock signal of the timing server according to the timing signal;
[0010] The timing signal is transmitted to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0011] Optionally, receiving radio waves continuously sent by a transmitting end within a preset time period includes:
[0012] receiving a first radio wave and a second radio wave sent by the transmitting end; the frequency of the first radio wave is different from the frequency of the second radio wave;
[0013] Parsing the radio wave to obtain the timing signal includes:
[0014] parsing the first radio wave to obtain a first timing signal, and parsing the second radio wave to obtain a second timing signal;
[0015] Calibrating a clock signal of the timing server according to the timing signal includes:
[0016] Determining whether the difference between the first timing signal and the second timing signal is within a preset range;
[0017] If the difference is within the preset range, calculating an average value of the first timing signal and the second timing signal, and calibrating the clock signal of the timing server based on the average value;
[0018] If the difference is not within the preset range, re-entering the step of receiving the first radio wave and the second radio wave sent by the transmitting end;
[0019] The timing signal is transmitted to other servers connected to the timing server to calibrate clock signals of the other servers, including:
[0020] If the difference is within the preset range, the average value is transmitted to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0021] Optionally, before parsing the first radio wave to obtain the first timing signal and parsing the second radio wave to obtain the second timing signal, the method further includes:
[0022] determining whether the first radio wave and the second radio wave are received;
[0023] If the first radio wave and the second radio wave are received, the first radio wave is analyzed to obtain a first timing signal, and the second radio wave is analyzed to obtain a second timing signal;
[0024] If only the first radio wave or the second radio wave is received, the first radio wave is analyzed to obtain a first timing signal, or the second radio wave is analyzed to obtain a second timing signal.
[0025] Calibrating a clock signal of the timing server according to the timing signal includes:
[0026] If only the first radio wave or the second radio wave is received, calibrating the clock signal of the timing server according to the first timing signal or the second timing signal;
[0027] The timing signal is transmitted to other servers connected to the timing server to calibrate clock signals of the other servers, including:
[0028] The first timing signal or the second timing signal is transmitted to other servers connected to the timing server to calibrate clock signals of the other servers.
[0029] Optionally, after determining whether the first radio wave and the second radio wave are received, the method further includes:
[0030] If the first radio wave is not received and the second radio wave is not received, the clocks of the timing server and other servers connected to the timing server are not calibrated, and a highest level alarm signal is generated.
[0031] Optionally, before receiving the first radio wave and the second radio wave sent by the transmitting end, the method further includes:
[0032] Detecting the intensity of radio waves of multiple frequency bands sent by the transmitting end;
[0033] The two radio waves with the greatest intensities are received, and the two radio waves with the greatest intensities are respectively the first radio wave and the second radio wave.
[0034] Optionally, before receiving the radio waves continuously sent by the transmitting end within a preset time period, the method further includes:
[0035] Obtaining a calibration requirement set by a user, and extracting a preset calibration time interval from the calibration requirement;
[0036] At every preset calibration time interval, the radio waves continuously sent by the transmitting end within the preset time period are received.
[0037] In a second aspect, the present application also provides a timing device, including:
[0038] Memory for storing computer programs;
[0039] The processor is used to implement the steps of the timing method as described above when storing a computer program.
[0040] In a third aspect, the present application also provides a timing server, including:
[0041] A radio wave receiving device, used to receive radio waves continuously sent by a transmitting end within a preset time period, wherein the radio waves include a timing signal;
[0042] The timing management module is used to parse the radio waves to obtain the timing signal, calibrate the clock signal of the timing server according to the timing signal, and transmit the timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0043] Optionally, the radio wave receiving device includes:
[0044] A first radio wave receiving device, used for receiving first radio waves continuously sent by the transmitting end within a preset time period;
[0045] A second radio wave receiving device, used for receiving a second radio wave continuously sent by the transmitting end within a preset time period, wherein the first radio wave and the second radio wave have different frequencies;
[0046] The timing management module is specifically used to analyze the first radio wave to obtain a first timing signal, and to analyze the second radio wave to obtain a second timing signal; to determine whether the difference between the first timing signal and the second timing signal is within a preset range; if the difference is within the preset range, then calculate the average value of the first timing signal and the second timing signal, and calibrate the clock signal of the timing server based on the average value, and transmit the average value to other servers connected to the timing server to calibrate the clock signals of the other servers; if the difference is not within the preset range, then feed back to the first radio wave receiving device and the second radio wave receiving device, and transmit the first timing signal or the second timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0047] Optionally, the timing management module is also used to obtain the presence status and startup status of the first radio wave receiving device and the second radio wave receiving device. If there is a radio wave receiving device that is not in place or not started, an alarm signal of a level corresponding to the status is generated to prompt the restart of the radio wave receiving device that is not in place or not started, or to prompt the replacement of a standby timing server.
[0048] The present invention discloses a timing method, device and timing server, which relate to the field of clock calibration, and are used to solve the problems of high cost, small coverage area and poor confidentiality in the current timing methods. This scheme is a timing method for obtaining reference time by receiving radio wave signals continuously sent by a transmitter within a preset time period, without relying on external communication networks such as the Internet, GPS or cellular networks, and only receiving timing signals through radio waves, thereby avoiding problems such as signal stability and high cost; in addition, the timing server only receives signals but does not send signals, which effectively guarantees the confidentiality of the test laboratory environment and avoids the risk of information leakage. In summary, the method of calibrating the clock of a server by receiving radio wave signals continuously sent by a transmitter within a preset time period in this application meets the requirements of low cost, high security and flexibility in a laboratory environment, and is also easy to deploy. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A flow chart of a timing method provided by the present invention;
[0051] Figure 2 A structural block diagram of a timing server provided by the present invention;
[0052] Figure 3 A schematic diagram of communication between modules in a timing server provided by the present invention;
[0053] Figure 4 A schematic diagram of the working process of a timing management module provided by the present invention;
[0054] Figure 5 A schematic diagram of the working process of a time synchronization module provided by the present invention. DETAILED DESCRIPTION
[0055] The core of the present invention is to provide a timing method, device and timing server, which calibrates the clock of the server by receiving the radio wave signal sent by the sending end, meets the requirements of low cost, high security and flexibility in the laboratory environment, and is easy to deploy.
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] First, as Figure 1 As shown, the present application provides a timing method, which is applied to a timing server, including:
[0058] S11: receiving radio waves continuously sent by the transmitting end within a preset time period, the radio waves including a timing signal;
[0059] This step is that the timing server obtains the timing signal by receiving the radio waves continuously emitted by the transmitter within a preset time period. This is a reliable timing method that does not rely on external networks. The transmitter uses long-wave or short-wave transmitting equipment to encode the standard time information in the radio waves and broadcast it to a certain range, covering the area where the laboratory is located. The timing signal in the radio wave usually contains standard timestamps and synchronization information, such as year, month, day, hour, minute, second, as well as necessary calibration marks and error correction information to ensure the accuracy of the time. The timing server is equipped with a special radio receiving module for receiving and demodulating these radio wave signals to extract the standard time information contained therein. During the signal transmission process, the radio waves have strong penetration and high stability, and can effectively resist interference factors in the laboratory environment. This method is not only suitable for independent LAN environments, but also does not require additional networking equipment, ensuring the security and stability of the timing process, and meeting the laboratory's strict requirements for cost, confidentiality and flexibility. Among them, the sending end can be a device that can obtain a standard timing signal and transmit this standard timing signal to the outside through radio waves, such as a server that obtains a timing signal through a Beidou satellite or GPS and is equipped with a radio wave sending device.
[0060] S12: Analyze the radio waves to obtain the timing signal;
[0061] In this step, the timing server analyzes the received radio waves and extracts accurate timing signals from them. The received radio waves contain coded time information, which is usually modulated on the waveform by the transmitter in a specific format. For example, the timing signal may use amplitude modulation, frequency modulation, or phase modulation to embed standard time information (such as year, month, day, hour, minute, and second) into the radio wave signal. The radio receiving module in the timing server first restores the radio wave from the modulated signal to a baseband signal through a demodulation circuit. Next, the server uses a signal processing algorithm for digital processing, converts the analog signal into digital data, removes noise and bit errors, and ensures the integrity and accuracy of the signal. In the process of extracting time data, the parsing module may also perform multiple checks and error detection to further ensure the reliability of the data. Through this parsing process, the timing server can accurately restore the standard time information in the timing signal and provide a reliable time reference for subsequent calibration.
[0062] S13: calibrating the clock signal of the timing server according to the timing signal;
[0063] In this step, the timing server accurately calibrates its own clock signal according to the timing signal obtained by parsing. The clock inside the timing server is usually provided by a crystal oscillator or other timing devices. Although these devices can provide basic time information, they are affected by factors such as temperature, aging, and slight voltage fluctuations, resulting in cumulative errors and time deviations. In order to ensure the accuracy of the server clock, the timing server compares the extracted standard time information with its own clock time and calculates the deviation between the two. Subsequently, the timing server adjusts the internal timing device according to the calculated deviation value to keep it consistent with the standard time. This calibration process may be repeatedly performed at different time intervals to correct the drift of the clock and maintain long-term time synchronization. This process is usually completed by the automatic control system of the timing server, and may be graded and adjusted according to actual needs to ensure that the accuracy of the clock signal meets the requirements of the system. In addition, through continuous calibration, the timing server can provide accurate time references to other connected servers to ensure the clock synchronization of the entire local area network.
[0064] S14: transmitting the timing signal to other servers connected to the timing server to calibrate the clock signals of other servers.
[0065] In this step, the timing server transmits the calibrated standard time signal to other servers connected thereto, thereby realizing the time synchronization in the entire local area network. After the timing server calibrates its own clock, the time server broadcasts or sends the time information as the timing signal to other servers through the local area network. After these servers receive the timing signal, they can parse the time data and compare it with their respective internal clocks, calculate the difference, thereby performing synchronization calibration. The transmission mode of this timing signal is usually based on the communication protocol in the local area network, such as the network time protocol or the precision time protocol, to ensure the accuracy and real-time of the time information during the transmission process. By regularly sending the timing signal to other servers in the network, the timing server can eliminate the clock deviation between the servers in the system and maintain a consistent time base. In addition, the method does not rely on an external network, and only propagates time data in a closed local area network, which meets the strict requirements of the laboratory for safety and confidentiality, so that multiple servers can achieve high-precision, low-delay time synchronization without relying on an external network.
[0066] In summary, the timing method provided by the present application obtains the reference time by receiving the radio wave signal sent by the transmitter. It does not need to rely on external communication networks such as the Internet, GPS or cellular networks, but only receives the timing signal through radio waves, thereby avoiding problems such as signal stability and high cost. In addition, the timing server only receives signals but does not send signals, which effectively ensures the confidentiality of the test laboratory environment and avoids the risk of information leakage.
[0067] Based on the above embodiments:
[0068] As an optional embodiment, receiving a radio wave sent by a transmitting end includes: receiving a first radio wave and a second radio wave sent by the transmitting end; the frequency of the first radio wave is different from the frequency of the second radio wave; parsing the radio waves to obtain a timing signal, including: parsing the first radio wave to obtain a first timing signal, and parsing the second radio wave to obtain a second timing signal; calibrating a clock signal of a timing server according to the timing signal, including: determining whether a difference between the first timing signal and the second timing signal is within a preset range; if the difference is within the preset range, calculating an average value of the first timing signal and the second timing signal, and calibrating the clock signal of the timing server based on the average value; if the difference is not within the preset range, re-entering the step of receiving the first radio wave and the second radio wave sent by the transmitting end; transmitting the timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers, including: if the difference is within the preset range, transmitting the average value to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0069] In this embodiment, the timing server improves the reliability of the time signal by receiving two radio waves (a first radio wave and a second radio wave) of different frequencies sent by the transmitting end. Since radio waves of different frequencies may be interfered with by the environment to different degrees, by receiving and parsing radio waves of multiple frequencies, the timing server can obtain two groups of timing signals (a first timing signal and a second timing signal), thereby increasing the redundancy of the time data. After receiving, the timing server parses the two timing signals respectively, and compares the time data of the two groups of signals to determine whether the difference between them is within the preset allowable range. If the difference is within the range, the timing server calculates the average value of the two groups of signals as the final calibration reference to calibrate the internal clock signal of the server. This can reduce the error that may be caused by a single frequency and improve the time accuracy and stability. If the difference exceeds the preset range, the timing server will re-receive the two radio waves to ensure the reliability of the timing signal, thereby avoiding the influence of data with large errors on the calibration accuracy. After calibration, the timing server transmits the average value as a timing signal to other servers in the local area network so that their clocks can also be synchronized to the standard time. This process ensures the consistency and synchronization of the clocks in the entire network, thereby achieving high-precision, low-deviation timing effects and meeting the laboratory's needs for precise time synchronization.
[0070] As an optional embodiment, before parsing the first radio wave to obtain the first timing signal and parsing the second radio wave to obtain the second timing signal, it also includes: determining whether the first radio wave and the second radio wave are received; if the first radio wave and the second radio wave are received, entering the step of parsing the first radio wave to obtain the first timing signal and parsing the second radio wave to obtain the second timing signal; if only the first radio wave or the second radio wave is received, entering the step of parsing the first radio wave to obtain the first timing signal, or parsing the second radio wave to obtain the second timing signal; calibrating the clock signal of the timing server according to the timing signal, including: if only the first radio wave or the second radio wave is received, calibrating the clock signal of the timing server according to the first timing signal or the second timing signal; transmitting the timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers, including: transmitting the first timing signal or the second timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0071] In this embodiment, before the timing server starts to parse the radio waves, it first detects whether the first radio wave and the second radio wave sent by the transmitter are received at the same time. Since the two radio waves have different frequencies, they can be redundant to a certain extent. The timing signal can be obtained by receiving one of them, but receiving radio waves of two frequencies at the same time can further improve the accuracy and stability of the time information. If the timing server detects the signals of the first and second radio waves at the same time, it will enter the parsing step, demodulate the two signals respectively, obtain the first timing signal and the second timing signal, and then perform data comparison and average processing to generate a more accurate time reference value for calibrating the internal clock of the timing server. If only one of the radio wave signals (i.e., the first radio wave or the second radio wave) is detected, the server will parse the received signal and directly use the single timing signal to calibrate the clock. This design enhances the flexibility of the system, so that the timing server can still perform time calibration normally even when the signal reception is incomplete, avoiding the inability to calibrate the time due to incomplete signals. Afterwards, no matter whether the timing server completes the calibration based on a single signal or the average of two signals, it will pass the final timing signal (i.e., the first timing signal, the second timing signal, or their average) to other connected servers in the LAN to synchronize their clocks with the timing server.
[0072] This mechanism not only ensures the continuity and reliability of the timing process, but also meets the laboratory environment's requirements for high-precision, fault-tolerant timing by flexibly processing single-frequency and dual-frequency signals, while maintaining the clock synchronization and stability of the local area network.
[0073] As an optional embodiment, after determining whether the first radio wave and the second radio wave are received, it also includes: if the first radio wave and the second radio wave are not received, the clocks of the timing server and other servers connected to the timing server are not calibrated, and the highest level alarm signal is generated.
[0074] In the present embodiment, when the timing server judges that neither the first radio wave nor the second radio wave is received, the system will suspend the timing calibration operation and generate a top-level alarm signal. The core of this design is to ensure that the timing server and other connected servers are calibrated only when reliable time signals are received to prevent the time deviation caused by no signal or wrong signal from being propagated to the entire network. When both radio wave signals are missing, the timing server cannot obtain an effective time reference, which may be caused by external environmental interference, signal transmission equipment failure, or antenna or receiver failure. At this time, the system will not calibrate the clock of the timing server, nor will it send any timing signal to other servers to avoid inaccurate time affecting the clock synchronization in the local area network. In addition, the top-level alarm signal generated by the system will immediately notify the administrator, prompting possible hardware or environmental problems, so as to conduct timely investigation and repair.
[0075] Through this design, the timing server can maintain the existing time accuracy in the absence of signals and prevent inaccurate calibration from negatively affecting the time consistency of the entire network, thereby improving the stability and reliability of the system.
[0076] As an optional embodiment, before receiving the first radio wave and the second radio wave sent by the transmitting end, it also includes: detecting the intensity of radio waves of multiple frequency bands sent by the transmitting end; receiving two radio waves with the greatest intensity, the two radio waves with the greatest intensity being the first radio wave and the second radio wave respectively.
[0077] In this embodiment, before receiving the timing signal from the transmitter, the timing server will first detect the radio wave strength of multiple frequency bands to select the optimal signal for timing operation. Since the transmitter may broadcast the timing signal through multiple frequency bands, the propagation characteristics and anti-interference ability of the signal in each frequency band may vary in different environments. The timing server scans the radio waves of each frequency band and measures its signal strength to evaluate the signal quality and stability of each frequency band. After the detection is completed, the server selects the radio waves of the two frequency bands with the largest signal strength as the first and second radio waves to receive and analyze. This mechanism ensures that the signal received by the timing server has the best anti-interference and transmission reliability by giving priority to the frequency band with the highest signal strength, and effectively improves the accuracy of the timing signal. At the same time, receiving the two strongest signal frequency bands also increases redundancy. Even if one frequency band is interfered or interrupted, the server can still rely on the signal of another frequency band to maintain the timing accuracy.
[0078] In this way, the timing server can not only better adapt to the complex laboratory environment, but also improve the reliability of time synchronization and provide a better time reference for subsequent clock calibration.
[0079] As an optional embodiment, it also includes: in the process of receiving radio waves, real-time monitoring of the signal strength of the received first radio wave and the second radio wave, if the signal strength is lower than a certain threshold, automatically adjusting the receiving parameters or selecting a better frequency band for timing.
[0080] During the process of receiving radio waves, the system monitors the signal strength of the first radio wave and the second radio wave in real time. When the received signal strength is lower than the set threshold, the timing server automatically performs adjustment operations. Specifically, the system automatically adjusts the receiving parameters such as gain, sensitivity, etc. according to the changes in signal strength, or switches to a better frequency band to improve signal quality. This mechanism is designed to ensure that the timing system can still maintain high-quality time synchronization in an environment with unstable or weak signals. If the signal in the current frequency band is too weak or unstable, the system will automatically switch to other frequency bands (for example, select a frequency band with higher signal strength) to improve the accuracy and reliability of timing, and avoid timing failure or reduced accuracy due to signal problems. Through this intelligent adjustment, the timing server can better cope with different signal environments and ensure that the timing process is not interfered with by external factors.
[0081] As an optional embodiment, it also includes: regularly generating a timing quality report to record the key information of the accuracy, deviation and receiving status of the timing signal, so as to facilitate the administrator to evaluate the health status of the timing system. In order to ensure the health status and sustainable operation of the timing system, the system will regularly generate a timing quality report. The report records key information such as the accuracy, deviation and receiving status of the timing signal, and the administrator can understand the operating status of the timing system in detail through the report. The timing quality report includes the receiving stability of the signal source, the error range of clock synchronization, and any abnormal conditions that may affect the timing accuracy. If the timing signal deviates or is unstable, the report will record the error value, the time of occurrence and the possible reasons in detail to help the administrator identify and troubleshoot the problem. In this way, the administrator can regularly evaluate the performance of the timing system, promptly discover potential faults or performance degradation, perform preventive maintenance, and ensure that the system continues to operate efficiently.
[0082] As an optional embodiment, it also includes: providing a user interaction interface, allowing the user to configure the timing server, including calibration time interval, signal selection, alarm setting, etc., and providing real-time status monitoring. The timing server supports remote operation and management, and the administrator can configure, monitor and troubleshoot the timing system through a remote connection. In this embodiment, a user interaction interface is provided to allow the administrator to flexibly configure the timing server. Through this interface, the administrator can set the calibration time interval, select the timing signal source, adjust the alarm threshold, etc., and can monitor the status of the system in real time. This allows the administrator to adjust the configuration and operation strategy of the timing server according to needs to meet different experimental environments or network requirements. In addition, the timing server also supports remote operation and management, and the administrator can configure, monitor the status and troubleshoot the timing system through a remote connection without having to operate in person. The remote management function improves the system's operational convenience and maintenance efficiency, especially in large-scale deployment or distributed timing systems, which can significantly reduce management costs and response times. The administrator can remotely view the reception status of the timing signal, the clock synchronization accuracy, and the system fault alarm, quickly handle any possible problems, and ensure the continuity and accuracy of the timing service.
[0083] As an optional embodiment, before receiving the radio waves sent by the transmitter, it also includes: obtaining a calibration requirement set by a user, extracting a preset calibration time interval from the calibration requirement; and receiving the radio waves sent by the transmitter at every preset calibration time interval.
[0084] In this embodiment, the timing server first obtains the calibration requirements set by the user, and extracts the preset calibration time interval therefrom. This calibration time interval is set by the user according to actual needs, and is used to determine the frequency of the timing server to perform time calibration. The setting of the calibration time interval can be flexibly adjusted according to the special requirements of the laboratory environment or the clock accuracy requirements. Then, the timing server will regularly receive the radio waves sent by the transmitter according to this preset calibration time interval, obtain the standard timing signal, and use these signals to calibrate the server's clock. Regular calibration can ensure the long-term accuracy and stability of the server clock, prevent the accumulation of time errors caused by clock drift, and thus maintain the clock synchronization within the system.
[0085] By performing regular calibration according to preset time intervals, the system can not only ensure high clock accuracy within a reasonable time range, but also avoid resource waste or operational complexity caused by frequent calibration, and meet the timing accuracy requirements of different application scenarios.
[0086] The present application also provides a computer program product, including a computer program / instruction, which implements the steps of the above timing method when executed by a processor. For other introductions to the computer program product, please refer to the above embodiments, which will not be repeated in this application.
[0087] In a second aspect, the present application further provides a timing device, comprising: a memory for storing a computer program; a processor for implementing the steps of the timing method described above when storing the computer program. For other introductions to the timing device, please refer to the above embodiments, and the present application will not repeat them here.
[0088] On the third aspect, the present application also provides a timing server, including: a radio wave receiving device, used to receive radio waves sent by a sending end, the radio waves including a timing signal; a timing management module, used to parse the radio waves, obtain the timing signal, calibrate the clock signal of the timing server according to the timing signal, and transmit the timing signal to other servers connected to the timing server to calibrate the clock signals of other servers.
[0089] Specifically, the timing server implements its core functions through hardware, including two key parts: a radio wave receiving device and a timing management module. The function of the radio wave receiving device is to receive radio waves from the transmitter, which contain timing signals and are usually transmitted through radio broadcasts in a specific frequency band. The receiving device is responsible for capturing these radio waves and converting them into signals for further processing. The timing management module is responsible for parsing the received radio wave signals and extracting accurate timing signals from them. This signal contains standard time information, and the timing management module calibrates the clock inside the timing server based on the signal to keep it consistent with the time of the transmitter. In addition, the timing management module will also pass the parsed timing signals to other servers connected to the timing server to ensure that the server clocks in the entire local area network remain synchronized.
[0090] This hardware-implemented timing server not only ensures the accurate transmission and processing of timing signals, but also can efficiently achieve time synchronization between multiple servers, avoiding synchronization problems caused by clock errors, meeting the needs of high-precision clock management, and is especially suitable for laboratory environments that require high stability and security.
[0091] like Figure 2As shown, as an optional embodiment, the radio wave receiving device includes: a first radio wave receiving device, used to receive a first radio wave sent by a transmitting end; a second radio wave receiving device, used to receive a second radio wave sent by a transmitting end, and the frequencies of the first radio wave and the second radio wave are different; a timing management module, specifically used to parse the first radio wave to obtain a first timing signal, parse the second radio wave to obtain a second timing signal; determine whether the difference between the first timing signal and the second timing signal is within a preset range; if the difference is within the preset range, calculate the average value of the first timing signal and the second timing signal, and calibrate the clock signal of the timing server based on the average value, and transmit the average value to other servers connected to the timing server to calibrate the clock signals of the other servers; if the difference is not within the preset range, it is fed back to the first radio wave receiving device and the second radio wave receiving device, and the first timing signal or the second timing signal is transmitted to other servers connected to the timing server to calibrate the clock signals of the other servers.
[0092] In this embodiment, the radio wave receiving device of the timing server includes two independent receiving devices, which are used to receive long-wave and short-wave signals from the transmitter respectively. The first radio wave receiving device receives long-wave signals, which are transmitted by the long-wave radio station (call sign BPL) at the transmitter, with a frequency of 100KHz, and broadcast 24 hours a day. The second radio wave receiving device receives short-wave signals. The short-wave radio station (call sign BPM) at the transmitter continuously broadcasts all day through multiple frequencies (such as 2.5MHz, 5MHz, 10MHz, 15MHz, etc.) to provide short-wave radio time signals. The two radio waves have different frequencies and are used in different environments and transmission requirements. The long-wave signal has strong penetration and stability, while the short-wave signal is suitable for high-precision time transmission over longer distances.
[0093] The job of the timing management module is to receive and analyze the two radio wave signals and extract two timing signals from them. Then, the module will determine whether the time difference between the two signals is within the preset range. If the difference is within the preset range, it means that the synchronization accuracy of the two signals meets the requirements. The timing management module uses the average value of the two signals as a reference time benchmark to calibrate the clock of the timing server, and passes the average value to other servers connected to the timing server to ensure the clock synchronization of the entire system. If the difference is not within the preset range, it means that there is a deviation in the synchronization of the signal. At this time, the timing management module will feedback this problem to the two receiving devices, instructing them to re-receive the signal and calibrate. Even if there is a synchronization error, the timing server can still calibrate the clocks of other servers based on any valid timing signal to ensure that the time synchronization of at least part of the system is not affected.
[0094] In a specific embodiment, assuming that the first radio wave receiving device is a long wave timing module and the second radio wave receiving device is a short wave timing module, the basic structure is as follows: Figure 3 As shown in the figure, the process of the timing management module is as follows Figure 4 As shown in the figure, the process of long wave timing module and short wave timing module is as follows Figure 5 shown.
[0095] This method of combining long-wave and short-wave signals and using signal sources in different frequency bands improves the reliability and redundancy of timing. If a signal band is interfered with or cannot be received, the timing server can still rely on the signal of another frequency band to continue time calibration, effectively improving the stability, accuracy and adaptability of the timing system, and is particularly suitable for laboratories and other important environments with high requirements for safety and reliability.
[0096] As an optional embodiment, the timing management module is also used to obtain the presence status and startup status of the first radio wave receiving device and the second radio wave receiving device. If there is a radio wave receiving device that is not in place or not started, an alarm signal of a level corresponding to the status is generated to prompt the restart of the radio wave receiving device that is not in place or not started, or to prompt the replacement of the backup timing server.
[0097] In this embodiment, the timing management module is not only responsible for parsing the received radio wave signal, but also further monitors the in-place status and startup status of the first radio wave receiving device and the second radio wave receiving device. By acquiring the status of the two receiving devices in real time, the timing management module can promptly determine whether there is a situation where the device is not started normally or is not in place. If it is found that any radio wave receiving device is not started or is not in place, the timing management module will generate a corresponding alarm signal according to the specific status of the device. The level of the alarm signal will be classified according to the severity of the fault. For example, if only a certain receiving device is not started, a lower level warning prompt may be generated, and if the device fails completely or cannot be repaired, a higher level alarm will be triggered, prompting the need to restart or replace the device.
[0098] This status monitoring and alarm mechanism provides an important fault warning function for the timing system, ensuring that the server can respond and handle equipment failures in a timely manner. For example, if a radio wave receiving device fails to start or fails due to a fault, the system can detect it in time and remind the administrator to take corresponding measures, such as restarting the device or replacing a backup timing server. Through this automated fault detection and alarm mechanism, the timing system can minimize time synchronization failures caused by hardware problems and improve the stability and reliability of the system. In this way, the clock synchronization process of the timing server and the entire network is guaranteed to be more efficient and intelligent.
[0099] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0100] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A timing method, characterized in that: Applicable to timing servers, including: Receiving radio waves continuously sent by a transmitting end within a preset time period, wherein the radio waves include a timing signal; parsing the radio waves to obtain the timing signal; Calibrate the clock signal of the timing server according to the timing signal; The timing signal is transmitted to other servers connected to the timing server to calibrate the clock signals of the other servers.
2. The timing method according to claim 1, characterized in that: Receive radio waves continuously sent by the transmitter within a preset time period, including: receiving a first radio wave and a second radio wave continuously sent by the transmitting end within a preset time period; the frequency of the first radio wave is different from the frequency of the second radio wave; Parsing the radio wave to obtain the timing signal includes: parsing the first radio wave to obtain a first timing signal, and parsing the second radio wave to obtain a second timing signal; Calibrating a clock signal of the timing server according to the timing signal includes: Determining whether the difference between the first timing signal and the second timing signal is within a preset range; If the difference is within the preset range, calculating an average value of the first timing signal and the second timing signal, and calibrating the clock signal of the timing server based on the average value; If the difference is not within the preset range, re-entering the step of receiving the first radio wave and the second radio wave sent by the transmitting end; The timing signal is transmitted to other servers connected to the timing server to calibrate clock signals of the other servers, including: If the difference is within the preset range, the average value is transmitted to other servers connected to the timing server to calibrate the clock signals of the other servers.
3. The timing method according to claim 2, characterized in that: Before parsing the first radio wave to obtain a first timing signal and parsing the second radio wave to obtain a second timing signal, the method further includes: determining whether the first radio wave and the second radio wave are received; If the first radio wave and the second radio wave are received, the first radio wave is analyzed to obtain a first timing signal, and the second radio wave is analyzed to obtain a second timing signal; If only the first radio wave or the second radio wave is received, the first radio wave is analyzed to obtain a first timing signal, or the second radio wave is analyzed to obtain a second timing signal. Calibrating a clock signal of the timing server according to the timing signal includes: If only the first radio wave or the second radio wave is received, calibrating the clock signal of the timing server according to the first timing signal or the second timing signal; The timing signal is transmitted to other servers connected to the timing server to calibrate clock signals of the other servers, including: The first timing signal or the second timing signal is transmitted to other servers connected to the timing server to calibrate clock signals of the other servers.
4. The timing method according to claim 3, characterized in that: After determining whether the first radio wave and the second radio wave are received, the method further includes: If the first radio wave is not received and the second radio wave is not received, the clocks of the timing server and other servers connected to the timing server are not calibrated, and a highest level alarm signal is generated.
5. The timing method according to any one of claims 2 to 4, characterized in that: Before receiving the first radio wave and the second radio wave sent by the transmitting end, the method further includes: Detecting the intensity of radio waves of multiple frequency bands sent by the transmitting end; The two radio waves with the greatest intensities are received, and the two radio waves with the greatest intensities are respectively the first radio wave and the second radio wave.
6. The timing method according to claim 1, characterized in that: Before receiving the radio waves continuously sent by the transmitter within a preset time period, the method further includes: Obtaining a calibration requirement set by a user, and extracting a preset calibration time interval from the calibration requirement; At every preset calibration time interval, the radio waves continuously sent by the transmitting end within the preset time period are received.
7. A timing device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the timing method as described in any one of claims 1 to 6 when storing a computer program.
8. A timing server, characterized in that: include: A radio wave receiving device, used to receive radio waves continuously sent by a transmitting end within a preset time period, wherein the radio waves include a timing signal; The timing management module is used to parse the radio waves to obtain the timing signal, calibrate the clock signal of the timing server according to the timing signal, and transmit the timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers.
9. The timing server according to claim 8, characterized in that: The radio wave receiving device comprises: A first radio wave receiving device, used for receiving a first radio wave sent by the sending end; A second radio wave receiving device, used for receiving a second radio wave sent by the transmitting end, wherein the first radio wave and the second radio wave have different frequencies; The timing management module is specifically used to analyze the first radio wave to obtain a first timing signal, and to analyze the second radio wave to obtain a second timing signal; to determine whether the difference between the first timing signal and the second timing signal is within a preset range; if the difference is within the preset range, then calculate the average value of the first timing signal and the second timing signal, and calibrate the clock signal of the timing server based on the average value, and transmit the average value to other servers connected to the timing server to calibrate the clock signals of the other servers; if the difference is not within the preset range, then feed back to the first radio wave receiving device and the second radio wave receiving device, and transmit the first timing signal or the second timing signal to other servers connected to the timing server to calibrate the clock signals of the other servers.
10. The timing server according to claim 9, characterized in that: The timing management module is also used to obtain the presence status and startup status of the first radio wave receiving device and the second radio wave receiving device. If there is a radio wave receiving device that is not in place or not started, an alarm signal of a level corresponding to the status is generated to prompt the restart of the radio wave receiving device that is not in place or not started, or to prompt the replacement of a standby timing server.
Citation Information
Patent Citations
Server timing method and system, and GPS cloud management server
CN103906220A
Device and system for time synchronization of transformer substation, and transformer substation
CN114710225A
Method and device based on Beidou satellite time service variable-mode GPS
CN116165687A
5G time service and satellite time service switching system
CN117768054A
Radio-controlled clock, electronic apparatus, and time correction method
JP2006119049A