CN113766009A - Lamp panel control method, system, device and storage medium - Google Patents
Lamp panel control method, system, device and storage medium Download PDFInfo
- Publication number
- CN113766009A CN113766009A CN202110904963.4A CN202110904963A CN113766009A CN 113766009 A CN113766009 A CN 113766009A CN 202110904963 A CN202110904963 A CN 202110904963A CN 113766009 A CN113766009 A CN 113766009A
- Authority
- CN
- China
- Prior art keywords
- data
- instruction information
- instruction
- coding
- serial port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000004806 packaging method and process Methods 0.000 claims abstract description 15
- 230000011664 signaling Effects 0.000 claims abstract description 10
- 238000004590 computer program Methods 0.000 claims description 19
- 238000012795 verification Methods 0.000 claims description 8
- 238000004458 analytical method Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000006837 decompression Effects 0.000 claims description 4
- 238000012216 screening Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 4
- 230000036632 reaction speed Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 239000000178 monomer Substances 0.000 description 2
- 238000012856 packing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09F—DISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
- G09F9/00—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements
- G09F9/30—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements
- G09F9/33—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements being semiconductor devices, e.g. diodes
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0057—Block codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Selective Calling Equipment (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application relates to the field of lighting control, in particular to a lamp panel control method, a system, a device and a storage medium, wherein the method comprises the steps of obtaining an initial control instruction, and coding the initial control instruction according to a first preset serial port protocol to obtain coding instruction information, wherein the coding instruction information comprises header data, middle data and tail data; packaging the coded instruction information according to a second preset serial port protocol to obtain an instruction information data packet, and outputting the instruction information data packet; acquiring a command information data packet, decompressing the command information data packet according to a second preset serial port protocol, starting to store intermediate data if header data is decompressed, and ending the storage of the intermediate data if tail data is decompressed; and acquiring intermediate data, analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal, and controlling the lamp panel according to the control signal. This application has the effect that promotes lamp plate control's use experience nature.
Description
Technical Field
The present disclosure relates to the field of lighting control, and in particular, to a method, a system, a device, and a storage medium for controlling a lamp panel.
Background
At present, in an LED (Light Emitting Diode) display screen control system, an LED display screen is generally formed by splicing a plurality of LED boxes, each LED box includes a receiving card (or called LED display screen control board) and a plurality of LED lamp panels electrically connected to the receiving card, and some LED boxes of the LED display screen may also be configured with a patch panel (or called Hub card) to connect the plurality of LED lamp panels to the patch card.
The lamp plate control of correlation technique mostly adopts mechanical switch to control, also promptly, the bright of manual press switch control lamp plate goes out, though this kind of control mode uses fairly simplely, but control mode shows a little more singly, uses experience nature relatively poor.
In view of the above-mentioned related art, the inventor thinks that the control method of the related art is relatively single and the user experience is poor.
Disclosure of Invention
In order to improve the use experience of lamp panel control, the application provides a lamp panel control method, a system, a device and a storage medium.
In a first aspect, the application provides a lamp panel control method, which adopts the following technical scheme:
a lamp panel control method comprises the following steps:
acquiring an initial control instruction, and encoding the initial control instruction according to a first preset serial port protocol to obtain encoding instruction information, wherein the encoding instruction information comprises header data, middle data and tail data;
packaging the coded instruction information according to a second preset serial port protocol to obtain an instruction information data packet, and outputting the instruction information data packet;
acquiring the instruction information data packet, decompressing the instruction information data packet according to the second preset serial port protocol, starting to store the intermediate data if the header data is decompressed, and ending to store the intermediate data if the tail data is decompressed;
and acquiring the intermediate data, analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal, and controlling the lamp panel according to the control signal.
By adopting the technical scheme, the method comprises the steps of obtaining an initial control instruction, coding the initial control instruction to obtain coding instruction information, wherein the coding instruction information comprises header data, middle data and tail data, packaging the coding instruction information to obtain an instruction information data packet and outputting the instruction information data packet, decompressing the instruction information data packet, starting to store the middle data when the header data is decompressed, ending to store the middle data when the tail data is decompressed, analyzing the middle data to obtain a control signal, and controlling the lamp panel by using the control signal; compared with the mechanical control of the related art, the use experience of the lamp panel control can be improved.
Optionally, the outputting the instruction information data packet specifically includes:
presetting an output time interval threshold, and judging whether the time interval between the output time of the previous instruction information data packet and the output time of the current instruction information data packet is within the preset output time interval threshold or not;
if so, outputting the instruction information data packet;
and if not, not outputting the instruction information data packet.
By adopting the technical scheme, when the instruction information data packet is transmitted, whether the interval between the previous transmission time and the current transmission time is within the range of the preset output time interval threshold value or not is judged by presetting the output time interval threshold value, if so, the instruction information data packet is output, otherwise, the instruction information data packet is not output, and further, the aim of influencing the signal reaction speed can be fulfilled.
Optionally, the preset output time interval threshold is set to 0.1ms to 0.3 ms.
By adopting the technical scheme, the preset output time interval threshold is set to be 0.1ms-0.3ms, so that the aim of influencing the reaction speed of the signal can be further fulfilled.
Optionally, the header data represents data information to be sent, and the footer data represents data information to be received.
By adopting the technical scheme, the header data is set as the sending data information, and the tail data is set as the receiving data information, so that the receiving and sending of the instruction information data packet can be determined, and the monitoring is facilitated.
Optionally, the encoding the initial control instruction according to a first preset serial protocol to obtain encoded instruction information specifically includes:
acquiring a coding request instruction, verifying and analyzing the coding request instruction, if the verification is successful, continuing to execute, and if the verification is wrong, returning error information;
screening and calling an encoding rule from an encoding rule database according to a first preset serial port protocol;
and coding the initial control instruction according to the coding rule, and outputting the obtained coding instruction information.
By adopting the technical scheme, the coding request instruction is verified and analyzed, if the verification is successful, the coding rule is screened and called from the coding rule database, the called coding rule is output, and if the verification is unsuccessful, error information is returned, so that the coding success rate of the initial control instruction can be improved.
The second aspect, the application provides a lamp plate control system adopts following technical scheme:
a lamp panel control system, comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring an initial control instruction and coding the initial control instruction according to a first preset serial port protocol to obtain coding instruction information, and the coding instruction information comprises header data, middle data and tail data;
the packaging module is used for packaging the coding instruction information according to a second preset serial port protocol to obtain an instruction information data packet and outputting the instruction information data packet;
the decompression module is used for decompressing the instruction information data packet according to the second preset serial port protocol, starting to store the intermediate data if the header data is decompressed, and ending to store the intermediate data if the tail data is decompressed;
and the analysis module is used for analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal and controlling the lamp panel according to the control signal.
By adopting the technical scheme, the method comprises the steps of obtaining an initial control instruction, coding the initial control instruction to obtain coding instruction information, wherein the coding instruction information comprises header data, middle data and tail data, packaging the coding instruction information to obtain an instruction information data packet and outputting the instruction information data packet, decompressing the instruction information data packet, starting to store the middle data when the header data is decompressed, ending to store the middle data when the tail data is decompressed, analyzing the middle data to obtain a control signal, and controlling the lamp panel by using the control signal; compared with the mechanical control of the related art, the use experience of the lamp panel control can be improved.
In a third aspect, the present application provides a computer apparatus, which adopts the following technical solution:
a computer apparatus comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, when loaded with the computer program, performing the method of the first aspect.
By adopting the technical scheme, the computer program is generated by the method of the first aspect and stored in the memory so as to be loaded and executed by the processor, so that the computer device is manufactured according to the memory and the processor, and the use by a user is facilitated.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium having stored thereon a computer program which, when loaded by a processor, performs the method of the first aspect.
By adopting the technical scheme, the computer program is generated by the method of the first aspect and stored in the computer readable storage medium so as to be loaded and executed by the processor, and the computer program can be conveniently read and stored through the computer readable storage medium.
In summary, the present application includes at least one of the following beneficial technical effects:
1. compared with the mechanical switch control lamp panel in the related art, the application can improve the use experience of the lamp panel control;
2. by presetting an output time interval threshold value and judging whether the interval between the previous transmission time and the current transmission time is within the preset output time interval threshold value range, the aim of influencing the signal response speed can be fulfilled.
Drawings
Fig. 1 is a schematic view of an overall method flow of a lamp panel control method according to the present application.
Fig. 2 is a flowchart illustrating an encoding method of an initial control command according to the present application.
Fig. 3 is a flowchart illustrating a method for outputting a command information packet according to the present application.
Fig. 4 is a flowchart illustrating a method of intermediate data parsing according to the present application.
Fig. 5 is an overall system framework schematic diagram of the lamp panel control system of the present application.
Description of reference numerals: 1. an acquisition module; 2. a packaging module; 3. a decompression module; 4. and an analysis module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to fig. 1-5 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
When the lamp panel is used, the lamp panel is generally controlled by the control device to be on or off, the control device is provided with a transmitting end for transmitting a control signal, and the lamp panel is provided with a receiving end for receiving the control signal transmitted by the transmitting end.
The embodiment of the application discloses a lamp panel control method. Referring to fig. 1, the method includes:
s1: the method comprises the steps of obtaining an initial control instruction, and coding the initial control instruction according to a first preset serial port protocol to obtain coding instruction information, wherein the coding instruction information comprises header data, middle data and tail data.
Specifically, in this embodiment, the control device may adopt an APP installed on a remote controller or a terminal, and then obtain an initial control instruction through the remote controller or the APP, for example, a switch instruction, and encode the obtained switch instruction according to a first preset serial port protocol, the first preset serial port protocol may adopt a TCP/IP protocol, so as to obtain encoded instruction information, the encoded instruction information may include header data, middle data, and footer data, in this embodiment, the header data may represent to send data information, the middle data may represent to an initial control instruction, the footer data may represent to receive information.
More specifically, referring to fig. 2, in the present embodiment, the method for encoding the switch command using the TCP/IP protocol includes:
s11: and acquiring the coding request instruction, verifying and analyzing the coding request instruction, if the verification is successful, continuing to execute, and if the verification is wrong, returning error information.
Specifically, in this embodiment, when the encoding request instruction is acquired, the encoding request instruction is recorded according to a preset recording unit, and a log file is generated according to a preset log generation unit.
S12: and screening and calling the coding rule from the coding rule database according to the first preset serial port protocol.
Specifically, in this embodiment, the encoding rules may include a single-body encoding rule, a multi-body encoding rule, and a special-class encoding rule.
When the initial control instruction is encoded by using the single encoding rule, the method specifically includes:
selecting a monomer coding rule, analyzing the monomer coding rule and judging the number of code segments;
acquiring a code segment, judging whether the code segment exists, if so, continuing to execute, and if not, outputting a code;
judging whether the code segment is a reference code, if so, performing reference code splicing, returning to the step of obtaining the code segment after the reference code splicing is successful, and if not, obtaining a reference code splicing result and obtaining a maximum sequence code;
and assembling the reference code splicing result and the maximum sequence code to obtain a coding result, and outputting the coding result.
When the initial control instruction is encoded by using the multi-body encoding rule, the method specifically includes:
selecting a multi-body coding rule, analyzing the multi-body coding rule and judging the number of code segments;
acquiring a code segment, judging whether the code segment exists, if so, continuing to execute, and if not, outputting a code;
judging whether the code segment is a reference code, if so, performing reference code splicing, returning to the step of obtaining the code segment after the reference code splicing is successful, and if not, continuing to execute;
judging whether the number of the segments is empty, if so, acquiring a reference code splicing result, acquiring a maximum sequence code, and continuing to execute, otherwise, acquiring a reference code splicing result and continuing to execute;
and splicing the reference code and the sequence code and returning to the step of acquiring the code segment.
When the initial control instruction is encoded by using the special type encoding rule, the method specifically includes:
selecting a special type coding rule, analyzing the special type coding rule and judging the number of code segments;
acquiring a code segment, judging whether the code segment exists, if so, continuing to execute, and if not, outputting a code;
judging whether the code segment is a reference code, if so, performing reference code splicing, returning to the step of obtaining the code segment after the reference code splicing is successful, and if not, continuing to execute;
judging whether the code segment is empty, if so, continuing execution, otherwise, acquiring a reference code splicing result, splicing the reference code splicing result with the first bit of the current code, and continuing execution;
acquiring a reference code splicing result, acquiring a maximum sequence code, and continuing execution;
and (4) code splicing, judging whether the batch items exist, if so, adding batch special symbols after the current code, then returning to the step of obtaining reference code splicing results, and if not, directly outputting the coding results.
S13: and coding the initial control instruction according to the coding rule, and outputting the obtained coding instruction information.
In this embodiment, the obtained initial control command may also be encoded by using a knob encoder.
S2: and packaging the coded instruction information according to a second preset serial port protocol to obtain an instruction information data packet, and outputting the instruction information data packet.
Specifically, the encoding instruction information is encapsulated and packaged by using a second preset serial port protocol, in this embodiment, the second preset serial port protocol may adopt a communication control protocol, and the communication control protocol here may adopt a PPP/HDLC protocol, so as to obtain an instruction information data packet.
In this embodiment, a transmitting terminal is provided on the control device or the APP, and the obtained instruction information packet is output through the transmitting terminal.
Specifically, referring to fig. 3, in this embodiment, when outputting the command information packet, the method specifically includes:
s21: and presetting an output time interval threshold, and judging whether the time interval between the output time of the previous instruction information data packet and the output time of the current instruction information data packet is within the preset output time interval threshold.
In this embodiment, the preset output time interval threshold may be set to 0.1ms to 0.3ms, specifically set according to the content size of the signal and the interference degree, and the embodiment takes the setting of 0.1ms as an example.
S22: and if so, outputting the command information data packet.
S23: if not, the instruction information data packet is not output.
Furthermore, the effect of influencing the signal reaction speed can be realized by presetting the output time interval threshold.
S3: and acquiring the instruction information data packet, decompressing the instruction information data packet according to the second preset serial port protocol, starting to store the intermediate data if the header data is decompressed, and ending to store the intermediate data if the tail data is decompressed.
Specifically, in this embodiment, the instruction information data packet is obtained through the receiving end of the lamp panel, and is decompressed according to the PPP/HDLC protocol.
In this embodiment, the rule for decompressing the command information packet by using the PPP/HDLC protocol includes:
if the header data is decompressed, the intermediate data is stored;
and if the table tail data is decompressed, finishing the storage of the intermediate data.
S4: and acquiring the intermediate data, analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal, and controlling the lamp panel according to the control signal.
Specifically, in this embodiment, the information retrieval unit is used to retrieve the stored intermediate data, and the retrieved intermediate data is analyzed according to the third preset serial port protocol, which may adopt a Modbus protocol, so as to obtain a control signal, and the lamp panel is controlled according to the obtained control signal.
Referring to fig. 4, in this embodiment, a plurality of threads, for example, a main thread, a serial thread, a protocol thread, and a data thread, are involved in analyzing intermediate data using a Modbus protocol, and the specific analysis using the Modbus protocol includes:
s41: the main thread is used for starting a serial port thread, a protocol thread and a data thread, analyzing serial port configuration data and reading multi-serial port information;
s42: the serial port thread is used for starting according to the command of the main thread and entering event message circulation;
s43: the protocol thread is used for starting according to the command of the main thread, determining a serial port number according to the configured serial port information, and storing the Modbus command stored in the Modbus list of the serial port thread into the QMODbusComList list of the protocol thread;
s44: the data thread is used for starting according to the command of the main thread, analyzing the intermediate data, detecting whether the QComDataList stores data or not in real time, if so, analyzing the control signal, processing the analyzed control signal, and if not, not processing the control signal.
The implementation principle of the lamp panel control method in the embodiment of the application is as follows: the method comprises the steps of obtaining a lamp panel switch instruction by using a remote controller or an APP, coding the switch instruction according to a TCP/IP protocol, obtaining coding instruction information, packaging and packaging the coding instruction information according to a PPP/HDLC protocol to obtain an instruction information data packet, outputting the obtained instruction information data packet through a transmitting end of the remote controller or the APP, receiving the instruction information data packet through a receiving end of the lamp panel, decompressing the instruction information data packet according to the PPP/HDLC protocol, starting to store intermediate data when header data is decompressed, finishing storing the intermediate data when tail data is decompressed, calling the stored intermediate data, analyzing the intermediate data according to a Modbus protocol to obtain a control signal, and controlling the lamp panel according to the obtained control signal.
The embodiment of the application discloses lamp plate control system, refer to fig. 5, and it is including obtaining module 1, packing module 2, decompressing module 3 and analysis module 4, wherein, packing module 2 respectively with obtain module 1 and decompress module 3 and communicate, and analysis module 4 and decompress module 3 and communicate.
Specifically, in this embodiment, the obtaining module 1 is configured to obtain an initial control instruction, and encode the initial control instruction according to a first preset serial port to obtain encoded instruction information, where the encoded instruction information includes header data, middle data, and footer data; the packaging module 2 is used for packaging the coded instruction information according to a second preset serial port protocol to obtain an instruction information data packet and outputting the instruction information data packet; the decompression module 3 is used for decompressing the instruction information data packet according to a second preset serial port protocol, if the header data is decompressed, the intermediate data is stored, and if the tail data is decompressed, the storage of the intermediate data is finished; the analysis module 4 is used for analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal, and controlling the lamp panel according to the control signal.
When the lamp panel control system is used, the lamp panel control method of the embodiment is applied.
The embodiment of the application discloses a computer device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein when the processor loads the computer program, the lamp panel control method of the embodiment is executed.
The computer device may be a desktop computer, a notebook computer, or a cloud server, and the computer device includes but is not limited to a processor and a memory, for example, the computer device may further include an input/output device, a network access device, a bus, and the like.
The processor may be a Central Processing Unit (CPU), and of course, according to an actual use situation, other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like may also be used, and the general processor may be a microprocessor or any conventional processor, and the present application does not limit the present invention.
The memory may be an internal storage unit of the computer apparatus, for example, a hard disk or a memory of the computer apparatus, or an external storage device of the computer apparatus, for example, a plug-in hard disk, a smart card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the computer apparatus, and the memory may also be a combination of the internal storage unit of the computer apparatus and the external storage device, and the memory is used for storing a computer program and other programs and data required by the computer apparatus, and the memory may also be used for temporarily storing data that has been output or will be output, which is not limited in this application.
The lamp panel control method of the embodiment is stored in a memory of the computer device through the computer device, and is loaded and executed on a processor of the computer device, so that a user can use the computer device conveniently.
The embodiment of the application discloses a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium, wherein when the computer program is loaded by a processor, the lamp panel control method of the embodiment is executed.
The computer program may be stored in a computer readable medium, the computer program includes computer program code, the computer program code may be in a source code form, an object code form, an executable file or some intermediate form, and the like, the computer readable medium includes any entity or device capable of carrying the computer program code, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read Only Memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunication signal, a software distribution medium, and the like, and the computer readable medium includes but is not limited to the above components.
The lamp panel control method of the above embodiment is stored in the computer-readable storage medium through the computer-readable storage medium, and is loaded and executed on the processor, so as to facilitate storage and application of the lamp panel control method.
The foregoing is a preferred embodiment of the present application and is not intended to limit the scope of the application in any way, and any features disclosed in this specification (including the abstract and drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
Claims (8)
1. A lamp panel control method is characterized by comprising the following steps:
acquiring an initial control instruction, and encoding the initial control instruction according to a first preset serial port protocol to obtain encoding instruction information, wherein the encoding instruction information comprises header data, middle data and tail data;
packaging the coded instruction information according to a second preset serial port protocol to obtain an instruction information data packet, and outputting the instruction information data packet;
acquiring the instruction information data packet, decompressing the instruction information data packet according to the second preset serial port protocol, starting to store the intermediate data if the header data is decompressed, and ending to store the intermediate data if the tail data is decompressed;
and acquiring the intermediate data, analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal, and controlling the lamp panel according to the control signal.
2. The lamp panel control method according to claim 1, wherein the outputting the command information packet specifically includes:
presetting an output time interval threshold, and judging whether the time interval between the output time of the previous instruction information data packet and the output time of the current instruction information data packet is within the preset output time interval threshold or not;
if so, outputting the instruction information data packet;
and if not, not outputting the instruction information data packet.
3. The lamp panel control method according to claim 2, wherein the preset output time interval threshold is set to 0.1ms to 0.3 ms.
4. The lamp panel control method according to claim 1, wherein the header data represents transmission data information, and the footer data represents reception data information.
5. The lamp panel control method according to claim 1, wherein the encoding of the initial control command according to a first preset serial protocol to obtain encoded command information specifically includes:
acquiring a coding request instruction, verifying and analyzing the coding request instruction, if the verification is successful, continuing to execute, and if the verification is wrong, returning error information;
screening and calling an encoding rule from an encoding rule database according to a first preset serial port protocol;
and coding the initial control instruction according to the coding rule, and outputting the obtained coding instruction information.
6. The utility model provides a lamp plate control system which characterized in that includes:
the device comprises an acquisition module (1) and a control module, wherein the acquisition module is used for acquiring an initial control instruction and coding the initial control instruction according to a first preset serial port protocol to obtain coding instruction information, and the coding instruction information comprises header data, middle data and tail data;
the packaging module (2) is used for packaging the coding instruction information according to a second preset serial port protocol to obtain an instruction information data packet and outputting the instruction information data packet;
the decompression module (3) is used for decompressing the instruction information data packet according to the second preset serial port protocol, starting to store the intermediate data if the header data is decompressed, and ending the storage of the intermediate data if the tail data is decompressed;
and the analysis module (4) is used for analyzing the intermediate data according to a third preset serial port protocol to obtain a control signal and controlling the lamp panel according to the control signal.
7. A computer arrangement comprising a memory, a processor and a computer program stored in the memory and being executable on the processor, wherein the processor, when loaded with the computer program, performs the method of any of claims 1-5.
8. A computer-readable storage medium, in which a computer program is stored which, when being loaded by a processor, is adapted to carry out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110904963.4A CN113766009B (en) | 2021-08-07 | 2021-08-07 | Lamp panel control method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110904963.4A CN113766009B (en) | 2021-08-07 | 2021-08-07 | Lamp panel control method, system, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113766009A true CN113766009A (en) | 2021-12-07 |
CN113766009B CN113766009B (en) | 2024-01-30 |
Family
ID=78788686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110904963.4A Active CN113766009B (en) | 2021-08-07 | 2021-08-07 | Lamp panel control method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113766009B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297725A (en) * | 2012-02-28 | 2013-09-11 | 联想(北京)有限公司 | Method and device for controlling electronic equipment and remote control |
CN207184872U (en) * | 2017-07-28 | 2018-04-03 | 松下电气机器(北京)有限公司 | Cultivate Lighting Control Assembly |
CN110113323A (en) * | 2019-04-20 | 2019-08-09 | 深圳瀚星翔科技有限公司 | A kind of communication means, electronic equipment and computer readable storage medium |
CN210323869U (en) * | 2019-10-29 | 2020-04-14 | 深圳市晶锐铭科技有限公司 | Intelligent control device and system for UVLED |
EP3734935A1 (en) * | 2018-01-29 | 2020-11-04 | BMC Medical Co., Ltd. | Method and device for sending medical device data, and method and device for receiving medical device data |
WO2021008412A1 (en) * | 2019-07-17 | 2021-01-21 | 深圳市智物联网络有限公司 | Control method and system for internet of things device |
CN112671770A (en) * | 2020-12-23 | 2021-04-16 | 波达通信设备(广州)有限公司 | Outdoor unit serial port protocol analysis method and device, computer equipment and storage medium |
CN112700677A (en) * | 2020-11-30 | 2021-04-23 | 诠航科技有限公司 | Traffic signal control method and device and traffic control system |
-
2021
- 2021-08-07 CN CN202110904963.4A patent/CN113766009B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297725A (en) * | 2012-02-28 | 2013-09-11 | 联想(北京)有限公司 | Method and device for controlling electronic equipment and remote control |
CN207184872U (en) * | 2017-07-28 | 2018-04-03 | 松下电气机器(北京)有限公司 | Cultivate Lighting Control Assembly |
EP3734935A1 (en) * | 2018-01-29 | 2020-11-04 | BMC Medical Co., Ltd. | Method and device for sending medical device data, and method and device for receiving medical device data |
CN110113323A (en) * | 2019-04-20 | 2019-08-09 | 深圳瀚星翔科技有限公司 | A kind of communication means, electronic equipment and computer readable storage medium |
WO2021008412A1 (en) * | 2019-07-17 | 2021-01-21 | 深圳市智物联网络有限公司 | Control method and system for internet of things device |
CN210323869U (en) * | 2019-10-29 | 2020-04-14 | 深圳市晶锐铭科技有限公司 | Intelligent control device and system for UVLED |
CN112700677A (en) * | 2020-11-30 | 2021-04-23 | 诠航科技有限公司 | Traffic signal control method and device and traffic control system |
CN112671770A (en) * | 2020-12-23 | 2021-04-16 | 波达通信设备(广州)有限公司 | Outdoor unit serial port protocol analysis method and device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
Z. LI; S. PENG; X. GENG;HUAWEI TECHNOLOGIES; M. NEGI; RTBRICK INDIA;: "PCEP Procedures and Protocol Extensions for Using PCE as a Central Controller (PCECC) for SRv6 draft-dhody-pce-pcep-extension-pce-controller-srv6-04", IETF * |
张俊民: "基于图像识别的PLC智能控制系统设计", 计算机与数字工程 * |
Also Published As
Publication number | Publication date |
---|---|
CN113766009B (en) | 2024-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110457143B (en) | Micro-service calling method and device | |
US20150207904A1 (en) | System and method for single kvm client accommodating multiple different video compression technologies | |
CN113259155B (en) | Access method, device, gateway, medium and electronic equipment of Internet of things equipment | |
CN108363588B (en) | Method for realizing interaction between web and native function, electronic device and readable storage medium | |
CN110958024B (en) | Method and device for encoding serial data, embedded equipment and communication system | |
CN112383441A (en) | Data processing method based on block chain, database uplink system and node equipment | |
CN108874825B (en) | Abnormal data verification method and device | |
EA019680B1 (en) | Service access method and system | |
CN103731493A (en) | Page transmission method, device and system | |
CN111669577A (en) | Hardware decoding detection method and device, electronic equipment and storage medium | |
CN109064733A (en) | Adaptive infrared signal coding/decoding method, computer installation and its control device | |
CN110162387A (en) | Thread scheduling method, device, computer equipment and computer readable storage medium | |
CN111966647A (en) | Cloud storage method and device for small files, server and storage medium | |
CN108255735B (en) | Associated environment testing method, electronic device and computer readable storage medium | |
CN116755844A (en) | Data processing method, device and equipment of simulation engine and storage medium | |
CN108170537B (en) | Game API realization method, device, interface server and readable storage medium | |
CN111327951A (en) | Multimedia data playing method, device, system and storage medium | |
CN112311720A (en) | Data transmission method and device | |
CN113766009A (en) | Lamp panel control method, system, device and storage medium | |
WO2015021753A1 (en) | Data compression method, computer system and device | |
CN110213795B (en) | Method for simultaneously communicating double SIM cards, mobile terminal and storage medium | |
CN111857868A (en) | Security data reading and writing method, device, equipment and computer readable storage medium | |
CN111046933B (en) | Image classification method, device, storage medium and electronic equipment | |
CN112333262A (en) | Data updating prompting method and device, computer equipment and readable storage medium | |
CN111193777A (en) | File downloading method and device based on breakpoint continuous transmission and 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 |