CN112511259B - Intelligent terminal clock management method and device, storage medium and terminal equipment - Google Patents

Intelligent terminal clock management method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN112511259B
CN112511259B CN202011510742.0A CN202011510742A CN112511259B CN 112511259 B CN112511259 B CN 112511259B CN 202011510742 A CN202011510742 A CN 202011510742A CN 112511259 B CN112511259 B CN 112511259B
Authority
CN
China
Prior art keywords
clock
intelligent terminal
deviation
master station
satellite
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
CN202011510742.0A
Other languages
Chinese (zh)
Other versions
CN112511259A (en
Inventor
张思建
张晓平
陈冠
曾争
霍梓航
吴嘉明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Power Technology Co Ltd
Original Assignee
China Southern Power Grid Power Technology 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 China Southern Power Grid Power Technology Co Ltd filed Critical China Southern Power Grid Power Technology Co Ltd
Priority to CN202011510742.0A priority Critical patent/CN112511259B/en
Publication of CN112511259A publication Critical patent/CN112511259A/en
Application granted granted Critical
Publication of CN112511259B publication Critical patent/CN112511259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0644External master-clock
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/14Setting the time according to the time information carried or implied by the radio signal the radio signal being a telecommunication standard signal, e.g. GSM, UMTS or 3G
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/20Setting the time according to the time information carried or implied by the radio signal the radio signal being an AM/FM standard signal, e.g. RDS

Abstract

The embodiment of the invention relates to an intelligent terminal clock management method, a device, a storage medium and terminal equipment, which are used for knowing whether an intelligent terminal is abnormal or not through clock time synchronization of the intelligent terminal and a metering master station, a satellite and a communication base station, correcting clock abnormality of the intelligent terminal according to deviation of time synchronization of the metering master station and the satellite or the communication base station on the basis of transmitting abnormality of the intelligent terminal, managing the corrected intelligent terminal by adopting constraint conditions, ensuring accurate time synchronization of the intelligent terminal in a power system station, facilitating maintenance and management of the intelligent terminal with abnormal time synchronization by a manager, and solving the technical problems that the clock time synchronization method of the traditional intelligent terminal cannot ensure that clocks of the intelligent terminal and the metering master station are consistent and the real-time accuracy is poor.

Description

Intelligent terminal clock management method and device, storage medium and terminal equipment
Technical Field
The present invention relates to the field of terminal clock calibration technologies, and in particular, to an intelligent terminal clock management method and apparatus, a storage medium, and a terminal device.
Background
In an electric power system, the clock calibration of the station has extremely important significance for network frame topology analysis, line loss analysis and electricity charge statistics. The method for calibrating the clock of the intelligent terminal mainly comprises several methods of metering master station broadcasting timing, terminal initiative request, satellite timing, communication base station timing and the like, and the application of the methods has the respective defects that: the first method for broadcasting time synchronization by the metering master station is that the metering master station broadcasts time signals to all the station areas in the areas in a broadcasting mode, the station areas receive the broadcasting signals to finish clock time synchronization, the metering master station in the time synchronization mode only transmits time synchronization broadcasting once a day, but restarting the metering master station after breakdown can lead to time disorder, if the time synchronization of the metering master station is restarted, the terminal time is inaccurate, namely, when the time of the intelligent terminal is inconsistent with the time of the metering master station, the intelligent terminal can only calibrate after the metering master station transmits time synchronization broadcasting the next day, and therefore, the intelligent terminal is poorer in Zhong Shishi accuracy by means of the time synchronization mode of the metering master station broadcasting. The second type of intelligent terminal actively requests time setting mode mainly depends on the private network to request time setting to the metering master station, but the private network bears other high-capacity data transmission tasks between the intelligent terminal and the metering master station, the data transmission pressure is large, if the intelligent terminal frequently requests time setting, the private network transmission pressure is further increased, timely time setting cannot be completed, and therefore the intelligent terminal actively requests time setting is not easy to frequently, and real-time accuracy of an intelligent terminal clock is not guaranteed. The third method adopts a satellite time setting method, which mainly relies on an intelligent terminal time setting chip and a satellite to finish time setting calibration, but the time setting process needs to be finished outdoors, and the satellite clock may have the risk of being tampered, so that the satellite time setting cannot ensure the accuracy of the time setting clock, and the time setting can only be finished outdoors with limitation. The fourth method for setting time of the communication base station mainly means that the intelligent terminal and the signal base stations of communication operators such as mobile, communication and telecom are set time, but the clocks of the communication base station are not necessarily consistent with the clocks of the metering master station, and if the clocks of the intelligent terminal and the clocks of the metering master station deviate, the clocks of the intelligent terminal and the clocks of the metering master station are not synchronized. Therefore, each time setting method cannot ensure that clocks of a terminal and a master station are kept consistent accurately, calibration cannot be timely obtained when the clocks of the terminal are deviated, and when the functions of the clock of the terminal have an outgoing line fault, the clock of the terminal cannot be normally processed under the condition that the clock of the terminal cannot be normally set at non-time setting time, so that the clock of the terminal is incorrect.
According to the method, the existing intelligent terminal and the metering master station cannot frequently time, and the satellite clock and the base station clock are inconsistent in the master station clock, so that the clock of the intelligent terminal is inaccurate and cannot be checked in time, and the clock problem of the intelligent terminal cannot be found in time, so that the intelligent terminal with problems cannot be maintained and processed in time.
Disclosure of Invention
The invention provides an intelligent terminal clock management method, an intelligent terminal clock management device, a storage medium and terminal equipment, which are used for solving the technical problems that the clock synchronization method of the existing intelligent terminal cannot ensure that clocks of the intelligent terminal and a metering master station are kept consistent and the real-time accuracy is poor.
In order to achieve the above object, the present invention provides the following technical solutions:
an intelligent terminal clock management method comprises the following steps:
s10, acquiring a first clock, a second clock, a third clock and a fourth clock of the intelligent terminal, which are respectively in time synchronization with the clock of the metering master station, the clock of the satellite and the clock of the communication base station, and judging whether the clock of the intelligent terminal is abnormal according to whether the third clock or/and the fourth clock is credible;
s20, if the clock of the intelligent terminal is abnormal, calculating a difference value between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as a first clock deviation, and correcting the clock of the intelligent terminal according to the first clock deviation to obtain a corrected intelligent terminal;
s30, judging whether the corrected intelligent terminal has abnormal clock running time again by adopting constraint conditions, and if so, listing the intelligent terminal in a maintenance list;
the constraint conditions comprise whether the difference value between the clock of the metering master station and the clock of the intelligent terminal is larger than a deviation threshold value, and whether the frequency of the intelligent terminal request clock pair with the metering master station is larger than a frequency threshold value.
Preferably, in step S10, the step of determining whether the intelligent terminal clock is abnormal includes:
s11, calculating a difference value between the first clock and the second clock as a second clock deviation, a difference value between the first clock and the third clock as a third clock deviation, and a difference value between the first clock and the fourth clock as a fourth clock deviation;
s12, if the third clock deviation or/and the fourth clock deviation is larger than the deviation threshold, the intelligent terminal requests the time synchronization to the metering master station, the third clock of the satellite and the fourth clock of the communication base station are obtained and fed back to the metering master station, and the metering master station judges whether the third clock or/and the fourth clock is credible or not;
s13, if the third clock or/and the fourth clock are not trusted, the clock of the intelligent terminal is abnormal; and if the third clock or/and the fourth clock is/are trusted, completing clock time synchronization between the intelligent terminal and the satellite or the communication base station.
Preferably, in step S12, if the third clock deviation or/and the fourth clock deviation is not greater than the deviation threshold, the clock of the intelligent terminal is normal, and no time synchronization correction is required.
Preferably, in step S12, determining whether the third clock or the fourth clock is authentic includes: if the absolute value of the difference value between the second clock of the metering master station and the third clock of the satellite is smaller than the deviation threshold value, the third clock of the satellite is trusted, otherwise, the third clock of the satellite is not trusted; and similarly, if the absolute value of the difference value between the second clock of the metering master station and the fourth clock of the communication base station is smaller than the deviation threshold value, the fourth clock of the communication base station is trusted, otherwise, the fourth clock of the communication base station is not trusted.
Preferably, before step S10, the intelligent terminal clock management method further includes: the clock of the metering master station and the clock of the intelligent terminal are clocked once every day to obtain a second clock deviation; and the intelligent terminal obtains a third clock deviation or/and a fourth clock deviation once every a plurality of minutes and the clock of the satellite and the clock pair of the communication base station.
Preferably, the obtaining the third clock deviation or/and the fourth clock deviation by the intelligent terminal once every several minutes and the clock of the satellite and the clock of the communication base station comprises: if the intelligent terminal is consistent with the clock of the satellite or the clock of the communication base station every several minutes, a third clock deviation or a fourth clock deviation, the clock of the intelligent terminal is consistent with the clock of the intelligent terminal, is obtained; and if the intelligent terminal is consistent with the clock of the satellite and the clock of the communication base station every several minutes, obtaining a third clock deviation and a fourth clock deviation.
The invention also provides an intelligent terminal clock management device which comprises a clock abnormality judging module, a time synchronization compensating module and a clock management module;
the clock abnormality judging module is used for acquiring a first clock, a second clock, a third clock and a fourth clock of the intelligent terminal, which are respectively paired with the clock of the metering master station, the clock of the satellite and the clock of the communication base station, and judging whether the clock of the intelligent terminal is abnormal according to whether the third clock or/and the fourth clock is credible;
the time synchronization compensation module is used for calculating a difference value between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as a first clock deviation according to the abnormality of the clock of the intelligent terminal, and performing time synchronization correction on the clock of the intelligent terminal according to the first clock deviation to obtain a corrected intelligent terminal;
the clock management module is used for judging whether the corrected intelligent terminal has abnormal clock running time again by adopting constraint conditions, and if the corrected intelligent terminal has abnormal clock running time, the intelligent terminal is listed in a maintenance list;
the constraint conditions comprise whether the difference value between the clock of the metering master station and the clock of the intelligent terminal is larger than a deviation threshold value, and whether the frequency of the intelligent terminal request clock pair with the metering master station is larger than a frequency threshold value.
Preferably, the clock abnormality judgment module comprises a deviation calculation sub-module, a clock credibility judgment sub-module and an abnormality judgment sub-module;
the deviation calculating sub-module is used for calculating a difference value between the first clock and the second clock as a second clock deviation, a difference value between the first clock and the third clock as a third clock deviation and a difference value between the first clock and the fourth clock as a fourth clock deviation;
the clock credibility judging submodule is used for requesting the time synchronization from the metering master station by the intelligent terminal according to the third clock deviation or/and the fourth clock deviation larger than the deviation threshold value, obtaining a third clock of a satellite and a fourth clock of a communication base station and feeding the third clock and the fourth clock back to the metering master station, and the metering master station judges whether the third clock or/and the fourth clock is credible or not;
the abnormality judging submodule is used for judging whether the clock of the intelligent terminal is abnormal according to the fact that the third clock or/and the fourth clock are not trusted; and if the third clock or/and the fourth clock is/are trusted, completing clock time synchronization between the intelligent terminal and the satellite or the communication base station.
The present invention also provides a computer readable storage medium for storing computer instructions that, when executed on a computer, cause the computer to perform the above-described intelligent terminal clock management method.
The invention also provides a terminal device, which comprises a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the above-described intelligent terminal clock management method according to the instructions in the program code.
From the above technical solutions, the embodiment of the present invention has the following advantages: according to the intelligent terminal clock management method, the device, the storage medium and the terminal equipment, whether the intelligent terminal is abnormal or not is known through clock time synchronization of the intelligent terminal and the metering master station, the satellite and the communication base station, on the basis of abnormal transmission of the intelligent terminal, clock abnormality of the intelligent terminal is corrected according to deviation of time synchronization of the metering master station and the satellite or the communication base station, constraint conditions are adopted for managing the corrected intelligent terminal, accurate time synchronization of the intelligent terminal in an electric power system station area is ensured, maintenance and management of the intelligent terminal with abnormal time synchronization are facilitated for a manager, and the technical problems that the clock time synchronization method of the existing intelligent terminal cannot ensure that clocks of the intelligent terminal and the metering master station are consistent and real-time accuracy is poor are solved.
According to the intelligent terminal clock management method provided by the invention, after the intelligent terminal is used for broadcasting time synchronization with the metering master station, each fixed-time intelligent terminal is used for time synchronization with the satellite or the communication base station once, whether the intelligent terminal needs to request time synchronization from the metering master station or not is determined by comparing whether the time difference between the metering master station and the satellite or the communication base station is larger than the deviation threshold value, if the time difference between the metering master station and the satellite or the communication base station is larger than the deviation threshold value, the intelligent terminal actively requests time synchronization from the master station, and if the time difference between the metering master station and the satellite or the communication base station is smaller than the deviation threshold value, the intelligent terminal does not need to actively request time synchronization from the master station, and accordingly whether the clock of the intelligent terminal is abnormal or not is judged; when the clock of the intelligent terminal is abnormal, the metering master station transmits the time difference between the clock of the metering master station and the clock of the satellite or the time difference between the clock of the metering master station and the clock of the communication base station to the request intelligent terminal, the time difference compensation is carried out on the intelligent terminal, and the clock of the intelligent terminal is corrected; and judging whether the running time of the intelligent terminal is abnormal or not through the corrected time setting deviation value of the intelligent terminal and the metering master station, the times of requesting time setting to the metering master station by the intelligent terminal and the time setting deviation of each time, and further managing the clock of the intelligent terminal.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a flowchart of steps of a clock management method of an intelligent terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart of steps for determining an abnormality of an intelligent terminal according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a further step of a clock management method for an intelligent terminal according to an embodiment of the present invention.
Fig. 4 is a frame diagram of an intelligent terminal clock management device according to an embodiment of the invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the application provides an intelligent terminal clock management method, an intelligent terminal clock management device, a storage medium and terminal equipment, and solves the technical problems that the clock synchronization method of the existing intelligent terminal cannot ensure that clocks of the intelligent terminal and a metering master station are kept consistent and the real-time accuracy is poor.
Embodiment one:
fig. 1 is a flowchart of steps of a clock management method of an intelligent terminal according to an embodiment of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an intelligent terminal clock management method, which includes the following steps:
s10, acquiring a first clock, a second clock, a third clock and a fourth clock of the intelligent terminal, which are respectively in time synchronization with the clock of the metering master station, the clock of the satellite and the clock of the communication base station, and judging whether the clock of the intelligent terminal is abnormal according to whether the third clock or/and the fourth clock is credible;
s20, if the clock of the intelligent terminal is abnormal, calculating a difference value between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as a first clock deviation, and correcting the clock of the intelligent terminal according to the first clock deviation to obtain a corrected intelligent terminal;
s30, judging whether the clock running abnormality exists or not again by adopting constraint conditions for the corrected intelligent terminal, and if the clock running abnormality exists, listing the intelligent terminal in a maintenance list;
the constraint condition comprises whether the difference value between the clock of the metering master station and the clock of the intelligent terminal is larger than a deviation threshold value or not, and whether the frequency of the intelligent terminal request clock pair with the metering master station is larger than a frequency threshold value or not.
In step S10 of the embodiment of the present invention, it is determined whether the clock running time of the intelligent terminal is abnormal according to the clock of the intelligent terminal and the clock of the metering master station, the clock of the satellite and the clock of the communication base station, respectively.
The clock running time of the intelligent terminal means that the clock of the intelligent terminal is not consistent with the clock of any one of the clock of the metering master station, the clock of the satellite or the clock of the communication base station, namely, the clock of the intelligent terminal has abnormal running time.
In step S20 of the embodiment of the present invention, the clock of the intelligent terminal is corrected by using the first clock deviation according to the difference between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as the first clock deviation, mainly according to the abnormality in the clock running time of the intelligent terminal determined in step S10, so as to obtain the corrected intelligent terminal.
The clock of the metering master station is the second clock T 2 The clock of the satellite is a third clock T 3 The clock of the communication base station is a fourth clock T 4 According to the second clock T 2 And a third clock T 3 Absolute value of difference between or second clock T 2 And a fourth clock T 4 The absolute value of the difference between the two values is used to obtain a first clock bias delta T, namely delta t= |T 2 -T 3 I or T 2 -T 4 I (I); correcting the intelligent terminal by adopting the first clock deviation delta t, and correcting the intelligent terminalThe clock of the terminal is t=t 3 +Δt or t=t 4 +Δt. Wherein T is 3 For the satellite clock obtained by the intelligent terminal at the time, T 4 The clock of the communication base station obtained from time to time is the clock of the intelligent terminal.
In step S30 of the embodiment of the present invention, clock management is performed on the corrected intelligent terminal according to the step S20, and whether the corrected clock of the intelligent terminal is abnormal is determined, if yes, the corrected intelligent terminal is listed in a maintenance list, so that maintenance of the intelligent terminal by operation and maintenance personnel is facilitated.
It should be noted that there are two constraint conditions to be satisfied for managing the terminal clock: one is that the metering master station reads the clock of the intelligent terminal once a day, and judges the second clock T of the metering master station 2 First clock T of intelligent terminal 1 Is greater than a deviation threshold; secondly, the intelligent terminal requests the metering master station for time synchronization, and the number of times of the intelligent terminal requests is larger than a frequency threshold. When the clock of the intelligent terminal meets constraint conditions, it is indicated that the running time of the intelligent terminal is abnormal, and the intelligent terminal is marked, so that the intelligent terminal can be maintained and managed in time later.
It should be noted that, the deviation threshold and the frequency threshold may be set according to the requirement of the management intelligent terminal, for example, the deviation threshold may be 0.05, and the frequency threshold may be 10.
According to the intelligent terminal clock management method provided by the invention, whether the intelligent terminal is abnormal or not is known through clock timing of the intelligent terminal and the metering master station, the satellite and the communication base station, on the basis of abnormal transmission of the intelligent terminal, clock abnormality of the intelligent terminal is corrected according to deviation of timing of the metering master station and the satellite or the communication base station, constraint conditions are adopted for managing the corrected intelligent terminal, accurate timing of the intelligent terminal in an electric power system station area is ensured, maintenance and management of the intelligent terminal with abnormal timing are also facilitated for a manager, and the technical problems that the clock timing method of the existing intelligent terminal cannot ensure that clocks of the intelligent terminal and the metering master station are kept consistent and real-time accuracy is poor are solved.
The method mainly comprises the steps that after the intelligent terminal is used for broadcasting time synchronization with a metering master station, each fixed-time intelligent terminal is used for time synchronization with a satellite or a communication base station once, whether the intelligent terminal needs to request time synchronization from the metering master station or not is determined by comparing whether the time difference between the metering master station and the satellite or the communication base station is larger than a deviation threshold value, if the time difference between the metering master station and the satellite or the communication base station is larger than the deviation threshold value, the intelligent terminal actively requests time synchronization from the master station, and if the time difference between the intelligent terminal and the metering master station is smaller than the deviation threshold value, the intelligent terminal does not need to actively request time synchronization from the master station, and accordingly whether the clock of the intelligent terminal is abnormal or not is judged; when the clock of the intelligent terminal is abnormal, the metering master station transmits the time difference between the clock of the metering master station and the clock of the satellite or the time difference between the clock of the metering master station and the clock of the communication base station to the request intelligent terminal, the time difference compensation is carried out on the intelligent terminal, and the clock of the intelligent terminal is corrected; and judging whether the running time of the intelligent terminal is abnormal or not through the corrected time setting deviation value of the intelligent terminal and the metering master station, the times of requesting time setting to the metering master station by the intelligent terminal and the time setting deviation of each time, and further managing the clock of the intelligent terminal.
Fig. 2 is a flowchart of steps for determining an abnormality of an intelligent terminal according to an embodiment of the present invention.
As shown in fig. 2, in one embodiment of the present invention, in step S10, the step of determining whether the clock of the intelligent terminal is abnormal includes:
s11, calculating a difference value between the first clock and the second clock as a second clock deviation, a difference value between the first clock and the third clock as a third clock deviation, and a difference value between the first clock and the fourth clock as a fourth clock deviation;
s12, if the deviation of the third clock or/and the deviation of the fourth clock is larger than a deviation threshold, the intelligent terminal requests the metering master station for time synchronization, the third clock of the satellite and the fourth clock of the communication base station are obtained and fed back to the metering master station, and the metering master station judges whether the third clock or/and the fourth clock is credible or not;
s13, if the third clock or/and the fourth clock are not trusted, the clock of the intelligent terminal is abnormal; if the third clock or/and the fourth clock is/are trusted, the clock pair between the intelligent terminal and the satellite or the communication base station is completed.
In the embodiment of the present invention, in step S12, if the third clock skew or/and the fourth clock skew is not greater than the skew threshold T th The clock of the intelligent terminal is normal, and time setting correction is not needed.
In step S12, determining whether the third clock or the fourth clock is trusted includes: if the absolute value of the difference between the second clock of the metering master and the third clock of the satellite is less than the deviation threshold T th The third clock of the satellite is trusted, otherwise the third clock of the satellite is not trusted; similarly, if the absolute value of the difference between the second clock of the metering master and the fourth clock of the communication base station is smaller than the deviation threshold T th The fourth clock of the communication base station is trusted, otherwise the fourth clock of the communication base station is not trusted.
In an embodiment of the present invention, before step S10, the method for managing clocks of an intelligent terminal further includes: the clock of the metering master station and the clock of the intelligent terminal are clocked once every day to obtain a second clock deviation; and the intelligent terminal obtains a third clock deviation or/and a fourth clock deviation once every a plurality of minutes and the clock of the satellite and the clock pair of the communication base station. The intelligent terminal obtains a third clock deviation or/and a fourth clock deviation once every a plurality of minutes and the clock of the satellite and the clock of the communication base station, and the third clock deviation or/and the fourth clock deviation comprises the following steps: if the intelligent terminal is consistent with the clock of the satellite or the clock of the communication base station every several minutes, a third clock deviation or a fourth clock deviation, the clock of the intelligent terminal is consistent with the clock of the intelligent terminal, is obtained; and if the intelligent terminal is consistent with the clock of the satellite and the clock of the communication base station every several minutes, obtaining a third clock deviation and a fourth clock deviation.
Fig. 3 is a flowchart illustrating a further step of a clock management method for an intelligent terminal according to an embodiment of the present invention.
In step S11, as shown in fig. 3, the clock of the intelligent terminal is the first clock T 1 The clock of the metering master station is a second clock T 2 The clock of the satellite isThree clocks T 3 The clock of the communication base station is a fourth clock T 4 . Firstly, a metering master station broadcasts once a day to time with an intelligent terminal, and the intelligent terminal in a station area completes time setting to obtain that the clock of the intelligent terminal is a first clock T 1 The clock of the metering master station is a second clock T 2 The method comprises the steps of carrying out a first treatment on the surface of the Secondly, the intelligent terminal is paired with the satellite and the communication base station once every a plurality of minutes, if the intelligent terminal is paired with one of the intelligent terminal and the satellite, the clock deviation between the intelligent terminal and the satellite is compared, namely the clock deviation is |T 1 -T 3 I or T 1 -T 4 If the intelligent terminal and the satellite and the communication base station are both time-aligned successfully, comparing the clock deviation of the intelligent terminal and the satellite, namely a third clock deviation |T 1 -T 3 I and fourth clock bias |t 1 -T 4 | a. The invention relates to a method for producing a fibre-reinforced plastic composite. If |T 1 -T 3 I or/and I T 1 -T 4 I is greater than the deviation threshold T th The intelligent terminal actively requests the time synchronization to the metering master station and simultaneously sends a third clock T 3 Or/and fourth clock T 4 Feedback to the metering master station to judge the third clock T 3 Fourth clock T 4 If the time is trusted, the intelligent terminal and the satellite or the communication base station finish time synchronization; if not, judging the first clock T of the intelligent terminal 1 The clock of the intelligent terminal needs to be corrected for abnormality. If T 1 -T 3 I or/and I T 1 -T 4 I is smaller than the deviation threshold T th The clock of the intelligent terminal does not need to be corrected.
Embodiment two:
fig. 4 is a frame diagram of an intelligent terminal clock management device according to an embodiment of the invention.
As shown in fig. 4, the embodiment of the present invention further provides an intelligent terminal clock management apparatus, which includes a clock anomaly determination module 10, a time synchronization compensation module 20, and a clock management module 30;
the clock abnormality judging module 10 is configured to obtain a first clock, a second clock, a third clock and a fourth clock that are respectively used for synchronizing the clock of the intelligent terminal with the clock of the metering master station, the clock of the satellite and the clock of the communication base station, and judge whether the clock of the intelligent terminal is abnormal according to whether the third clock or/and the fourth clock is trusted;
the time synchronization compensation module 20 is configured to calculate, according to the abnormality of the clock of the intelligent terminal, a difference value between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as a first clock deviation, and correct the clock of the intelligent terminal according to the first clock deviation, so as to obtain a corrected intelligent terminal;
the clock management module 30 is configured to determine whether the corrected intelligent terminal has abnormal clock running time again by adopting constraint conditions, and if the corrected intelligent terminal has abnormal clock running time, list the intelligent terminal in a maintenance list;
the constraint condition comprises whether the difference value between the clock of the metering master station and the clock of the intelligent terminal is larger than a deviation threshold value or not, and whether the frequency of the intelligent terminal request clock pair with the metering master station is larger than a frequency threshold value or not.
In the embodiment of the present invention, the clock anomaly determination module 10 includes a deviation calculation sub-module 11, a clock trusted determination sub-module 12, and an anomaly determination sub-module 13;
a deviation calculating sub-module 11 for calculating a difference between the first clock and the second clock as a second clock deviation, a difference between the first clock and the third clock as a third clock deviation, and a difference between the first clock and the fourth clock as a fourth clock deviation;
the clock credibility judging sub-module 12 is configured to request the timing from the metering master station according to the third clock deviation or/and the fourth clock deviation greater than the deviation threshold, obtain the third clock of the satellite and the fourth clock of the communication base station, and feed back the third clock and the fourth clock to the metering master station, where the metering master station judges whether the third clock or/and the fourth clock is credible;
the abnormality judging sub-module 13 is configured to determine that the clock of the intelligent terminal is abnormal if the third clock or/and the fourth clock are not trusted; if the third clock or/and the fourth clock is/are trusted, the clock pair between the intelligent terminal and the satellite or the communication base station is completed.
It should be noted that, the modules in the apparatus of the second embodiment correspond to the steps in the method of the second embodiment, and the steps in the method of the second embodiment are described in detail in the first embodiment, and the details of the modules in the apparatus are not described in detail in the second embodiment.
Embodiment III:
the embodiment of the invention provides a computer readable storage medium, which is used for storing computer instructions, and when the computer readable storage medium runs on a computer, the computer is caused to execute the intelligent terminal clock management method.
Embodiment four:
the embodiment of the invention provides terminal equipment, which comprises a processor and a memory;
a memory for storing program code and transmitting the program code to the processor;
and the processor is used for executing the intelligent terminal clock management method according to the instructions in the program codes.
It should be noted that the processor is configured to execute the steps in the above-described embodiment of the method for clock management of an intelligent terminal according to instructions in the program code. In the alternative, the processor, when executing the computer program, performs the functions of the modules/units in the system/apparatus embodiments described above.
For example, a computer program may be split into one or more modules/units, which are stored in a memory and executed by a processor to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the terminal device.
The terminal device may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the terminal device is not limited and may include more or less components than those illustrated, or may be combined with certain components, or different components, e.g., the terminal device may also include input and output devices, network access devices, buses, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk provided on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used for storing computer programs and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The intelligent terminal clock management method is characterized by comprising the following steps of:
s10, acquiring a clock of an intelligent terminal, a clock of a metering master station, a clock of a satellite and a clock of a communication base station which are respectively clocked with the clock of the intelligent terminal, wherein the clock of the intelligent terminal is a first clock, the clock of the metering master station is a second clock, the clock of the satellite is a third clock, and the clock of the communication base station is a fourth clock; judging whether the clock of the intelligent terminal is abnormal according to whether the third clock or/and the fourth clock is credible;
s20, if the clock of the intelligent terminal is abnormal, calculating a difference value between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as a first clock deviation, and correcting the clock of the intelligent terminal according to the first clock deviation to obtain a corrected intelligent terminal;
s30, judging whether the corrected intelligent terminal has abnormal clock running time again by adopting constraint conditions, and if so, listing the intelligent terminal in a maintenance list;
the constraint conditions comprise whether the difference value between the clock of the metering master station and the clock of the intelligent terminal is larger than a deviation threshold value, and whether the frequency of the intelligent terminal request clock pair with the metering master station is larger than a frequency threshold value.
2. The method according to claim 1, wherein in step S10, the step of determining whether the intelligent terminal clock is abnormal comprises:
s11, counting the clock pairs of a clock of a main station and a clock of an intelligent terminal once every day, calculating the difference value between the first clock and the second clock as second clock deviation, counting the difference value between the first clock and the third clock as third clock deviation and the difference value between the first clock and the fourth clock as fourth clock deviation once every a plurality of minutes of clock pairs of the clock of the intelligent terminal, the clock of a satellite and the clock of a communication base station;
s12, if the third clock deviation or/and the fourth clock deviation is larger than the deviation threshold, the intelligent terminal requests the time synchronization to the metering master station, the third clock of the satellite and the fourth clock of the communication base station are obtained and fed back to the metering master station, and the metering master station judges whether the third clock or/and the fourth clock is credible or not;
s13, if the third clock or/and the fourth clock are not trusted, the clock of the intelligent terminal is abnormal; and if the third clock or/and the fourth clock is/are trusted, completing clock time synchronization between the intelligent terminal and the satellite or the communication base station.
3. The method according to claim 2, wherein in step S12, if the third clock deviation or/and the fourth clock deviation is not greater than the deviation threshold, the clock of the intelligent terminal is normal and no time synchronization correction is required.
4. The method according to claim 2, wherein in step S12, determining whether the third clock or the fourth clock is trusted comprises: if the absolute value of the difference value between the second clock of the metering master station and the third clock of the satellite is smaller than the deviation threshold value, the third clock of the satellite is trusted, otherwise, the third clock of the satellite is not trusted; and similarly, if the absolute value of the difference value between the second clock of the metering master station and the fourth clock of the communication base station is smaller than the deviation threshold value, the fourth clock of the communication base station is trusted, otherwise, the fourth clock of the communication base station is not trusted.
5. The intelligent terminal clock management device is characterized by comprising a clock abnormality judging module, a time synchronization compensating module and a clock management module;
the clock abnormality judging module is used for acquiring a clock of the intelligent terminal, a clock of a metering master station, a clock of a satellite and a clock of a communication base station, wherein the clock of the intelligent terminal is a first clock, the clock of the metering master station is a second clock, the clock of the satellite is a third clock, and the clock of the communication base station is a fourth clock; judging whether the clock of the intelligent terminal is abnormal according to whether the third clock or/and the fourth clock is credible;
the time synchronization compensation module is used for calculating a difference value between the clock of the metering master station and the clock of the satellite or the clock of the communication base station as a first clock deviation if the clock of the intelligent terminal is abnormal, and performing time synchronization correction on the clock of the intelligent terminal according to the first clock deviation to obtain a corrected intelligent terminal;
the clock management module is used for judging whether the corrected intelligent terminal has abnormal clock running time again by adopting constraint conditions, and if the corrected intelligent terminal has abnormal clock running time, the intelligent terminal is listed in a maintenance list;
the constraint conditions comprise whether the difference value between the clock of the metering master station and the clock of the intelligent terminal is larger than a deviation threshold value, and whether the frequency of the intelligent terminal request clock pair with the metering master station is larger than a frequency threshold value.
6. The intelligent terminal clock management apparatus of claim 5, wherein the clock anomaly determination module comprises a bias calculation sub-module, a clock trusted determination sub-module, and an anomaly determination sub-module;
the deviation calculating sub-module is used for calculating a difference value between the first clock and the second clock as a second clock deviation, a difference value between the first clock and the third clock as a third clock deviation and a difference value between the first clock and the fourth clock as a fourth clock deviation;
the clock credibility judging sub-module is used for requesting the time synchronization from the metering master station by the intelligent terminal if the third clock deviation or/and the fourth clock deviation is larger than the deviation threshold value, obtaining a third clock of a satellite and a fourth clock of a communication base station and feeding the third clock and the fourth clock back to the metering master station, and judging whether the third clock or/and the fourth clock is credible or not by the metering master station;
the abnormality judgment sub-module is used for judging that if the third clock or/and the fourth clock are not credible, the clock of the intelligent terminal is abnormal; and if the third clock or/and the fourth clock is/are trusted, completing clock time synchronization between the intelligent terminal and the satellite or the communication base station.
7. A computer readable storage medium storing computer instructions which, when run on a computer, cause the computer to perform the intelligent terminal clock management method of any of claims 1-4.
8. A terminal device comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the intelligent terminal clock management method according to any one of claims 1-4 according to instructions in the program code.
CN202011510742.0A 2020-12-18 2020-12-18 Intelligent terminal clock management method and device, storage medium and terminal equipment Active CN112511259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011510742.0A CN112511259B (en) 2020-12-18 2020-12-18 Intelligent terminal clock management method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011510742.0A CN112511259B (en) 2020-12-18 2020-12-18 Intelligent terminal clock management method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN112511259A CN112511259A (en) 2021-03-16
CN112511259B true CN112511259B (en) 2023-05-16

Family

ID=74922872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011510742.0A Active CN112511259B (en) 2020-12-18 2020-12-18 Intelligent terminal clock management method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN112511259B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114384787B (en) * 2021-11-29 2024-01-23 国网北京市电力公司 Method and device for calibrating clock of electric energy meter
CN114142960A (en) * 2021-12-21 2022-03-04 青岛鼎信通讯股份有限公司 Method for timing acquisition terminal of low-voltage transformer area by using mobile 5G base station

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7327699B1 (en) * 1999-03-30 2008-02-05 Schaefer Wolfgang Method and device for synchronisation of distant clocks to a central clock via satellite
CN103370635A (en) * 2011-01-14 2013-10-23 迪尔公司 Method and system for determining clock corrections
CN106452642A (en) * 2015-08-07 2017-02-22 中兴通讯股份有限公司 Satellite communication network clock synchronization method and device and base transceiver station
CN111106889A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Clock synchronization method and device
CN111404627A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Time synchronization method, device, system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7327699B1 (en) * 1999-03-30 2008-02-05 Schaefer Wolfgang Method and device for synchronisation of distant clocks to a central clock via satellite
CN103370635A (en) * 2011-01-14 2013-10-23 迪尔公司 Method and system for determining clock corrections
CN106452642A (en) * 2015-08-07 2017-02-22 中兴通讯股份有限公司 Satellite communication network clock synchronization method and device and base transceiver station
CN111106889A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Clock synchronization method and device
CN111404627A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Time synchronization method, device, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
计量自动化系统卫星时间同步攻击危害与防护;刘亮等;《南方电网技术》;20200120(第01期);全文 *

Also Published As

Publication number Publication date
CN112511259A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN112511259B (en) Intelligent terminal clock management method and device, storage medium and terminal equipment
US20200366397A1 (en) High-precision time synchronization method
CN110719135A (en) Time calibration method and system and electronic device
CN107947888A (en) A kind of task level synchronous method based on network service
CN111865468B (en) Precise time synchronization method
CN113179286A (en) Data supervision method and system for block chain
CN112769517A (en) T-BOX time synchronization method and device
US20160344537A1 (en) Communication apparatus, communication method, and computer readable medium
CN111311362B (en) Product attribute updating method and system
CN112132544B (en) Inspection method and device of business system
CN115048430A (en) Data verification method, system, device and storage medium
CN112637151B (en) Data message transmission method, terminal device, server and storage medium
CN113783649A (en) Terminal timing method, system, electronic equipment and storage medium
CN113946448A (en) Time sequence management method and device of server cluster and electronic equipment
CN114531374A (en) Network monitoring method, device, equipment and storage medium
CN113849672A (en) Distribution network automation main station GIS single line diagram updating and checking method and device
CN113157472A (en) Service information processing method, device, equipment and computer storage medium
CN109597819B (en) Method and apparatus for updating a database
CN113114450B (en) Whole network clock feedback method and system
CN110071967B (en) Correlation method, device and equipment
CN112566235B (en) Wireless synchronization method, device and system for monitoring station
CN109839816B (en) Timing method and device for local time
TWI763299B (en) Television system, control method and non-transient computer readable medium
CN105590004A (en) Method for establishing on-line MTBF (Mean Time Between Failures) estimation library with shared BOM (Bill of Material) of PLM (Product Lifecycle Management) system
US11546866B1 (en) Network generated precision time

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