A method and device for allocating light point addresses of LED light strings
By setting two initial addresses for the LED light points and rewriting the address in combination with position number, the problems of low data transmission efficiency and high cost are solved, and efficient lamp point address allocation is achieved, reducing wiring overhead and improving image refresh rate.
Patent Information
- Application Number
- CN202211411008.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-11-11
AI Technical Summary
There are problems with low data transmission efficiency or high cost in the existing LED light string lamp address allocation method. This is mainly due to the increase in the initial address width of the light point, which increases the length of the controller access instruction, or the increase in the serial address allocation line, resulting in an increase in wiring overhead.
By setting two initial addresses for each lamp point, the controller judges the address duplication and rewrites the lamp point address. If the two initial addresses are different or only one is the same, the controller only needs to allocate a new address through one initial address, and rewrites the address based on the position number of the lamp point in the LED light string to avoid address duplication.
It improves data transmission efficiency, reduces system costs, and avoids address lines affecting the transparency effect in transparent screen applications, saving wiring space.
Smart Images

Figure CN115665924B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of LED light strings, and in particular to a method and device for allocating light point addresses of an LED light string. Background Art
[0002] Each light point has an initial address. After the LED light string is manufactured, the initial address and the position of the light point in the LED light string are used to generate a new light point address. In subsequent normal use, the controller can use the new light point address to exchange data with the light points in the LED light string. Because the initial address bit width of the light point is limited, it is easy for two or more light points in the same LED light string to have duplicate initial addresses during large-scale production. As a result, when the controller accesses different light points in the LED light string according to the initial address to assign new addresses to the light points, one initial address will correspond to multiple light points, resulting in the new address not being assigned correctly.
[0003] To address this issue, increasing the bit width of the initial address of a light point is often used. However, this increase also increases the bit width of the new address of the light point, increasing the length of the access instructions between the controller and the light point, resulting in reduced data transmission efficiency. Another approach is to add serial address allocation lines to connect all the light points in the LED light string via the address lines, and then use the address allocation instructions to sequentially assign light point addresses. However, this approach requires separate address lines, which adds additional wiring overhead and leads to higher costs.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the Invention
[0005] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method and device for allocating lamp point addresses for LED light strings, so as to solve the problems of low data transmission efficiency or high cost in the existing methods for allocating lamp point addresses for LED light strings.
[0006] The technical solutions of the present invention are as follows:
[0007] A method for allocating addresses of light points of an LED light string, comprising:
[0008] The controller obtains the initial address of each light point in the LED light string; wherein the initial address of the light point includes a first initial address and a second initial address;
[0009] The controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address;
[0010] Among them, if the first initial address and the second initial address of each lamp point in the LED light string are different, the controller rewrites the lamp point address according to the first initial address or the second initial address of the lamp point; if the first initial addresses of some lamp points in the LED light string are different and the second initial addresses are the same, the controller rewrites the lamp point address according to the first initial address, or the first initial address is the same and the second initial address is different, the controller rewrites the lamp point address according to the second initial address; if the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and the second initial address are different lamp points, the controller rewrites the lamp point address according to the first initial address and the second initial address.
[0011] In a further configuration of the present invention, the controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address, including the following steps:
[0012] The controller rewrites the lamp point address according to the first initial address, the second initial address, or the first initial address and the second initial address of the lamp point in combination with the position number of the lamp point in the LED light string.
[0013] In a further configuration of the present invention, the controller rewrites the address of the lamp point according to the first initial address, the second initial address, or the first initial address and the second initial address of the lamp point in combination with the position number of the lamp point in the LED light string, including:
[0014] The controller sends the initial address of each lamp point and the position number of the corresponding lamp point in the LED light string to the LED light string. If the initial address received by each lamp point in the LED light string is equal to its own initial address, the initial address of the corresponding lamp point itself is changed to the position number to obtain the new lamp point address of the corresponding lamp point.
[0015] In a further configuration of the present invention, the controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address to obtain a new lamp point address according to the repetition of the first initial address and the second initial address of the lamp point, further comprising:
[0016] If the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and second initial address are the same lamp points, one of the duplicate lamp point pairs will be replaced and then the address will be reallocated.
[0017] In a further configuration of the present invention, the step of the controller obtaining the initial address of each light point in the LED light string includes:
[0018] The controller sends an address read instruction to each light point in the LED light string; wherein, after receiving the address read instruction, the light point controls the on and off state of the light-emitting component according to the address read instruction;
[0019] The controller controls the photoreceptor to read the on / off status of the light point and obtains the on / off status information fed back by the photoreceptor;
[0020] The controller obtains the initial address of the light point according to the on / off status information, and reads the initial addresses of all the light points according to the arrangement order of the light points in the LED light string.
[0021] According to a further configuration of the present invention, after rewriting the address, the lamp point will record that its initial address has been rewritten, and the lamp point whose address has been rewritten will no longer rewrite its new lamp point address.
[0022] According to a further configuration of the present invention, before the step of the controller acquiring the initial address of each light point in the LED light string, the controller further comprises:
[0023] Pre-set the first initial address and the second initial address at the light point;
[0024] When rewriting the light point address, the first initial address remains unchanged, and the second initial address is modified to obtain a new light point address.
[0025] In a further configuration of the present invention, after the step of the controller determining whether the first initial address and the second initial address of each lamp point are repeated, and rewriting the lamp point address to obtain a new lamp point address according to the repetition of the first initial address and the second initial address of the lamp point, the controller further comprises:
[0026] The controller exchanges display data with the corresponding light point through the new light point address to control the corresponding light point to display different grayscale images according to the display data.
[0027] A device for allocating light point addresses of an LED light string, which is applied to a method for allocating light point addresses of an LED light string, is connected to the LED light string and includes: a controller and a photoreceptor; wherein,
[0028] The photoreceptor is connected to the controller and is arranged opposite to the light points in the LED light string, and is used to read the on and off status of the light points and feed back the on and off status information to the controller;
[0029] The controller is connected to the photoreceptor and the LED light string respectively. The controller is used to obtain the initial address of each lamp point in the LED light string according to the on and off status information, and to determine whether the first initial address and the second initial address of each lamp point are repeated, and to rewrite the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address.
[0030] According to a further configuration of the present invention, the photoreceptor is a photosensitive device.
[0031] The present invention provides a method and device for allocating lamp point addresses of an LED lamp string, the method comprising: a controller obtaining the initial addresses of each lamp point in the LED lamp string; wherein the initial addresses of the lamp points include a first initial address and a second initial address; the controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address; wherein, if the first initial address and the second initial address of each lamp point in the LED lamp string are different, the controller rewrites the lamp point address according to the first initial address or the second initial address of the lamp point; if the first initial addresses of some lamp points in the LED lamp string are different but the second initial addresses are the same, the controller rewrites the lamp point address according to the first initial address, or if the first initial addresses are the same but the second initial addresses are different, the controller rewrites the lamp point address according to the second initial address; if the first initial address and the second initial address of some lamp points in the LED lamp string are the same, and the lamp points with the same first initial address and the second initial address are different lamp points, the controller rewrites the lamp point address according to the first initial address and the second initial address. The present invention reduces the duplication of initial addresses in the same LED light string by setting two initial addresses for the light points. When assigning addresses to the light points, if the two initial addresses of the light points in the LED light string are different or only one initial address is the same, the controller only needs to assign a new address to the light point through one initial address. Compared with the method of accessing through two initial addresses, the data transmission efficiency is improved, and no address allocation line is required, which saves wiring space and reduces costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary personnel in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0033] Figure 1 It is a flow chart of a method for allocating addresses of light points of an LED light string in the present invention.
[0034] Figure 2 It is a flow chart of a method for allocating lamp point addresses of an LED lamp string in a specific application embodiment of the present invention.
[0035] Figure 3 This is a circuit schematic diagram of the device for allocating light point addresses for an LED light string in the present invention. DETAILED DESCRIPTION
[0036] The present invention provides a method and apparatus for assigning addresses to light points in an LED light string, which are applicable to fields such as LED lighting, LED display screens, LED backlights, and LED lighting. To clarify the objectives, technical solutions, and effects of the present invention, the present invention is further described below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.
[0037] In the embodiments and patent claims, unless otherwise specified herein, the words "a," "an," "the," and "the" may include plural forms. If the embodiments of the present invention include descriptions of "first," "second," etc., such descriptions are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly specifying the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include at least one of such features.
[0038] It should be further understood that the term "comprising" as used in the description of the present invention refers to the presence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be intermediate elements. In addition, "connected" or "coupled" as used herein can include wireless connections or wireless couplings. The term "and / or" as used herein includes all or any units and all combinations of one or more associated listed items.
[0039] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0040] In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the fact that ordinary technicians in this field can implement them. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0041] The inventors have discovered that in order to avoid the problem of one initial address corresponding to multiple light points when the controller accesses different light points in the LED light string according to the initial address to assign new addresses to the light points, resulting in the new address not being assigned correctly, a method of increasing the bit width of the initial address of the light point is usually used. However, this also increases the bit width of the new address, which ultimately increases the length of the access instruction between the controller and the light point and reduces the data transmission efficiency. Because the system using this type of technology uses a single-line data line to transmit display data, the transmission rate itself is low, and any additional data will reduce the image refresh rate. Another method is not to use the initial address as a method of assigning new addresses, but to add a serial address assignment line to connect all the light points in the LED light string through the address line, and then use the control address assignment instruction to sequentially assign the light point address. This method requires a separate address line, which adds additional wiring overhead and increases cost. In the application of transparent screens, the added address line will affect the transparency effect.
[0042] In response to the above technical problems, the present invention provides a method and device for allocating lamp point addresses for an LED light string. By setting two initial addresses for the lamp points, the situation of repeated initial addresses in the same LED light string is reduced. When assigning addresses to lamp points, if the two initial addresses of each lamp point in the LED light string are different or only one initial address is the same, the controller only needs to assign a new address to the lamp point through one initial address. Compared with the method of accessing through two initial addresses, the data transmission efficiency is improved and the testing time is saved. The new lamp point address bit width of the lamp point is equal to the bit width of any one of the initial addresses. When the controller uses the new lamp point address to interact with the lamp point to display data, the data transmission efficiency is high and the image refresh rate is improved. In addition, the present invention does not require an address allocation line, which saves wiring space, reduces system costs, and avoids the problem of affecting the transparency effect due to the addition of address lines in the application of transparent screens.
[0043] Please also see Figure 1 and Figure 2 The present invention provides a preferred embodiment of a method for allocating light point addresses of an LED light string.
[0044] like Figure 1 As shown, the present invention provides a method for allocating light point addresses of an LED light string, which includes the following steps:
[0045] S100: The controller obtains the initial address of each light point in the LED light string; wherein the initial address of the light point includes a first initial address and a second initial address;
[0046] S200, the controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address;
[0047] Among them, if the first initial address and the second initial address of each lamp point in the LED light string are different, the controller rewrites the lamp point address according to the first initial address or the second initial address of the lamp point; if the first initial addresses of some lamp points in the LED light string are different and the second initial addresses are the same, the controller rewrites the lamp point address according to the first initial address, or the first initial address is the same and the second initial address is different, the controller rewrites the lamp point address according to the second initial address; if the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and the second initial address are different lamp points, the controller rewrites the lamp point address according to the first initial address and the second initial address.
[0048] Specifically, the initial address of each lamp point includes a first initial address and a second initial address. The controller can address the corresponding lamp point by sending different instructions through the first initial address or the second initial address, or address the corresponding lamp point through the first initial address and the second initial address at the same time (that is, the first initial address and the second initial address are combined).
[0049] After obtaining the initial addresses of all lamps in the LED light string, the controller determines whether the first initial address and the second initial address of each lamp are repeated, and determines whether the first initial address is repeated, the second initial address is repeated, or both the first initial address and the second initial address are repeated. First, the controller determines whether the first initial address and the second initial address of each lamp point are different. If the first initial address and the second initial address of each lamp point in the LED light string are different, the controller can rewrite the lamp point address according to the first initial address, or rewrite the lamp point address through the second initial address; if one of the first initial address and the second initial address of some lamp points is the same, it is further determined whether the first initial address is the same or the second initial address is the same. If the first initial address of some lamp points in the LED light string is different and the second initial address is the same, the controller rewrites the lamp point address according to the first initial address, or the first initial address is the same and the second initial address is different, the controller rewrites the lamp point address according to the second initial address; if the controller determines that the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and the second initial address are different lamp points, the controller rewrites the lamp point address according to the first initial address and the second initial address.
[0050] It can be seen that the present invention sets two initial addresses for the lamp point. The lamp point has two initial addresses, which is equivalent to a longer address bit width, thereby reducing the duplication of initial addresses in the same LED light string. When assigning addresses to the lamp points, if the two initial addresses of each lamp point in the LED light string are different or only one initial address is the same, the controller only needs to assign a new address to the lamp point through one initial address, and the bit width of the new lamp point address is equal to the bit width of any of the initial addresses. Compared with the method of accessing through two initial addresses, when the controller interacts with the lamp point using the new lamp point address to display data, the data transmission efficiency is improved, thereby improving the refresh rate of the image, and no address allocation line is required, which saves wiring space, reduces costs, and avoids the problem of affecting the transparency effect due to the addition of address lines in the application of transparent screens.
[0051] For example, an LED light string has 20 light points, each of which includes three colors: R (red), G (green), and B (blue). Each color corresponds to 8 bits of display data. The initial address B of the light point is 8 bits wide. The probability of two duplicate addresses in the initial address B is 20 / 256, about 8%. If the address width is increased by 8 bits, the probability of two duplicate addresses is 20 / 65536, about 0.03%. The total 24 bits of RGB display data plus the 8-bit address is 32 bits, which increases to 40 bits after the 8-bit address bit. In other words, the controller needs to send at least 40 bits of data to control a single light point. Compared with the 8-bit address instruction, the 16-bit address is 25% less efficient, and the instruction length increases by 8 bits accordingly.
[0052] If the present invention is used, under the premise of an 8-bit initial address B, an 8-bit initial address A is added, and the probability that the initial address B is the same as the initial address A is only 20 / 65536. When the controller uses the new light point address when accessing the light point, its instruction length does not increase and is still an 8-bit address.
[0053] In a further implementation of an embodiment, step S200 further includes the steps of:
[0054] S210: If the first initial address and the second initial address of some lamp points in the LED lamp string are the same, and the lamp points with the same first initial address and second initial address are the same lamp points, replace one of the duplicate lamp point pairs and then reallocate the address.
[0055] Specifically, if the controller detects that there are lamp points in the LED light string whose first initial address and second initial address are the same, and they appear in the same pair of lamp points, that is, the two lamp points with the same first initial address and the two lamp points with the same second initial address are the same pair of lamp points, then one of the lamp point pairs with repeated lamp point addresses is replaced with another new lamp point, and then the duplication of the lamp point addresses in the LED light string is further judged, and the lamp point address is rewritten according to the duplication of the first initial address and the second initial address of the lamp point to obtain a new lamp point address.
[0056] In a further implementation of an embodiment, step S200 includes the steps of:
[0057] S220: The controller rewrites the lamp point address according to the first initial address, the second initial address, or the first initial address and the second initial address of the lamp point in combination with the position number of the lamp point in the LED light string.
[0058] Specifically, the control reads the initial addresses of all the lamp points in sequence according to the arrangement rule of the lamp points in the LED lamp string.
[0059] If the controller determines that the first initial address and the second initial address of each lamp point in the LED light string are not repeated, then according to the position of each lamp point in the LED light string, the controller accesses the lamp point through one of the first initial address and the second initial address and rewrites its second initial address to obtain a new lamp point address. For example, if the second initial address of the lamp point at the head of the LED light string is changed to 0x00, the second initial address of the lamp point at the second position is changed to 0x01, and so on;
[0060] If the second initial address of a lamp in the controller's LED string is repeated, but the first initial address is not repeated, then the lamp is accessed through the first initial address according to its position in the LED string and its second initial address is rewritten. For example, if the second initial address of the lamp at the head of the LED string is changed to 0x00, the second initial address of the lamp at the second position is changed to 0x01, and so on;
[0061] If the controller determines that the first initial address of a light point in the LED light string is repeated but the second initial address is not repeated, then the controller accesses the light point through the second initial address and rewrites its second initial address according to the position of the light point in the LED light string. For example, if the second initial address of the light point at the head of the LED light string is changed to 0x00, the initial address of the second light point at the second position is changed to 0x01, and so on;
[0062] If the first initial address and the second initial address of a lamp in the LED light string are repeated, but they do not appear in the same pair of lamps, that is, the two lamps with the same first initial address and the same second initial address do not intersect, then according to the position of the lamp in the LED light string, the first initial address and the second initial address are used to access the lamp and rewrite its second initial address. For example, if the second initial address of the lamp at the head of the LED light string is changed to 0x00, the second initial address of the lamp at the second position is changed to 0x01, and so on;
[0063] If the controller determines that the first initial address and the second initial address of a lamp in the LED light string are repeated and appear in the same pair of lamp points, that is, the two lamp points with the same first initial address and the two lamp points with the same second initial address are the same pair of lamp points, then a new lamp point is used to replace one of the lamp points in the pair with the repeated address, and the above process is repeated.
[0064] In a further implementation of an embodiment, step S220 includes the steps of:
[0065] S221. The controller sends the initial address of each lamp point and the position number of the corresponding lamp point in the LED light string to the LED light string. If the initial address received by each lamp point in the LED light string is equal to its own initial address, the initial address of the corresponding lamp point itself is changed to the position number to obtain the new lamp point address of the corresponding lamp point.
[0066] Specifically, if the correspondence between the new lamp point address and the position of the lamp point in the LED light string is its position number in the LED light string, the controller sends the initial address of the lamp point and the position number of the lamp point in the LED light string to the LED light string, and the lamp point in the LED light string compares the received initial address with its own initial address. If they are equal, it rewrites its own second initial address as the position number. The position number is the new lamp point address of the lamp point. At this time, the bit width of the new lamp point address is equal to the bit width of the second initial address.
[0067] It's important to note that the new address of a new LED point must correspond exactly to its position in the LED string, but this doesn't necessarily mean it can't be repeated. For example, if you want to implement a looping display function, you can repeat the new address of the LED points in the LED string to improve command efficiency. For example, if you have a 20-point string and every five points display the same content, then points 1-20 can be addressed using 0x00-0x04, repeating four times. When sending the command, only five data points are needed to loop through all 20 points, reducing command length by 75%.
[0068] It should be further noted that the second initial address and the first initial address of a light point are interchangeable. That is, the first initial address can be used as the second initial address, and the second initial address can also be used as the first initial address. In one implementation, the present invention rewrites the second initial address to use as the new light point address. In another implementation, the first initial address can also be rewritten to use as the new light point address.
[0069] In a further implementation of an embodiment, step S100 includes the steps of:
[0070] S110, the controller sends an address read instruction to each light point in the LED light string; wherein, after receiving the address read instruction, the light point controls the on / off state of the light-emitting component according to the address read instruction;
[0071] S120: The controller controls the photoreceptor to read the on / off status of the light point and obtains the on / off status information fed back by the photoreceptor;
[0072] S130: The controller obtains the initial address of the light point according to the on / off status information, and reads the initial addresses of all the light points according to the arrangement order of the light points in the LED light string.
[0073] Specifically, the controller sends an address read command to each light point in the LED light string. Each light point then outputs its initial address by turning its light-emitting component (LED) on and off. The controller then controls a photoreceptor to align with the light-emitting component of each light point, capturing the light point's on / off status and feeding it back to the controller, converting the optical signal into an electrical signal. The controller then analyzes the on / off status information fed back by the photoreceptor and reads the first and second initial addresses of the corresponding light point according to its arrangement in the LED light string.
[0074] In a further implementation of an embodiment, before step S100, the following steps are further included:
[0075] S101, pre-setting a first initial address and a second initial address at a light point;
[0076] When rewriting the light point address, the first initial address remains unchanged, and the second initial address is modified to obtain a new light point address.
[0077] Specifically, each lamp point has two initial addresses, among which the first initial address is preset before the lamp point is processed into an LED light string and does not need to be modified during subsequent production, processing or application. The second initial address is also preset before the lamp point is processed into an LED light string. After being processed into an LED light string, the second initial address needs to be modified according to the arrangement position of the lamp point in the LED light string to obtain the new lamp point address of the lamp point. Alternatively, when replacing a broken lamp point during the application process, its second initial address is modified according to the position of the lamp point in the LED light string to obtain the new lamp point address of the lamp point.
[0078] In a further implementation of an embodiment, after rewriting the address, the lamp point will record that its own initial address has been rewritten, and the lamp point whose address has been rewritten will no longer rewrite its own new lamp point address.
[0079] Specifically, after rewriting the second initial address, the place where the lamp point originally stored the second initial address is replaced by the new lamp point address. The new lamp point address may be the same as other second initial addresses that have been rewritten, so the lamp point needs to record that its own second initial address has been modified to the new lamp point address. If it continues to receive address rewriting instructions sent by the controller, the lamp point that has already rewritten the address will no longer rewrite its own new address.
[0080] In a further implementation of an embodiment, step S200 further includes the following steps:
[0081] S300: The controller interacts with the corresponding light point through the new light point address to display data, so as to control the corresponding light point to display different grayscale images according to the display data.
[0082] Specifically, after the controller completes the address redistribution of the LED light string, that is, after the controller modifies the second initial address of all lamp points to obtain the new lamp point address, all new lamp point addresses must correspond one-to-one to the position of the lamp point in the LED light string. The corresponding lamp point can be addressed through the new lamp point address to access it, and the lamp point can be controlled to display different grayscale images according to the display data, thereby controlling the color output of the LED light string.
[0083] To better understand the present invention, please refer to Figure 2 The present invention is described below with reference to a specific application example.
[0084] like Figure 2As shown, when the controller reallocates the address of the LED light string, it first sends an address read instruction to each light point in the LED light string. At this time, the light point controls the on and off state of the light-emitting component (the light point includes a driver chip and a light-emitting component, and the light-emitting component can be an LED) to output its own first initial address and second initial address. The controller reads the on and off state of the light point through the photoreceptor and demodulates the first initial address and the second initial address. The controller then determines whether the first initial address and the second initial address of all lamp points are different. If so, the controller writes the new lamp point address to the corresponding lamp point through either the first initial address or the second initial address. Otherwise, it further determines whether the first initial addresses of all lamp points are different and the second initial addresses of some lamp points are the same. If so, the controller writes the new lamp point address to the corresponding lamp point through the first initial address. Otherwise, it further determines whether the second initial addresses of all lamp points are different and the first initial addresses of some lamp points are the same. If so, the controller writes the new lamp point address to the corresponding lamp point through the second initial address. Otherwise, it further determines whether the first initial address and the second initial address of some lamp points are the same and the lamp points partially overlap. If so, the controller writes the new lamp point address to the corresponding lamp point through the first initial address and the second initial address. Otherwise, it is necessary to use a new lamp point to replace one of the overlapping lamp points. Then, the address reallocation work is performed, that is, the controller sends an address read instruction to each lamp point in the LED light string to perform the above-mentioned judgment process. After the controller completes the address update of all the light points of the LED light string, the controller can communicate display data with the light points through the new addresses of the light points, and control the light points to display different grayscale images.
[0085] See also Figure 3 In some embodiments, the present invention further provides a device for allocating lamp point addresses of an LED lamp string, which is applied to the method for allocating lamp point addresses of an LED lamp string. The device is connected to the LED lamp string and includes: a controller 100 and a photoreceptor; wherein the photoreceptor is connected to the controller 100 and is arranged opposite to the lamp points in the LED lamp string, and the photoreceptor is used to read the on and off status of the lamp points and feed back the on and off status information to the controller; the controller 100 is respectively connected to the photoreceptor and the LED lamp string, and the controller 100 is used to obtain the initial address of each lamp point in the LED lamp string according to the on and off status information, and to determine whether the first initial address and the second initial address of each lamp point are repeated, and to rewrite the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address.
[0086] Specifically, the controller 100 sends an address read command to each light point in the LED light string. The light point then outputs its initial address by turning its light-emitting component (LED) on and off. The controller 100 then controls the photoreceptor to align with the light-emitting component of each light point, capturing the light point's on / off status information and feeding it back to the controller, converting the optical signal into an electrical signal. The controller then analyzes the on / off status information fed back by the photoreceptor and reads the first and second initial addresses of the corresponding light points according to their arrangement order in the LED light string.
[0087] After obtaining the initial addresses of all lamps in the LED light string, the controller determines whether the first initial address and the second initial address of each lamp are repeated, and determines whether the first initial address is repeated, the second initial address is repeated, or both the first address and the second address are repeated. First, the controller 100 determines whether the first initial address and the second initial address of each lamp point are different. If the first initial address and the second initial address of each lamp point in the LED light string are different, the controller can rewrite the lamp point address according to the first initial address, or rewrite the lamp point address through the second initial address; if one of the first initial address and the second initial address of some lamp points is the same, it is further determined whether the first initial address is the same or the second initial address is the same. If the first initial address of some lamp points in the LED light string is different and the second initial address is the same, the controller 100 rewrites the lamp point address according to the first initial address, or the first initial address is the same and the second initial address is different, the controller 100 rewrites the lamp point address according to the second initial address; if the controller determines that the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and the second initial address are different lamp points, the controller 100 rewrites the lamp point address according to the first initial address and the second initial address.
[0088] It can be seen that the present invention reduces the duplication of initial addresses in the same LED light string by setting two initial addresses for the light points. When assigning addresses to the light points, if the two initial addresses of each light point in the LED light string are different or only one initial address is the same, the controller only needs to assign a new address to the light point through one initial address, and the bit width of the new light point address is equal to the bit width of any of the initial addresses. Compared with the method of accessing through two initial addresses, when the controller interacts with the light point using the new light point address to display data, the data transmission efficiency is improved, and no address allocation line is required, which saves wiring space and reduces costs.
[0089] In a further embodiment of an embodiment, the photoreceptor is a photosensitive device.
[0090] Specifically, the photosensitive device is used to convert the received light signal into an electrical signal and send the electrical signal to the controller. In some embodiments, the photosensitive device can be, but is not limited to, a photoresistor, a photodiode, or a phototransistor, for example, a photodiode.
[0091] See also Figure 3 In some embodiments, a plurality of the photoreceptors are provided, and each of the photoreceptors is provided opposite to one of the light points.
[0092] Specifically, the LED light string has 256 light points, such as Figure 3 As shown, the LED light string includes light points L1, L2, L3...LN, where N is 256.
[0093] Since the address of a light point is 8 bits, if there is only one photoreceptor, the controller 100 needs to send 8 address matching instructions to read the complete address of a light point. If there are multiple photoreceptors in parallel, the controller 100 can send 8 address matching instructions to read the light point addresses corresponding to multiple light points. In one implementation, the number of photoreceptors is set to 8. When the number of photoreceptors is 8, the controller 100 can send 8 matching instructions to read the light point addresses of 8 light points. Figure 3 As shown, the photoreceptors are denoted as K1, K2, K3...Kn, where n is 8.
[0094] In summary, the method and device for allocating addresses of LED light points in an LED light string provided by the present invention have the following beneficial effects:
[0095] Two initial addresses are set for each light point, reducing the duplication of initial addresses in the same LED light string. When assigning addresses to light points, if the two initial addresses of each light point in the LED light string are different or only one initial address is the same, the controller only needs to assign a new address to the light point through one initial address. The bit width of the new light point address is equal to the bit width of any of the initial addresses. Compared with the method of accessing through two initial addresses, the controller improves data transmission efficiency when interacting with the light point using the new light point address to display data;
[0096] No address distribution line is required, which saves wiring space, reduces costs, and avoids the problem of affecting the transparency effect due to adding address lines in the application of transparent screens.
[0097] It should be understood that the application of the present invention is not limited to the above examples. For those skilled in the art, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for allocating addresses of LED light strings, characterized in that: include: Presetting a first initial address and a second initial address at the light point; wherein, when rewriting the light point address, the first initial address remains unchanged, and the second initial address is modified to obtain a new light point address; The controller obtains the initial address of each light point in the LED light string; wherein the initial address of the light point includes a first initial address and a second initial address; The controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address; Among them, if the first initial address and the second initial address of each lamp point in the LED light string are different, the controller rewrites the lamp point address according to the first initial address or the second initial address of the lamp point; if the first initial addresses of some lamp points in the LED light string are different and the second initial addresses are the same, the controller rewrites the lamp point address according to the first initial address, or the first initial address is the same and the second initial address is different, the controller rewrites the lamp point address according to the second initial address; if the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and the second initial address are different lamp points, the controller rewrites the lamp point address according to the first initial address and the second initial address.
2. The method for assigning light point addresses of an LED light string according to claim 1, wherein: The controller determines whether the first initial address and the second initial address of each lamp point are repeated, and rewrites the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address, including the following steps: The controller rewrites the lamp point address according to the first initial address, the second initial address, or the first initial address and the second initial address of the lamp point in combination with the position number of the lamp point in the LED light string.
3. The method for assigning light point addresses of an LED light string according to claim 2, wherein: The controller rewrites the address of the light point according to the first initial address, the second initial address, or the first initial address and the second initial address of the light point in combination with the position number of the light point in the LED light string, including: The controller sends the initial address of each lamp point and the position number of the corresponding lamp point in the LED light string to the LED light string. If the initial address received by each lamp point in the LED light string is equal to its own initial address, the initial address of the corresponding lamp point itself is changed to the position number to obtain the new lamp point address of the corresponding lamp point.
4. The method for assigning light point addresses of an LED light string according to claim 1, wherein: The controller further includes the steps of determining whether the first initial address and the second initial address of each lamp point are repeated, and rewriting the lamp point address to obtain a new lamp point address according to whether the first initial address and the second initial address of the lamp point are repeated: If the first initial address and the second initial address of some lamp points in the LED light string are the same, and the lamp points with the same first initial address and second initial address are the same lamp points, one of the duplicate lamp point pairs will be replaced and then the address will be reallocated.
5. The method for allocating light point addresses of an LED light string according to claim 1, wherein: The step of the controller obtaining the initial address of each light point in the LED light string includes: The controller sends an address read instruction to each light point in the LED light string; wherein, after receiving the address read instruction, the light point controls the on and off state of the light-emitting component according to the address read instruction; The controller controls the photoreceptor to read the on / off status of the light point and obtains the on / off status information fed back by the photoreceptor; The controller obtains the initial address of the light point according to the on / off status information, and reads the initial addresses of all the light points according to the arrangement order of the light points in the LED light string.
6. The method for assigning light point addresses of an LED light string according to claim 1, wherein: After rewriting the address, the light point will record that its initial address has been rewritten. The light point that has rewritten the address will no longer rewrite its new address.
7. The method for assigning light point addresses of an LED light string according to claim 1, wherein: After the step of the controller determining whether the first initial address and the second initial address of each lamp point are repeated and rewriting the lamp point address to obtain a new lamp point address according to the repetition of the first initial address and the second initial address of the lamp point, the controller further includes: The controller exchanges display data with the corresponding light point through the new light point address to control the corresponding light point to display different grayscale images according to the display data.
8. A device for allocating light point addresses for an LED light string, applied to the method for allocating light point addresses for an LED light string according to any one of claims 1 to 7, connected to the LED light string, characterized in that: include: Controller and photoreceptor; wherein, The photoreceptor is connected to the controller and is arranged opposite to the light points in the LED light string, and is used to read the on and off status of the light points and feed back the on and off status information to the controller; The controller is connected to the photoreceptor and the LED light string respectively. The controller is used to obtain the initial address of each lamp point in the LED light string according to the on and off status information, and to determine whether the first initial address and the second initial address of each lamp point are repeated, and to rewrite the lamp point address according to the repetition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address.
9. The device for assigning lamp addresses according to claim 8, wherein: The photoreceptor is a photosensitive device.
Citation Information
Patent Citations
Intelligent bluetooth control method of LED lamp and circuit thereof
CN105188190A
Two-level addressing method of LED program-controlled lamp strings of signals transmitted by power supply wire
CN109027736A