Display control method, control device and display system of LED (Light Emitting Diode) link

By obtaining and processing the display mode in the LED display system, generating and sending display control signals, the problem of excessive CPU resource consumption when controlling cascading LED lamp beads is solved, and efficient control and low multi-channel LED links are achieved Latency display reduces system complexity and hardware costs.

CN118918829APending Publication Date: 2024-11-08GUANGZHOU CAIYI TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411184041.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In existing LED display systems, the CPU resource consumption is too large when controlling cascading LED lamp beads, the system complexity and hardware cost are high, and the work efficiency is low, so it cannot support the control of multiple LED links.

Method used

Using a display control method of LED links, by obtaining the display mode of each LED link, assigning the bit bits based on the display mode, generating a display control signal, and sending it to the driver chip of the LED lamp bead at one time through the serial port. Data transmission is carried out using first-in, first-out or direct memory access to achieve data synchronization and efficient control.

Benefits of technology

It supports display control of multiple LED links, reduces system complexity and hardware costs, realizes display control in microseconds, significantly improves work efficiency, and ensures full utilization of CPU resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118918829A_ABST
    Figure CN118918829A_ABST
Patent Text Reader

Abstract

The invention provides a display control method and device of LED links and a display system. The method comprises the steps of obtaining a display mode of a plurality of cascaded LED lamp beads in each LED link; the display mode is used for defining the display state of each LED lamp bead in an LED link; assigning a bit for driving each lamp bead based on the display mode to obtain a display control signal of each LED lamp bead in the LED link; and sending each display control signal to a driving chip of the corresponding LED lamp bead in the LED link at one time. According to the invention, display control of multiple LED links is supported, and the complexity and hardware cost of the system are reduced. In addition, a serial port of the single-chip microcomputer can automatically transmit a display control signal to the LED link in a first-in first-out mode or a direct memory access mode, and full utilization of resources of the single-chip microcomputer is achieved. And meanwhile, microsecond-level display control can be realized, the time delay is relatively low, and the working efficiency is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of LED control, and relates to a display control method, a control device and a display system of an LED link. Background Art

[0002] In existing LED display systems, microcontrollers usually use a single-line zero-return communication protocol to control cascaded LED lamp beads. Based on this communication protocol, the control signal sent by the microcontroller is transmitted to each LED lamp bead in a serial manner. Specifically, when the control signal reaches the driver chip of each LED lamp bead, the chip only saves the first 24 bits of data in its internal latch, and the remaining data continues to be transmitted to the next level of driver chip.

[0003] However, this control method has some limitations. Since the control signal is sent through an output port of the microcontroller, it cannot support the control of multiple LED links. In addition, this control method sends data bit by bit and uses a simple delay to directly drive the driver chip of the cascaded LED beads, which will undoubtedly consume a lot of CPU resources. Especially when it is necessary to control a large number of cascaded LED beads or execute complex display modes, most of the computing power is used to drive the LED beads, thereby limiting the microcontroller's ability to handle other tasks.

[0004] In response to the above problems, current solutions include introducing additional slave MCUs as independent controllers to share the load of the main MCU. However, this approach requires adding more components to the circuit design to support the operation of the slave MCU, which not only increases the complexity of the system but also increases the hardware cost. Another solution is to reduce the CPU workload on non-LED lamp control tasks, but this will inevitably reduce the overall work efficiency of the MCU. Summary of the invention

[0005] The purpose of the present application is to provide a display control method, a control device and a display system for an LED link, which are used to solve the technical problems of excessive CPU resource consumption, high system complexity and hardware cost, and low working efficiency when the existing single-chip microcomputer controls cascaded LED lamp beads.

[0006] In the first aspect, the present application provides a display control method for an LED link, which is applied to a control device provided with at least one serial port, each of the serial port being connected to an LED link, and each of the LED links comprising a plurality of cascaded LED lamp beads; the method comprising: obtaining a display mode of the plurality of cascaded LED lamp beads in each of the LED links; the display mode being used to define the display state of each of the LED lamp beads in an LED link; assigning a value to a bit used to drive each lamp bead based on the display mode to obtain a display control signal for each of the LED lamp beads in the LED link; and sending each of the display control signals to the corresponding driver chip of the LED lamp bead in the LED link at one time.

[0007] In an implementation of the first aspect, the display mode is a set of preset data sequences, and the data sequence includes a number of transmission bits corresponding to the number of the bit positions; each of the transmission bits is binary encoded in the format of N-bit data, wherein the N-bit data arranges code elements in the order of a start bit, a data bit, and a stop bit, and the first M bits of the N-bit data are high-level code elements, and the last (NM) bits are low-level code elements, M and N are natural numbers greater than 1, and M<N; if the proportion of the high-level code elements in the N-bit data is higher than the proportion of the low-level code elements, the transmission bit is defined as 1 code; if the proportion of the high-level code elements in the N-bit data is lower than the proportion of the low-level code elements, the transmission bit is defined as 0 code.

[0008] In an implementation of the first aspect, assigning a value to each of the bits based on the display mode to obtain a display control signal for each of the LED lamp beads in the LED link includes:

[0009] Checking the code element corresponding to the transmitted bit;

[0010] If the transmitted bit is code 0, the value of the bit is replaced by the hexadecimal encoding value corresponding to the code 0;

[0011] If the transmitted bit is code 1, the value of the bit is replaced by the hexadecimal encoding value corresponding to the code 1;

[0012] According to the RGB color and hexadecimal code comparison table, the hexadecimal code value is converted into the corresponding RGB color.

[0013] In an implementation manner of the first aspect, it also includes: performing reverse processing on the data sequence.

[0014] In an implementation of the first aspect, the method further includes:

[0015] Checking whether the display mode has changed;

[0016] If yes, then update each of the display control signals, and adjust the display state of the corresponding LED lamp beads based on each of the updated display control signals;

[0017] Otherwise, the current display control signals remain unchanged.

[0018] In a second aspect, the present application provides a control device for controlling the display of at least one LED chain, each LED chain comprising a plurality of cascaded LED lamp beads; the control device comprises: a mode acquisition module for acquiring the display mode of the plurality of cascaded LED lamp beads in each of the LED chains; the display mode is used to define the display state of each of the LED lamp beads in an LED chain; a bit assignment module for assigning a value to the bit used to drive each lamp bead based on the display mode to obtain a display control signal for each of the LED lamp beads in the LED chain; and a signal sending module for sending each of the display control signals to the corresponding LED lamp bead driver chip in the LED chain at one time.

[0019] In an implementation of the second aspect, a data processing module is further included; the data processing module is connected to the bit assignment module and the signal sending module, and includes:

[0020] A sorting unit, used to sort the values ​​of the bits according to a preset rule to obtain a sorted display control signal;

[0021] A storage unit is used to temporarily store the sorted display control signals.

[0022] In an implementation of the second aspect, the device is provided with at least one serial port; each of the serial ports is connected to an LED link, and each of the LED links is cascaded with a plurality of LED lamp beads equipped with driver chips; the serial port automatically transmits each of the display control signals to the LED link using a first-in-first-out method or a direct memory access method.

[0023] In an implementation method of the second aspect, it also includes a signal update module; the signal update module is used to check whether the display mode has changed; if so, each display control signal is updated, and the display status of the corresponding LED lamp beads is adjusted based on the updated display control signal; otherwise, the current display control signal is kept unchanged.

[0024] In a third aspect, the present application provides a display system, comprising at least one LED link and a control device as described above; the control device is provided with at least one serial port; each of the serial ports is connected to one of the LED links, and each of the LED links is cascaded with a plurality of LED lamp beads equipped with driver chips; the serial port automatically transmits a display control signal to the LED link using a first-in-first-out method or a direct memory access method to control the display status of each of the LED lamp beads.

[0025] As described above, the display control method, control device and display system of the LED link described in the present application have the following beneficial effects:

[0026] This application supports display control of multiple LED links without adding additional microcontrollers, thereby reducing system complexity and hardware costs.

[0027] This application uses the first-in-first-out method or direct memory access method based on the serial port of the single-chip microcomputer to automatically transmit the display control signal to the LED link, realize data synchronization through the start bit and stop bit, and complete the one-time transmission. This process consumes as few single-chip microcomputer instruction cycles as possible, so that the CPU can process other tasks in parallel, thereby fully utilizing the single-chip microcomputer resources.

[0028] This application can achieve microsecond-level display control, has low time delay, and significantly improves work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Shown is a schematic structural diagram of a display system described in the present application in one embodiment.

[0030] Figure 2 Shown is a flow chart of an embodiment of a display control method of an LED link described in the present application.

[0031] Figure 3 Shown is a schematic diagram of a 24-bit data structure of an embodiment of the LED lamp bead described in this application.

[0032] Figure 4 Shown is a partial waveform diagram of a data sequence described in the present application in an embodiment.

[0033] Figure 5 A partial waveform diagram of an embodiment of a data sequence after reverse processing described in the present application is shown.

[0034] Figure 6 Shown is a waveform diagram of code 1 described in this application in one embodiment.

[0035] Figure 7 Shown is a waveform diagram of code 0 described in this application in an embodiment.

[0036] Figure 8 Shown is a flow chart of another embodiment of the display control method of the LED link described in the present application.

[0037] Fig. 9 Shown is a schematic structural diagram of a control device described in the present application in one embodiment.

[0038] Fig.10 Shown is a structural schematic diagram of another embodiment of the display system described in this application.

[0039] Component number description

[0040] 1 Display system

[0041] 10 Control Device

[0042] 101 Mode Acquisition Module

[0043] 102 Bit assignment module

[0044] 103 signal sending module

[0045] 20 LED Link DETAILED DESCRIPTION

[0046] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0047] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0048] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0049] The LED link is a highly integrated electronic system, which is composed of multiple LED lamp beads cascaded through a wire, and each LED lamp bead has a micro driver chip embedded inside. After the system is powered on and reset, the first driver chip is responsible for receiving the control signal from the single-chip microcomputer, which contains the control instructions for the entire LED link, such as brightness adjustment, color change, etc. The chip will intercept and store the first 24 bits of data in its internal data latch, and the remaining data will be passed to the next cascaded driver chip. This data transmission method forms a pipeline operation, and each driver chip processes the data part that belongs to its internal storage in turn, and controls the working state of the corresponding LED lamp bead.

[0050] In the technical solution of the present application, each LED link adopts a cascade configuration of 1024 lamp beads. The display state of each LED lamp bead can be independently controlled, thereby creating a colorful visual effect on the entire LED link. Even if a certain LED lamp bead or its internal driver chip fails, it will not affect the operation of the entire link.

[0051] It should be noted that the number of LED lamp beads in each LED chain is scalable. In practical applications, the number of LED lamp beads can be increased or decreased as needed to adapt to application scenarios of different sizes and shapes.

[0052] In the single-line return-to-zero protocol, the time parameters of data transmission are detailed in Table 1. In order to simplify the calculation process, 300ns is usually selected as the typical value of the high-level time of the 0 code; at the same time, 700ns is selected as the typical value of the low-level time of the 0 code. Under this setting, the total time required to transmit a 0 code is 1us (i.e. 300ns+700ns). For the transmission of 1 code, 700ns is used as the typical value of the high-level time of 1 code, and 300ns is used as the typical value of the low-level time of 1 code. Under this setting, the total time required to transmit a 1 code is also 1us (i.e. 700ns+300ns).

[0053] Table 1. Data transmission time in single-wire return-to-zero protocol

[0054] Time Analysis Duration T0H 0 code, high level time 220ns~380ns T0L 0 code, low level time 580ns~1.6us T1H 1 code, high level time 580ns~1.6us T1L 1 code, low level time 220ns~420ns RESET Low level time More than 280us

[0055] If you need to adjust the color of any of the 1024 lamp beads, for example, change the color of the fifth lamp bead to green, then you need to start a complete control signal transmission process. Theoretically, the total time required for a complete control signal transmission is: 1024×24×1us+280us=24856us≈25ms, where "24" is the number of bits used to drive each LED lamp bead, and 280us is the start time.

[0056] Furthermore, in order to meet the display requirement of 30 frames per second, the single-chip microcomputer needs to allocate 750ms (ie 25ms×30) per second to control the color change of the LED lamp beads, and other tasks cannot be performed during this period.

[0057] In the lighting control console application scenario, the integration of many functions such as encoders, buttons, lighting effect buttons, electric faders, analog-to-digital converters (ADCs), etc., all need to be supported at the same time. If the microcontroller uses 750ms in 1 second to control the display effect of the lamp beads, this will cause the CPU time slice resources to be almost completely occupied. However, most functions require extremely high real-time performance, such as the lighting effect button operation, which requires real-time feedback from the system within 1ms. This time occupation mode is not efficient enough in actual applications, and the time slice utilization rate is low, which is not conducive to the optimal use of resources.

[0058] The following embodiments of the present application provide a display control method, a control device, and a display system for an LED link, which can efficiently control cascaded LED lamp beads and effectively utilize limited CPU resources while maintaining the simplicity and economy of the system. The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present application.

[0059] See also Figure 1 , which is a schematic diagram of the structure of the display system described in the embodiment of the present application. Figure 1 As shown, this embodiment provides a display system 1. The display system 1 includes a control device 10 and at least one LED link 20.

[0060] In one embodiment of the present application, the control device 10 may be a single chip microcomputer with at least one serial port. Each serial port is connected to one LED link 20, and each LED link 20 is cascaded with multiple LED lamp beads equipped with driver chips ( Figure 1 (not shown). The serial port automatically transmits a display control signal to the LED link in a first-in-first-out manner or a direct memory access manner to control the display state of each LED lamp bead.

[0061] See also Figure 2 , which is a flow chart of an embodiment of the display control method of the LED link described in the present application.

[0062] like Figure 2 As shown, this embodiment provides a display control method of an LED link, which is applied to a control device provided with at least one serial port, each of which is connected to an LED link, and each of which includes a plurality of cascaded LED lamp beads. The method includes the following steps S100 to S300.

[0063] In step S100, the display mode of the plurality of cascaded LED lamp beads in each of the LED chains is obtained.

[0064] The display mode is used to define the display state of each LED lamp bead in an LED chain. Specifically, the display state includes the color, brightness and flashing frequency of each LED lamp bead.

[0065] In practical applications, in order to achieve complex lighting display effects, multiple display modes can be pre-set, and timers can be used to control the automatic switching between these display modes. For example, in festival celebrations, by designing a series of display modes, the cascaded LED lamp beads can change their color and brightness according to a predetermined sequence and time interval, thereby simulating various dynamic visual effects.

[0066] like Figure 3 As shown, each LED lamp bead is controlled by three channels: red (R7-R0), green (G7-G0), and blue (B7-B0), and each channel is represented by 8 bits.

[0067] In one embodiment of the present application, the display mode is a set of pre-set data sequences, and the data sequence includes a number of transmission bits corresponding to the number of bits; each of the transmission bits is binary encoded in the format of N-bit data, wherein the N-bit data arranges code elements in the order of start bit, data bit and stop bit, and the first M bits of the N-bit data are high-level code elements, and the last (NM) bits are low-level code elements, M and N are natural numbers greater than 1, M<N; if the proportion of the high-level code elements in the N-bit data is higher than the proportion of the low-level code elements, the transmission bit is defined as 1 code; if the proportion of the high-level code elements in the N-bit data is lower than the proportion of the low-level code elements, the transmission bit is defined as 0 code.

[0068] For example, when encoding is performed in the format of 10-bit data, the 10-bit data is arranged in the order of 1 start bit, 8 data bits, and 1 stop bit. If the first 7 bits of the 10-bit data are 1 and the last 3 bits are 0, the transmission bit is defined as code 1. If the first 3 bits of the 10-bit data are 1 and the last 7 bits are 0, the transmission bit is defined as code 0.

[0069] Taking the third lamp bead on the LED link as an example, if the color of the lamp bead is to be set to red, the red channel value of the lamp bead should be 255, the green channel value should be 0, and the blue channel value should be 0. Therefore, the data sequence used to determine the display color of the third lamp bead should be set to "1111111100000000000000000".

[0070] See also Figure 4 , which is a partial waveform diagram of the data sequence described in the embodiment of the present application. Figure 4 As shown, the data sequence includes two transmission bits, each transmission bit corresponds to 10 bits of data, where the start bit is low level and the stop bit is high level. Since the level does not return to the zero state at the end of the code element, this waveform does not meet the standard of the single-line return-to-zero protocol and cannot be directly used to control cascaded LED lamp beads.

[0071] At present, most single-chip microcomputers have the ability to reversely process level signals. In order to effectively control the cascaded LED lamp beads, it is necessary to reversely process the data sequence to obtain a reversed data sequence.

[0072] See also Figure 5 , which is a partial waveform diagram of a data sequence that has been reversely processed as described in the embodiment of the present application. Figure 5 As shown, the start bit of the 10-bit data after inversion becomes a high level, while the stop bit becomes a low level. This waveform meets the standard of the single-line return-to-zero protocol, so it can effectively control the cascaded LED lamp beads.

[0073] See also Figure 6 , which shows the waveform diagram of code 1 described in the embodiment of the present application. Figure 7 , which is a waveform diagram of code 0 described in the embodiment of the present application. The code 1 and code 0 are both return-to-zero codes.

[0074] It should be noted that the present application is flexible in data encoding format, and in addition to using a 10-bit data encoding format, an 8-bit data encoding format can also be used. The present application does not specifically limit the type of data encoding.

[0075] For example, when encoding in an 8-bit data format, the following two methods both meet the requirements of the single-line return-to-zero protocol:

[0076] The first method stipulates that if the first 6 bits of the 8-bit data are 1 and the last 2 bits are 0, the sending bit is defined as 1 code; if the first 2 bits of the 8-bit data are 1 and the last 6 bits are 0, the sending bit is defined as 0 code.

[0077] The second method stipulates that if the first 5 bits of the 8-bit data are 1 and the last 3 bits are 0, the sending bit is defined as 1 code; if the first 3 bits of the 8-bit data are 1 and the last 5 bits are 0, the sending bit is defined as 0 code.

[0078] In step S200, the bits used to represent the color depth in each LED lamp bead are traversed.

[0079] In step S200, a bit for driving each lamp bead is assigned a value based on the display mode to obtain a display control signal for each LED lamp bead in the LED chain.

[0080] In one embodiment of the present application, when an LED link adopts a cascade configuration of 1024 LEDs, and each LED bead is driven by 24 bits, a total of 1024×24=24576 bits need to be assigned when starting a complete control signal transmission.

[0081] In one embodiment of the present application, each of the bit positions is assigned a value based on the display mode to obtain a display control signal for each LED lamp bead in the LED chain, including: checking the code element corresponding to the sending bit; if the sending bit is code 0, replacing the value of the bit position with a hexadecimal code value corresponding to the code 0; if the sending bit is code 1, replacing the value of the bit position with a hexadecimal code value corresponding to the code 1; and converting the hexadecimal code value into a corresponding RGB color according to a comparison table of RGB colors and hexadecimal codes.

[0082] For example, when encoding is performed in a 10-bit data format, if the transmission bit is code 0, the value of the bit is replaced with 0×C0; if the transmission bit is code 1, the value of the bit is replaced with 0×FC.

[0083] Specifically, when the transmission bit is code 0, the 10-bit data is: 1110000000. Ignoring the start bit and the stop bit, the remaining 8-bit data "11000000" has a hexadecimal value of: 0×C0.

[0084] When the transmission bit is 1 code, the 10-bit data is: 1111111000. Ignoring the start bit and the stop bit, the remaining 8-bit data "11111100" has a hexadecimal value of: 0×FC.

[0085] In this embodiment, the value of the bit is replaced with hexadecimal data because every two characters of hexadecimal can accurately represent an 8-bit data. In addition, memory addresses are usually represented in hexadecimal, which helps to quickly calculate and represent when designing memory mapping and processing addresses. In addition, when controlling a large number of cascaded lamp beads, hexadecimal can effectively reduce the data load, so that a single LED link can effectively control more lamp beads.

[0086] In step S300, each of the display control signals is sent to the corresponding driving chip of the LED lamp bead in the LED link at one time.

[0087] In one embodiment of the present application, sending each of the display control signals to the corresponding LED lamp bead driver chip in the LED link at one time includes: automatically transmitting each of the display control signals using a First In First Out (FIFO) method or a Direct Memory Access (DMA) method.

[0088] Specifically, the present application utilizes the FIFO mode or DMA mode of the microcontroller serial port to realize automatic and continuous transmission of data. FIFO is an implementation method of a queue, that is, the data items added to the queue first will be processed first, and the data items added later will be processed later. A circular queue is a special form of FIFO, which organizes the queue into a ring structure. In this structure, the beginning and end of the queue are regarded as connected, so when the data item reaches the end of the queue, it returns to the starting position of the queue. This design makes the queue appear in a ring shape, hence the name circular queue. Circular queues are usually constructed using arrays, but special operations need to be performed when inserting or removing data items to maintain the coherence of the head and tail of the queue in the loop.

[0089] In FIFO mode, the data received by the serial port of this application will be temporarily stored in the internal buffer instead of being processed immediately. When the CPU is idle, the data is taken out from the FIFO for decoding and further processing. This method reduces the real-time interrupt demand on the CPU when the serial port is receiving, and improves the system response speed, especially when the data flow is large or the CPU is heavily burdened.

[0090] DMA allows data to be moved automatically between main memory and peripheral devices without CPU intervention. This mechanism enables the CPU to perform other tasks while data is being transferred, thereby improving the overall performance of the system. The DMA transfer process can be roughly divided into the following three stages:

[0091] (1) Preprocessing: This step is completed by the CPU and involves some necessary preparations. The CPU first runs several I / O instructions to check the status of the I / O device, set the initial values ​​for the relevant registers of the DMA controller, determine the transfer direction, and start the device. Subsequently, the CPU continues to execute its original program until the I / O device is ready to send or receive data. At this point, the I / O device will issue a DMA request to the DMA controller, and then the DMA controller will issue a bus request to the CPU to start the data transfer.

[0092] (2) Data transfer: DMA data transfer is based on a single byte (or word). For data block transfers, after obtaining bus control, DMA performs data input and output operations in a cyclic manner. It is worth noting that this cycle is controlled by the DMA controller rather than by the CPU executing the program, that is, the data transfer stage is completely controlled by DMA (hardware).

[0093] (3) Post-processing: After the data transfer is completed, the DMA controller sends an interrupt request to the CPU. The CPU then executes the interrupt service routine to complete the DMA end processing, including verifying whether the data transferred to the main memory is correct, checking whether there is an error during the transfer (if there is an error, it will enter the diagnostic program), and deciding whether to continue using DMA to transfer other data blocks.

[0094] In DMA mode, this application transfers the received data directly from the serial port to the preset memory address without the CPU intervening in the data transfer process. This not only frees up CPU resources, but also ensures continuous data transmission, especially in the case of high baud rates or long data packets, significantly improving communication performance.

[0095] In one embodiment of the present application, the present application uses a frame rate of 30 frames per second to send the display control signal.

[0096] 30 frames per second means that the microcontroller needs to send 30 sets of complete display control signals to the LED driver chip every second to ensure that the display content can be updated smoothly. The frame rate is usually based on the human eye's ability to perceive visual changes and actual application requirements.

[0097] When the human eye sees a rapidly changing image, if the change speed is fast enough (such as more than 24 frames per second), it cannot distinguish the individual images, but merges these images into a continuous visual effect. Therefore, in order to ensure the smoothness and continuity of the display effect and avoid flickering or incoherence, a speed of at least 24 frames per second is usually required.

[0098] It should be noted that although 24 frames per second is theoretically sufficient to meet basic visual continuity requirements, in order to improve user experience and reduce any possible flickering or motion blur, designers may choose a higher frame rate, such as 30 frames per second, which can provide a smoother and more delicate display effect.

[0099] In one embodiment of the present application, the display control method of the LED link provided in the embodiment of the present application also includes: checking whether the display mode has changed; if so, updating each of the display control signals, and adjusting the display status of the corresponding LED lamp beads based on the updated display control signals; otherwise, keeping the current display control signals unchanged.

[0100] See also Figure 8 , which is a flow chart of another embodiment of the display control method of the LED link described in this application. Figure 8 As shown, the embodiment of the present application sends a display control signal to the LED link at a rate of 30 times per second. Each time the display mode changes, the display state of the corresponding LED lamp beads will be adjusted based on the updated display control signals. If the display mode has not changed, the sending of each display control signal will be directly started. At this time, the LED link will display according to the last display mode.

[0101] Specifically, adjusting the display status of the corresponding LED lamp beads based on the updated display control signals includes: looping through all bits used to drive each lamp bead; checking the code element corresponding to the sending bit; when the sending bit is encoded in the 10-bit data format, if the sending bit is 0 code, then replacing the value of the bit with 0×FC in the serial port buffer; if the sending bit is 1 code, then replacing the value of the bit with 0×C0 in the serial port buffer; according to the RGB color and hexadecimal code comparison table, converting the hexadecimal code value into the corresponding RGB color to obtain the display control signal of each LED lamp bead in an LED link; after all bits are traversed, start sending each display control signal, and at this time, the data initialization of an LED link is completed.

[0102] It should be noted that the protection scope of the display control method of the LED link described in the embodiment of the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.

[0103] See also Fig. 9 , which is a schematic diagram of the structure of the control device described in the embodiment of the present application. Fig. 9As shown, this embodiment provides a control device 10 for controlling the display of at least one LED chain, each LED chain including a plurality of cascaded LED lamp beads. The control device includes a mode acquisition module 101, a bit assignment module 102 and a signal sending module 103.

[0104] The mode acquisition module 101 is used to acquire the display mode of the multiple cascaded LED lamp beads in each LED chain; the display mode is used to define the display state of each LED lamp bead in an LED chain.

[0105] The bit assignment module 102 is used to assign a value to a bit used to drive each lamp bead based on the display mode, so as to obtain a display control signal of each LED lamp bead in the LED chain.

[0106] The signal sending module 103 is used to send each of the display control signals to the corresponding driving chip of the LED lamp bead in the LED link at one time according to a preset frame rate.

[0107] It should be noted that the structures and principles of the mode acquisition module 101, the bit assignment module 102 and the signal sending module 103 described in this embodiment correspond one-to-one to steps S100 to S300 in the above-mentioned LED link display control method, so they are not repeated here.

[0108] In one embodiment of the present application, the control device provided in this embodiment further includes a data processing module. The data processing module is connected to the bit assignment module and the signal sending module.

[0109] Specifically, the data processing module includes a sorting unit and a storage unit.

[0110] The sorting unit is used to sort the values ​​of the bits according to a preset rule to obtain a sorted display control signal.

[0111] The storage unit is used for temporarily storing the sorted display control signals.

[0112] In this implementation, the display control signal is sorted and temporarily stored before being transmitted. Once the conditions for starting transmission are met, the microcontroller automatically retrieves the sorted display control signal from the memory and performs a one-time transmission of the data. This method effectively optimizes the efficiency of data transmission and ensures the accuracy of signal control.

[0113] In one embodiment of the present application, the control device is provided with at least one serial port. Each of the serial ports is connected to an LED link, and each of the LED links is cascaded with a plurality of LED lamp beads equipped with driver chips. The serial port automatically transmits each of the display control signals to the LED link in a first-in-first-out manner or a direct memory access manner.

[0114] In the embodiment of the present application, the serial port supports multiple communication protocols, including but not limited to the asynchronous serial port communication protocol (USART) and the synchronous serial port communication protocol (UART).

[0115] The asynchronous serial communication protocol (USART) has flexible data transmission rates and simple hardware requirements, allowing the transmitter and receiver to work at different clock frequencies, and transmit data through a combination of start bits, data bits, parity bits, and stop bits, ensuring the reliability and stability of data transmission. This protocol is particularly suitable for long-distance or unstable communication environments and can effectively reduce data transmission errors.

[0116] The synchronous serial communication protocol (UART) has high-speed data transmission capabilities. In this mode, the transmitter and receiver share the same clock signal to achieve synchronous data transmission. This method greatly improves the efficiency of data transmission and is particularly suitable for short-distance, high-speed data transmission scenarios, such as communication within embedded systems.

[0117] In addition, the present application also supports the serial peripheral interface (SPI) and its extended interface, such as the four-wire parallel SPI (QSPI). The SPI interface provides an efficient and reliable short-distance communication solution with its simple four-wire structure (including a master output / slave input line, a master input / slave output line, a clock line and a low-level effective enable line). The interface supports full-duplex communication, that is, data can be transmitted in two directions at the same time, which greatly improves the efficiency of data transmission.

[0118] Furthermore, as an extension of SPI, the quad-parallel SPI (QSPI) further improves the data transmission speed by increasing the number of data lines. The QSPI interface usually contains multiple data lines, so that multiple data bits can be transmitted at a time, thereby significantly improving the data transmission throughput. This interface is particularly suitable for applications that require fast and large-scale data transmission, such as communication between high-performance memory and processors.

[0119] The embodiments of the present application provide flexible, efficient and reliable data transmission solutions for different application scenarios by supporting multiple serial communication protocols and types. Whether in a long-distance, low-rate communication environment or in a high-rate, short-distance data transmission requirement, suitable solutions can be found to meet the growing communication needs.

[0120] It should be noted that the present application does not specifically limit the type of serial port, and any serial port that can support a one-time output function is applicable to the present application.

[0121] When communicating via the serial port, you generally need to set parameters such as baud rate, data bit, parity bit, and stop bit.

[0122] The baud rate refers to the speed (bit / second, bit / s) at which the single chip microcomputer sends data. The baud rate used in this application is adjustable within the range of 4800, 9600, 19200 and 115200.

[0123] The data bits are used to represent the number of binary bits of each serial byte, which is generally 5 to 8 bits.

[0124] The parity bit is used to detect data transmission errors. When the parity bit is 0, it indicates no parity; when the parity bit is 1, it indicates odd parity; when the parity bit is 2, it indicates even parity. When a 10-bit data encoding format is used, the parity bit is generally set to 0.

[0125] The stop bit is a stop signal after each byte of data, usually 1 bit or 2 bits.

[0126] In one embodiment of the present application, the control device provided in this embodiment further includes a signal updating module. The signal updating module is used to check whether the display mode has changed; if so, update each of the display control signals, and adjust the display state of the corresponding LED lamp beads based on the updated display control signals; otherwise, keep the current display control signals unchanged.

[0127] The hardware structure corresponding to the control device provided in this embodiment can be a single-chip microcomputer. The current mainstream single-chip microcomputer is usually equipped with 5 to 6 serial ports, each serial port is connected to an LED link. As long as the single-chip microcomputer is not in a full load state, the display control method of the LED link of this application can be executed, thereby effectively controlling the display of LED lamp beads on multiple LED links.

[0128] It should be noted that the control device provided in the embodiment of the present application can implement the display control method of the LED link described in the present application, but the implementation device of the display control method of the LED link described in the present application includes but is not limited to the structure of the control device listed in the present embodiment, and all structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.

[0129] See also Fig.10 , which is a schematic diagram of the structure of the display system described in the embodiment of the present application in another embodiment.

[0130] like Fig.10 As shown, this embodiment provides a display system. The display system includes at least one LED link and a display control device for single-line cascaded LED lamp beads as described in any one of the above items.

[0131] The device is provided with at least one serial port, each of which is connected to one of the LED chains, and each of the LED chains is cascaded with a plurality of LED lamp beads equipped with driver chips.

[0132] Specifically, the control device uses a cascade transmission line to transmit the display control signal to all the driving chips in sequence. During the transmission process, there is no need to consider the timing coordination relationship of the cascade signal, which makes the cascade signal transmission process simpler, reduces the transmission failure rate and improves stability. Secondly, the single-line transmission of the cascade signal reduces the use of cables and saves costs.

[0133] In each LED link, driver chip 1, driver chip 2, driver chip 3, and driver chip N are connected together with a cascade transmission line. First, the control signal is transmitted to driver chip 1. After receiving the control signal, chip 1 decodes the control signal and uses the decoded signal to drive the LED lamp beads to light up; at the same time, the decoded signal is re-encoded (synchronous frame part) and sent to the next level chip, and then the subsequent chips repeat the same processing process to realize the cascade driving of each LED lamp. Each driver chip has three output channels of R, G, and B, which are connected to the corresponding light-emitting LED lamp beads.

[0134] In summary, the present application provides a display control method, a control device and a display system for an LED link, the method being applied to a control device provided with at least one serial port, each of the serial ports being connected to an LED link, and each of the LED links comprising a plurality of cascaded LED lamp beads; the method comprising: obtaining the display mode of the plurality of cascaded LED lamp beads in each of the LED links; the display mode being used to define the display state of each of the LED lamp beads in an LED link; assigning a value to the bit used to drive each lamp bead based on the display mode to obtain a display control signal for each of the LED lamp beads in the LED link; and sending each of the display control signals to the corresponding driver chip of the LED lamp bead in the LED link at one time. The present application supports display control of multiple LED links without the need to add an additional single-chip microcomputer, thereby reducing the complexity and hardware cost of the system. The serial port of the single-chip microcomputer automatically transmits the display control signal to the LED link in a first-in-first-out manner or a direct memory access manner, realizes data synchronization through a start bit and a stop bit, and completes a one-time transmission. This process consumes as few MCU instruction cycles as possible, allowing the CPU to process other tasks in parallel, thereby fully utilizing the MCU resources. This application can achieve microsecond-level display control, has a low time delay, and significantly improves work efficiency.

[0135] In the several embodiments provided in the present application, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units 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 an indirect coupling or communication connection through some interfaces, devices or modules or units, which can be electrical, mechanical or other forms.

[0136] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0137] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0138] The timer described in the embodiments of the present application can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components.

[0139] The embodiment of the present application also provides a computer-readable storage medium. A person skilled in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing a processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The memory can be implemented by any type of volatile or non-volatile storage device 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 storage, flash memory, magnetic disk or optical disk.

[0140] The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The above-mentioned storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0141] The present application embodiment may also provide a computer program product, the computer program product including one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer or data center.

[0142] When the computer program product is executed by a computer, the computer executes the method described in the above method embodiment. The computer program product may be a software installation package, and when the above method is required, the computer program product may be downloaded and executed on a computer.

[0143] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0144] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A display control method for an LED link, It is characterized in that Applicable to a control device having at least one serial port, each serial port is connected to an LED link, each LED link includes a plurality of cascaded LED lamp beads; the method includes: Obtaining the display mode of the plurality of cascaded LED lamp beads in each LED chain; the display mode is used to define the display state of each LED lamp bead in an LED chain; Assigning a value to a bit used to drive each lamp bead based on the display mode to obtain a display control signal of each LED lamp bead in the LED chain; Each of the display control signals is sent at one time to the driver chip of the corresponding LED lamp bead in the LED link.

2. The method according to claim 1, It is characterized in that The display mode is a set of pre-set data sequences, and the data sequence includes a number of transmission bits corresponding to the number of the bit positions; each of the transmission bits is binary encoded in the format of N-bit data, wherein the N-bit data arranges code elements in the order of a start bit, a data bit, and a stop bit, and the first M bits of the N-bit data are high-level code elements, and the last (NM) bits are low-level code elements, M and N are natural numbers greater than 1, and M<N; if the proportion of the high-level code elements in the N-bit data is higher than the proportion of the low-level code elements, the transmission bit is defined as a 1 code; if the proportion of the high-level code elements in the N-bit data is lower than the proportion of the low-level code elements, the transmission bit is defined as a 0 code.

3. The method according to claim 2, It is characterized in that Assigning a value to each of the bits based on the display mode to obtain a display control signal for each of the LED lamp beads in the LED link includes: Checking the code element corresponding to the transmitted bit; If the transmitted bit is code 0, the value of the bit is replaced by the hexadecimal encoding value corresponding to the code 0; If the transmitted bit is code 1, the value of the bit is replaced by the hexadecimal encoding value corresponding to the code 1; According to the RGB color and hexadecimal code comparison table, the hexadecimal code value is converted into the corresponding RGB color.

4. The method according to claim 2, It is characterized in that Also includes: The data sequence is processed in reverse.

5. The method according to claim 1, It is characterized in that Also includes: Checking whether the display mode has changed; If yes, then update each of the display control signals, and adjust the display state of the corresponding LED lamp beads based on each of the updated display control signals; Otherwise, the current display control signals remain unchanged.

6. A control device, It is characterized in that Used to control the display of at least one LED chain, each LED chain includes a plurality of cascaded LED lamp beads; the control device includes: A mode acquisition module, used to acquire the display mode of the multiple cascaded LED lamp beads in each LED chain; The display mode is used to define the display status of each LED lamp bead in an LED link; A bit assignment module, used to assign a bit for driving each lamp bead based on the display mode, and obtain a display control signal of each LED lamp bead in the LED chain; The signal sending module is used to send each of the display control signals to the corresponding driving chip of the LED lamp bead in the LED link at one time.

7. The control device according to claim 6, It is characterized in that It also includes a data processing module; the data processing module is connected to the bit assignment module and the signal sending module, and includes: A sorting unit, used to sort the values ​​of the bits according to a preset rule to obtain a sorted display control signal; A storage unit is used to temporarily store the sorted display control signals.

8. The control device according to claim 6, It is characterized in that The control device is provided with at least one serial port; each of the serial ports is connected to an LED link, and each of the LED links is cascaded with multiple LED lamp beads equipped with driver chips; the serial port automatically transmits each of the display control signals to the LED link in a first-in-first-out manner or a direct memory access manner.

9. The control device according to claim 6, It is characterized in that It also includes a signal update module; the signal update module is used to check whether the display mode has changed; if so, each display control signal is updated, and the display status of the corresponding LED lamp beads is adjusted based on the updated display control signal; otherwise, the current display control signal is kept unchanged.

10. A display system, It is characterized in that comprising at least one LED chain and a control device as claimed in any one of claims 6 to 9; The control device is provided with at least one serial port; each serial port is connected to one LED link, and each LED link is cascaded with multiple LED lamp beads equipped with driver chips; The serial port automatically transmits a display control signal to the LED link in a first-in-first-out manner or a direct memory access manner to control the display state of each LED lamp bead.

Citation Information

Cited By

  • Intelligent lamp, control method thereof and storage medium

    CN120640489A