CN111769897A - Local synchronization processing method and device based on time accumulated error - Google Patents
Local synchronization processing method and device based on time accumulated error Download PDFInfo
- Publication number
- CN111769897A CN111769897A CN202010625235.5A CN202010625235A CN111769897A CN 111769897 A CN111769897 A CN 111769897A CN 202010625235 A CN202010625235 A CN 202010625235A CN 111769897 A CN111769897 A CN 111769897A
- Authority
- CN
- China
- Prior art keywords
- time
- network
- accumulated
- preset time
- preset
- 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.)
- Pending
Links
Images
Classifications
-
- 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
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/19—Controlling the light source by remote control via wireless transmission
-
- 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
- H04J3/0644—External master-clock
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Abstract
The invention provides a local synchronous processing method and a device based on time accumulated errors, which comprises the following steps: when a normal signal is obtained and only the control end is not playing the light program, calculating accumulated errors of a plurality of preset time periods; after accumulating to preset days, calculating an accumulated error mean value corresponding to each preset time period according to the acquired accumulated errors of a plurality of preset time periods each day; when the network fault of the intelligent node end is detected, the current time is recorded, the time is correspondingly compensated in each preset time period according to the accumulated error mean value calculated in the step S2, and the local clock is modified according to the compensation result. The invention can satisfy the technology that the node can synchronize itself in a short time when the network and the GPS signals are lost, the method is simple to implement and low in cost, and can deal with the emergency situation without the network or the GPS signals.
Description
Technical Field
The invention relates to the technical field of intelligent light control, in particular to a local synchronous processing method and device based on time accumulated errors.
Background
When light program effect display and control are carried out among large buildings, program effect synchronous control of different building nodes is generally required to be carried out so as to prevent picture switching among different display screens from being inconsistent. Currently, the following two methods are commonly used at home and abroad for the synchronization problem:
one is that the server side controls the node side, establishes long connection, and sends out command synchronization once every few seconds;
the other method is that a strategy is made in advance and then is issued to a node control end, the control end calculates once every few seconds, how many milliseconds the control end needs to play, and then the control end corrects once. And the nodes have GPS or BTS time correction to ensure that the time error of each node end is within 10 milliseconds.
Although these methods in the industry can satisfy the synchronization effect of programs, the environment between high-rise buildings is complex, and occasionally, the network and the GPS cannot receive signals, so that the effect of programs in the short window period cannot be effectively synchronized.
In the prior art, the node side synchronizes the time and the program playing according to a preset strategy after establishing long connection or GPS time service with the server. This approach has the following drawbacks: therefore, when a short-term network and a GPS signal are unstable or have no signal, time and programs cannot be effectively synchronized, and short-term time synchronization in a complex environment cannot be dealt with.
Disclosure of Invention
The object of the present invention is to solve at least one of the technical drawbacks mentioned.
Therefore, the invention aims to provide a local synchronization processing method and a local synchronization processing device based on time accumulated errors.
In order to achieve the above object, an embodiment of the present invention provides a local synchronization processing method based on time accumulated errors, including the following steps:
step S1, when a normal signal is obtained and only the control end is not playing the light program, calculating the accumulated error of a plurality of preset time periods;
step S2, when the number of days reaches a preset number, calculating the mean value of the accumulated errors corresponding to each preset time period according to the acquired accumulated errors of a plurality of preset time periods each day;
and step S3, when the network fault of the intelligent node end is detected, recording the current time, correspondingly compensating the time in each preset time period according to the accumulated error mean value calculated in the step S2, and modifying the local clock according to the compensation result.
Further, in the step S1, the preset time period includes: 5 minutes, 10 minutes, half an hour, one hour, two hours.
Further, in the step S2, the preset number of days is 30 days.
Further, in the step S3, the intelligent power saving terminal network failure includes the following states: no network signal, GPS signal instability, or no GPS signal.
The embodiment of the present invention further provides a local synchronization processing apparatus based on time cumulant, including: an accumulative error calculating module, an accumulative error mean calculating module, a database, a network detecting module and a time compensating module, wherein,
the accumulated error calculation module is used for calculating accumulated errors of a plurality of preset time periods when the network detection module detects that the network is normal and normal signals are acquired and only the control end is not playing the light program;
the accumulated error mean value calculating module is used for calculating the accumulated error mean value corresponding to each preset time period according to the acquired accumulated errors of a plurality of preset time periods every day after the accumulated errors reach the preset days;
the database is used for storing the calculated accumulated error mean value corresponding to each preset time period;
and the time compensation module is used for recording the current time when the network detection module detects the network fault of the intelligent node end, correspondingly compensating the time in each preset time period according to the accumulated error mean value of the database, and modifying the local clock according to the compensation result.
Further, the preset time period includes: 5 minutes, 10 minutes, half an hour, one hour, two hours.
Further, the preset number of days is 30 days.
Further, the intelligent power-saving end network fault comprises the following states: no network signal, GPS signal instability, or no GPS signal.
According to the local synchronization processing method and device based on the time accumulated error, the technology that the nodes can synchronize themselves in a short time when the network and the GPS signals are lost can be met, the method is simple to implement and low in cost, and the method can be used for dealing with the emergency situation without the network or the GPS signals. When the network and GPS signals are poor or no signals exist, the invention can carry out an effective time program synchronization operation in a short time so as to ensure that the program can run under the condition of higher precision.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method for local synchronization processing based on accumulated error over time according to an embodiment of the present invention;
fig. 2 is a block diagram of a local synchronization processing system based on time accumulated errors according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The invention provides a local synchronous processing method based on time accumulated errors, which can realize the synchronization of intelligent light program synchronous control and an LED outdoor landscape lighting control system. The steps of the invention are all concentrated at the intelligent control node end, and the calculation of the accumulated error in a certain time period is mainly completed.
As shown in fig. 1, the local synchronization processing method based on the time accumulated error according to the embodiment of the present invention includes the following steps:
step S1, when the normal signal is obtained and only the control end is not playing the light program, calculating the accumulated error of a plurality of preset time periods.
In this step, the preset time period includes: the calculated values are stored in the database for 5 minutes, 10 minutes, half an hour, one hour, and two hours. It should be noted that the above time periods are only for illustrative purposes, and other time periods may be selected according to needs, and are not described herein again.
Step S2, after accumulating for a preset number of days, calculating an accumulated error mean value corresponding to each preset time period according to the acquired accumulated errors of a plurality of preset time periods each day.
In this step, the preset number of days is 30 days. For example, the accumulated error is continuously calculated for a preset period of 30 days, and then the calculated accumulated error is averaged to calculate the average of the accumulated errors every 5 minutes, 10 minutes, half hour, one hour, and two hours. It should be noted that the preset number of days is only for illustrative purposes, and other numbers of days may also be set as needed, and are not described herein again.
And step S3, when the network fault of the intelligent node end is detected, recording the current time, correspondingly compensating the time in each preset time period according to the accumulated error mean value calculated in the step S2, and modifying the local clock according to the compensation result.
In the embodiment of the invention, the intelligent power-saving end network fault comprises the following states: no network signal, GPS signal instability, or no GPS signal. When the intelligent node end has no network and the GPS signal is unstable or absent, the current time is recorded, then the time is compensated every 5 minutes, 10 minutes, half hour, one hour or two hours according to the accumulated error mean value calculated in the previous long-term calculation, and then the local clock is modified.
As shown in fig. 2, an embodiment of the present invention further provides a local synchronization processing apparatus based on time cumulative differences, including: the device comprises an accumulated error calculation module 1, an accumulated error mean value calculation module 2, a database 3 and a time compensation module network detection module 5.
Specifically, the accumulated error calculation module 1 is configured to calculate accumulated errors of a plurality of preset time periods when the network detection module 5 detects that the network is normal, and a normal signal is obtained and only the control end is not playing a light program.
In an embodiment of the present invention, the preset time period includes: 5 minutes, 10 minutes, half an hour, one hour, two hours. It should be noted that the above time periods are only for illustrative purposes, and other time periods may be selected according to needs, and are not described herein again.
The accumulated error mean value calculating module 2 is configured to calculate an accumulated error mean value corresponding to each preset time period according to the acquired accumulated errors of the plurality of preset time periods each day after the accumulated errors reach the preset number of days.
In one embodiment of the invention, the predetermined number of days is 30 days. For example, the accumulated error is continuously calculated for a preset period of 30 days, and then the calculated accumulated error is averaged to calculate the average of the accumulated errors every 5 minutes, 10 minutes, half hour, one hour, and two hours. It should be noted that the preset number of days is only for illustrative purposes, and other numbers of days may also be set as needed, and are not described herein again.
The database 3 is used for storing the calculated accumulated error mean value corresponding to each preset time period.
The time compensation module 4 is configured to record current time when the network detection module 5 detects a network fault at the intelligent node side, correspondingly compensate time in each preset time period according to the accumulated error mean value of the database 3, and modify the local clock according to a compensation result.
In the embodiment of the invention, the intelligent power-saving end network fault comprises the following states: no network signal, GPS signal instability, or no GPS signal. When the intelligent node end has no network and the GPS signal is unstable or absent, the current time is recorded, then the time is compensated every 5 minutes, 10 minutes, half hour, one hour or two hours according to the accumulated error mean value calculated in the previous long-term calculation, and then the local clock is modified.
According to the local synchronization processing method and device based on the time accumulated error, the technology that the nodes can synchronize themselves in a short time when the network and the GPS signals are lost can be met, the method is simple to implement and low in cost, and the method can be used for dealing with the emergency situation without the network or the GPS signals. When the network and GPS signals are poor or no signals exist, the invention can carry out an effective time program synchronization operation in a short time so as to ensure that the program can run under the condition of higher precision.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (8)
1. A local synchronization processing method based on time accumulated errors is characterized by comprising the following steps:
step S1, when a normal signal is obtained and only the control end is not playing the light program, calculating the accumulated error of a plurality of preset time periods;
step S2, when the number of days reaches a preset number, calculating the mean value of the accumulated errors corresponding to each preset time period according to the acquired accumulated errors of a plurality of preset time periods each day;
and step S3, when the network fault of the intelligent node end is detected, recording the current time, correspondingly compensating the time in each preset time period according to the accumulated error mean value calculated in the step S2, and modifying the local clock according to the compensation result.
2. The local synchronization processing method based on time accumulated errors according to claim 1, wherein in the step S1, the preset time period includes: 5 minutes, 10 minutes, half an hour, one hour, two hours.
3. The local synchronization processing method based on the time accumulated error according to claim 1, wherein in the step S2, the preset number of days is 30 days.
4. The local synchronization processing method based on time accumulated errors as claimed in claim 1, wherein in the step S3, the intelligent power-saving end network failure includes the following states: no network signal, GPS signal instability, or no GPS signal.
5. A local synchronization processing apparatus based on a time accumulation difference, comprising: an accumulative error calculating module, an accumulative error mean calculating module, a database, a network detecting module and a time compensating module, wherein,
the accumulated error calculation module is used for calculating accumulated errors of a plurality of preset time periods when the network detection module detects that the network is normal and normal signals are acquired and only the control end is not playing the light program;
the accumulated error mean value calculating module is used for calculating the accumulated error mean value corresponding to each preset time period according to the acquired accumulated errors of a plurality of preset time periods every day after the accumulated errors reach the preset days;
the database is used for storing the calculated accumulated error mean value corresponding to each preset time period;
and the time compensation module is used for recording the current time when the network detection module detects the network fault of the intelligent node end, correspondingly compensating the time in each preset time period according to the accumulated error mean value of the database, and modifying the local clock according to the compensation result.
6. The local synchronization processing apparatus based on time cumulative differences according to claim 5, wherein the preset time period includes: 5 minutes, 10 minutes, half an hour, one hour, two hours.
7. The local synchronization processing apparatus based on time cumulative differences according to claim 5, wherein the preset number of days is 30 days.
8. The local synchronization processing apparatus based on time accumulation difference as claimed in claim 5, wherein the intelligent power-saving end network failure includes the following states: no network signal, GPS signal instability, or no GPS signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010625235.5A CN111769897A (en) | 2020-07-02 | 2020-07-02 | Local synchronization processing method and device based on time accumulated error |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010625235.5A CN111769897A (en) | 2020-07-02 | 2020-07-02 | Local synchronization processing method and device based on time accumulated error |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111769897A true CN111769897A (en) | 2020-10-13 |
Family
ID=72723413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010625235.5A Pending CN111769897A (en) | 2020-07-02 | 2020-07-02 | Local synchronization processing method and device based on time accumulated error |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111769897A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060209989A1 (en) * | 2004-10-20 | 2006-09-21 | Kaushik Saha | System and method for clock recovery in digital video communication |
CN103532652A (en) * | 2013-10-18 | 2014-01-22 | 杭州华三通信技术有限公司 | Time synchronizing device and method |
CN107911187A (en) * | 2017-11-24 | 2018-04-13 | 云南电网有限责任公司 | A kind of electric system time synchronization optimization method based on time calibration |
-
2020
- 2020-07-02 CN CN202010625235.5A patent/CN111769897A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060209989A1 (en) * | 2004-10-20 | 2006-09-21 | Kaushik Saha | System and method for clock recovery in digital video communication |
CN103532652A (en) * | 2013-10-18 | 2014-01-22 | 杭州华三通信技术有限公司 | Time synchronizing device and method |
CN107911187A (en) * | 2017-11-24 | 2018-04-13 | 云南电网有限责任公司 | A kind of electric system time synchronization optimization method based on time calibration |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA3053338C (en) | Method for starting an energy generation network | |
CN106788838B (en) | System and method for robust control of power time synchronization system | |
CN103383689A (en) | Service process fault detection method, device and service node | |
US20210388814A1 (en) | Method and wind park for feeding electric power into an electric supply network | |
WO2008092781B1 (en) | Defining a stratum-1 configuration in a coordinated timing network | |
RU2728523C1 (en) | Method of power supply network restoration | |
CN106656589A (en) | Server dual hot backup system | |
US20180164019A1 (en) | Method for controlling defrost operation of a refrigeration system | |
CN111769897A (en) | Local synchronization processing method and device based on time accumulated error | |
CN113630157A (en) | Clock synchronization method and system based on HPLC communication network delay correction | |
CN111031491A (en) | Method and system for reporting power failure in real time | |
CN113075699A (en) | 5G gateway multi-mode composite high-precision time service method and system | |
CN103095968A (en) | Multi-scene self-adapting emergency handling method for broadcast system | |
CN1324794C (en) | Parallel synchronous phase locking method of uninterrupted power source | |
CN108495175A (en) | A kind of method and apparatus for controlling communication message when smart television interconnection external equipment | |
CN1885987A (en) | Method for inspecting clock stability between wireless network controller and base station | |
CN115314368B (en) | Switch remote control system and method | |
CN111510238A (en) | Method and system for centralized monitoring synchronization state of airborne clock | |
CN108762967B (en) | Software watchdog implementation method for monitoring Web service in Linux system | |
CN113836120B (en) | Breakpoint resume method and system based on data acquisition engine to data application | |
CN107623330B (en) | Control method of valve base control system | |
CN1870509A (en) | Method and device for raising protection stability of multi-section when clock plate switchover | |
CN112118282B (en) | Service node elastic expansion method based on RabbitMQ cluster | |
WO2022169717A1 (en) | Multimodal inroute timing synchronization system | |
CN116366496B (en) | 104 protocol data receiving processing uploading method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201013 |