A method, terminal and storage medium for controlling LED screen display content
By combining the MQTT protocol and Web services, the problem of strong database dependence on LED screen display content in existing technologies has been solved, enabling real-time information transmission and remote control, and improving the reliability and security of the system.
Patent Information
- Application Number
- CN202410583213.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-05-11
AI Technical Summary
Existing technologies rely heavily on databases when controlling the content displayed on LED screens, which can lead to database failures or slow responses that affect the real-time performance and accuracy of the data.
The MQTT client establishes a connection with the MQTT broker server, subscribes to preset topics, receives and parses target screen information, and sends the parsed data to the target LED screen. Combined with Web services, data format processing and user terminal verification are performed to achieve real-time information transmission and remote control.
It enables real-time updates and remote control of LED screen content, reduces reliance on databases, and improves system reliability and data transmission security.
Smart Images

Figure CN118363554B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of LED application technology, and in particular relates to a method, a terminal and a storage medium for controlling content displayed on an LED screen. Background Art
[0002] LED (light emitting diode) display is a flat panel display composed of small LED module panels. LED display screens are generally used to display various information such as text, images, videos, and video signals. With the rapid development of technology, LED display screens have been widely used in various fields as a new information system. In order to ensure the accuracy of LED display screens with the rapid development of technology, a reliable control method is often configured for LED display screens.
[0003] A method and system for controlling the display content of an LED screen is disclosed (publication number CN109857353B). The method includes: generating an operation instruction based on ID information and LED control card parameters; storing the operation instruction in an instruction table and updating the instruction table data; generating a data update message after the database updates the instruction table data, and generating a control instruction based on the data update message; receiving the control instruction, obtaining the data update message of the LED screen control data table in the database, and after obtaining the data update message, controlling the display content of the LED screen according to the data update message. It can be seen that the method is to set up multiple secure isolation networks through an LED dedicated server, and update the instruction table data through a database, and then update the data to the LED screen through a trigger, so as to realize remote control of the LED screen display in different areas to realize the playback of specified content and the release of information. However, this method is highly dependent on the database. Once the database fails or responds slowly, it may affect the real-time and accuracy of the data. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method, a terminal and a storage medium for controlling content displayed on an LED screen.
[0005] In a first aspect, the present invention provides a method for controlling content displayed on an LED screen, comprising:
[0006] Establish a connection between the Web service configured on the MQTT client and the MQTT proxy server, and subscribe to the preset topic on the MQTT proxy server;
[0007] The web service receives the target screen information related to the preset topic published by the MQTT proxy server;
[0008] The Web service reads the corresponding configuration file according to the received target screen information, parses the target screen information according to the configuration file, and sends the parsed display data to the target LED screen according to the parsing result;
[0009] The target LED screen analyzes the received display data and displays the analyzed display data.
[0010] A further improvement of the technical solution is that before establishing a connection with the MQTT proxy server, a configuration file of the target LED screen is created on the MQTT client, and the configuration file includes the IP address, port number and location for displaying the display data of the target LED screen.
[0011] A further improvement of the technical solution is that after parsing the target screen information, the Web service sends the parsed display data to the target LED screen according to a preset data format or protocol.
[0012] A further improvement of the technical solution also includes a user terminal that establishes a connection with a Web service configured on the MQTT client, and the user terminal can send instructions to update the display content on the target LED screen, adjust the display effect of the target LED screen, and adjust the number of target LED screens.
[0013] A further improvement of the technical solution is that before the user terminal establishes a connection with the Web service configured on the MQTT client, after the Web service receives the request from the user terminal, the Web service verifies the user name and password of the user terminal. Only after the verification is passed can the user terminal send instructions to the Web service.
[0014] A further improvement of the technical solution also includes the user terminal sending a query request to the Web service, and sending a query instruction to the Web service after verification, so as to view and operate the target LED screen through the Web service.
[0015] In a second aspect, a terminal is provided, including:
[0016] processor, memory, wherein:
[0017] The memory is used to store computer programs.
[0018] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0019] According to a third aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.
[0020] The beneficial effect of the present invention is that the present invention establishes a connection between the Web service configured on the MQTT client and the MQTT proxy server, with the aim of realizing real-time information transmission through the MQTT protocol to ensure real-time update of the target LED screen display data; and the present invention can be integrated with other systems or devices (user terminals) through Web services to realize data interaction and remote control.
[0021] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0024] Figure 2 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0027] The key terms appearing in the present invention are explained below.
[0028] MQTT, Message Queuing Telemetry Transport, is an instant messaging protocol developed by IBM and is likely to become an important part of the Internet of Things. The protocol supports all platforms and can connect almost all networked objects to the outside world. It is used as a communication protocol for sensors and actuators. The MQTT protocol is designed for communication between a large number of remote sensors and control devices with limited computing power and working on low-bandwidth, unreliable networks. It has the following main features: 1. Use the publish / subscribe message model to provide one-to-many message publishing and decouple applications; 2. Message transmission with load content shielding; 3. Use TCP / IP to provide network connection; 4. Small transmission, low overhead (fixed-length header is 2 bytes), minimized protocol exchange to reduce network traffic; 5. Use the Last Will and Testament features to notify relevant parties of abnormal client interruptions.
[0029] The method for controlling the LED screen to display content provided by the embodiment of the present invention is executed by a computer device (such as an MQTT client).
[0030] Figure 1 The following is a schematic flow chart of a method according to an embodiment of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.
[0031] like Figure 1 As shown, the method includes:
[0032] Step 110, establishing a connection between the Web service configured on the MQTT client and the MQTT proxy server, and subscribing to a preset topic on the MQTT proxy server;
[0033] Step 120, the Web service receives the target screen information related to the preset topic published by the MQTT proxy server;
[0034] Step 130, the Web service reads a corresponding configuration file according to the received target screen information, parses the target screen information according to the configuration file, and sends the parsed display data to the target LED screen according to the parsing result;
[0035] Step 140: the target LED screen parses the received display data and displays the parsed display data.
[0036] To facilitate understanding of the present invention, the method for controlling the content displayed on an LED screen provided by the present invention is further described below based on the principle of the method for controlling the content displayed on an LED screen of the present invention and in combination with the process of controlling the content displayed on an LED screen in an embodiment.
[0037] Specifically, the method for controlling the LED screen to display content includes:
[0038] First, before establishing a connection with the MQTT proxy server, it is also necessary to create a configuration file for the target LED screen on the MQTT client. The configuration file includes the IP address, port number, and location for displaying the display data of the target LED screen. It is also necessary to configure the address and port number of the MQTT proxy server, as well as the IP address and port number of the Web service. The configuration file can be a text file. Among them, the Web service, as an interface for receiving and sending target screen information, needs to be reasonably designed and implemented. Clear interface specifications need to be defined, including the format of input and output data, the processing method of request responses, etc., to ensure compatibility and interoperability with other systems.
[0039] Since the configuration file contains important information about the target LED screen, it is necessary to ensure that the format of the configuration file is correct and the logic is clear. It is necessary to define a clear configuration file format and parsing logic to ensure that the data in the configuration file can be correctly read and parsed. By reading the configuration file, the communication method with the target LED screen and the display format of the display data can be dynamically determined.
[0040] After that, start the MQTT client and Web service, start the MQTT client and connect to the MQTT proxy server (the MQTT proxy server and the MQTT client interact and transmit data through the MQTT protocol to ensure the security of data transmission). After the connection is successful, subscribe to the topic related to the target screen to receive relevant information of the target screen; start the Web service and enable it to receive the target screen information published by the MQTT proxy server. The Web service parses the received target screen information according to the information in the configuration file and displays the parsed display data on the target LED screen; Web service is a network-based distributed application that can communicate across platforms and languages. Through Web services, it can be easily integrated with other systems or devices to achieve data interaction and remote control.
[0041] In order to ensure the security of data transmission and storage, after parsing the target screen information, the Web service sends the parsed display data to the target LED screen according to the preset data format or protocol, that is, the data is processed through appropriate encryption and security measures.
[0042] In addition, the method also includes a user terminal that establishes a connection with the Web service configured on the MQTT client, and the user terminal can send instructions to update the display content on the target LED screen, adjust the display effect of the target LED screen, and adjust the number of target LED screens. The user terminal can more conveniently obtain the information displayed on the target LED screen, thereby enhancing the user experience.
[0043] Before the user terminal establishes a connection with the Web service configured on the MQTT client, the Web service verifies the user name and password of the user terminal after receiving the request from the user terminal. Only after the verification is passed can the user terminal send instructions to the Web service to ensure the security of the content displayed on the target LED screen.
[0044] In addition, the method also includes the user terminal sending a query request to the Web service, and sending a query instruction to the Web service after verification, and viewing and operating the target LED screen through the Web service.
[0045] In addition, an error handling mechanism is implemented throughout the workflow to handle possible abnormal situations in a timely manner. At the same time, the system also records operation logs for troubleshooting and performance optimization.
[0046] Figure 2 A schematic diagram of the structure of a terminal 200 provided in an embodiment of the present invention. The terminal 200 can be used to execute the method for controlling the LED screen display content provided in an embodiment of the present invention. The terminal 200 can be an MQTT client.
[0047] The terminal 200 may include: a processor 210, a memory 220 and a communication module 230. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0048] The memory 220 can be used to store the execution instructions of the processor 210, and the memory 220 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 220 are executed by the processor 210, the terminal 200 can perform some or all of the steps in the following method embodiments.
[0049] The processor 210 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 220, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 210 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0050] The communication module 230 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0051] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0052] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0053] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0054] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.
[0055] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0056] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0057] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A method for controlling the display content of an LED screen, characterized in that: include: Establish a connection between the Web service configured on the MQTT client and the MQTT proxy server, and subscribe to the preset topic on the MQTT proxy server; The web service receives the target screen information related to the preset topic published by the MQTT proxy server; The Web service reads the corresponding configuration file according to the received target screen information, parses the target screen information according to the configuration file, and sends the parsed display data to the target LED screen according to the parsing result; The target LED screen analyzes the received display data and displays the analyzed display data; Before establishing a connection with the MQTT proxy server, a configuration file of the target LED screen is created on the MQTT client. The configuration file includes the IP address, port number and location of the target LED screen for displaying the display data. After parsing the target screen information, the Web service sends the parsed display data to the target LED screen according to a preset data format or protocol; Also included is a user terminal that establishes a connection with a Web service configured on the MQTT client, and the user terminal is capable of sending instructions to update display content on a target LED screen, adjust a display effect of the target LED screen, and adjust the number of target LED screens; Before the user terminal establishes a connection with the Web service configured on the MQTT client, the Web service verifies the user name and password of the user terminal after receiving the request from the user terminal. The user terminal can send instructions to the Web service only after the verification is passed; It also includes a user terminal sending a query request to a Web service, and after verification, sending a query instruction to the Web service, and viewing and operating a target LED screen through the Web service.
2. A terminal, characterized in that: include: processor; A memory for storing execution instructions of the processor; Wherein, the processor is configured to execute the method of claim 1.
3. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to claim 1 is implemented.
