Control method of light-emitting module and light-emitting module
By adopting a two-level data packet distribution mechanism in the light-emitting module, the problem of long time for the light-emitting unit to obtain the light control command is solved, and the lighting synchronization effect is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-03-27
AI Technical Summary
In light-emitting modules with multiple light-emitting units, the time for each light-emitting unit to obtain the light control command is relatively long in the existing technology, which affects the synchronization of the lighting effect.
The data packets sent by the controller are divided into K data segments. Each data segment contains the address code of the target light-emitting unit and the light control data. After receiving the data, the target light-emitting unit forwards the light control data to other light-emitting units, realizing two-level distribution and shortening the time for each light-emitting unit to obtain the light control command.
This significantly shortens the time it takes for multiple light-emitting units in the light-emitting module to receive light control commands, thus improving the synchronization of lighting effects.
Smart Images

Figure CN121001244B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent household appliances, in particular to a control method of a light-emitting module and the light-emitting module. BACKGROUND
[0002] In the related art, for a light-emitting module including multiple light strings and each light string including multiple light-emitting units, each light-emitting unit needs to directly communicate with a controller in the light-emitting module to obtain a light control instruction of each light-emitting unit from the controller. In this way, in the case that the number of light-emitting units is large, it takes a long time for each light-emitting unit in the light-emitting module to obtain the corresponding light control instruction, which directly affects the synchronization effect of the light effect. SUMMARY
[0003] Therefore, the embodiments of the present application propose a control method of a light-emitting module and the light-emitting module to solve the problem that it takes a long time for all light-emitting units in the light-emitting module to obtain the corresponding light control instruction in the related art.
[0004] The embodiments of the present application are implemented by adopting the following technical solutions:
[0005] In a first aspect, the embodiments of the present application provide a control method of a light-emitting module, the light-emitting module including a controller and K light strings, the K light strings being composed of one light string or multiple light strings connected in parallel, and each light string including multiple light-emitting units; the method including:
[0006] issuing a data packet by the controller; wherein the data packet includes K data segments, different data segments corresponding to different light strings, each data segment including an address code of a target light-emitting unit in the corresponding light string and light control data of the corresponding light string, and the light control data of one light string including light control instructions of multiple light-emitting units in the light string;
[0007] acquiring, by the target light-emitting unit in each light string, light control data of the light string in which the target light-emitting unit is located from the data packet according to the address code of the target light-emitting unit itself;
[0008] forwarding, in each light string, the light control data acquired by the target light-emitting unit in the light string to other light-emitting units in the light string except the target light-emitting unit;
[0009] After each light-emitting unit acquires the light control data, the light-emitting unit acquires its own light control instruction from the acquired light control data according to its own address code and executes the light control instruction.
[0010] In a second aspect, the embodiments of the present application provide a light emitting module, which comprises a controller and K light strings, the K light strings are composed of one light string or multiple light strings in parallel connection, each of the light strings comprises multiple light emitting units, and the light emitting module controls the light emitting units in the light emitting module according to the method as above.
[0011] In the present application, the data packet sent by the controller comprises K data segments corresponding to the K light strings respectively, each data segment comprises the control light instructions of the multiple light emitting units in the corresponding light string, and each data segment comprises the address code of the target light emitting unit in the corresponding light string. After the data packet sent by the controller is received by the target light emitting units in the multiple light strings in the light emitting module, each target light emitting unit can obtain the control light data of the light string where the target light emitting unit is located from the data packet, and then the control light data of the light string where the target light emitting unit is located is forwarded to the other light emitting units in the light string where the target light emitting unit is located, so that each light emitting unit obtains its control light instruction from the received control light data. In this way, two-level distribution is realized, that is, the data packet is first distributed to the target light emitting units in each of the K light strings, and then the control light data obtained by the target light emitting units is distributed among the multiple light emitting units in the light string where the target light emitting unit is located, without the need for each light emitting unit to directly obtain its control light instruction from the controller. In this way, the time for the multiple light emitting units in the light emitting module to obtain their control light instructions is greatly shortened, especially in the case where the number of light emitting units is large. Moreover, when the multiple light emitting units in the light emitting module need to present a synchronous light effect, the method of the present application can improve the synchronization effect of the light effect.
[0012] These aspects or other aspects of the present application will be more apparent in the following description of the embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort based on these drawings.
[0014] Figure 1 is a flow chart of the control method of the light emitting module according to an embodiment of the present application.
[0015] Figure 2 is a structural schematic diagram of the light emitting module according to an embodiment of the present application.
[0016] Figure 3 is a format schematic diagram of the data packet according to an embodiment of the present application.
[0017] Figure 4 is a format diagram of a data packet according to another embodiment of the present application.
[0018] Figure 5 is a schematic diagram of a first light string according to an embodiment of the present application.
[0019] Figure 6 is a schematic diagram of a second light string according to an embodiment of the present application.
[0020] Figure 7 is a flow chart of a control method of a light emitting module according to another embodiment of the present application.
[0021] Figure 8 is a flow chart of a control method of a light emitting module according to another embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application will be described in detail with reference to the drawings, wherein the same or like components have the same or similar reference or reference numerals throughout the drawings. The embodiments described below are examples in which the present application is applied, and are intended to explain the present application, and should not be understood as limiting the present application.
[0023] In order to make the technical personnel of the present application better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0024] In the following description, the terms "first\second" and the like are merely to distinguish similar objects, and do not represent a specific order of the objects. It can be understood that "first\second" can be interchanged in a specific order or sequence as allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0025] The "multiple" mentioned in the present text refers to two or more than two. The "and / or" describes the association between the associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the front and rear associated objects are in an "or" relationship. In the following description, "some embodiments" or "some embodiment modes" are described, which are a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0026] Figure 1 is a flow chart of a control method of a light emitting module according to an embodiment of the present application. As shown in Figure 1 , the steps 110-140 are as follows:
[0027] Step 110, the controller sends a data packet; the data packet includes K data segments; different data segments correspond to different lamp strings, and each data segment includes the address code of the target light emitting unit in the corresponding lamp string and the control lamp data of the corresponding lamp string. The control lamp data of a lamp string includes the control lamp instructions of multiple light emitting units in the lamp string.
[0028] The method of the present application can be applied to a light emitting module, Figure 2 is a structural schematic diagram of a light emitting module according to an embodiment of the present application, as shown in Figure 2 , the light emitting module includes a controller 210 and K lamp strings 220. The K lamp strings are composed of one lamp string or multiple lamp strings connected in parallel. The lamp string 220 refers to a light emitting component composed of multiple light emitting units connected in series or parallel by wires. Each lamp string 220 includes multiple light emitting units, K is a positive integer not less than 1, for example, K is 1, 2, 3, 4, 5, 10, 15, etc., which is not limited here. Each lamp string 220 is electrically connected to the controller 210 through a bus 230. The bus 230 is used for signal transmission between the controller 210 and the lamp string 220.
[0029] The controller 210 is the master control component of the K lamp strings 220 in the light emitting module. The controller 210 can send a data packet for controlling the K lamp strings 220. In one lamp string 220, different light emitting units can be connected in parallel or in series, and in the light emitting module shown in Figure 2 , the different light emitting units in each lamp string 220 are connected in series.
[0030] It is worth mentioning that in the same light emitting module, the K light strings 220 can all be light strings 220 with light emitting units in series, can all be light strings 220 with light emitting units of different light emitting units in parallel, or can have light emitting units in series in part of the light strings 220 and light emitting units in parallel in part of the light strings 220. Further, in the same light emitting module, the number of light emitting units in different light strings 220 can be the same or different, which is not specifically limited herein. The number of light emitting units in one light string 220 can be set as needed. The plurality of light emitting units in one light string are electrically connected by wires.
[0031] In the present application, the light emitting units in each light string can be RGBIC lamp beads with an integrated circuit (IC) built-in. Due to the built-in IC, different light emitting units can be controlled individually, and the IC chip built-in each light emitting unit can parse the received light control instruction to control the light emitting module in the light emitting unit to execute the light control instruction, such as lighting up in a specified color, lighting up in a specified brightness, or turning off.
[0032] The target light emitting unit in one light string refers to a light emitting unit in the light string for obtaining light control data of the light string from the data packet. That is, one light emitting unit in one light string is taken as the target light emitting unit in the light string. In some embodiments, one light emitting unit connected to the bus in one light string can be taken as the target light emitting unit in the light string, or one light emitting unit directly connected to the positive terminal of the bus in one light string can be taken as the target light emitting unit in the light string.
[0033] If different light emitting units in one light string are connected in series, for example, in the light emitting module shown in FIG. 2B, one light emitting unit directly connected to the bus in one light string is taken as the target light emitting unit in the light string. Figure 2 If different light emitting units in one light string are connected in series, for example, in the light emitting module shown in FIG. 2B, one light emitting unit directly connected to the bus in one light string is taken as the target light emitting unit in the light string. Figure 2 Since the target light emitting unit in one light string is the first light emitting unit through which the signal from the bus flows into the light string, after the data packet transmitted by the controller is transmitted on the bus, the target light emitting unit in one light string can receive the data packet earlier than other light emitting units in the light string.
[0034] If different light emitting units in one light string are connected in parallel, all light emitting units in the light string are directly connected to the bus, so any one light emitting unit in one light string can be taken as the target light emitting unit in the light string.
[0035] In the present application, each light emitting unit in each light string has its own address code, the address codes of different light emitting units are different, and the address code of one light emitting unit is used to uniquely identify the light emitting unit. The controller can store the address code of each light emitting unit in the light emitting module, and in addition, each light emitting unit can also store its own address code locally.
[0036] In some embodiments, the address code of each light emitting unit in the light emitting module can be assigned by the controller, so that the controller can ensure that different address codes are assigned to different light emitting units, and the controller can also store the light string indication information of each light emitting unit (the light string indication information indicates the light emitting units included in each light string). After the controller assigns the address code of each light emitting unit in each light string, the controller can store the address code of each light emitting unit, and send the address code of each light emitting unit to each light emitting unit respectively, and each light emitting unit stores its own address code locally.
[0037] In some embodiments, the controller can also store the target light emitting unit indication information of each light string, and the target light emitting unit indication information of one light string is used to indicate the identification of the target light emitting unit in the light string, for example, the address code of the target light emitting unit can be indicated.
[0038] The data packet sent by the controller includes the light control instruction of all light emitting units in the light emitting module, and the light control instructions of different light emitting units can be the same or different, and the light control instructions of different light emitting units can be independent of each other. In some embodiments, the controller can generate a data packet for realizing the light effect indicated by the light effect instruction of the terminal device in response to the light effect instruction. One light effect instruction can be an instruction to start presenting a light effect, or an instruction to turn off a light effect. The terminal device can be a smart phone, a tablet computer, a notebook computer, a wearable device, etc., which is not limited here. The terminal device can pre-establish a communication connection with the controller in the light emitting module in advance, which can be a Bluetooth connection, a wifi connection, etc., which is not limited here.
[0039] In some embodiments, after the controller receives the light effect instruction sent by the terminal device and analyzes the light effect instruction to obtain the light control instruction of each light emitting unit in the light emitting module, the controller encapsulates the data packet according to the light control instruction of each light emitting unit and the address code of each light emitting unit, and generates the data packet. The data packet includes a data segment corresponding to each light string, and each data segment includes the address code of the target light emitting unit in the corresponding light string and the light control data of the corresponding light string; wherein the address code of the target light emitting unit in the data segment is used to locate the light control data of the light string corresponding to the data segment. The light control data of the light string in one data segment includes the light control instruction of all light emitting units in the light string.
[0040] In some embodiments, the controller can encapsulate the data packet in a format as shown in Figure 3 Figure 3 The first three data segments in the data packet are exemplarily shown in Figure 3 As shown in ① in, one data segment includes, in sequence from front to back, a start address bit, a data length bit, and a data bit, the start address bit is used to store the address code of the target light emitting unit in the light string corresponding to the data segment, and the address code stored in the start address bit serves as the address index of the light control data of the light string corresponding to the data segment. The data bit in one data segment is used to store the light control data of one light string. The data length bit is used to store the data length of the light control data stored in the data bit in the data segment, and the data length of the light control data can be the number of bit positions of the light control data.
[0041] Please refer to Figure 3 As shown in ②, the light control data stored in one data bit includes a plurality of sub-data segments, Figure 3 The format of the light control data stored in the data bit in the first data segment is exemplarily shown in ②. The number of sub-data segments included in the light control data stored in the data bit in one data segment is determined by the number of light emitting units in the light string corresponding to the data segment, for example, if there are 8 light emitting units in a light string A, the light control data stored in the data bit in the data segment corresponding to the light string includes 8 sub-data segments. One sub-data segment corresponds to one light emitting unit in the light string. Different sub-data segments correspond to different light emitting units. Each sub-data segment includes an address bit and an instruction bit, the address bit is used to store the address code of the light emitting unit represented by the sub-data segment, and the instruction bit is used to store the light control instruction of the light emitting unit represented by the sub-data segment.
[0042] It is worth mentioning that, in Figure 3 corresponding embodiments, the lengths of the start address bit, the data length bit, and the data bit in each data segment are not limited to one bit position, and can be a plurality of bit positions, and any two of the bit positions occupied by the start address bit, the bit positions occupied by the data length bit, and the bit positions occupied by the data bit can be the same or different, and can be set according to actual needs.
[0043] In addition, the bit occupied by the address bit in one sub-data segment and the bit occupied by the instruction bit are not limited to one bit, and can be multiple bits, which can be set according to actual needs. In some embodiments, the bit number (assuming m) of the address code of a single light emitting unit and the bit number (assuming n) of the light control instruction of a single light emitting unit can be set in advance. Assuming that the total number of light emitting units in one light string is P, the bit occupied by the data bit in the data segment corresponding to the light emitting unit is P×(m+n); and the data length stored in the data length bit in the data segment corresponding to the light string is P×(m+n).
[0044] In other embodiments, as shown in ① in Figure 4 , one data segment in the data packet includes the start address bit, the data bit and the end address bit arranged in sequence from front to back. As above, the start address bit stores the address code of the target light emitting unit in the light string corresponding to the data segment, the data bit stores the light control data of the light string corresponding to the data segment, and the end address bit stores the address code of another light emitting unit except the target light emitting unit in the light string corresponding to the data segment. Since the data bit is located between the start address bit and the end address bit in one data segment, the end position of the light control data corresponding to the data segment can be indicated by the end address bit.
[0045] In some embodiments, if different light emitting units in one light string are arranged in series, the end address bit in the data segment corresponding to the light string can store the address code of the light emitting unit farthest from the bus in series in the light string, and of course, can also store the address code of any one of the light emitting units except the target light emitting unit in the light string. In other embodiments, if different light emitting units in one light string are arranged in parallel, the end address bit in the data segment corresponding to the light string can store the address code of any one of the light emitting units except the target light emitting unit in the light string.
[0046] As shown in ② in Figure 4 , the format of the light control data stored in the data bit in each data segment can be the same as that in the corresponding embodiment of Figure 3 . Details are not repeated here. Similarly, in the corresponding embodiment of Figure 4 , the number of sub-data segments in the light control data in one data segment is determined by the number of light emitting units in the light string corresponding to the data segment.
[0047] In step 120, the target light emitting unit in each light string acquires the light control data of the light string in which the target light emitting unit is located from the data packet according to the address code of the target light emitting unit itself.
[0048] Since the target light emitting unit in each light string is directly connected to the bus, the target light emitting unit in each light string can receive the data packet sent by the controller. For the light string in which the light emitting units are in series, compared with the other light emitting units in the light string, the target light emitting unit is directly connected to the bus, so the target light emitting unit receives the data packet before the other light emitting units in the light string, which can shorten the time for forwarding the control data to the other light emitting units in the light string.
[0049] As described above, the start address bit of each data segment in the data packet stores the address code of the target light emitting unit in the light string corresponding to the data segment, so that each target light emitting unit can first decode the address code of the start address bit in each data segment when receiving the data packet. If the address code of the start address bit in a data segment is the address code of the target light emitting unit itself, the control data in the data segment is the control data of the light string in which the target light emitting unit is located. Thus, each target light emitting unit can extract the control data of the light string in which the target light emitting unit is located from the data packet.
[0050] In some embodiments, a target number of bits can be used to store the control data in each data segment, and the target number of bits for storing the control data is located after the start address bit and adjacent to the start address bit in the data segment. On this basis, after a target light emitting unit locates the data segment corresponding to the light string in which the target light emitting unit is located, the target number of bits can be read from the next bit after the last bit of the start address bit in the data segment to obtain the control data of the light string in which the target light emitting unit is located.
[0051] Step 130, in each light string, the control data obtained by the target light emitting unit in the light string is forwarded to the other light emitting units in the light string except the target light emitting unit.
[0052] Since the different light emitting units in the same light string are electrically connected, the control data obtained by the target light emitting unit can be forwarded in the light string to enable the other light emitting units in the light string to obtain the same control data as the target light emitting unit.
[0053] In some embodiments, the K light strings include at least one first light string, and different light emitting units in the first light string are arranged in series; on this basis, step 130 includes: according to the order from near to far of the series connection distance between each light emitting unit in the first light string and the target light emitting unit, sequentially forwarding the control lamp data obtained by the target light emitting unit to other light emitting units in the first light string except the target light emitting unit; wherein, in one first light string, the nth light emitting unit closest to the target light emitting unit in series connection distance forwards the control lamp data to the (n+1)th light emitting unit closest to the target light emitting unit in series connection distance, and n is a non-negative integer, when n=0, the nth light emitting unit is the target light emitting unit.
[0054] In this application, in order to distinguish, the light string in which the light emitting units are arranged in series is called the first light string. The light string in which different light emitting units are arranged in parallel is called the second light string. It can be understood that in a light emitting module, all light strings therein can be first light strings, or part of the light strings are first light strings and part are second light strings, or all are second light strings.
[0055] For example, Figure 5 is a schematic diagram of a first light string according to an embodiment of the present application, which exemplarily shows five light emitting units in the first light string, which are light emitting unit A1, light emitting unit A2, light emitting unit A3, light emitting unit A4 and light emitting unit A5. Among them, the first connection end 222 of the first light string is connected with the positive terminal of the bus, therefore, the transmission direction of the signal from the bus in the first light string is as shown by the arrow in Figure 5 , the first light emitting unit through which the signal (such as data packet) from the bus flows in the first light string is light emitting unit A1, therefore, light emitting unit A1 is the target light emitting unit in the first light string.
[0056] According to the order from near to far of the series connection distance between each light emitting unit in the first light string and the target light emitting unit, light emitting unit A2, light emitting unit A3, light emitting unit A4 and light emitting unit A5 are sorted, and the obtained sorting is: light emitting unit A2, light emitting unit A3, light emitting unit A4 and light emitting unit A5, then, after light emitting unit A1 obtains the control lamp data of the first light string in which it is located, light emitting unit A1 forwards the control lamp data to light emitting unit A2; then, light emitting unit A2 forwards the control lamp data to light emitting unit A3; then, light emitting unit A3 forwards the control lamp data to light emitting unit A4; finally, light emitting unit A4 forwards the control lamp data to light emitting unit A5, thereby realizing sequentially forwarding the control lamp data from the target light emitting unit in the first light string to all light emitting units in the first light string.
[0057] Since the different light emitting units in the first light string are in series, the n th light emitting unit in the first light string closest to the target light emitting unit forwards the control lamp data to the n+1 th light emitting unit closest to the target light emitting unit in series, to realize the sequential forwarding, instead of sending the control lamp data by the target light emitting unit to other light emitting units in the first light string, so that the time for forwarding the control lamp data to the light emitting units other than the target light emitting unit can be shortened.
[0058] In some embodiments, the K light strings include at least one second light string, and the different light emitting units in the second light string are in parallel. On this basis, step 130 includes: by the target light emitting unit in the second light string, forwarding the control lamp data acquired by the target light emitting unit to the other light emitting units in the second light string other than the target light emitting unit.
[0059] For example, Figure 6 is a schematic diagram of a second light string according to an embodiment of the present application, and four light emitting units in the second light string are exemplarily shown, which are light emitting unit B1, light emitting unit B2, light emitting unit B4 and light emitting unit B4. Wherein, the first connection end 222 of the second light string is connected with the positive terminal of the bus. If the light emitting unit B1 is taken as the target light emitting unit in the second light string, after the light emitting unit B1 acquires the control lamp data of the second light string, the control lamp data can be sent to the light emitting unit B2, the light emitting unit B3 and the light emitting unit B4 in parallel, that is, the control lamp data is broadcasted by the light emitting unit B1 to the light emitting unit B2, the light emitting unit B3 and the light emitting unit B4.
[0060] Since the different light emitting units in the second light string are in parallel, after the target light emitting unit in the second light string acquires the control lamp data of the light string, the control lamp data is broadcasted by the target light emitting unit to the other light emitting units in the light string, so that the sequential forwarding is not needed, and the time for forwarding the control lamp data to the light emitting units other than the target light emitting unit can be shortened.
[0061] Step 140: After each light emitting unit acquires the control lamp data, the light emitting unit acquires its own control lamp instruction from the acquired control lamp data according to its own address code and executes the control lamp instruction.
[0062] As described above, the control lamp data corresponding to one light string includes a plurality of sub-data segments, and one sub-data segment includes the address code of one light emitting unit and the control lamp instruction of the light emitting unit. On this basis, in step 140, after each light emitting unit acquires the control lamp data corresponding to the light string, the light emitting unit can be processed according to the following steps ①-③:
[0063] Step ①: According to the address code of the light emitting unit itself, the sub-data segment including the address code of the light emitting unit itself is located in the control lamp data.
[0064] Step 2, obtaining the light control instruction from the located sub-data segment.
[0065] Step 3, executing the obtained light control instruction.
[0066] As shown in Figure 3 and Figure 4 , one sub-data segment includes one address bit and one instruction bit, the address bit in one sub-data segment is used to store the address code of one light emitting unit, and the instruction bit in one sub-data segment is used to store the light control instruction of the light emitting unit corresponding to the address code stored in the address bit. Thus, after a light emitting unit (assuming it is light emitting unit C) obtains the light control data of the light string where it is located, it can parse the address code in the address bit of each sub-data segment in the light control data, and compare the address code of the light emitting unit C itself with the parsed address code in the address bit of each sub-data segment. If they are the same, the sub-data segment is the one including the address code of the light emitting unit C itself. Then, the light control instruction can be obtained from the instruction bit in the located sub-data segment including the address code of the light emitting unit C itself, which is the light control instruction of the light emitting unit C. The light emitting unit C can execute the obtained light control instruction.
[0067] It is worth mentioning that since the light control data obtained by each light emitting unit includes the light control instructions of all light emitting units in the light string where the light emitting unit is located, after a light emitting unit locates the sub-data segment corresponding to itself in the received light control data, it does not need to continue to parse the instruction bits in other sub-data segments in the light control data.
[0068] In the present application, the data packet sent by the controller includes K data segments corresponding to K light strings respectively, each data segment includes control light instructions of multiple light emitting units in the corresponding light string, and each data segment includes address code of a target light emitting unit in the corresponding light string. After the data packet sent by the controller is received by the target light emitting units in the multiple light strings of the light emitting module, each target light emitting unit can obtain control light data of the light string where the target light emitting unit is located from the data packet, and then the control light data of the light string where the target light emitting unit is located is forwarded to other light emitting units in the light string except the target light emitting unit, so that each light emitting unit obtains its control light instructions from the received control light data. In this way, two-level distribution is realized, that is, the data packet is first distributed to the target light emitting units in each of the K light strings, and then the control light data obtained by the target light emitting units is distributed among the multiple light emitting units in the light string where the target light emitting unit is located, without each light emitting unit directly obtaining its control light instructions from the controller. In this way, the time for the multiple light emitting units in the light emitting module to obtain their control light instructions is greatly shortened, especially in the case where the number of light emitting units is large. Moreover, when the multiple light emitting units in the light emitting module need to present a synchronous light effect, the method of the present application can improve the synchronization effect of the light effect.
[0069] As described above, each data segment in the data packet includes at least a start address bit and a data bit, the start address bit in each data segment is used to store the address code of the target light emitting unit in the corresponding light string, and the data bit is used to store control light data. On this basis, in some embodiments, as shown in step 120, each light string can be processed according to steps 710-720 as follows: Figure 7
[0070] Step 710: The target light emitting unit in the light string locates a data segment including a start address bit corresponding to the address code of the target light emitting unit itself among K data segments.
[0071] After a target light emitting unit receives a data packet from the controller, the start address bits in each data segment in the data packet can be sequentially analyzed to determine the address code in the start address bit. If the address code in the start address bit in a data segment is the same as the address code of the target light emitting unit itself (i.e., the data segment includes a start address bit corresponding to the address code of the target light emitting unit itself), it is determined that the data segment whose start address bit has the same address code as the target light emitting unit itself is the data segment corresponding to the light string where the target light emitting unit is located.
[0072] Step 720: Control light data corresponding to the light string is obtained from the data bit included in the located data segment.
[0073] The located data segment is the data segment corresponding to the light string where the target light emitting unit is located. Thus, the control light data corresponding to the light string where the target light emitting unit is located can be obtained from the data bits included in the located data segment.
[0074] In some embodiments, each data segment includes a data length bit in addition to the start address bit and the data bit. Please continue to refer to Figure 7 Step 720 can include steps 721-722 as follows:
[0075] Step 721: In the located data segment, the target data length indicated by the data length bit is obtained.
[0076] In some embodiments, the start address bit, the data length bit and the data bit can be arranged in the data segment in the order of first to last. In the located data segment, the target light emitting unit can continue to analyze the data length bit in the data segment, so as to determine the data length stored in the data length bit in the located data segment as the target data length.
[0077] Step 722: According to the target data length, data extraction is performed from the data bits included in the located data segment to obtain the control light data corresponding to the light string.
[0078] After the target data length is determined, data reading can be performed from the next bit of the last bit of the data length bit until the total number of read bits is equal to the target data length. The read data is the control light data corresponding to the light string where the target light emitting unit is located. For example, if the target data length stored in the data length bit in a data segment is 24 bits, the target light emitting unit can perform data reading from the next bit of the last bit of the data length bit until a total of 24 bits are read. The data read in sequence from the first bit to the 24th bit is the control light data corresponding to the light string where the target light emitting unit is located.
[0079] In the above embodiments, since each data segment includes a data length bit in addition to the start address bit and the data bit, the data length bit is used to indicate the data length of the control light data stored in the data bit. After a target light emitting unit locates the data segment corresponding to the light string where the target light emitting unit is located, data reading can be performed from the data bit according to the target data length indicated by the data length bit. In this way, it is ensured that the complete control light data corresponding to the light string can be read, and the situation that part of the control light data is missed is avoided.
[0080] In the above embodiment, since the data length of the control lamp data stored in the data bits in each data segment is written in the data length bit in the data segment when the data packet is generated, even if the data length of the control lamp data corresponding to the light string changes due to the addition of a light emitting unit or the reduction of a light emitting unit in the light string (for example, in the case of adding a light emitting unit, the data length of the control lamp data increases; in the case of reducing a light emitting unit, the data length of the control lamp data decreases), and the number of bit positions allocated by the controller for the data bits in the data segment changes when the data packet is generated, the target light emitting unit can still accurately read the complete control lamp data corresponding to the light string in which the target light emitting unit is located according to the target data length in the data length bit, and no data is missed.
[0081] In some embodiments, each data segment includes a start address bit and a data bit, and the address code of the start address bit in the same data segment is different from the address code of the data bit. Figure 8 As shown in FIG. 7, step 720 can include steps 810-820 as follows:
[0082] Step 810: locating the end address bit in the located data segment.
[0083] In some embodiments, after the target light emitting unit locates the data segment corresponding to the light string in which the target light emitting unit is located, the target light emitting unit starts from the end position of the data segment and analyzes from back to front to determine the end address bit in the located data segment. In other words, if the values of the bit positions are sequentially read from the end position of the data segment, and the values of the hth bit position before the end position of the data segment (the end bit position) to the end bit position in the data segment represent an address code, it can be determined that the hth bit position before the end position of the data segment (the end bit position) to the end bit position in the data segment is the end address bit in the data segment. The address code of the start address bit in a data segment is the address code stored in the start address bit, and the address code of the end address bit is the address code stored in the end address bit. Both the address code stored in the start address bit and the address code stored in the end address bit refer to the address code of the light emitting unit.
[0084] In some embodiments, since the address codes of the light emitting units are pre-allocated, the number of bit positions occupied by each address code can be determined. Assuming that the number of bit positions is H (H is a positive integer), the target light emitting unit can analyze the values of the last H bit positions in the located data segment to determine whether the values represent an address code of a light emitting unit. If yes, the last H bit positions in the data segment are determined to be the end address bit in the data segment.
[0085] Step 820, extracting the data between the start address bit and the end address bit from the located data segment to obtain the control data corresponding to the light string where the target light unit is located.
[0086] In the embodiment, the start address bit, the data bit and the end address bit in the data segment are sequentially arranged, that is, the next bit of the last bit in the start address bit is the start bit of the data bit in the data segment, and the previous bit of the first bit in the end address bit is the end bit of the data bit in the data segment. Therefore, after the start address bit and the end address bit are determined, the data can be read from the next bit of the last bit in the start address bit to the previous bit of the first bit in the end address bit, and the read data is the control data corresponding to the light string where the target light unit is located.
[0087] In the above embodiment, the data bit in the data segment is defined by the start address bit and the end address bit in the data segment, and then it is ensured that the data bit in the data segment can be accurately located after the start address bit and the end address bit in the data segment are located, and then the complete control data corresponding to the light string where the target light unit is located can be accurately extracted from the data bit.
[0088] In the above embodiment, because the address code of another light unit is encoded in the end address bit in each data segment when the data packet is generated, the number of bit occupied by the address code of the light unit is relatively constant, and the data bit in the data segment is located between the start address bit and the end address bit. Therefore, even if the data length of the control data corresponding to the light string changes due to the addition or reduction of the light unit in the light string (for example, the data length of the control data increases in the case of adding a light unit, and the data length of the control data decreases in the case of reducing a light unit), and then the number of bit allocated for the data bit in the data segment changes when the data packet is generated, the target light unit can accurately locate the data bit in the data segment according to the start address bit and the end address bit in the data segment, and ensure that the complete control data corresponding to the light string where the target light unit is located can be extracted from the data bit without omission.
[0089] The application also provides a light emitting module, which comprises a controller and K light strings, the K light strings are composed of one light string or multiple light strings connected in parallel, and each light string comprises multiple light units; the light emitting module controls the light units in the light emitting module according to the method in any of the above embodiments.
[0090] The controller is connected with each light string through a bus. In some embodiments, different light units in each light string can be connected in series, for example Figure 2In some embodiments, the different light emitting units in each light string can be arranged in series. In other embodiments, the different light emitting units in each light string can be arranged in parallel. In still other embodiments, both light strings in which the light emitting units are arranged in series and light strings in which the light emitting units are arranged in parallel can exist in the same light emitting module, without limitation.
[0091] The present application also provides a computer readable storage medium having computer readable instructions stored thereon, which, when executed by a processor, implement the method in any of the method embodiments described above.
[0092] The computer readable storage medium can be an electronic storage, such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium includes a non-transitory computer readable medium. The computer readable storage medium has storage space for computer readable instructions to execute any of the method steps described above. The computer readable instructions can be read from or written to one or more computer program products. The computer readable instructions can be compressed in an appropriate form, for example.
[0093] According to an aspect of the embodiments of the present application, a computer program product is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method in any of the embodiments described above.
[0094] It should be noted that although several modules or units of a device for action execution are mentioned in the foregoing detailed description, such division is not mandatory. In fact, according to the embodiments of the present application, features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, features and functions of one module or unit described above can be further divided into a plurality of modules or units.
[0095] From the above description of the embodiments, those skilled in the art will readily appreciate that the example embodiments described herein can be implemented by software and / or by hardware and / or by a combination of software and hardware. The technical solutions according to the embodiments of the present application can be embodied in a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash disk, a mobile hard disk, or the like) or a network, and includes a number of instructions to make a computing device (which can be a personal computer, a server, a terminal, or a network device, etc.) execute the methods according to the embodiments of the present application.
[0096] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the application embrace any and all variations of the present application that fall within the scope of the general inventive concept as defined by the appended claims and their equivalents. It is intended that the application encompass all such variations as fall within the scope of the appended claims and their equivalents.
[0097] It is to be understood that the application is not limited to particular details described herein and as illustrated in the figures and can be practiced with modification and changes within the scope of the appended claims. The scope of the application is indicated by the claims.
Claims
1. A control method for a light-emitting module, characterized in that, The light-emitting module includes a controller and K light strings, wherein the K light strings consist of a single light string or multiple light strings connected in parallel, and each light string includes multiple light-emitting units; the method includes: The controller sends out a data packet; wherein the data packet includes K data segments, different data segments correspond to different light strings, each data segment includes the address code of the target light-emitting unit in the corresponding light string and the light control data of the corresponding light string, and the light control data of a light string includes the light control instructions of multiple light-emitting units in the light string; The target light-emitting unit in each of the light strings obtains the light control data of the light string from the data packet according to the address code of the target light-emitting unit itself; In each of the light strings, the light control data obtained by the target light-emitting unit is forwarded to other light-emitting units in the light string other than the target light-emitting unit; After acquiring the lighting control data, each light-emitting unit retrieves its own lighting control command from the acquired lighting control data based on its own address code and executes the lighting control command.
2. The method according to claim 1, characterized in that, Each of the data segments includes at least a start address bit and data bits. The start address bit in a data segment is used to store the address code of the target light-emitting unit in the corresponding light string; the data bits are used to store light control data. The step of obtaining the control data of the light string from the data packet by the target light-emitting unit in each of the light strings according to the address code of the target light-emitting unit itself includes: From the target light-emitting unit in the light string, locate the data segment that includes the starting address bit corresponding to the address code of the target light-emitting unit itself in the K data segments; Obtain the control data corresponding to the light string from the data bits included in the located data segment.
3. The method according to claim 2, characterized in that, Each of the data segments also includes data length bits; The step of obtaining the control data corresponding to the light string from the data bits included in the located data segment includes: Within the located data segment, obtain the target data length indicated by the data length bit. According to the target data length, data is extracted from the data bits included in the located data segment to obtain the control data corresponding to the light string.
4. The method according to claim 2, characterized in that, Each data segment also includes an end address bit, and the address codes of the start address bit and the end address bit are different in the same data segment; The step of obtaining the control data corresponding to the light string from the data bits included in the located data segment includes: Within the located data segment, locate the end address bit; From the located data segment, extract the data located between the start address and the end address to obtain the control data corresponding to the light string.
5. The method according to any one of claims 1 to 4, characterized in that, Each of the light control data includes multiple sub-data segments, and each sub-data segment includes the address code of a light-emitting unit and the light control command of that light-emitting unit.
6. The method according to claim 5, characterized in that, After acquiring the lighting control data, each light-emitting unit retrieves its own lighting control command from the acquired lighting control data according to its own address code and executes the lighting control command, including: Based on the address code of the light-emitting unit itself, locate the sub-data segment containing its own address code in the lighting control data; Obtain the light control command from the located sub-data segment; Execute the obtained light control command.
7. The method according to any one of claims 1 to 4, characterized in that, The K light strings include at least one first light string, in which different light-emitting units are connected in series; The step of forwarding the control data acquired by the target light-emitting unit in each of the light strings to other light-emitting units in the light string besides the target light-emitting unit includes: Based on the order of the series distance between each light-emitting unit in the first light string and the target light-emitting unit from closest to furthest, the light control data obtained by the target light-emitting unit in the first light string is forwarded sequentially to the other light-emitting units in the first light string, excluding the target light-emitting unit. Among them, in a first light string, the nth light-emitting unit that is closest to the target light-emitting unit in series distance forwards the light control data to the (n+1)th light-emitting unit that is closest to the target light-emitting unit in series distance. When n=0, the nth light-emitting unit is the target light-emitting unit.
8. The method according to any one of claims 1 to 4, characterized in that, The K light strings include at least one second light string, in which different light-emitting units are connected in parallel; The step of forwarding the control data acquired by the target light-emitting unit in each of the light strings to other light-emitting units in the light string besides the target light-emitting unit includes: The target light-emitting unit in the second light string forwards the light control data obtained by the target light-emitting unit to other light-emitting units in the second light string, excluding the target light-emitting unit.
9. The method according to any one of claims 1 to 4, characterized in that, The controller is electrically connected to each of the light strings via a bus; the target light-emitting unit in a light string is one of the light-emitting units connected to the bus.
10. A light-emitting module, characterized in that, The light-emitting module includes a controller and K light strings, wherein the K light strings consist of a single light string or multiple light strings connected in parallel, and each light string includes multiple light-emitting units; the light-emitting module controls the light-emitting units in the light-emitting module according to the method described in any one of claims 1 to 9.
Citation Information
Patent Citations
Address setting method, data processing method, lighting equipment and medium
CN120512420A
Device, system, and method for determining an address of a component arranged in a structure
EP3593597A1