CN115397002B - Time synchronization control method, LED control system and readable storage medium thereof - Google Patents

Time synchronization control method, LED control system and readable storage medium thereof Download PDF

Info

Publication number
CN115397002B
CN115397002B CN202210754418.6A CN202210754418A CN115397002B CN 115397002 B CN115397002 B CN 115397002B CN 202210754418 A CN202210754418 A CN 202210754418A CN 115397002 B CN115397002 B CN 115397002B
Authority
CN
China
Prior art keywords
control
time
slave
data packet
data
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
CN202210754418.6A
Other languages
Chinese (zh)
Other versions
CN115397002A (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.)
Shenzhen Yuming Information Technology Co ltd
Original Assignee
Shenzhen Yuming Information 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 Shenzhen Yuming Information Technology Co ltd filed Critical Shenzhen Yuming Information Technology Co ltd
Priority to CN202210754418.6A priority Critical patent/CN115397002B/en
Publication of CN115397002A publication Critical patent/CN115397002A/en
Application granted granted Critical
Publication of CN115397002B publication Critical patent/CN115397002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • 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
    • 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
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a time synchronization control method, an LED control system and a readable storage medium thereof, wherein the method comprises the steps that a control slave receives a data packet issued by a control host, acquires time reference data from the data packet and performs time synchronization update calibration on the control slave; the slave is controlled to operate the LED lamp or the LED display screen according to the state control parameters in the data packet after the time synchronization update and calibration; and the control host and each control slave adopt the same clock module to accumulate and update the equipment time after time synchronization, and when the control slave does not receive a data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter. According to the invention, a wireless radio frequency networking mode is adopted, the running state of the system is adjusted only by adjusting the control host, and each field device does not need to be adjusted by a person, so that frequent field treatment and maintenance operations are avoided, and the operation and maintenance cost of the LED lamp or the LED display screen is reduced.

Description

Time synchronization control method, LED control system and readable storage medium thereof
Technical Field
The application relates to the technical field of LED display synchronous control, in particular to a time synchronous control method, an LED control system and a readable storage medium thereof.
Background
The LED light source is different from the traditional light source, is an electronic device, has various characteristics of a semiconductor, and is very easy to realize functions of dimming, color temperature adjustment and the like which are difficult to be finished by a plurality of traditional light sources due to the color diversity of LEDs. Because of these excellent characteristics of LEDs, they are widely used in the technical fields of energy-saving lighting, decorative lighting, LED display screens, and the like.
Along with the continuous development of the internet of things technology, the realization is more and more mature to carry out remote modulation to the LED light source, and especially LED light and the outdoor color display screen of LED are getting wide application in fields such as outdoor landscape decoration, outdoor advertisement and outdoor light show, in order to realize the dynamic orderly broadcast of light or video picture, need carry out time synchronization to LED lamps and lanterns and the outdoor display screen of LED, just can make a plurality of LED lamps and lanterns, the outdoor display screen of LED make up and form large-scale display screen. The existing synchronous dimming or display control mode of the LED lamp is that a GPS/Beidou satellite time service module is integrated in control equipment at a field end, and UTC time reference is obtained from satellite positioning signals, so that the time of the control equipment is updated and corrected, and the LED lamp or an LED display screen at the field end works after time synchronization. Because each device is an independent device, the devices cannot communicate with each other, if the playing speed of the control device is to be adjusted, the device needs to be set up manually before reaching each device, so that the LED lamp or the LED display screen loses synchronous coordination, on-site maintenance and update are needed, and the labor cost is increased.
Disclosure of Invention
The invention mainly aims to provide a time synchronization control method, an LED control system and a readable storage medium thereof, and aims to solve the technical problem of high maintenance cost caused by the fact that the time synchronization control of the existing LED lamp and an LED display screen is long and short in effective operation.
In order to solve the technical problem, the present invention provides a time synchronization control method for an LED lamp or an LED display screen, where the method includes:
the control slave receives a data packet issued by the control host, acquires time reference data from the data packet, and performs time synchronization update calibration on the control slave;
the control slave machine operates the LED lamp or the LED display screen according to the state control parameters in the data packet after time synchronization updating and calibration;
and the control host and each control slave adopt the same clock module to carry out accumulated updating on the equipment time after time synchronization, and when the control slave does not receive the data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter.
Further, before the step of receiving the data packet sent by the control host by the control slave, the method further includes:
the control slave machine transmits the data packet to all the control slave machines in the area in a wireless radio frequency broadcasting mode, and the data comprises the time reference data and the state control parameters.
Further, before the step of receiving the data packet sent by the control host by the control slave, the method further includes:
the control host acquires the time reference data in one or more modes including satellite time service signals, ntp protocol and mobile communication signals.
Further, the time synchronization control method further includes:
and the control master and each control slave determine the synchronous update calibration of the equipment time through the same timing code table.
Further, after the control slave receives the data packet issued by the control host, the method further includes:
the wireless radio frequency signal of the control host is amplified and broadcast through a plurality of relay devices, and the control slave receives the data packet issued from the control host or one of the relay devices.
Further, the time synchronization control method further includes:
and the control host, each control slave and each relay device integrate the same RTC real-time clock, the device time after time synchronization is accumulated through the RTC real-time clock, and when the control slave or the relay device does not receive the data packet, the LED lamp or the LED display screen is operated according to the current device time and the last state control parameter.
Further, after the step of operating the LED lamp or the LED display screen according to the current device time and the previous state control parameter when the control slave does not receive the data packet, the method further includes:
and calculating the accumulated time of the last received data packet, and alarming when the accumulated time is longer than the running time of the accumulated deviation of the time module exceeding a preset deviation value.
The second aspect of the embodiment of the invention provides an LED control system, which comprises at least one control host and at least one control slave, wherein the control host and the control slave are internally provided with a wireless radio frequency device and the same clock module;
the control host also includes a memory, a processor, and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the following:
the control slave receives a data packet issued by the control host, acquires time reference data from the data packet, and performs time synchronization update calibration on the control slave;
the control slave machine operates the LED lamp or the LED display screen according to the state control parameters in the data packet after time synchronization updating and calibration;
and the control host and each control slave adopt the same clock module to carry out accumulated updating on the equipment time after time synchronization, and when the control slave does not receive the data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter.
Further, the LED control system further includes a plurality of relay devices, configured to receive the radio frequency signal of the control host, amplify and broadcast the radio frequency signal, and the control slave receives the data packet sent from the control host or one of the relay devices.
Specifically, the control host, each control slave and each relay device integrate the same RTC real-time clock, respectively accumulate the device time after time synchronization through the RTC real-time clock, and when the control slave or the relay device does not receive the data packet, operate the LED lamp or the LED display screen according to the current device time and the previous state control parameter.
A third aspect of the embodiments of the present invention provides a computer-readable storage medium having stored thereon a time synchronization control program which, when executed by a processor, implements the steps of the time synchronization control method described above.
The technical scheme of the invention has the beneficial effects that:
according to the time synchronization control method, the LED control system and the readable storage medium thereof, the control host, the relay equipment and the control slave machine are subjected to data interaction in a wireless radio frequency communication mode, the data packet can simultaneously comprise time reference data and state control parameters, each control slave machine is not required to be provided with a satellite time service module, in addition, the control host, the relay equipment and the control slave machine are provided with the same clock module to carry out equipment time accumulation and update, and when time synchronization cannot be realized, equipment time is adopted to carry out state control, so that the effective time of time synchronization operation is greatly improved. According to the invention, a wireless radio frequency networking mode is adopted, the running state of the system is adjusted only by adjusting the control host, and each field device does not need to be adjusted by a person, so that frequent field treatment and maintenance operations are avoided, and the operation and maintenance cost of the LED lamp or the LED display screen is reduced.
Drawings
FIG. 1 is a schematic diagram of a control host hardware architecture for implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a communication network terminal according to an embodiment of the present invention;
FIG. 3 is a block diagram of an existing LED control system according to an embodiment of the present invention;
FIG. 4 is a flowchart of a time synchronization control method according to an embodiment of the present invention;
FIG. 5 is a block diagram of an LED control system according to an embodiment of the present invention;
FIG. 6 is a block diagram of another LED control system according to an embodiment of the present invention;
fig. 7 is a block diagram of a hardware structure of a host terminal according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The control host device may be implemented in various forms of terminals, and for example, the terminals described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable media player (Portable Media Player, PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, and fixed terminals such as a digital TV, a desktop computer, an industrial personal computer, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a detection mechanism input unit 107, an interface unit 108, a memory 109, a processor 110, a power supply 111, and the like. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices through quick payment of public transportation costs. The public transportation fee quick payment may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, code Division multiple access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division duplex long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a detection mechanism to send and receive emails, browse pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the detection mechanism. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The terminal 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by the detection mechanism or information provided to the detection mechanism. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The detection mechanism input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to detection mechanism settings and function control of the mobile terminal. Specifically, the detection mechanism input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations on or near the detection mechanism (e.g., the detection mechanism uses any suitable object or accessory such as a finger, stylus, etc. to operate on the touch panel 1071 or near the touch panel 1071) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the detection mechanism, detects signals brought by touch operation and transmits the signals to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The detection mechanism input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operation terminal, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operation terminal, the detection mechanism interface, the application program, etc., and the modem processor mainly processes the public transportation fee shortcut payment. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
Specifically, the high precision clock unit 112 provides high precision time for the devices, providing accurate to millisecond time for device synchronization to ensure accurate synchronization to frames between the devices.
The terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management terminal, so that functions of managing charge, discharge, power consumption management, etc. are implemented through the power management terminal.
Although not shown in fig. 1, the terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a description will be given below of a communication network terminal on which the mobile terminal of the present invention is based.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network terminal according to an embodiment of the present invention, where the communication network terminal is an LTE terminal of a universal mobile telecommunication technology, and the LTE terminal includes a UE (User Equipment, control host, etc.) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator, which are sequentially connected in a communication manner.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home detection mechanism server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold information specific to detection mechanisms regarding service characteristics, data rates, etc. All detection mechanism data may be sent through SGW2034, PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function units (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ) or other IP services, etc.
Although the LTE terminal is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE terminals, but may be applied to other public transportation fee quick payment terminals, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network terminals.
As shown in fig. 3, in the conventional LED lamp/LED display control system, a control host 10 is connected to a plurality of control slaves 20, and the control slaves 20 respectively drive the corresponding LED lamps/LED display 30 to work, and the control slaves 20 and the LED lamps/LED display 30 convert external commercial power and provide working voltages through a power converter 40. The control host 10 and the control slave 20 in the existing LED control system are respectively provided with a time service module 60, each time service module 60 is respectively connected with a time service signal source 50, and the time service mode can be GPS or beidou time service and base station time service.
The various embodiments of the method of the present invention are presented based on the above-described hardware structure of the terminal 100 and the communication network terminal.
Example 1
As shown in fig. 4, an embodiment of the present invention provides a time synchronization control method, which is used for an LED lamp or an LED display screen, and the method includes:
s100, a control slave receives a data packet issued by a control host, acquires time reference data from the data packet, and performs time synchronization update calibration on the control slave;
before the step that the control slave receives the data packet issued by the control host, the method further includes: the control slave machine transmits the data packet to all the control slave machines in the area in a wireless radio frequency broadcasting mode, and the data comprises the time reference data and the state control parameters. Specifically, the state control parameters include time, speed, brightness, content played, frame played, and the like. Specifically, the control host acquires the time reference data through one or more modes including a satellite time service signal, an ntp protocol and a mobile communication signal.
S200, the control slave machine operates the LED lamp or the LED display screen according to the state control parameters in the data packet after time synchronization updating and calibration;
and S300, the control host and each control slave adopt the same clock module to accumulate and update the equipment time after time synchronization, and when the control slave does not receive the data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter.
The time synchronization control method further comprises the following steps:
and the control master and each control slave determine the synchronous update calibration of the equipment time through the same timing code table.
The time synchronization control method shown in fig. 4 can be applied to time synchronization between the control master 10 and at least one control slave 20 in the LED control system shown in fig. 5, where the control master 10 includes a clock, a store queue (queue) and a clock table, and each control slave 20 includes a clock. The clock in the control master 10 is used to represent the device time of the whole system, and the clock in the control slave 20 represents the device time of the control slave 20, and since there may be a slight difference in the running speed of different clocks, a time synchronization operation must be performed between the control master 10 and the control slave 20 to maintain the normal operation of the system. The store queue in the control host 10 is used to store data, and the clock table is used to limit the scope of the clock.
Specifically, the steps of determining the synchronous update calibration of the equipment time by the control host computer and each control slave computer through the same timing code table are as follows:
s1, setting the time limit of the timing code table by the control host according to a preset value.
S2, the control host transmits inquiry information to each control slave respectively, wherein the purpose of the inquiry information is to inquire whether the control slave has data to wait for returning, and the inquiry information at least comprises time reference data, namely the numerical value of a clock when the control host transmits.
And S3, after each control slave receives the inquiry information, synchronously controlling clocks in the slave according to time reference data in the inquiry information.
S4, judging whether data need to be replied or not by each control slave; if the control slave has no data to be replied, only a response message is returned,
s5, if the data needs to be replied, the data and the generation time of the data are placed in a reply message and are returned to the control host, and S6 is performed.
S7, the control host receives the response information or the reply information transmitted by each control slave, and the data in the reply information are respectively stored in the storage queue.
S8, judging whether the time limit of the timing code table is reached; if not, returning to S2, and repeating the steps until the time limit of the timing code table is reached;
otherwise, S9 is performed.
S9, the control host stops receiving the response information or the reply information transmitted by the control slave, and time sequencing is performed on the data in the storage queue by using a sequencing method, so that the aim of time synchronization of the control host and each control slave is fulfilled.
The method for ordering the data in the store queue is not particularly limited. S5, the response information returned by the control slave is used for confirming that the transmission between the control host and the control slave is not interrupted; therefore, in S7, the control host does not need to enter the response information from the received control slave into the storage queue. In other words, if the control slave does not return the response message in S5, it means that the transmission between the control master and the control slave has been interrupted, and the time synchronization is no longer performed.
Before each control slave generates data, each control slave uses the time reference data in the inquiry information transmitted by the control master to synchronize the clocks of the control slaves, and the clocks of the control slaves are also continuously timed after being synchronized, so that the time when the recovery data is generated is also the clock value which is continuously timed after the control slaves are synchronized by using the clock value transmitted by the control master, and the purpose of time synchronization can be achieved.
Optionally, the control slave reports an event of receiving a data packet, and the control host records and stores reporting information of the control slave.
After the control slave receives the data packet issued by the control host, the method further comprises the following steps:
the wireless radio frequency signal of the control host is amplified and broadcast through a plurality of relay devices, and the control slave receives the data packet issued from the control host or one of the relay devices.
The time synchronization control method further comprises the following steps:
and the control host, each control slave and each relay device integrate the same RTC real-time clock, the device time after time synchronization is accumulated through the RTC real-time clock, and when the control slave or the relay device does not receive the data packet, the LED lamp or the LED display screen is operated according to the current device time and the last state control parameter.
When the control slave does not receive the data packet, the method further comprises the following steps of operating the LED lamp or the LED display screen according to the current equipment time and the last state control parameter:
and calculating the accumulated time of the last received data packet, and alarming when the accumulated time is longer than the running time of the accumulated deviation of the time module exceeding a preset deviation value.
The control host sends the current state control parameters of the control host, including time, speed, brightness, playing content and playing to the frame in a wireless mode, the control slave receives the current state control parameters of the control host and the equipment time, and corrects the current state control parameters of the control host and the equipment time by taking the current state control parameters of the control host and the equipment time as the reference so as to achieve the synchronization of the running time of a plurality of equipment. When the control slave machine can not normally receive the control host machine signal, the device time of the control slave machine is automatically accumulated and operated according to the internal high-precision RTC real-time clock, so that the control slave machine can synchronously and normally operate for a long time when the control slave machine can not normally receive the control host machine signal. Therefore, the effective time of time synchronous operation is greatly improved, frequent field treatment and maintenance operations are avoided, and the operation and maintenance cost is reduced.
Example 2
As shown in fig. 5, an embodiment of the present invention provides an LED control system, where the system includes at least one control host 10 and at least one control slave 20, and wireless radio frequency devices 70 and the same clock module are disposed in the control host 10 and the control slave 20; the time module may be a high-precision RTC real-time clock 80, and the control master 10 and the control slave 20 have respective playing contents.
As shown in fig. 7, the control host 10 includes at least a processor 11, a memory 12, and a data bus 13. The data bus 13 is used to implement the connection communication between the processor 11 and the memory 12, and the memory 12 is a computer readable storage medium, which can store at least one computer program that can be read, compiled and executed by the processor 11 to implement a corresponding process flow. In the present embodiment, the memory 11 is a computer-readable storage medium in which a time synchronization control program is executable by the processor 11, and is implemented as follows:
the control slave receives a data packet issued by the control host, acquires time reference data from the data packet, and performs time synchronization update calibration on the control slave;
the control slave machine operates the LED lamp or the LED display screen according to the state control parameters in the data packet after time synchronization updating and calibration;
and the control host and each control slave adopt the same clock module to carry out accumulated updating on the equipment time after time synchronization, and when the control slave does not receive the data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter.
As shown in fig. 6, the LED control system further includes a plurality of relay devices 90, configured to receive the radio frequency signal of the control host 10, amplify and broadcast the radio frequency signal, and the control slave 20 receives the data packet sent from the control host 10 or one of the relay devices 90.
Specifically, the control master 10, each control slave 20, and each relay device 90 integrate the same RTC real-time clock 80, and accumulate the device time after time synchronization through the RTC real-time clock 80, and when the control slave 20 or the relay device 90 does not receive the data packet, operate the LED lamp or the LED display screen 30 according to the current device time and the previous state control parameter.
In use, the control host 10 obtains time reference data from the time service signal source 50 through the time service module 60, and the time service mode may be one or more of satellite time service signals, ntp protocol and mobile communication signals. The control host 10, the relay device 90 and the control slave 20 interact with each other through the wireless radio frequency device 70, the control slave 20 receives a data packet issued by the control host 10 or one relay device 90, acquires time reference data from the data packet to perform time synchronization update calibration on the control slave 20, and the control slave 20 operates the LED lamp or the LED display screen 30 according to state control parameters in the data packet after the time synchronization update calibration; the external mains supply provides operating voltage to the control slave 20, LED luminaire or LED display screen 30 via a power converter 40.
In addition, the control host 10, each control slave 20, and each relay device 90 integrate the same RTC real-time clock 80, and respectively accumulate the device time after time synchronization through the RTC real-time clock 80, and when the control slave 20 or the relay device 90 does not receive a data packet, the LED lamp or the LED display screen 30 is operated according to the current device time and the previous state control parameter.
Example 3
The embodiment of the present invention also provides a computer readable storage medium, on which a time synchronization control program is stored, which when executed by a processor, implements the steps of the time synchronization control method of embodiment 1 above.
According to the time synchronization control method, the LED control system and the readable storage medium thereof, the control host, the relay equipment and the control slave machine are subjected to data interaction in a wireless radio frequency communication mode, the data packet can simultaneously comprise time reference data and state control parameters, each control slave machine is not required to be provided with a satellite time service module, in addition, the control host, the relay equipment and the control slave machine are provided with the same clock module to carry out equipment time accumulation and update, and when time synchronization cannot be realized, equipment time is adopted to carry out state control, so that the effective time of time synchronization operation is greatly improved. According to the invention, a wireless radio frequency networking mode is adopted, the running state of the system is adjusted only by adjusting the control host, and each field device does not need to be adjusted by a person, so that frequent field treatment and maintenance operations are avoided, and the operation and maintenance cost of the LED lamp or the LED display screen is reduced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A time synchronization control method for an LED luminaire or LED display screen, the method comprising:
the control slave receives a data packet issued by the control host, acquires time reference data from the data packet, and performs time synchronization update calibration on the control slave;
the control slave machine operates the LED lamp or the LED display screen according to the state control parameters in the data packet after time synchronization updating and calibration;
the control host and each control slave adopt the same clock module to accumulate and update the equipment time after time synchronization, and when the control slave does not receive the data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter;
the control host and each control slave determine the synchronous update calibration of the equipment time through the same timing code table;
the control host comprises a clock, a storage queue and a timing table, and each control slave comprises a clock; the clock in the control host is used for representing the equipment time of the whole system, the clock in the control slave is used for representing the equipment time of the control slave, the storage queue in the control host is used for storing data, and the timing code table is used for limiting the timing range;
specifically, the steps of determining the synchronous update calibration of the equipment time by the control host and each control slave through the same timing table are as follows:
s1, setting the time limit of the timing code table by a control host according to a preset value;
s2, the control host transmits inquiry information to each control slave respectively, wherein the purpose of the inquiry information is to inquire whether the control slave has data to wait for returning, and the inquiry information at least comprises time reference data, namely the numerical value of a clock when the control host transmits;
s3, after each control slave receives the inquiry information, synchronously controlling clocks in the slave according to time reference data in the inquiry information;
s4, judging whether data need to be replied or not by each control slave; if the control slave has no data to be replied, only returning a response message;
s5, if data need to be replied, the data and the generation time of the data are placed in a reply message and are returned to the control host, and S6 is carried out;
s7, receiving response information or reply information transmitted by each control slave computer by the control master computer, and respectively storing data in the reply information into a storage queue;
s8, judging whether the time limit of the timing code table is reached; if not, returning to S2, and repeating the steps until the time limit of the timing code table is reached;
otherwise, S9 is carried out;
s9, the control host stops receiving the response information or the reply information transmitted by the control slave, and time sequencing is performed on the data in the storage queue by using a sequencing method, so that the aim of time synchronization of the control host and each control slave is fulfilled.
2. The method according to claim 1, wherein before the step of receiving the data packet issued by the control master, the control slave further comprises:
the control slave machine transmits the data packet to all the control slave machines in the area in a wireless radio frequency broadcasting mode, and the data comprises the time reference data and the state control parameters.
3. The method according to claim 1, wherein before the step of receiving the data packet issued by the control master, the control slave further comprises:
the control host acquires the time reference data in one or more modes including satellite time service signals, ntp protocol and mobile communication signals.
4. The time synchronization control method according to claim 1, wherein after the control slave receives the data packet issued by the control master, the method further comprises:
the wireless radio frequency signal of the control host is amplified and broadcast through a plurality of relay devices, and the control slave receives the data packet issued from the control host or one of the relay devices.
5. The time synchronization control method according to claim 4, characterized in that the time synchronization control method further comprises:
and the control host, each control slave and each relay device integrate the same RTC real-time clock, the device time after time synchronization is accumulated through the RTC real-time clock, and when the control slave or the relay device does not receive the data packet, the LED lamp or the LED display screen is operated according to the current device time and the last state control parameter.
6. The time synchronization control method according to claim 1, wherein when the control slave does not receive the data packet, after the step of operating the LED lamp or the LED display screen according to the current device time and the previous state control parameter, the method further comprises:
and calculating the accumulated time of the last received data packet, and alarming when the accumulated time is longer than the running time of the accumulated deviation of the time module exceeding a preset deviation value.
7. The LED control system is characterized by comprising at least one control host and at least one control slave, wherein a wireless radio frequency device and the same clock module are arranged in the control host and the control slave;
the control host also includes a memory, a processor, and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the following:
the control slave receives a data packet issued by the control host, acquires time reference data from the data packet, and performs time synchronization update calibration on the control slave;
the control slave machine operates the LED lamp or the LED display screen according to the state control parameters in the data packet after time synchronization updating and calibration;
and the control host and each control slave adopt the same clock module to carry out accumulated updating on the equipment time after time synchronization, and when the control slave does not receive the data packet, the LED lamp or the LED display screen is operated according to the current equipment time and the last state control parameter.
8. The LED control system of claim 7, further comprising a plurality of relay devices for receiving the wireless radio frequency signal from the control master for amplification and broadcasting, the control slave receiving the data packet issued from the control master or one of the relay devices.
9. A computer readable storage medium, wherein a time synchronization control program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the time synchronization control method according to any one of claims 1-6.
CN202210754418.6A 2022-06-28 2022-06-28 Time synchronization control method, LED control system and readable storage medium thereof Active CN115397002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210754418.6A CN115397002B (en) 2022-06-28 2022-06-28 Time synchronization control method, LED control system and readable storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210754418.6A CN115397002B (en) 2022-06-28 2022-06-28 Time synchronization control method, LED control system and readable storage medium thereof

Publications (2)

Publication Number Publication Date
CN115397002A CN115397002A (en) 2022-11-25
CN115397002B true CN115397002B (en) 2024-01-12

Family

ID=84116597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210754418.6A Active CN115397002B (en) 2022-06-28 2022-06-28 Time synchronization control method, LED control system and readable storage medium thereof

Country Status (1)

Country Link
CN (1) CN115397002B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067986A (en) * 2018-07-26 2018-12-21 努比亚技术有限公司 Synchronous display method, mobile terminal and the readable storage medium storing program for executing of intelligent wearable device
CN112822538A (en) * 2020-12-31 2021-05-18 努比亚技术有限公司 Screen projection display method, screen projection device, terminal and storage medium
WO2021134396A1 (en) * 2019-12-31 2021-07-08 西安诺瓦星云科技股份有限公司 Playing method, device and system and computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067986A (en) * 2018-07-26 2018-12-21 努比亚技术有限公司 Synchronous display method, mobile terminal and the readable storage medium storing program for executing of intelligent wearable device
WO2021134396A1 (en) * 2019-12-31 2021-07-08 西安诺瓦星云科技股份有限公司 Playing method, device and system and computer-readable storage medium
CN112822538A (en) * 2020-12-31 2021-05-18 努比亚技术有限公司 Screen projection display method, screen projection device, terminal and storage medium

Also Published As

Publication number Publication date
CN115397002A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
CN111273951B (en) Electronic price tag management method, electronic terminal and computer readable storage medium
CN109348067B (en) Method for adjusting screen display brightness, mobile terminal and computer readable storage medium
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN109817130B (en) Color temperature regulating method, device and computer readable storage medium
CN112492674B (en) Sleep cycle configuration method, device and computer readable storage medium
CN112822763B (en) Electronic price tag dynamic awakening method, electronic price tag dynamic awakening equipment and computer storage medium
CN112104985B (en) Electronic price tag reservation image brushing method, equipment and computer readable storage medium
CN111880349A (en) Electrochromic display control method, device and computer readable storage medium
CN112105004A (en) Electronic price tag network detection method, device and computer readable storage medium
CN111935849A (en) Information processing method, device and storage medium
CN109521979B (en) Display control method, terminal and computer-readable storage medium
CN109684020B (en) Theme switching method, device and computer readable storage medium
CN109388947B (en) Background management method, device and computer readable storage medium
CN115397002B (en) Time synchronization control method, LED control system and readable storage medium thereof
CN109375982B (en) Mobile terminal desktop icon layout method and device, terminal and readable storage medium
CN113179307B (en) Audio delay control method, equipment and computer readable storage medium
CN115175396A (en) Host and terminal data interaction method, LED control system and storage medium
CN112578978B (en) Window switching control method, device and computer readable storage medium
CN112578985B (en) Display mode setting method, device and computer readable storage medium
CN110287381B (en) Page control node searching method, terminal and computer readable storage medium
CN112000268B (en) Electrochromic control method and device and computer readable storage medium
CN109462688B (en) Terminal, display control method thereof, and computer-readable storage medium
CN108989695B (en) Initial automatic exposure convergence method, mobile terminal and computer-readable storage medium
CN108595087B (en) Display control method, device and computer readable storage medium

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