Method, device, equipment and storage medium for monitoring and restarting LED control card

文档序号:135425 发布日期:2021-10-22 浏览:30次 中文

阅读说明:本技术 监控led控制卡并重启的方法、装置、设备及存储介质 (Method, device, equipment and storage medium for monitoring and restarting LED control card ) 是由 王星辰 谢志君 于 2021-07-21 设计创作,主要内容包括:本发明实施例公开了一种监控LED控制卡并重启的方法、装置、设备及存储介质,该方法包括:通过监控板获取电源输出的电源信号,所述电源信号用于提供电源电压;通过第一接口定时发送特征心跳包到所述监控板;若所述监控板在预设时间内没有收到所述特征心跳包则断开与所述电源的连接;控制所述监控板重新与所述电源连接以重新启动。本发明实施例提供的一种监控LED控制卡并重启的方法通过设置第一接口进行数据反馈,解决了现有技术中LED控制卡或多或少存在死机或者其他异常时无法断开电源的问题,实现了通过接口实现监控LED控制卡的效果。(The embodiment of the invention discloses a method, a device, equipment and a storage medium for monitoring and restarting an LED control card, wherein the method comprises the following steps: acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage; sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time; if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply; and controlling the monitoring board to be connected with the power supply again for restarting. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.)

1. A method for monitoring and restarting an LED control card is characterized by comprising the following steps:

acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage;

sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time;

if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply;

and controlling the monitoring board to be connected with the power supply again for restarting.

2. The method for monitoring and restarting an LED control card as set forth in claim 1 wherein said controlling said monitor board to reconnect to said power supply for restarting comprises:

if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the relay is controlled to be disconnected, and the relay is arranged in the monitoring board and electrically connected with the LED control card;

and controlling the monitoring board to close the relay and be connected with the power supply again for restarting.

3. The method for monitoring and restarting the LED control card according to claim 1, wherein the sending the characteristic heartbeat packet to the monitoring board through the first interface timing comprises:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an IIC interface.

4. The method for monitoring and restarting the LED control card according to claim 1, wherein the sending the characteristic heartbeat packet to the monitoring board through the first interface timing comprises:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an SPI interface.

5. The method for monitoring and restarting the LED control card according to claim 1, wherein the sending the characteristic heartbeat packet to the monitoring board through the first interface timing comprises:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through a UART interface.

6. The method for monitoring and restarting the LED control card according to claim 1, wherein the sending the characteristic heartbeat packet to the monitoring board through the first interface timing comprises:

and sending a characteristic heartbeat packet to the monitoring board at regular time through a USB interface.

7. The method for monitoring and restarting the LED control card according to claim 1, wherein the sending the characteristic heartbeat packet to the monitoring board through the first interface timing comprises:

and sending a characteristic heartbeat packet to the monitoring board at regular time through the network port interface.

8. An apparatus for monitoring and restarting an LED control card, comprising:

the acquisition module is used for acquiring a power supply signal output by a power supply through the monitoring board, wherein the power supply signal is used for providing power supply voltage;

the sending module is used for sending the characteristic heartbeat packet to the monitoring board through the first interface at regular time;

the control module is used for disconnecting the connection with the power supply if the monitoring board does not receive the characteristic heartbeat packet within the preset time;

and the starting module is used for controlling the monitoring board to be connected with the power supply again so as to restart.

9. An electronic device, characterized in that the electronic device comprises:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a method of monitoring and restarting an LED control card as recited in any of claims 1-7.

10. A computer-readable storage medium, on which a computer program is stored, said computer program comprising program instructions, characterized in that the program instructions, when executed by a processor, implement the method of monitoring and restarting an LED control card according to any of claims 1-7.

Technical Field

The embodiment of the invention relates to an LED display technology, in particular to a method, a device, equipment and a storage medium for monitoring and restarting an LED control card.

Background

Due to the implementation of intelligence, more and more LED screens are mounted in various places, various scenes, under various conditions of severe environment, ultrahigh temperature, over-low temperature, unstable voltage and the like in many scenes, the current LED display screen system, in the long-term use process, various abnormal phenomena can occur sometimes, such as playing a computer blue screen, blocking a single box body, leading a unit board to have a dead chip and the like, these abnormal phenomena can all restore the display screen to normal through the power-on reset action, however, the conventional LED display screen system, when the abnormal condition of the LED display screen is monitored remotely, the problem can be solved only by sending a worker to the site to turn off the power input to carry out hard restart, therefore, not only a large amount of manpower and material resources are consumed, but also a large area of black screen is easy to appear, which causes a large influence on display output.

Disclosure of Invention

The invention provides a method, a device, equipment and a storage medium for monitoring and restarting an LED control card, so that the effect of monitoring the LED control card through an interface is realized.

In a first aspect, an embodiment of the present invention provides a method for monitoring and restarting an LED control card, including:

acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage;

sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time;

if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply;

and controlling the monitoring board to be connected with the power supply again for restarting.

Optionally, the controlling the monitor board to be reconnected to the power supply to restart includes:

if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the relay is controlled to be disconnected, and the relay is arranged in the monitoring board and electrically connected with the LED control card;

and controlling the monitoring board to close the relay and be connected with the power supply again for restarting.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an IIC interface.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an SPI interface.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through a UART interface.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through a USB interface.

The sending of the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through the network port interface.

In a second aspect, an embodiment of the present invention further provides a device for monitoring and restarting an LED control card, where the device includes:

the acquisition module is used for acquiring a power supply signal output by a power supply through the monitoring board, wherein the power supply signal is used for providing power supply voltage;

the sending module is used for sending the characteristic heartbeat packet to the monitoring board through the first interface at regular time;

the control module is used for disconnecting the connection with the power supply if the monitoring board does not receive the characteristic heartbeat packet within the preset time;

and the starting module is used for controlling the monitoring board to be connected with the power supply again so as to restart.

In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a method of monitoring and restarting an LED control card as described in any one of the above.

In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, the computer program including program instructions, wherein the program instructions, when executed by a processor, implement the method for monitoring and restarting the LED control card as described in any one of the above.

The embodiment of the invention discloses a method, a device, equipment and a storage medium for monitoring and restarting an LED control card, wherein the method comprises the following steps: acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage; sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time; if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply; and controlling the monitoring board to be connected with the power supply again for restarting. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.

Drawings

Fig. 1 is a flowchart of a method for monitoring and restarting an LED control card according to an embodiment of the present invention;

fig. 2 is a flowchart of a method for monitoring and restarting an LED control card according to a second embodiment of the present invention;

fig. 3 is a schematic structural diagram of a device for monitoring and restarting an LED control card according to a third embodiment of the present invention;

fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first module may be termed a second module, and, similarly, a second module may be termed a first module, without departing from the scope of the present application. The first module and the second module are both modules, but they are not the same module. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.

Example one

Fig. 1 is a flowchart of a method for monitoring and restarting an LED control card according to an embodiment of the present invention, where the method for monitoring and restarting an LED control card according to an embodiment of the present invention is applicable to a situation where an LED control card is monitored, and specifically, the method for monitoring and restarting an LED control card according to an embodiment of the present invention includes:

and step 100, acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage.

In this embodiment, the LED control card is also called LED display screen control card, which is a peripheral device for the LED display screen to convert the display screen data through the PC, is responsible for receiving the image display information from the serial port of the computer, and is a core component of the LED image-text display screen. In particular, the display device is mainly used for displaying videos, pictures and texts, notifications and the like in real time. The full-color large-screen display screen is mainly used indoors or outdoors. The synchronous LED control card system controls the working mode of the LED display screen to be basically equal to that of a computer monitor, maps images on the computer monitor in real time correspondingly at an updating rate of at least 60 frames/second, generally has multi-gray color display capability and can achieve the advertising effect of multimedia. In this embodiment, the power source is 220V ac input power source. The power supply is electrically connected with the monitoring board, the power supply signal is power supply voltage, the power supply outputs 5V power supply voltage to the monitoring board after voltage processing, and the monitoring board transmits the 5V voltage to the LED screen control card.

And step 110, sending a characteristic heartbeat packet to the monitoring board through the first interface at regular time.

In this embodiment, the monitoring board is provided with a relay, the relay on the monitoring board is closed by default, voltage is supplied to the LED screen control card through the monitoring board, and the whole system works normally. Besides the monitoring board and the LED control card are electrically connected, the monitoring board and the LED control card are also connected through a first interface.

Specifically, in an alternative embodiment, the sending the characteristic heartbeat packet to the monitoring board through the first interface at regular time includes: and sending a characteristic heartbeat packet to the monitoring board at fixed time through an IIC interface.

In an alternative embodiment, IIC (Inter-Integrated Circuit) is simply IICBus, so chinese should be called Integrated Circuit bus, which is a serial communication bus using multi-master-slave architecture, developed by philips in the 1980 s for connecting motherboards, embedded systems or mobile phones to low-speed peripherals. The I2C bus is a bus that uses a minimum number of signal lines among various buses and has functions of auto addressing, multi-master clock synchronization, arbitration, and the like. Therefore, the computer system designed by using the I2C bus is very convenient and flexible, has small volume and is widely applied to various practical applications.

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an SPI interface.

In other alternative embodiments, a Serial Peripheral Interface (Serial Peripheral Interface) is a synchronous Peripheral Interface that allows a single-chip to communicate with various Peripheral devices in a Serial manner to exchange information. The peripheral equipment comprises a Flash RAM, a network controller, an LCD display driver, an A/D converter, an MCU and the like. Various systems can be constructed under software control using the SPI. Such as a master controller and several slave controllers, various systems consisting of a master controller and one or several slave I/O devices, etc., wherein several slave controllers are connected to each other to form a multi-host system (distributed system). In most applications, a master controller may be used as a master controller to control data and transfer the data to one or several slave peripheral devices. The slave device can receive or send data only when the master controller sends a command, and the transmission format of the data is that the high bit (MSB) is before and the low bit (LSB) is after. The single master system only has one master controller, and the others are slave controllers

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through a UART interface.

In other alternative embodiments, a Universal Asynchronous Receiver/Transmitter (UART) is commonly referred to as a UART. It converts data to be transmitted between serial communication and parallel communication. As a chip for converting a parallel input signal into a serial output signal, the UART is usually integrated into a connection of other communication interfaces. The UART is a general purpose serial data bus used for asynchronous communications. The bus is in bidirectional communication, and full duplex transmission and reception can be realized. In the embedded design, the UART is used for the communication between the host and the auxiliary device, such as the car audio and the external AP, and the communication with the PC includes the communication with the monitoring debugger and other devices, such as the EEPROM.

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through a USB interface.

In other alternative embodiments, USB is an acronym for Universal Serial Bus (USB), which is a standard for external buses used to specify the connection and communication between computers and external devices. Is an interface technology applied in the field of PC. As a high-speed serial bus, the USB bus has extremely high transmission speed which can meet the application environment requirement of high-speed data transmission, and has the advantages of simple power supply (bus power supply), convenient installation and configuration (supporting plug and play and hot plug), simple expansion port (127 peripheral devices can be expanded at most through a concentrator), diversified transmission modes (4 transmission modes), good compatibility (downward compatibility after product upgrading) and the like.

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through the network port interface.

In other alternative embodiments, the network interface refers to various interfaces of the network device, and the network interface that we are using today is an ethernet interface.

Common types of Ethernet interfaces include RJ-45 interfaces, RJ-11 interfaces, SC fiber interface, FDDI interfaces, AUI interfaces, BNC interfaces, and Console interfaces. Each PORT (PORT) can be connected with 127 devices at the same time, AND supports PLUG-AND-PLAY (PLUG-AND-PLAY) AND HOT PLUG-in (HOT-PLUGING) without turning off the power supply. USB is a transmission specification, and has emerged as 2.0, which supports transmission rates up to 480Mbps, 480 times that of USB 1.1. The former is compatible with USB 1.1 except that the speed is faster, so the periphery, transmission line and connector specification of the USB interface can be used in the past.

And 120, if the monitoring board does not receive the characteristic heartbeat packet within the preset time, disconnecting the power supply.

In this embodiment, in the normal power-on process, the power provides voltage 5V to the control board, the default closure of relay on the control board, voltage gives the LED screen control card again through the control board, the whole set of system normally works, simultaneously LED screen control card, regularly send the characteristic heartbeat package to give the control board through first interface, lead to LED screen control card unusual when the power is unusual or the environment is abominable, then first interface can't send the characteristic heartbeat package and give the control board, can break off the connection with the power this moment, protection circuit safety.

And step 130, controlling the monitoring board to be connected with the power supply again to restart.

In this embodiment, when the disconnection time exceeds the preset time, the LED screen control card controls the monitor board to be connected to the power supply again, so as to ensure the normal supply of the power supply, and restart the system, so that the whole system resumes operation.

The embodiment of the invention discloses a method for monitoring and restarting an LED control card, which comprises the following steps: acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage; sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time; if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply; and controlling the monitoring board to be connected with the power supply again for restarting. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.

Example two

Fig. 2 is a flowchart of a method for monitoring and restarting an LED control card according to a second embodiment of the present invention, where the method for monitoring and restarting an LED control card according to the second embodiment of the present invention is applicable to a situation where an LED control card is monitored, and specifically, the method for monitoring and restarting an LED control card according to the second embodiment of the present invention includes:

and 200, acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage.

In this embodiment, the LED control card is also called LED display screen control card, which is a peripheral device for the LED display screen to convert the display screen data through the PC, is responsible for receiving the image display information from the serial port of the computer, and is a core component of the LED image-text display screen. In particular, the display device is mainly used for displaying videos, pictures and texts, notifications and the like in real time. The full-color large-screen display screen is mainly used indoors or outdoors. The synchronous LED control card system controls the working mode of the LED display screen to be basically equal to that of a computer monitor, maps images on the computer monitor in real time correspondingly at an updating rate of at least 60 frames/second, generally has multi-gray color display capability and can achieve the advertising effect of multimedia. In this embodiment, the power source is 220V ac input power source. The power supply is electrically connected with the monitoring board, the power supply signal is power supply voltage, the power supply outputs 5V power supply voltage to the monitoring board after voltage processing, and the monitoring board transmits the 5V voltage to the LED screen control card.

And step 210, sending a characteristic heartbeat packet to the monitoring board through the first interface at regular time.

In this embodiment, the monitoring board is provided with a relay, the relay on the monitoring board is closed by default, voltage is supplied to the LED screen control card through the monitoring board, and the whole system works normally. Besides the monitoring board and the LED control card are electrically connected, the monitoring board and the LED control card are also connected through a first interface.

Specifically, in an alternative embodiment, the sending the characteristic heartbeat packet to the monitoring board through the first interface at regular time includes: and sending a characteristic heartbeat packet to the monitoring board at fixed time through an IIC interface.

In an alternative embodiment, IIC (Inter-Integrated Circuit) is simply IICBus, so chinese should be called Integrated Circuit bus, which is a serial communication bus using multi-master-slave architecture, developed by philips in the 1980 s for connecting motherboards, embedded systems or mobile phones to low-speed peripherals. The I2C bus is a bus that uses a minimum number of signal lines among various buses and has functions of auto addressing, multi-master clock synchronization, arbitration, and the like. Therefore, the computer system designed by using the I2C bus is very convenient and flexible, has small volume and is widely applied to various practical applications.

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an SPI interface.

In other alternative embodiments, a Serial Peripheral Interface (Serial Peripheral Interface) is a synchronous Peripheral Interface that allows a single-chip to communicate with various Peripheral devices in a Serial manner to exchange information. The peripheral equipment comprises a Flash RAM, a network controller, an LCD display driver, an A/D converter, an MCU and the like. Various systems can be constructed under software control using the SPI. Such as a master controller and several slave controllers, various systems consisting of a master controller and one or several slave I/O devices, etc., wherein several slave controllers are connected to each other to form a multi-host system (distributed system). In most applications, a master controller may be used as a master controller to control data and transfer the data to one or several slave peripheral devices. The slave device can receive or send data only when the master controller sends a command, and the transmission format of the data is that the high bit (MSB) is before and the low bit (LSB) is after. The single master system only has one master controller, and the others are slave controllers

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through a UART interface.

In other alternative embodiments, a Universal Asynchronous Receiver/Transmitter (UART) is commonly referred to as a UART. It converts data to be transmitted between serial communication and parallel communication. As a chip for converting a parallel input signal into a serial output signal, the UART is usually integrated into a connection of other communication interfaces. The UART is a general purpose serial data bus used for asynchronous communications. The bus is in bidirectional communication, and full duplex transmission and reception can be realized. In the embedded design, the UART is used for the communication between the host and the auxiliary device, such as the car audio and the external AP, and the communication with the PC includes the communication with the monitoring debugger and other devices, such as the EEPROM.

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through a USB interface.

In other alternative embodiments, USB is an acronym for Universal Serial Bus (USB), which is a standard for external buses used to specify the connection and communication between computers and external devices. Is an interface technology applied in the field of PC. As a high-speed serial bus, the USB bus has extremely high transmission speed which can meet the application environment requirement of high-speed data transmission, and has the advantages of simple power supply (bus power supply), convenient installation and configuration (supporting plug and play and hot plug), simple expansion port (127 peripheral devices can be expanded at most through a concentrator), diversified transmission modes (4 transmission modes), good compatibility (downward compatibility after product upgrading) and the like.

In other alternative embodiments, said sending the characteristic heartbeat packet to the monitoring board through the first interface timing includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through the network port interface.

In other alternative embodiments, the network interface refers to various interfaces of the network device, and the network interface that we are using today is an ethernet interface.

Common types of Ethernet interfaces include RJ-45 interfaces, RJ-11 interfaces, SC fiber interface, FDDI interfaces, AUI interfaces, BNC interfaces, and Console interfaces. Each PORT (PORT) can be connected with 127 devices at the same time, AND supports PLUG-AND-PLAY (PLUG-AND-PLAY) AND HOT PLUG-in (HOT-PLUGING) without turning off the power supply. USB is a transmission specification, and has emerged as 2.0, which supports transmission rates up to 480Mbps, 480 times that of USB 1.1. The former is compatible with USB 1.1 except that the speed is faster, so the periphery, transmission line and connector specification of the USB interface can be used in the past.

And step 220, if the monitoring board does not receive the characteristic heartbeat packet within the preset time, disconnecting the power supply.

In this embodiment, in the normal power-on process, the power supply provides 5V of voltage to the monitoring board, the relay on the monitoring board is closed by default, the voltage passes through the monitoring board and then is provided to the LED screen control card, the whole system works normally, meanwhile, the LED screen control card sends a characteristic heartbeat packet to the monitoring board at regular time through the first interface, when the power supply is abnormal or the environment is severe, the LED screen control card is abnormal, the first interface cannot send the characteristic heartbeat packet to the monitoring board, when the monitoring board does not receive the heartbeat packet data sent by the LED control card through the first interface after exceeding the preset time, the LED control card is considered to be abnormal in working, the relay is turned off actively, and therefore the LED screen power supply control card is turned off.

Step 230, if the monitoring board does not receive the characteristic heartbeat packet within the preset time, controlling a relay to be disconnected, wherein the relay is arranged in the monitoring board and electrically connected with the LED control card; and controlling the monitoring board to close the relay and be connected with the power supply again for restarting.

In this embodiment, when the off-time exceeds the preset time, the LED screen control card controls the monitor board to be connected to the power supply again, then the relay is closed, the LED screen control card is powered on again, and the system is restarted, so that the system operation is recovered. Therefore, the normal supply of the power supply is ensured, the system is restarted, and the whole system recovers to work.

The embodiment of the invention discloses a method for monitoring and restarting an LED control card, which comprises the following steps: acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage; sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time; if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply; and controlling the monitoring board to be connected with the power supply again for restarting. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.

EXAMPLE III

The device for monitoring and restarting the LED control card provided by the embodiment of the invention can implement the method for monitoring and restarting the LED control card provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Fig. 3 is a schematic structural diagram of an apparatus 300 for monitoring and restarting an LED control card according to an embodiment of the present invention. Referring to fig. 3, the apparatus 300 for monitoring and restarting the LED control card according to the embodiment of the present invention may specifically include:

an obtaining module 310, configured to obtain, through a monitoring board, a power signal output by a power supply, where the power signal is used to provide a power supply voltage;

a sending module 320, configured to send a characteristic heartbeat packet to the monitoring board through a first interface at regular time;

the control module 330 is configured to disconnect the power supply if the monitoring board does not receive the characteristic heartbeat packet within a preset time;

and the starting module 340 is used for controlling the monitoring board to be connected with the power supply again for restarting.

Optionally, the controlling the monitor board to be reconnected to the power supply to restart includes:

if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the relay is controlled to be disconnected, and the relay is arranged in the monitoring board and electrically connected with the LED control card;

and controlling the monitoring board to close the relay and be connected with the power supply again for restarting.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an IIC interface.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through an SPI interface.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at fixed time through a UART interface.

Optionally, the sending the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through a USB interface.

The sending of the feature heartbeat packet to the monitoring board at regular time through the first interface includes:

and sending a characteristic heartbeat packet to the monitoring board at regular time through the network port interface.

The embodiment of the invention discloses a device for monitoring and restarting an LED control card, which comprises: the acquisition module is used for acquiring a power supply signal output by a power supply through the monitoring board, wherein the power supply signal is used for providing power supply voltage; the sending module is used for sending the characteristic heartbeat packet to the monitoring board through the first interface at regular time; the control module is used for disconnecting the connection with the power supply if the monitoring board does not receive the characteristic heartbeat packet within the preset time; and the starting module is used for controlling the monitoring board to be connected with the power supply again so as to restart. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.

Example four

Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 4, the electronic device 400 includes a memory 410 and a processor 420, the number of the processors 420 in the electronic device 400 may be one or more, and one processor 420 is taken as an example in fig. 4; the memory 410 and the processor 420 in the server may be connected by a bus or other means, and fig. 4 illustrates the connection by the bus as an example.

The memory 410 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for monitoring and restarting the LED control card in the embodiment of the present invention (for example, the obtaining module 310, the sending module 320, the control module 330, and the starting module 340 in the device 300 for monitoring and restarting the LED control card), and the processor 420 executes various functional applications and data processing of the server/terminal/server by running the software programs, instructions, and modules stored in the memory 410, so as to implement the method for monitoring and restarting the LED control card.

Wherein the processor 420 is configured to run the computer program stored in the memory 410, and implement the following steps:

acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage;

sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time;

and if the monitoring board does not receive the characteristic heartbeat packet within the preset time, disconnecting the power supply.

And controlling the monitoring board to be connected with the power supply again for restarting.

In one embodiment, the computer program of the electronic device provided in the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in the method for monitoring and restarting the LED control card provided in any embodiment of the present invention.

The memory 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 410 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 non-volatile solid state storage device. In some examples, the memory 410 may further include memory located remotely from the processor 420, which may be connected to a server/terminal/server through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The embodiment of the invention discloses an electronic device for monitoring and restarting an LED control card, which is used for executing the following method: acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage; sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time; if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply; and controlling the monitoring board to be connected with the power supply again for restarting. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.

EXAMPLE five

An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for monitoring and restarting an LED control card, where the method includes:

acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage;

sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time;

and if the monitoring board does not receive the characteristic heartbeat packet within the preset time, disconnecting the power supply.

And controlling the monitoring board to be connected with the power supply again for restarting.

Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in a method for monitoring and restarting an LED control card provided by any embodiment of the present invention.

The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The embodiment of the invention discloses a storage medium for monitoring and restarting an LED control card, which is used for executing the following method: acquiring a power supply signal output by a power supply through a monitoring board, wherein the power supply signal is used for providing power supply voltage; sending a characteristic heartbeat packet to the monitoring board through a first interface at fixed time; if the monitoring board does not receive the characteristic heartbeat packet within the preset time, the monitoring board is disconnected from the power supply; and controlling the monitoring board to be connected with the power supply again for restarting. According to the method for monitoring and restarting the LED control card, provided by the embodiment of the invention, the data feedback is carried out by setting the first interface, so that the problem that the power supply cannot be cut off when the LED control card is halted more or less or has other abnormity in the prior art is solved, and the effect of monitoring the LED control card through the interface is realized.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种串口通讯系统、串口通讯方法及智能门锁

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!