CN108449206A - A kind of method for synchronizing time, device, equipment and storage medium - Google Patents
A kind of method for synchronizing time, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108449206A CN108449206A CN201810201148.XA CN201810201148A CN108449206A CN 108449206 A CN108449206 A CN 108449206A CN 201810201148 A CN201810201148 A CN 201810201148A CN 108449206 A CN108449206 A CN 108449206A
- Authority
- CN
- China
- Prior art keywords
- time
- log recording
- generated
- internet
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
Abstract
An embodiment of the present invention provides a kind of method for synchronizing time, device, equipment and storage mediums, wherein this method includes:The generated time for obtaining the first log recording in access controller AC, as the first generated time;The generated time for obtaining the second log recording in AC, as the second generated time;Determine that the first generated time subtracted the time difference of the second generated time;If time difference is no more than first time threshold or is not less than second time threshold, it is determined that the time of AC changes, wherein second time threshold is not less than first time threshold;The time synchronization instruction for carrying AC current times is sent to the internet of things equipment of access AC, so that the terminal that internet of things equipment accesses internet of things equipment according to time synchronization instruction notification carries out time synchronization.The real-time synchronization that can so realize terminal and AC times, improves the accuracy of terminal time.
Description
Technical field
The present invention relates to fields of communication technology, are situated between more particularly to a kind of method for synchronizing time, device, equipment and storage
Matter.
Background technology
With the continuous development of science and technology, intellectualized technology is widely applied to the multiple fields in daily life.One
As in the case of, access the terminal of internet of things equipment by the internet of things equipment to AC (Access controller, access control
Device) message is sent, AC handles the message received, so realizes the intelligentized control method to terminal.For example, Intelligent chemical
In school management system, each student wears bracelet, wherein bracelet is one kind of terminal, and bracelet is according to predeterminated frequency to Internet of Things
Net equipment sends message, and internet of things equipment forwards the message to AC, may include the information such as the movement step number of student, AC in message
The message is sent to management platform again, so that the information of management platform real time inspection student can be passed through.Wherein, Internet of Things
The time synchronization of net equipment and the terminal for accessing the internet of things equipment, AC can be connected to the management platform by wired mode,
And the time synchronization of AC and the management platform.As can be seen that during realizing intelligentized control method, AC is synchronous with terminal time
It is extremely important.For example, it includes student 5 that terminal, which is sent by internet of things equipment to AC,:Movement step number before 00 and when segmentum intercalaris
Point 5:00 message, if the time irreversibility of AC and terminal, AC is sent to movement step number pair in the message of management platform
The timing node answered is inaccurate, so that management platform cannot achieve the accurate analysis to the movement step number.
In the prior art, AC can be periodically to Physical Network equipment sending time synchronic command, i.e. every preset time period, AC
Time synchronization instruction is sent to Physical Network equipment, is set so that internet of things equipment accesses Internet of Things according to time synchronization instruction notification
Standby terminal carries out time synchronization.Wherein, time synchronization instruction includes the current time of AC, when so realizing terminal with AC
Between synchronization.
As can be seen that in the prior art every preset time period AC just can to Physical Network equipment sending time synchronic command,
So that internet of things equipment according to time synchronization instruction notification access internet of things equipment terminal carry out time synchronization, if AC when
Between change, then before not reaching preset time period, the time of terminal is inaccurate relative to the time of AC.
Invention content
The embodiment of the present invention is designed to provide a kind of method for synchronizing time, device, equipment and storage medium, to improve
The accuracy of terminal time.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of method for synchronizing time, including:
The generated time for obtaining the first log recording in access controller AC, as the first generated time;
The generated time for obtaining the second log recording in the AC, as the second generated time, wherein second daily record
Be recorded in before first log recording generate and with first log recording interval default number of branches;
Determine that first generated time subtracts the time difference of second generated time;
If the time difference no more than first time threshold or be not less than second time threshold, it is determined that the AC when
Between change, wherein the second time threshold be not less than the first time threshold;
The time synchronization instruction for carrying the AC current times is sent to the internet of things equipment for accessing the AC, so that described
The terminal that internet of things equipment accesses the internet of things equipment according to the time synchronization instruction notification carries out time synchronization.
Second aspect, an embodiment of the present invention provides a kind of time synchronism apparatus, including:
First acquisition module, the generated time for obtaining the first log recording in access controller AC, as the first life
At the time;
Second acquisition module, the generated time for obtaining the second log recording in the AC, as the second generated time,
Wherein, second daily record is generated before being recorded in second log recording and is preset with first log recording interval
Item number;
First determining module, for determining that first generated time subtracts the time difference of second generated time;
Second determining module, if no more than first time threshold or being not less than the second time threshold for the time difference
Value, it is determined that the time of the AC changes, wherein the second time threshold is not less than the first time threshold;
First sending module, for sending the time for carrying the AC current times to the internet of things equipment for accessing the AC
Synchronic command so that the internet of things equipment according to the time synchronization instruction notification access the terminal of the internet of things equipment into
Row time synchronization.
The third aspect, an embodiment of the present invention provides a kind of time synchronism equipments, including processor and machine readable storage
Medium, the machine readable storage medium are stored with the machine-executable instruction that can be executed by the processor, the processing
Device is promoted by the machine-executable instruction:Realize the method and step described in first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of machine readable storage mediums, are stored with machine-executable instruction,
When being called and being executed by processor, the machine-executable instruction promotes the processor:Realize the side described in first aspect
Method step.
Method for synchronizing time, device, equipment and storage medium provided in an embodiment of the present invention, can obtain access controller
The generated time of first log recording in AC, as the first generated time;The generated time of the second log recording in AC is obtained, is made
For the second generated time, wherein the second daily record, which is recorded in before the first log recording, to be generated and pre- with the first log recording interval
If item number;Determine that the first generated time subtracted the time difference of the second generated time;If time difference is not more than first time threshold
Value is not less than second time threshold, it is determined that the time of AC changes, wherein second time threshold is not less than at the first time
Threshold value;To access AC internet of things equipment send carry AC current times time synchronization instruction so that internet of things equipment according to
The terminal that time synchronization instruction notification accesses internet of things equipment carries out time synchronization.In this way, when changing the time of AC, i.e.,
When by carry change after AC current times time synchronization instruction be sent to access AC Physical Network equipment so that should
The terminal that internet of things equipment accesses internet of things equipment according to time synchronization instruction notification carries out time synchronization.It may be implemented, terminal
With the real-time synchronization of AC times, the accuracy of terminal time is improved.Certainly, it implements any of the products of the present invention or method must differ
It is fixed to need while reaching all the above advantage.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of method for synchronizing time provided in an embodiment of the present invention;
Fig. 2 is schematic diagram of a scenario provided in an embodiment of the present invention;
Fig. 3 is another flow chart of method for synchronizing time provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of time synchronism apparatus provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of time synchronism equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a kind of method for synchronizing time, as shown in Figure 1, including:
S101 obtains the generated time of the first log recording in AC, as the first generated time.
Method for synchronizing time provided in an embodiment of the present invention can be applied to AC.It specifically can be applied to specific in AC
Process, and the process can be known as monitoring process.Wherein, monitoring process is closed with the internet of things equipment of access AC there are corresponding
System then increases corresponding monitoring process newly, and when the internet of things equipment is disconnected with the AC's that is, when internet of things equipment accesses the AC
When connection, then the corresponding monitoring process is stopped.
In the AC courses of work, the log recording of various situations in the AC courses of work can be generated.Specifically, daily record note is generated
The process of record can be completed by the other process different from the monitoring process.
The log recording may include the generated time of log content and the log recording.A specific example of the invention
In, the log recording of generation can be as shown in table 1.
Table 1
Log recording identifies | Generated time |
Log recording 1 | 14:00 |
Log recording 2 | 14:01 |
Log recording 3 | 14:02 |
Log recording 4 | 14:03 |
Log recording 5 | 14:07 |
In the embodiment of the present invention, the first log recording is the log recording being newly generated, and monitoring process can obtain in AC
Newest log recording, for example, obtain table 1 shown in log recording 5.Because log recording includes generating the log recording
Generated time, in this way, can be got, such as the generated time of log recording 5 generated time of newest log recording in AC
14:07。
S102 obtains the generated time of the second log recording in AC, as the second generated time, wherein the second daily record is remembered
Record before the first log recording generate and with the first log recording interval default number of branches.
In the embodiment of the present invention, monitoring process can obtain second log recording.Specifically, monitoring process obtain according to
Log recording genesis sequence, before the first log recording generate and with the daily record of the first log recording interval default number of branches
Record.For example, the first log recording is the newest log recording in table 1:When log recording 5, the previous existence in log recording 5 is obtained
It is spaced 3 log recordings, log recording 1 as shown in table 1, that is, the second daily record got at and with the log recording 5
Record.
Meanwhile because log recording includes the generated time for generating the log recording, in this way, can get this
The generated time of two log recordings, such as the generated time 14 of log recording 1:00.
In addition, a plurality of types of log recordings can be generated in the AC courses of work, for example, monitoring log recording, process fortune
Row log recording etc..And there may be differences for generating mode or preserving type of different types of log recording etc., in this way may be used
When can cause to determine the first log recording and the second log recording from different types of log recording, determining answer can be increased
Miscellaneous degree.So in order to reduce the complexity for determining the first log recording and the second log recording, the present invention is a kind of optionally to be implemented
In example, the first log recording and the second log recording may belong to the log recording of same type.
S103 determines that the first generated time subtracted the time difference of the second generated time.
For example, the first log recording is log recording 5, and when the second daily record is recorded as log recording 1, the life of log recording 5
At the time 14:07, subtract the generated time 14 of log recording 1:00, determine that time difference is 7 seconds, that is, when first determined generates
Between subtract the time difference of the second generated time.
S104, if time difference is no more than first time threshold or is not less than second time threshold, it is determined that the time of AC
It changes, wherein second time threshold is not less than first time threshold.
By time difference compared with first time threshold and second time threshold, if time difference is not more than first time threshold
Value is not less than second time threshold, it is determined that the time of AC changes;If time difference is more than first time threshold and small
When second time threshold, it is determined that the time of AC does not change.
In one specific example, first time threshold can be equal to second time threshold, if at this point, time difference etc.
When first time threshold and second time threshold, it is determined that the time of AC changes;If time difference is equal at the first time
When threshold value and second time threshold, it is determined that the time of AC does not change.
Under normal circumstances, generating log recording is carried out according to preset rules.For example, one can be generated every 1 second
Log recording;Alternatively, the rule that can also successively progressively increase according to the interval time for generating adjacent two log recordings, the is such as generated
Two log recordings are 1 second with the interval time for generating first log recording, generate Article 3 log recording and generate second
The interval time of log recording is 2 seconds, and so on.
In this way, when not changing the time of AC, when determining two log recordings, then between two log recordings
It is to determine every the time.For example, the preset rules for generating log recording are to generate a log recording every 1 second, then when first
When log recording and second 4 log recordings of daily record intra-record slack byte, the interval time of the first log recording and the second log recording
It is 5 seconds.
In the embodiment of the present invention, it may be determined that first time threshold 5-N, second time threshold 5+N.Wherein, N can be with
For integer, for example, 0,1,2 etc.;Alternatively, N may be decimal, for example, 0.5,0.7 etc..At this point, if time difference is little
In 5-N or it is not less than 5+N, it is determined that the time of AC changes;If time difference is more than 5-N and is less than 5+N, it is determined that AC
Time do not change.Wherein, it because including redundancy during the determination of time threshold, can so reduce to time change
Determining erroneous judgement.
In one specific example of the embodiment of the present invention, N can be 1, at this point, first time threshold is 4 seconds, the second time
Threshold value is 6 seconds.Determine that the first log recording is log recording 5 in table 1, the generated time 14 of log recording 5:07;Determine second
Log recording is log recording 1 in table 1, the generated time 14 of log recording 1:00;It can then determine the first generated time and the
The time difference of two generated times is the generated time 14 of log recording 5:07, the generated time 14 of log recording 1 is subtracted:00
Difference, i.e., 7 seconds.It can be seen that time difference 7 seconds, be more than second time threshold 6 seconds, then can determine that the time of AC becomes
Change.
S105 sends the time synchronization instruction for carrying AC current times to the internet of things equipment of access AC, so that Internet of Things
The terminal that equipment accesses internet of things equipment according to time synchronization instruction notification carries out time synchronization.
In a kind of optional embodiment of the embodiment of the present invention, as shown in Fig. 2, in intelligent school administration system, it is multiple
AP (Apaccess Point, access node) accesses AC, and each AP in multiple AP by interchanger, for example, AP1, AP2, it can
To connect one or more internet of things equipment, for example, AP1 connections internet of things equipment 1, AP2 connections internet of things equipment 2, and object
Networked devices can be led to by RFID (Radio Frequency Identification, radio frequency identification) agreement with bracelet
Letter, for example, Physical Network equipment 1 by RFID protocol to 1 sending time synchronic command of bracelet, Physical Network equipment 2 is assisted by RFID
It discusses to 2 sending time synchronic command of bracelet.In this way, when changing the time of AC, AC will carry the time of AC current times
Synchronic command is sent to AP by interchanger;Time synchronization instruction is sent to internet of things equipment by AP, and Physical Network equipment again will
Time synchronization instruction is sent to bracelet, and bracelet so realizes hand according to the time synchronization instruction update temporal received
Ring is synchronous with the AC times.
In the embodiment of the present invention, when changing the time of AC, immediately the AC carried after changing can be worked as
The time synchronization instruction of preceding time is sent to the Physical Network equipment of access AC, so that the internet of things equipment is instructed according to time synchronization
The terminal of notice access internet of things equipment carries out time synchronization.It can so realize, the real-time synchronization of terminal and AC times, improve
The accuracy of terminal time.
A kind of optional embodiment of the present invention, as shown in figure 3, changing in the time for determining AC, i.e. after S104, also
May include:
S106 is sent to monitoring client for prompting the time of AC changed alarm prompt.
Monitoring process in AC can be sent to monitoring client for prompting the time of AC changed alarm prompt.
Monitoring client can be monitor supervision platform, monitoring system, or can be equipment used in network administrator, for example,
Mobile phone, computer etc..
S107 receives monitoring client and is directed to the feedback information that alarm prompt is sent.
After monitoring client receives the alarm prompt, the alarm prompt is parsed, and be directed to the alarm prompt, send feedback letter
Breath.
Specifically, monitoring client is directed to the alarm prompt, confirms whether the time change of AC belongs to normal variation.For example, working as
The time change of the AC is caused by being broken down due to AC, then to confirm that the time change of AC is not belonging to normal variation, that is, belong to
Anomalous variation;Caused by the time change of the AC is since the AC times being arranged as desired, then the time change category of AC is confirmed
In normal variation.
Because when the time change of AC belongs to anomalous variation, for example, the time change that AC occurs when breaking down, this
When, which can not be notified to the internet of things equipment of access AC, and then internet of things equipment does not also notify access Internet of Things
The terminal of net equipment carries out time synchronization, i.e., synchronous with the AC times without terminal.In this way, during the present invention is implemented, when AC's
When time change belongs to anomalous variation, then AC can not be to the Physical Network equipment sending time synchronic command for accessing the AC;Work as AC
Time change when belonging to normal variation, just to the internet of things equipment sending time synchronic command for accessing the AC.
When needing the internet of things equipment sending time synchronic command to access AC, that is, confirm that the time change of AC belongs to normal
When variation, monitoring client can send the feedback information that characterization indicates synchronization time to AC;And when need not to access AC Internet of Things
When net equipment sending time synchronic command, that is, when confirming that the time change of AC belongs to anomalous variation, monitoring client can then be sent out to AC
Send the feedback information of characterization abnormal prompt.
In this way, when the feedback information characterization received indicates synchronization time, step S105 is executed.
The time of AC is sent to and connects when the time change of AC belongs to normal variation by the time change by monitoring AC
Enter the internet of things equipment of AC, when so that the terminal that internet of things equipment accesses internet of things equipment according to time synchronization instruction notification carrying out
Between it is synchronous, such terminal can be realized the real-time synchronization of terminal and AC times, further increased with the variation of real-time perception AC times
The usability of terminal.
In addition, when the time change of AC belongs to anomalous variation, the current time of AC is not sent to the object for accessing the AC
Networked devices, can not only so reduce it is unnecessary issue, save resource and time;It can also ensure that unnecessary exception is same
Step, improves the accuracy of terminal time.
Furthermore it is also possible to which the time of monitoring client, AC is prompted to change, and monitoring client is made to confirm the time change category of AC
When anomalous variation, the anomalous variation can be handled in time, avoid the AC times by abnormal destruction, improve the AC times
Accuracy.
The embodiment of the present invention additionally provides a kind of time synchronism apparatus, as shown in figure 4, including:
First acquisition module 401, the generated time for obtaining the first log recording in AC, as the first generated time;
Second acquisition module 402, the generated time for obtaining the second log recording in AC, as the second generated time,
Wherein, the second daily record be recorded in before the first log recording generate and with the first log recording interval default number of branches;
First determining module 403, for determining that the first generated time subtracted the time difference of the second generated time;
Second determining module 404, if no more than first time threshold or being not less than second time threshold for time difference,
Then determine that the time of AC changes, wherein second time threshold is not less than first time threshold;
First sending module 405, for sending the time synchronization for carrying AC current times to the internet of things equipment of access AC
Instruction, so that the terminal that internet of things equipment accesses internet of things equipment according to time synchronization instruction notification carries out time synchronization.
In the embodiment of the present invention, when changing the time of AC, immediately the AC carried after changing can be worked as
The time synchronization instruction of preceding time is sent to the Physical Network equipment of access AC, so that the internet of things equipment is instructed according to time synchronization
The terminal of notice access internet of things equipment carries out time synchronization.It can so realize, the real-time synchronization of terminal and AC times, improve
The accuracy of terminal time.
Optionally, which further includes:
Second sending module, for being sent to monitoring client for prompting the time of AC changed alarm prompt;
Receiving module is directed to the feedback information that alarm prompt is sent for receiving monitoring client;
First sending module 405 is specifically used for when feedback information characterization indicates synchronization time, same to terminal sending time
Step instruction.
Optionally, the first log recording and the second log recording belong to the log recording of same type.
Optionally, the first log recording is the log recording being newly generated.
It should be noted that the time synchronism apparatus of the embodiment of the present invention is the device using above-mentioned method for synchronizing time,
Then all embodiments of above-mentioned method for synchronizing time are suitable for the device, and can reach same or analogous advantageous effect.
The embodiment of the present invention additionally provides a kind of time synchronism equipment, as shown in figure 5, can including processor 501 and machine
Storage medium 502 is read, machine readable storage medium 502 is stored with the machine-executable instruction that can be executed by processor 501, locates
Reason device 501 is promoted by machine-executable instruction:Realize the method and step of above-mentioned method for synchronizing time.
In the embodiment of the present invention, when changing the time of AC, immediately the AC carried after changing can be worked as
The time synchronization instruction of preceding time is sent to the Physical Network equipment of access AC, so that the internet of things equipment is instructed according to time synchronization
The terminal of notice access internet of things equipment carries out time synchronization.It can so realize, the real-time synchronization of terminal and AC times, improve
The accuracy of terminal time.
An embodiment of the present invention provides a kind of machine readable storage mediums, are stored with machine-executable instruction, are being handled
When device is called and executed, machine-executable instruction promotes processor:Realize the method and step of above-mentioned method for synchronizing time.
In the embodiment of the present invention, when changing the time of AC, immediately the AC carried after changing can be worked as
The time synchronization instruction of preceding time is sent to the Physical Network equipment of access AC, so that the internet of things equipment is instructed according to time synchronization
The terminal of notice access internet of things equipment carries out time synchronization.It can so realize, the real-time synchronization of terminal and AC times, improve
The accuracy of terminal time.
Above-mentioned machine readable storage medium may include random access memory (Random Access Memory, RAM),
Can also include nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.It is optional
, memory can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For equipment and storage medium embodiment, since it is substantially similar to the method embodiment, so description is fairly simple, correlation
Place illustrates referring to the part of embodiment of the method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of method for synchronizing time, which is characterized in that including:
The generated time for obtaining the first log recording in access controller AC, as the first generated time;
The generated time for obtaining the second log recording in the AC, as the second generated time, wherein second log recording
Before first log recording generate and with first log recording interval default number of branches;
Determine that first generated time subtracts the time difference of second generated time;
If the time difference is no more than first time threshold or is not less than second time threshold, it is determined that the time of the AC is sent out
Changing, wherein the second time threshold is not less than the first time threshold;
The time synchronization instruction for carrying the AC current times is sent to the internet of things equipment for accessing the AC, so that the Internet of Things
The terminal that net equipment accesses the internet of things equipment according to the time synchronization instruction notification carries out time synchronization.
2. according to the method described in claim 1, it is characterized in that, after the time of the determination AC changes,
The method further includes:
It is sent to monitoring client for prompting the time of the AC changed alarm prompt;
It receives the monitoring client and is directed to the feedback information that the alarm prompt is sent;
The time synchronization instruction that the carrying AC current times are sent to the terminal for accessing the AC, including:
When feedback information characterization indicates synchronization time, the time synchronization instruction is sent to the terminal.
3. according to the method described in claim 1, it is characterized in that, first log recording and the second log recording category
In the log recording of same type.
4. according to any methods of claim 1-3, which is characterized in that first log recording is the day being newly generated
Will records.
5. a kind of time synchronism apparatus, which is characterized in that including:
First acquisition module, the generated time for obtaining the first log recording in access controller AC, when being generated as first
Between;
Second acquisition module, the generated time for obtaining the second log recording in the AC, as the second generated time,
In, second daily record generates before being recorded in first log recording and presets item with first log recording interval
Number;
First determining module, for determining that first generated time subtracts the time difference of second generated time;
Second determining module, if no more than first time threshold or being not less than second time threshold for the time difference,
Determine that the time of the AC changes, wherein the second time threshold is not less than the first time threshold;
First sending module, for sending the time synchronization for carrying the AC current times to the internet of things equipment for accessing the AC
Instruction, when so that the terminal that the internet of things equipment accesses the internet of things equipment according to the time synchronization instruction notification carrying out
Between it is synchronous.
6. device according to claim 5, which is characterized in that described device further includes:
Second sending module, for being sent to monitoring client for prompting the time of the AC changed alarm prompt;
Receiving module is directed to the feedback information that the alarm prompt is sent for receiving the monitoring client;
First sending module is specifically used for, when feedback information characterization indicates synchronization time, sending to the terminal
The time synchronization instruction.
7. device according to claim 5, which is characterized in that first log recording and the second log recording category
In the log recording of same type.
8. according to any devices of claim 5-7, which is characterized in that first log recording is the day being newly generated
Will records.
9. a kind of time synchronism equipment, which is characterized in that described machine readable to deposit including processor and machine readable storage medium
Storage media is stored with the machine-executable instruction that can be executed by the processor, and the processor is by the executable finger of the machine
Order promotes:Realize any method and steps of claim 1-4.
10. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and
When execution, the machine-executable instruction promotes the processor:Realize any method and steps of claim 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810201148.XA CN108449206B (en) | 2018-03-12 | 2018-03-12 | Time synchronization method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810201148.XA CN108449206B (en) | 2018-03-12 | 2018-03-12 | Time synchronization method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108449206A true CN108449206A (en) | 2018-08-24 |
CN108449206B CN108449206B (en) | 2020-11-27 |
Family
ID=63194094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810201148.XA Active CN108449206B (en) | 2018-03-12 | 2018-03-12 | Time synchronization method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108449206B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238719A (en) * | 2010-04-27 | 2011-11-09 | 中国移动通信集团公司 | Time synchronization method and device and distributed time synchronization system |
CN102412983A (en) * | 2011-10-12 | 2012-04-11 | 广东威创视讯科技股份有限公司 | Reporting method for equipment alarm |
CN103532786A (en) * | 2013-10-22 | 2014-01-22 | 中国联合网络通信集团有限公司 | Server synchronization detector as well as synchronous detection method and system |
CN104092697A (en) * | 2014-07-18 | 2014-10-08 | 杭州华三通信技术有限公司 | Anti-replaying method and device based on time |
CN104935465A (en) * | 2015-06-17 | 2015-09-23 | 北京京东尚科信息技术有限公司 | Log generating method and log generating device of client application program, and server |
EP2928109A1 (en) * | 2012-11-29 | 2015-10-07 | NEC Corporation | Synchronization apparatus, synchronization system, wireless communication apparatus and synchronization method |
EP3082282A1 (en) * | 2015-04-14 | 2016-10-19 | LSIS Co., Ltd. | Method for time synchronization |
CN106231669A (en) * | 2016-08-31 | 2016-12-14 | 合肥工业大学 | The method of Time Synchronization for Wireless Sensor Networks |
CN106254094A (en) * | 2016-07-19 | 2016-12-21 | 中国银联股份有限公司 | A kind of method of data synchronization and system |
-
2018
- 2018-03-12 CN CN201810201148.XA patent/CN108449206B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238719A (en) * | 2010-04-27 | 2011-11-09 | 中国移动通信集团公司 | Time synchronization method and device and distributed time synchronization system |
CN102412983A (en) * | 2011-10-12 | 2012-04-11 | 广东威创视讯科技股份有限公司 | Reporting method for equipment alarm |
EP2928109A1 (en) * | 2012-11-29 | 2015-10-07 | NEC Corporation | Synchronization apparatus, synchronization system, wireless communication apparatus and synchronization method |
CN103532786A (en) * | 2013-10-22 | 2014-01-22 | 中国联合网络通信集团有限公司 | Server synchronization detector as well as synchronous detection method and system |
CN104092697A (en) * | 2014-07-18 | 2014-10-08 | 杭州华三通信技术有限公司 | Anti-replaying method and device based on time |
EP3082282A1 (en) * | 2015-04-14 | 2016-10-19 | LSIS Co., Ltd. | Method for time synchronization |
CN104935465A (en) * | 2015-06-17 | 2015-09-23 | 北京京东尚科信息技术有限公司 | Log generating method and log generating device of client application program, and server |
CN106254094A (en) * | 2016-07-19 | 2016-12-21 | 中国银联股份有限公司 | A kind of method of data synchronization and system |
CN106231669A (en) * | 2016-08-31 | 2016-12-14 | 合肥工业大学 | The method of Time Synchronization for Wireless Sensor Networks |
Also Published As
Publication number | Publication date |
---|---|
CN108449206B (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Szilágyi et al. | An automatic detection and diagnosis framework for mobile communication systems | |
AU2022201772B2 (en) | Pulsed electromagnetic field tissue stimulation treatment and compliance monitoring | |
WO2018028573A1 (en) | Method and device for fault handling, and controller | |
US10896754B2 (en) | Troubleshooting system for remote patient monitoring | |
CN105450584B (en) | A kind of service trigger method and the timeout treatment module for business triggering | |
US11075813B2 (en) | Proactively deploying analytics to a computerized edge device | |
CN104170320B (en) | Detection on the performance indications deviation of the expected range of the value in self-organizing network | |
CN108259105B (en) | time synchronization processing method and device and synchronization network | |
CN107251456A (en) | Method for carrying out time synchronized to the device in control network | |
CN103455569A (en) | Method and system for recording external communication data of instant messaging | |
KR20180081959A (en) | Method and Apparatus for Checking Problem in Mobile Communication Network | |
CN108449206A (en) | A kind of method for synchronizing time, device, equipment and storage medium | |
US10764237B2 (en) | System and method for maintaining coherence of association across a network address change or reassignment | |
US20170046497A1 (en) | Sensory Density and Diversity for Living in Place | |
CN106254222B (en) | A kind of network social intercourse object identity reminding method and device | |
CN105744601B (en) | A kind of method and system configuring wireless sensing terminal | |
CN106559812A (en) | A kind of based reminding method of end delay calling, device and core net node | |
CN103974416A (en) | Method, device and system for acquiring position information of mobile terminal | |
CN106652068A (en) | Time length recording method, Bluetooth slave device and time length recording system | |
CN108024279A (en) | A kind of method and server for obtaining measurement report | |
CN101820367A (en) | Spam over internet telephony monitoring method, device and system | |
CN107920003B (en) | Method, equipment and system for managing household electrical equipment | |
CN105721236B (en) | A kind of method and device thereof of Ethernet mistake packet test | |
CN112543501B (en) | Time calibration method and device, storage medium and electronic device | |
CN110167139B (en) | Positioning method and device |
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 |