Disclosure of Invention
An object of the present invention is to provide an LED display device, a main controller thereof, and a control method thereof, which transmit data according to a packet identifier to improve transmission efficiency of redundant data.
According to a first aspect of the present invention, there is provided a control method for an LED display device including a plurality of pixel units including a control module and an LED lamp, respectively, the control module controlling a lighting state of the LED lamp using gray-scale data to display an image, comprising: dividing the plurality of pixel units into a plurality of pixel groups; and driving at least two pixel units of the plurality of pixel units with the same gray scale data.
Preferably, the plurality of pixel groups respectively include a plurality of adjacent pixel units.
Preferably, the at least two pixel units are pixel units in the same pixel group.
Preferably, the at least two pixel units are pixel units associated with each other in a plurality of pixel groups associated with each other.
Preferably, the plurality of pixel groups associated with each other are spaced apart by a predetermined number of pixel groups.
Preferably, the serial numbers of the plurality of pixel units associated with each other in the corresponding pixel groups are the same.
Preferably, the method further comprises the following steps: the grouping identifications of the plurality of pixel units of the same pixel group are set to the same value.
Preferably, the method further comprises the following steps: grouping identifications of a plurality of pixel units of the same pixel group are set to different values according to the sequence numbers in the corresponding pixel groups.
Preferably, the step of driving at least two of the plurality of pixel units with the same gray-scale data includes one of: aiming at the pixel units with the same group identification, the same gray scale data is adopted to control the lighting state of the LED lamp; and aiming at the pixel units with the same grouping identification, adopting different gray scale data to control the lighting state of the LED lamp according to the serial number in the corresponding pixel group.
Preferably, before the step of dividing the plurality of pixel units into a plurality of pixel groups, the method further comprises: initializing, and setting the grouping identifications of the plurality of pixel units as initial values; and selecting a drive scheme for selecting the at least two pixel cells.
Preferably, the method further comprises the following steps: and in at least one display period, dynamically grouping the pixel units according to the gray scale data, so that the at least two pixel units are pixel units in the same pixel group.
Preferably, the method further comprises the following steps: receiving display data; obtaining configuration data from the display data; and modifying the packet identification in accordance with the configuration data.
Preferably, the plurality of pixel units further obtain a group identifier and an instruction code from the display data, the group identifier being modified in case the group identifier is associated with itself and the instruction code indicates a configuration state.
Preferably, the method further comprises the following steps: receiving display data; obtaining gray scale data from the display data; and controlling the accumulated lighting time of the LED lamp in each display period according to the gray scale data.
Preferably, the plurality of pixel units further obtain a group identification and an instruction code from the display data, and control the lighting state of the LED lamp only in a case where the group identification is associated with itself and the instruction code indicates that the display state is present.
According to a second aspect of the present invention, there is provided a main controller for an LED display device for dividing a plurality of pixel units of the LED display device into a plurality of pixel groups and driving at least two of the plurality of pixel units with the same gray-scale data.
Preferably, the plurality of pixel groups respectively include a plurality of adjacent pixel units.
Preferably, the at least two pixel units are a plurality of pixel units in the same pixel group.
Preferably, the at least two pixel units are a plurality of pixel units associated with each other in a plurality of pixel groups associated with each other.
Preferably, the plurality of pixel groups associated with each other are spaced apart by a predetermined number of pixel groups.
Preferably, the serial numbers of the plurality of pixel units associated with each other in the corresponding pixel groups are the same.
Preferably, the grouping identifications of the plurality of pixel units of the same pixel group are the same value.
Preferably, the grouping identifications of the plurality of pixel units of the same pixel group are different values according to the sequence numbers in the corresponding pixel groups.
Preferably, in at least one display period, the plurality of pixel units are dynamically grouped according to gray scale data, so that the at least two pixel units are pixel units in the same pixel group.
According to a third aspect of the present invention, there is provided an LED display device comprising: the display device comprises a plurality of pixel units, a control module and an LED lamp, wherein the pixel units respectively comprise the control module and the LED lamp, and the control module adopts gray scale data to control the lighting state of the LED lamp so as to display an image; and the main controller is connected with the plurality of pixel units so as to provide display data for the pixel units.
Preferably, the plurality of pixel cells receive display data, obtain configuration data from the display data, and modify the group identification in accordance with the configuration data.
Preferably, the plurality of pixel units further obtain a group identifier and an instruction code from the display data, the group identifier being modified in case the group identifier is associated with itself and the instruction code indicates a configuration state.
Preferably, the plurality of pixel units receive display data, obtain gray-scale data from the display data, and control an accumulated lighting time of the LED lamp in each display period according to the gray-scale data.
Preferably, the plurality of pixel units further obtain a group identification and an instruction code from the display data, and control the lighting state of the LED lamp only in a case where the group identification is associated with itself and the instruction code indicates that the display state is present.
Preferably, the LED display device is one selected from a LED display screen, a LED grid screen and a LED light string group.
According to the control method of the embodiment of the invention, at least two pixel units in the plurality of pixel units are driven by the same gray scale data, so that the number of the gray scale data transmitted to the pixel units by the control end can be less than that of the pixel units. Therefore, the control method can realize more concatenation number and higher display frame rate under the condition that the communication rate is limited.
In a preferred embodiment, the control terminal dynamically groups the plurality of pixel units according to the gray-scale data in at least one display period (e.g., a frame period), so that the pixel units with the same gray-scale data are in the same pixel group and/or a plurality of pixel groups associated with each other. Since the grouping of the plurality of pixel units coincides with the gray-scale data in the display period, only one gray-scale data can be transmitted for the pixel units in the same pixel group and/or the plurality of pixel groups associated with each other, thereby reducing the transmission of redundant data.
Detailed Description
Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Like elements in the various figures are denoted by the same or similar reference numerals. For purposes of clarity, the various features in the drawings are not necessarily drawn to scale.
Fig. 1 shows a schematic block diagram of an LED display device 100 according to a first embodiment of the present invention. The LED display device 100 includes a main controller 110 and a plurality of pixel units 120 connected thereto. The plurality of pixel units 120 constitute a pixel array in which a plurality of pixel units 120 located in the same column are connected in series between the output terminal of the main controller 110 and ground. The pixel unit 120 includes a control module 121 and at least one LED lamp 122 connected thereto. For example, the pixel unit 120 may include three LED lamps 122 of different colors, such as red, green, and blue, to achieve a full color display.
In the conventional LED display device, the main controller 110 provides gray scale DATA to a first pixel unit directly connected thereto in the pixel array, and then the first pixel unit transmits the gray scale DATA to a second pixel unit, and so on. In addition, the main controller 110 supplies a set of control signals including a clock signal CLK, a latch signal LAT, and an enable signal EN to each pixel cell in the pixel array. The control module 121 of each pixel unit 120 generates an output signal, such as a bit-by-bit corresponding output signal, according to the gray-scale DATA, and the LED lamp 122 is turned on or off in a bit-by-bit time-sharing display manner. In each display period, the accumulated lighting time of the LED lamp 122 coincides with the value of the corresponding gray-scale DATA.
In the LED display device according to the embodiment of the present invention, the main controller 110 supplies gray-scale DATA to each pixel unit 120 in the pixel array according to the grouping identification. Accordingly, the data provided at the output terminal of the main controller 110 is the display data DISP.
Fig. 2 is a schematic diagram showing a data structure of display data employed by the LED display device according to the first embodiment of the present invention. As shown, the display DATA DSIP includes a plurality of fields including not only the gray-scale DATA but also at least one of the packet identification ID, the instruction CODE, and the configuration DATA CONF. It should be noted that the order of the plurality of fields may vary according to a predetermined protocol specification as long as both the control terminal and the pixel unit follow the order.
In the LED display device 100, each pixel unit 120 receives display data DISP directly or indirectly from the control terminal 110. The control module 121 in the pixel unit 120 determines whether the data is related to itself based on the group identification ID, and determines the data processing mode based on the instruction CODE. For example, when the instruction CODE indicates the configuration state, the control module 121 in the pixel unit 120 modifies its own group identification ID with the configuration DATA CONF, and when the instruction CODE indicates the display state, the control module 121 in the pixel unit 120 controls the LED lamp 122 connected thereto with the gray-scale DATA.
Fig. 3 shows a flow chart of a LED control method according to a second embodiment of the present invention. The method is for being performed in the LED display device 100 shown in fig. 1, for transmitting data according to a packet identification ID to improve transmission efficiency of redundant data.
In step S01, the LED display device 100 is initialized, for example, at the time of system power-on, in an initialized state, the group identification of each pixel unit 120 is unique, that is, the group identifications of different pixel units 120 are different from each other. In the following description, a pixel array composed of the main controller 110 and 16 pixel units 120 is exemplified. For example, in the initial state, the grouping identifiers of 16 pixel units 120 are 0, 1, 2 … …, 14 and 15 in sequence.
In step S02, in the configuration state, the control terminal 110 selects the drive scheme. In this embodiment, the driving method is, for example, that adjacent n pixels form pixel groups, and each pixel group is driven by the same display data, as shown in table 1.
In step S03, in the configuration state, the control terminal 110 transforms the grouping identification of the pixel units 120 according to the driving scheme. As shown in table 1, in this embodiment, in each pixel group, the group identification IDs of adjacent 4 pixel units are modified to be the same group identification, and form a pixel group.
In this step, the control terminal 110 provides respective display data DISP to the 16 pixel units 120, where the group identifier in the display data DISP is consistent with the initial identifier ID of the corresponding pixel unit 120, the command CODE is 01 for indicating to modify the group identifier, the configuration data CONF is the modified group identifier, and the grayscale data is empty.
For example, the initial group ID of the 8 th pixel unit is 7, and when the display data DISP is received, if the group ID in the display data DISP is 7, the control module 121 of the pixel unit 120 determines that the data is related to itself, and performs a step of modifying its own group ID to 1 according to the instruction CODE and the configuration data CONF.
In step S04, in the display state, the control terminal 110 provides the corresponding gray-scale data to the pixel unit 120 according to the video image. Since the grouping identification IDs of the pixel units 120 have been modified according to the driving scheme such that the grouping identification IDs of adjacent 4 pixel units in each pixel group are the same grouping identification, it is possible to drive 16 pixel units 120 with 4 gray-scale data 0-data 3 in the display state.
In this step, the control terminal 110 supplies the grouped display DATA DISP to each pixel group of the 16 pixel units 120, the group identification in the display DATA DISP is identical to the group identification ID of the corresponding pixel unit 120, the instruction CODE is 02 for indicating the display state, the configuration DATA CONF is empty, and the gray-scale DATA is one display DATA common to each pixel group, which are DATA0 to DATA3, respectively.
In this embodiment, as shown in table 1, in each display period, adjacent 4 pixel cells in each pixel group are displayed with the same gray-scale DATA. In each display period, the accumulated lighting time of the LED lamp 122 coincides with the value of the corresponding gray-scale DATA.
Table 1, adjacent pixel units share the first packet identification transformation rule of the display data.
In a preferred embodiment, the control terminal dynamically groups the plurality of pixel units according to the gray-scale data in at least one display period (e.g., a frame period), so that the pixel units with the same gray-scale data are in the same pixel group. Since the grouping of the plurality of pixel units is consistent with the gray scale data in the display period, only one gray scale data can be transmitted for the plurality of pixel units in the same pixel group, thereby reducing the transmission of redundant data.
Fig. 4 shows a flow chart of a LED control method according to a third embodiment of the present invention. The method is for being performed in the LED display device 100 shown in fig. 1, for transmitting data according to a packet identification ID to improve transmission efficiency of redundant data.
In step S11, the LED display device 100 is initialized. Step S11 of the method is the same as step S01 of the method shown in fig. 3.
In step S12, in the configuration state, the control terminal 110 selects the drive scheme. Step S12 of the method is the same as step S02 of the method shown in fig. 3.
In step S13, in the configuration state, the control terminal 110 transforms the grouping identification of the pixel units 120 according to the driving scheme. Step S13 of the method is the same as step S03 of the method shown in fig. 3.
In step S14, in the display state, the control terminal 110 provides the corresponding gray-scale data to the pixel unit 120 according to the video image. Since the grouping identification IDs of the pixel units 120 have been modified according to the driving scheme such that the grouping identification IDs of adjacent 4 pixel units in each pixel group are the same grouping identification, it is possible to drive 16 pixel units 120 with 4 gray-scale data 0-data 3 in the display state.
In this step, the control terminal 110 provides a sequence of grouped display data DISP to each pixel group of the 16 pixel units 120, and the 4 pixel units 120 in each pixel group sequentially receive a corresponding one of the 4 gray-scale data0 to data 3. The group identification in the display DATA DIS is consistent with the serial number of the corresponding pixel unit 120 in the pixel group, the command CODE is 03 for indicating the display state, the configuration DATA CONF is empty, the gray-scale DATA is a sequence of gray-scale DATA 0-DATA 3 respectively corresponding to the pixel units in each pixel group, and the sequence of gray-scale DATA is shared among the pixel units of different groups.
As shown in table 2, in each display period, adjacent 4 pixel units in each pixel group display with different gray scale DATA, and the pixel units in different groups share the same sequence of gray scale DATA. In each display period, the accumulated lighting time of the LED lamp 122 coincides with the value of the corresponding gray-scale DATA.
Table 2, the pixel units of the interval share the packet identification conversion rule of the display data.
In a preferred embodiment, the control terminal dynamically groups the plurality of pixel units according to the gray-scale data in at least one display period (e.g. a frame period), so that the pixel units with the same gray-scale data are in a plurality of pixel groups associated with each other. Since the grouping of the plurality of pixel units coincides with the gray-scale data in the display period, only one gray-scale data can be transmitted for a plurality of mutually associated pixel units in the mutually associated pixel group, thereby reducing the transmission of redundant data.
Fig. 5 shows a flow chart of a LED control method according to a fourth embodiment of the present invention. The method is for being performed in the LED display device 100 shown in fig. 1, for transmitting data according to a packet identification ID to improve transmission efficiency of redundant data.
In step S21, the LED display device 100 is initialized. Step S11 of the method is the same as step S01 of the method shown in fig. 3.
In step S22, in the configuration state, the control terminal 110 selects the drive scheme. In this embodiment, the driving method is, for example, that every n pixel groups are driven with the same display data.
In step S23, in the configuration state, the control terminal 110 transforms the grouping identification of the pixel units 120 according to the driving scheme. As shown in table 3, in this embodiment, each pixel group includes two pixel units 120, and the group identifications of the pixel groups spaced apart from each other are also the same.
Table 3, the groups of pixels of the interval share the grouping identification transformation rule of the display data.
In this step, the control terminal 110 provides respective display data DISP to the 16 pixel units 120, where the group identifier in the display data DISP is consistent with the initial identifier ID of the corresponding pixel unit 120, the command CODE is 01 for indicating to modify the group identifier, the configuration data CONF is the modified group identifier, and the grayscale data is empty.
For example, the initial group ID of the 8 th pixel unit is 7, and when the display data DISP is received, if the group ID in the display data DISP is 7, the control module 121 of the pixel unit 120 determines that the data is related to itself, and performs a step of modifying its own group ID to 0 according to the instruction CODE and the configuration data CONF.
In this embodiment, a group identification transformation may be performed once to modify the group identifications of all pixel units 120 to the data shown in table 3. Alternatively, a plurality of packet transformations may be performed.
For example, in the first conversion, the control terminal 110 provides the respective display data DISP to the 16 pixel units 120, the group identifier in the display data DISP is consistent with the initial identifier ID of the corresponding pixel unit 120, the command CODE is 01 for indicating to modify the group identifier, the configuration data CONF is the modified first group identifier, and the gray-scale data is null. The first group of packet identifications is a reverse order queue of the initial packet identification.
In the second conversion, the control terminal 110 provides respective display data DISP to the 16 pixel units 120, where the group identifier in the display data DISP is consistent with the first group identifier, the command CODE is 01 for indicating to modify the group identifier, the configuration data CONF is the modified second group identifier, and the gray-scale data is null. The second group of packet identifiers are queues formed by dividing the first group of packet identifiers by 2 and rounding up respectively.
In the third transformation, the control terminal 110 provides respective display data DISP to the 16 pixel units 120, where the group identifier in the display data DISP is consistent with the second group identifier, the command CODE is 01 for indicating to modify the group identifier, the configuration data CONF is the modified third group identifier, and the gray-scale data is null. The third group of packet identifications is a queue formed by subtracting a difference of 4 from the packet identifications greater than or equal to 4 in the second group of packet identifications.
In this alternative embodiment, the third group identifier formed by three transformations is the same as that shown in table 3.
In step S24, in the display state, the control terminal 110 provides the corresponding gray-scale data to the pixel unit 120 according to the video image. Since the grouping identification IDs of the pixel units 120 have been modified according to the driving scheme such that the grouping identification IDs of the adjacent 2 pixel units in each pixel group are the same, and the grouping identifications of the 2 pixel groups spaced 3 pixel groups apart from each other are also the same, it is possible to drive the 16 pixel units 120 with the 4 gray-scale data 0-data 3 in the display state.
In this step, the control terminal 110 supplies the grouped display DATA DISP to each pixel group of the 16 pixel units 120, the group identification in the display DATA DISP is identical to the group identification ID of the corresponding pixel unit 120, the instruction CODE is 02 for indicating the display state, the configuration DATA CONF is empty, and the gray-scale DATA is one display DATA common to each pixel group, which are DATA0 to DATA3, respectively.
In this embodiment, as shown in table 3, in each display period, adjacent 2 pixel units in each pixel group are displayed using the same gray scale DATA, and 2 pixel groups spaced 3 pixel groups apart from each other are also displayed using the same gray scale DATA. In each display period, the accumulated lighting time of the LED lamp 122 coincides with the value of the corresponding gray-scale DATA.
In a preferred embodiment, the control terminal dynamically groups the plurality of pixel units according to the gray-scale data in at least one display period (e.g., a frame period), so that the pixel units with the same gray-scale data are in the same pixel group and the plurality of pixel groups associated with each other. Since the grouping of the plurality of pixel units coincides with the gray-scale data in the display period, only one gray-scale data can be transmitted for the pixel units in the same pixel group and the plurality of pixel groups associated with each other, thereby reducing the transmission of redundant data.
Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may of course be implemented by hardware, such as a system on a chip SoC, an application specific integrated circuit chip ASIC, and the like. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM), and so on, and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments or some parts of the embodiments.
While embodiments in accordance with the invention have been described above, these embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. The scope of the invention should be determined from the following claims.