Drive circuit, light string burning control method and apparatus, and electronic device
By using a combination of rewritable addresses and fixed addresses in the drive circuit of the LED light string, combined with the rewriting and identification information processing of the burning controller, the problem of low address burning efficiency in LED light string assembly is solved and production efficiency is improved. and reduce costs.
Patent Information
- Application Number
- PCT/CN2024/086806
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-12
- Filing Date
- 2024-04-09
- Publication Date
- 2024-10-17
AI Technical Summary
When assembling existing LED light strings, it takes a long time to program the address of each lamp bead, resulting in low production efficiency and high cost.
The storage unit in the drive circuit includes rewritable addresses and fixed addresses. The programming controller determines and rewrites the rewritable address during the assembly process. The rewritable address or the rewritten address is used as the light string identification information to improve the efficiency of address programming. and reduce production costs.
When assembling the LED light string, only the required rewriteable address is rewritten, which improves the efficiency of burning the lamp bead address. The identification information of the light string is burned into the drive circuit to realize independent control of each lamp bead and identification information. storage.
Smart Images

Figure CN2024086806_17102024_PF_FP_ABST
Abstract
Description
A driving circuit, a light string burning control method, a device and an electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application numbered "202310435881.9" filed by Hangzhou Xinxun Technology Co., Ltd. with the China Patent Office on April 12, 2023, entitled "A driving circuit, a light string burning control method, a device and an electronic device," the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application relates to the field of LED technology, and in particular to a driving circuit, a light string burning control method, a device and an electronic device. Background Art
[0004] LED light strings are widely used in landscape and decorative lighting applications, such as Christmas and holiday light strings and lighting projects. Typically, LED beads contain driver circuits that store addresses. A controller uses these addresses to control the on / off and color of specific LED beads. This allows each LED bead to be individually addressed and controlled, allowing the entire LED light string to change according to the image specified by the controller, greatly increasing the richness, visual appeal, and interest of the light string display.
[0005] In order to achieve the display effect of the above-mentioned single-lamp control, the address of each LED lamp bead on an LED light string needs to be different. The solution commonly adopted in the prior art is:
[0006] The driver circuit corresponding to each LED lamp bead contains a writable storage unit, such as OTP (One Time Programmable) storage, which is used to store the address of the LED lamp bead. When assembling the LED light string, the independent address of the LED lamp bead is written into the storage unit, for example, the independent address is burned into the OTP, so that each lamp bead in a light string has a unique address for independent control. For example, if there are 1,000 LED lamp beads on a light string, the bit width of each LED lamp bead address should be at least 10 bits. In this way, when OTP is used as the storage unit, it takes a long time to burn each address. It will take a long time to complete the address burning of all LED lamp beads in the entire light string, resulting in low production efficiency and high production costs.
[0007] Summary of the Invention
[0008] In view of this, embodiments of the present application provide a driving circuit, a light string burning control method, a device, and an electronic device to improve the efficiency of burning the addresses of lamp beads when assembling an LED light string.
[0009] According to a first aspect, an embodiment of the present application provides a driving circuit, comprising a storage unit for storing lamp bead addresses, wherein the storage unit comprises a first space for storing rewritable addresses and a second space for storing fixed addresses.
[0010] Specifically, the storage unit further includes a third space for storing identification information of a light string, wherein the light string includes a plurality of the light beads.
[0011] Specifically, the number of bits of the identification information of the light string is less than or equal to the product of the number of different addresses that can be expressed by the number of bits of the rewritable address and the bit width of the third space.
[0012] According to the second aspect, an embodiment of the present application provides a light string burning control method, which is applied to a burning controller, and the burning controller includes a first database and a second database, the first database is used to save a first address, the first address is a rewritable address in the driving circuit of the first aspect and a rewritten address obtained after changing the rewritable address; the second database is used to save a second address, the second address is a fixed address in the driving circuit of the first aspect, and the light string burning control method includes the following steps: obtaining the fixed address of the current lamp bead to be assembled; saving the fixed address of the current lamp bead to be assembled into the second database; judging whether there is a second address in the second database that is the same as the fixed address of the current lamp bead to be assembled; when it exists, determining the installed lamp bead to which the second address that is the same as the fixed address of the current lamp bead to be assembled belongs, and obtaining the first address of the installed lamp bead in the burning controller; determining the first rewrite address of the current lamp bead to be assembled based on the first address of the installed lamp bead, wherein the first rewrite address is different from the first address of the installed lamp bead; and using the first rewrite address to rewrite the rewritable address in the first space of the driving circuit of the current lamp bead to be assembled.
[0013] Specifically, the light string burning control method also includes the following steps: when there is no second address in the second database that is the same as the fixed address of the current lamp bead to be assembled, obtaining the rewritable address of the current lamp bead to be assembled; and saving the rewritable address of the current lamp bead to be assembled in the first database.
[0014] Specifically, after determining the first rewritten address of the lamp bead to be assembled according to the first address of the installed lamp bead, the method further includes: saving the first rewritten address into the first database.
[0015] Specifically, the burning controller also includes a third database, and the third database is used to store the identification information of the light string. The light string burning control method also includes: obtaining the identification information of the light string; obtaining the first number of remaining assembled lamp beads in the light string; obtaining the second number of bits to be written in the identification information; judging whether the first number is greater than the second number; when the first number is greater than the second number, using the first rewrite address of the current lamp bead to be assembled or the rewritable address of the current lamp bead to be assembled as the bit information of the identification information of the light string; determining the identification content that the current lamp bead to be assembled can represent based on the bit information and the identification information of the light string; and burning the identification content into the driving circuit of the current lamp bead to be assembled.
[0016] Specifically, using the first rewrite address of the current lamp bead to be assembled or the rewritable address of the current lamp bead to be assembled as the bit information of the identification information of the light string includes: when there is a second address in the second database that is identical to the fixed address of the current lamp bead to be assembled, after determining the first rewrite address of the current lamp bead to be assembled according to the first address of the installed lamp bead, using the first rewrite address of the current lamp bead to be assembled as the bit information of the identification information of the light string; when there is no second address in the second database that is identical to the fixed address of the current lamp bead to be assembled, after obtaining the rewritable address of the current lamp bead to be assembled, using the rewritable address of the current lamp bead to be assembled as the bit information of the identification information of the light string.
[0017] Specifically, the use of the first rewrite address of the current lamp bead to be assembled as the bit information of the identification information of the light string includes: judging whether there is a first address that is the same as the first rewrite address of the current lamp bead to be assembled in the correspondence between the preset bit information and the first address; when it exists, determining the first rewrite address of the current lamp bead to be assembled according to the correspondence between the bit information and the first address; or, using the rewritable address of the current lamp bead to be assembled as the bit information of the identification information of the light string includes: judging whether there is a first address that is the same as the rewritable address of the current lamp bead to be assembled in the correspondence between the preset bit information and the first address; when it exists, determining the bit information represented by the rewritable address of the current lamp bead to be assembled according to the correspondence between the bit information and the first address.
[0018] Specifically, the light string burning control method also includes the following steps: when the first quantity is not greater than the second quantity, determining the second rewrite address of the lamp bead to be assembled currently according to the first database, wherein the second rewrite address of the lamp bead to be assembled currently is different from the first address saved in the first database; determining the bit information represented by the second rewrite address of the lamp bead to be assembled currently according to the correspondence between the bit information and the first address; determining the identification content that the lamp bead to be assembled currently can represent according to the bit information and the identification information of the light string; and burning the identification content into the driving circuit of the lamp bead to be assembled currently.
[0019] Specifically, after determining the second rewriting address of the lamp bead to be assembled currently according to the first database, the method further includes: using the second rewriting address to rewrite the rewritable address in the first space of the driving circuit of the lamp bead to be assembled currently.
[0020] Specifically, the lamp string burning control method further includes the following steps: storing the second rewrite address in the first database; obtaining the fixed address of the lamp bead currently to be assembled; and saving the fixed address of the lamp bead currently to be assembled in the second database.
[0021] According to the third aspect, the embodiment of the present application further provides a light string burning control device, which is applied to the burning controller, and the burning controller includes a first database and a second database, the first database is used to store a first address, the first address is a rewritable address in the first aspect driving circuit or a rewritten address obtained by changing the rewritable address; the second database is used to store a second address, the second address is a fixed address in the first aspect driving circuit, and the light string burning control device includes a first acquisition module, a first storage module, a first judgment module, a first rewriting module and a burning module; the first acquisition module is used to obtain the fixed address of the current lamp bead to be assembled; the first storage module is used to store the fixed address of the current lamp bead to be assembled The fixed address of the lamp bead is saved in the second database; the first judgment module is used to judge whether there is a second address in the second database that is the same as the fixed address of the lamp bead to be assembled currently; the first rewrite module, when it exists, is used to determine the installed lamp bead to which the second address that is the same as the fixed address of the lamp bead to be assembled currently belongs, and obtain the first address of the installed lamp bead in the burning controller; the first rewrite address of the lamp bead to be assembled currently is determined according to the first address of the installed lamp bead, wherein the first rewrite address is different from the first address of the installed lamp bead; the burning module is used to use the first rewrite address to rewrite the rewritable address in the first space of the driving circuit of the lamp bead to be assembled currently.
[0022] According to the fourth aspect, an embodiment of the present application also provides an electronic device, including a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the light string burning control method described in the second aspect or any embodiment of the second aspect by executing the computer instructions.
[0023] According to the fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the light string burning control method described in the second aspect or any embodiment of the second aspect.
[0024] The driving circuit, light string programming control method, device, and electronic device provided by the embodiments of the present application have the following beneficial effects:
[0025] (1) The driving circuit, light string burning control method, device and electronic device provided by the embodiments of the present application, for the current lamp bead to be assembled, only when there is a second address in the second database that is the same as the fixed address of the current lamp bead to be assembled, the rewritable address of the current lamp bead to be assembled needs to be rewritten. Therefore, when the lamp beads are assembled into a light string, first of all, not all the rewritable addresses of the lamp beads in the light string need to be rewritten. Furthermore, if rewriting is required, only the rewritable address is rewritten, and the fixed address remains unchanged. Therefore, when assembling the light string, the efficiency of burning the lamp bead address can be improved.
[0026] (2) The driving circuit, light string burning control method, device and electronic device provided in the embodiments of the present application use the rewritable address or rewritten address of the lamp bead as the bit information of the identification information of the light string. Therefore, during the burning process of assembling the lamp beads into the light string, not only the lamp bead address can be burned into the driving circuit of the lamp bead, so that the lamp bead address of each lamp bead in the light string is different, but also the identification information of the light string can be burned into the driving circuit of the lamp bead to complete the identification of the light string, so that the light string database can be accessed and the independent address of each LED lamp bead connected in series on the light string can be obtained by searching according to the identification information. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The features and advantages of the present application will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present application in any way. In the accompanying drawings:
[0028] FIG1 is a flow chart of a method for determining the addresses of lamp beads in a lamp string according to an embodiment of the present application;
[0029] FIG2 is a schematic diagram showing an example of a lamp bead address storage method in a burning controller;
[0030] FIG3 is a schematic diagram showing an example of a lamp bead address storage result in a burning controller;
[0031] FIG4 is a flow chart of a method for recording identification information of a light string according to an embodiment of the present application;
[0032] FIG5 is a flow chart of an example of a light string programming control method according to an embodiment of the present application;
[0033] FIG6 is a schematic structural diagram of a light string burning control device according to an embodiment of the present application;
[0034] FIG7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.
[0036] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] An embodiment of the present application provides a driving circuit, which includes a storage unit for storing lamp bead addresses, and the storage unit includes a first space for storing rewritable addresses and a second space for storing fixed addresses.
[0038] Specifically, the driving circuit can control the brightness of the lamp beads according to the received control signal, and the driving circuit has a built-in storage unit for recording the address of the lamp beads. Each lamp bead address consists of two parts: a rewritable address and a fixed address; correspondingly, the storage unit includes a first space for storing the rewritable address and a second space for storing the fixed address, wherein the fixed address can be a fixed random number address. The first space is an address space that can be written again during the assembly of the light string, such as an OTP storage unit that can be burned. This part of the address space is a fixed default value before it is rewritten, such as all 0s; the second space is a number of bits of random address code built into the wafer processing stage through a mask during the manufacturing process of the driving circuit.
[0039] Furthermore, the storage unit further includes a third space for storing identification information of a light string, wherein the light string includes a plurality of the light beads. In the embodiment of the present application, the rewritable address of the light bead or the rewritten address obtained by modifying the rewritable address is used as the bit information of the identification information of the light string.
[0040] In the embodiment of the present application, the number of bits of the identification information of the light string is less than or equal to the product of the number of different addresses that can be expressed by the number of bits of the rewritable address and the bit width of the third space. Specifically, the number of bits of the rewritable address or the number of bits of the rewritten address is denoted as a, and the number of different addresses that can be expressed by the number of bits of the rewritable address or the number of bits of the rewritten address is 2 a For example, if the rewritable address in the driving circuit is 4 bits, the number of different addresses that can be expressed by the number of bits of the rewritable address is 2 4 Specifically, the bit width of the third space is b, and the number of bits of the light string identification information is less than or equal to b*2 a .
[0041] Corresponding to the aforementioned drive circuit, embodiments of the present application also provide a light string programming control method, which is applied to a programming controller. The programming controller includes a first database and a second database. The first database is used to store a first address, which is a rewritable address in the drive circuit and a rewritten address obtained by modifying the rewritable address; the second database is used to store a second address, which is a fixed address in the drive circuit.
[0042] FIG1 is a flow chart of a method for determining the address of lamp beads in a light string according to an embodiment of the present application. As shown in FIG1 , the method for determining the address of lamp beads in a light string according to an embodiment of the present application includes the following steps:
[0043] S101: Obtain the fixed address of the current lamp bead to be assembled.
[0044] Specifically, the burning controller can obtain the fixed address of the lamp bead to be assembled currently in the driving circuit of the lamp bead to be assembled currently.
[0045] S102: Save the fixed address of the lamp bead to be assembled in the second database.
[0046] S103: Determine whether there is a second address in the second database that is the same as the fixed address of the lamp bead to be assembled currently.
[0047] During the assembly process of a light string, the addresses of the assembled LEDs are stored in the programming controller. Specifically, the first address is stored in the first database, and the second address is stored in the second database. Figure 2 illustrates an example of how LED addresses are stored in the programming controller. As shown in Figure 2, the programming controller stores the individual addresses of each LED in the light string according to the order in which the LEDs are connected. The Address 1 field stores the rewritable address of the corresponding LED, while the Address 2 field stores the fixed random address of the corresponding LED. Therefore, it is possible that the fixed address of the currently assembled LED may be the same as the second address stored in the second database.
[0048] S104: When it exists, determine the installed lamp bead that has the same second address as the fixed address of the lamp bead to be currently assembled, and obtain the first address of the installed lamp bead in the burning controller, and determine the first rewrite address of the lamp bead to be currently assembled based on the first address of the installed lamp bead, wherein the first rewrite address is different from the first address of the installed lamp bead.
[0049] That is to say, the current lamp bead to be assembled is represented by lamp bead A, and the installed lamp bead belonging to the second address that is the same as the fixed address of the current lamp bead to be assembled is represented by lamp bead B. When the second addresses of lamp bead A and lamp bead B are the same, in order to make the independent address of lamp bead A and the independent address of lamp bead B different, it is necessary to make the first address of lamp bead A and the first address of lamp bead B different.
[0050] In the embodiment of the present application, the first rewritten address belongs to the rewritten address.
[0051] S105: rewriting the rewritable address in the first space of the current lamp bead driving circuit to be assembled using the first rewriting address.
[0052] Furthermore, after determining the first rewriting address of the lamp bead to be assembled currently according to the first address of the installed lamp bead, the method further includes: saving the first rewriting address into the first database.
[0053] Furthermore, the light string burning control method also includes the following steps: when there is no second address in the second database that is the same as the fixed address of the current lamp bead to be assembled, obtaining the rewritable address of the current lamp bead to be assembled; and saving the rewritable address of the current lamp bead to be assembled in the first database.
[0054] That is to say, the current lamp bead to be assembled is represented by lamp bead A, and the installed lamp bead belonging to the second address with the same fixed address as the current lamp bead to be assembled is represented by lamp bead B. When lamp bead B does not exist in the second database, the rewritable address in the lamp bead A driving circuit can be directly written into the first database, that is, there is no need to modify the rewritable address of lamp bead A, and the independent address of lamp bead A in the burning controller is also different from the independent address of the installed lamp bead.
[0055] As a specific implementation, with reference to FIG2 , the specific steps of the method for determining the address of the lamp beads in the lamp string are as follows:
[0056] Step S01: The burning controller reads the random number address in the driving circuit of the LED lamp bead to be assembled;
[0057] Step S02: The programming controller traverses the address 2 of the assembled LED lamp beads of the currently assembled light string stored in the storage space to determine whether there is a case where the random number address is the same as the address obtained in the above step S01; if not, the existing address of the LED lamp bead is its independent address, and the program jumps to step S04; if the address is the same, step S03 is executed;
[0058] Step S03: The programming controller reads the address 1 corresponding to the same address, and writes a value different from all read addresses 1 into the rewritable address of the LED lamp bead;
[0059] Step S04: the burning controller reads the independent address corresponding to the LED lamp bead and stores it in the storage space of the burning controller;
[0060] Step S05: After the LED lamp beads are installed, return to step S01 to determine the address of the next lamp until the installation of a string of lights is completed.
[0061] For ease of understanding, let's take an example. Assume that in a set of LED beads to be made into an LED light string, the rewritable address is 4 bits, and the fixed random number address is 11 bits, making up a total of 15 bits of address. The fixed random number address can represent up to 2048 different addresses.
[0062] The burning controller reads the random number address 001_0110_0101 in the driving circuit of the next LED lamp bead x to be installed; the burning controller traverses the stored address 2 of all LED lamp beads in the currently assembled light string, and finds that the address 2 of lamp bead m is the same as it. The burning controller further reads the address 1 corresponding to lamp bead m and obtains 0001; the burning controller writes a value ≠ 0001, such as 0010, into the rewritable address of the LED lamp bead; then the independent address corresponding to the LED lamp bead is read and stored in the storage space of the burning controller, that is, address 1 is written to 0010, and address 2 is written to 001_0110_0101, as shown in Figure 3, completing the determination and storage of the independent address of LED lamp bead x.
[0063] Thus, it can be seen that the method for determining the addresses of the lamp beads in the light string provided by the embodiment of the present application is that, for the lamp bead currently to be assembled, the rewritable address of the lamp bead currently to be assembled only needs to be rewritten when the second address that is the same as the fixed address of the lamp bead currently to be assembled exists in the second database. Therefore, when the lamp beads are assembled into a light string, not all the rewritable addresses of the lamp beads in the light string need to be rewritten. Furthermore, if rewriting is required, only the rewritable address is rewritten, and the fixed address remains unchanged. Therefore, when assembling the light string, the efficiency of burning the lamp bead addresses can be improved.
[0064] It should be noted that in order to balance cost and efficiency, the rewritable address and fixed address may need to be selected with appropriate number of bits in combination with production requirements.
[0065] During the use of the light string, in order to achieve individual addressing and control of each LED lamp bead, its controller needs to know the address of each LED lamp bead. Specifically, each LED light string can be given a light string identification information, such as a QR code, and the QR code is used to record its light string identification information. The controller reads the light string identification information and accesses the light string database, and retrieves the corresponding light string address information based on the identification information. The light string address information contains the independent address of each LED lamp bead connected in series on the light string corresponding to the identification information. In this way, individual addressing and control of each LED lamp bead can be achieved.
[0066] Therefore, as a further implementation method, the light string burning control method of the embodiment of the present application also includes a method for recording light string identification information.
[0067] The programming controller also includes a third database for storing identification information of the light string. FIG4 is a flow chart of a method for recording identification information of a light string in an embodiment of the present application. As shown in FIG4 , the method for recording identification information of a light string in an embodiment of the present application includes the following steps:
[0068] S201: Obtain identification information of the light string;
[0069] S202: Obtain a first number of remaining assembled lamp beads in the lamp string.
[0070] S203: Obtain a second number of bits of identification information to be written.
[0071] S204: Determine whether the first quantity is greater than the second quantity.
[0072] S205: When the first quantity is greater than the second quantity, the first rewrite address of the lamp bead to be currently assembled or the rewritable address of the lamp bead to be currently assembled is used as the bit information of the identification information of the light string; the identification content that can be represented by the lamp bead to be currently assembled is determined according to the bit information and the identification information of the light string; and the identification content is burned into the driving circuit of the lamp bead to be currently assembled.
[0073] That is, when the first number of remaining assembled lamp beads is greater than the second number of bits of identification information to be written, the burning controller can use the method of steps S101 to S105 above when determining the lamp bead addresses of the lamp beads to be assembled. After determining the lamp bead addresses of the lamp beads to be assembled, the first addresses of the lamp beads to be assembled are used as the bit information of the identification information of the light string. The first address can be a rewritable address stored in the driving circuit of the lamp bead to be assembled, or it can be a first rewritable address obtained by modifying the rewritable address.
[0074] S206: When the first quantity is not greater than the second quantity, determine the second rewrite address of the lamp bead to be assembled currently according to the first database, wherein the second rewrite address of the lamp bead to be assembled currently is different from the first address saved in the first database; determine the bit information represented by the second rewrite address of the lamp bead to be assembled currently according to the correspondence between the bit information and the first address; determine the identification content that can be represented by the lamp bead to be assembled currently according to the bit information and the identification information of the light string; and burn the identification content into the driving circuit of the lamp bead to be assembled currently.
[0075] That is to say, when the first number of remaining assembled lamp beads is not greater than the second number of bits to be written in the identification information, the burning controller cannot use the above-mentioned steps S101 to S105 when determining the lamp bead addresses of the lamp beads to be assembled. Instead, it is necessary to change the rewritable address of each lamp bead in the remaining assembled lamp beads, that is, to determine the second rewrite address of the current lamp bead to be assembled according to the first database, wherein the second rewrite address of the current lamp bead to be assembled is different from the first address stored in the first database. In this way, the first address of each remaining assembled lamp bead can be used as the bit information of the identification information of the light string.
[0076] As a specific implementation, after determining the second rewrite address of the lamp bead to be assembled currently according to the first database, it further includes: using the second rewrite address to rewrite the rewritable address in the first space of the driving circuit of the lamp bead to be assembled currently.
[0077] Among them, the use of the first rewrite address of the current lamp bead to be assembled or the rewritable address of the current lamp bead to be assembled as the bit information of the identification information of the light string in step S205 can adopt the following scheme: when there is a second address in the second database that is identical to the fixed address of the current lamp bead to be assembled, after determining the first rewrite address of the current lamp bead to be assembled based on the first address of the installed lamp bead, the first rewrite address of the current lamp bead to be assembled is used as the bit information of the identification information of the light string; when there is no second address in the second database that is identical to the fixed address of the current lamp bead to be assembled, after obtaining the rewritable address of the current lamp bead to be assembled, the rewritable address of the current lamp bead to be assembled is used as the bit information of the identification information of the light string.
[0078] Among them, the use of the first rewrite address of the current lamp bead to be assembled as the bit information of the identification information of the lamp string can adopt the following method: determine whether there is a first address that is the same as the first rewrite address of the current lamp bead to be assembled in the correspondence between the preset bit information and the first address; when it exists, determine the first rewrite address of the current lamp bead to be assembled according to the correspondence between the bit information and the first address.
[0079] The following method can be used to use the rewritable address of the current lamp bead to be assembled as the bit information of the identification information of the lamp string: determine whether there is a first address that is the same as the rewritable address of the current lamp bead to be assembled in the correspondence between the preset bit information and the first address; when it exists, determine the bit information represented by the rewritable address of the current lamp bead to be assembled based on the correspondence between the bit information and the first address.
[0080] In the embodiment of the present application, the second rewritten address also belongs to the rewritten address.
[0081] In other words, the method for recording light string identification information in the embodiment of the present application is based on the method for determining the address of the lamp beads in the light string, and a bit is added to the storage space of the driver circuit to record the light string identification information. Because light string identification information usually has a large number of bits, in order to reduce costs, it is dispersed across multiple driver circuits, and the rewritable address or rewritten address within the driver circuit is used to mark the bit information of the light string identification information. In the process of determining the independent address, the value of the corresponding bit in the light string identification information is written into the aforementioned newly added address space.
[0082] Assuming each driver circuit provides 1 bit of storage space for the light string ID, and the first address within the driver circuit is 4 bits, a maximum of 16 different bit values can be stored. The light string ID that can be expressed is 16 bits, denoted as ID[15:0]. Assuming a light string ID is 1010-0010-0110-1100, Table 1 shows the correspondence between bit information and the first address.
[0083] The following, in conjunction with Table 1, explains how to determine the bit information represented by the first address based on the correspondence between the bit information and the first address, wherein the first address can be a rewritable address stored in the driving circuit of the lamp bead to be assembled, or a first rewritable address obtained by changing the rewritable address, or a second rewritable address obtained by changing the rewritable address.
[0084] Combined with Table 1, when the burning controller determines that the first address of the current lamp bead to be assembled is 0000, the newly added storage space of the driving circuit, i.e., the third data, is used to record bit 0 of the light string ID address, i.e., the value "0";
[0085] When the burning controller determines that the first address of the current lamp bead to be assembled is 0001, the newly added storage space of the driving circuit is used to record bit 1 of the light string ID address, that is, the value of "0";
[0086] When the burning controller determines that the first address of the current lamp bead to be assembled is 0010, the newly added storage space of the driving circuit is used to record bit 2 of the light string ID address, that is, the value of "1".
[0087] And so on, the 16-bit ID light string identification information is recorded.
[0088] It should be noted that according to the light string identification information recorded in the above process, since some rewritable addresses or rewritten addresses may be repeated, the corresponding bits in the light string identification information will be recorded repeatedly, but this does not affect the controller from obtaining the correct light string identification information.
[0089] The above-mentioned method for recording light string identification information is explained by taking the example of each driving circuit providing 1 bit of storage space for the light string identification information, but this is not a limitation of this method. In fact, each driving circuit can also provide multiple bits of storage space for the light string identification information, and the rewritable address can still be used to mark the position information of the stored content in the light string identification information.
[0090] It can be seen that the light string identification information method provided in the embodiment of the present application uses the rewritable address or rewritten address of the lamp bead as the bit information of the identification information of the light string, so that during the burning process of assembling the lamp beads into the light string, not only the lamp bead address can be burned into the driving circuit of the lamp bead, so that the lamp bead address of each lamp bead in the light string is different, but also the identification information of the light string can be burned into the driving circuit of the lamp bead to complete the identification of the light string, so that the light string database can be accessed and the independent address of each LED lamp bead connected in series on the light string can be obtained by searching according to the identification information.
[0091] In order to explain the light string address programming control method in detail, an example is given. FIG5 is a flow chart of an example of the light string address programming method in accordance with an embodiment of the present application. As shown in FIG5 , the light string address programming method in accordance with an embodiment of the present application includes the following steps:
[0092] 1. Obtain a first number of remaining assembled lamp beads in the light string and a second number of bits of identification information to be written;
[0093] 2. Determine whether the first quantity is greater than the second quantity. If so, proceed to step 3; if not, proceed to step 11.
[0094] 3. Get the fixed address of the current lamp bead to be assembled;
[0095] 4. Save the fixed address of the current lamp bead to be assembled into the second database;
[0096] 5. Determine whether there is a second address in the second database that is the same as the fixed address of the lamp bead to be assembled;
[0097] 6. If it exists, determine the installed lamp bead with the same second address as the fixed address of the current lamp bead to be assembled, and obtain the first address of the installed lamp bead in the burning controller;
[0098] 7. Determine the first rewrite address of the lamp bead to be assembled based on the first address of the installed lamp bead, wherein the first rewrite address is different from the first address of the installed lamp bead;
[0099] 8. Save the first rewrite address to the first database; and use the first rewrite address to rewrite the rewritable address in the first space of the current lamp bead driver circuit to be assembled;
[0100] 9. Use the first rewritable address of the lamp bead to be assembled or the rewritable address of the lamp bead to be assembled as the bit information of the identification information of the light string;
[0101] 10. Determine the identification content that the current lamp bead to be assembled can represent based on the bit information and the identification information of the light string; burn the identification content into the driving circuit of the current lamp bead to be assembled;
[0102] 11. Get the fixed address of the current lamp bead to be assembled;
[0103] 12. Save the fixed address of the current lamp bead to be assembled into the second database
[0104] 13. Determine a second rewrite address of the lamp bead to be assembled according to the first database, wherein the second rewrite address of the lamp bead to be assembled is different from the first address stored in the first database; and rewrite the rewritable address in the first space of the driving circuit of the lamp bead to be assembled using the second rewrite address;
[0105] 14. Determine the bit information represented by the second rewritten address of the current lamp bead to be assembled according to the corresponding relationship between the bit information and the first address;
[0106] 15. Determine the identification content that the current lamp bead to be assembled can represent based on the bit information and the identification information of the light string; burn the identification content into the driving circuit of the current lamp bead to be assembled.
[0107] Corresponding to the aforementioned light string programming control method, embodiments of the present application also provide a light string programming control device, which is applied to a programming controller. The programming controller includes a first database and a second database. The first database is used to store a first address, which is a rewritable address in the first aspect of the driving circuit or a rewritten address obtained by modifying the rewritable address; the second database is used to store a second address, which is a fixed address in the first aspect of the driving circuit. As shown in Figure 6, the light string programming control device includes a first acquisition module 10, a first storage module 11, a first determination module 12, a first rewriting module 13, and a programming module 20.
[0108] The first acquisition module 10 is used to obtain the fixed address of the lamp bead to be assembled;
[0109] The first storage module 11 is used to save the fixed address of the lamp bead to be assembled in the second database;
[0110] The first judgment module 12 is used to judge whether there is a second address in the second database that is the same as the fixed address of the current lamp bead to be assembled;
[0111] The first rewriting module 13, when present, is used to determine the installed lamp bead having the same second address as the fixed address of the lamp bead currently to be assembled, and obtain the first address of the installed lamp bead in the burning controller; determine the first rewriting address of the lamp bead currently to be assembled based on the first address of the installed lamp bead, wherein the first rewriting address is different from the first address of the installed lamp bead;
[0112] The burning module 20 is used to rewrite the rewritable address in the first space of the lamp bead driving circuit to be assembled currently using the first rewriting address.
[0113] Furthermore, the light string programming control device further includes a second storage module 14, which is used to save the first rewriting address into the first database.
[0114] Furthermore, when the second database does not contain the same second address as the fixed address of the lamp bead to be assembled currently, the first obtaining module 10 is further configured to obtain the rewritable address of the lamp bead to be assembled currently;
[0115] The second storage module 14 is further configured to store the rewritable address of the lamp bead to be assembled in the first database.
[0116] Furthermore, the programming controller further includes a third database for storing identification information of the light string. The light string programming control device further includes a second acquisition module 15, a third acquisition module 16, a fourth acquisition module 21, a second determination module 17, a light string address determination module 18, and an identification content determination module 19.
[0117] A fourth acquisition module 21 is used to obtain identification information of the light string;
[0118] A second obtaining module 15 is used to obtain a first number of remaining assembled lamp beads in the lamp string;
[0119] A third obtaining module 16 is configured to obtain a second number of bits to be written in the identification information;
[0120] A second judging module 17 is configured to judge whether the first quantity is greater than the second quantity;
[0121] When the first number is greater than the second number, the light string address determination module 18 is configured to use the first rewritable address of the lamp bead currently to be assembled or the rewritable address of the lamp bead currently to be assembled as the bit information of the identification information of the light string;
[0122] The identification content determination module 19 is used to determine the identification content that can be represented by the lamp bead to be assembled currently according to the bit information and the identification information of the lamp string.
[0123] The burning module 20 is further used to burn the identification content into the driving circuit of the lamp bead to be assembled.
[0124] When the first number is not greater than the second number, the light string address determination module 18 is configured to determine, based on the first database, a second rewritten address of the lamp bead to be currently assembled, wherein the second rewritten address of the lamp bead to be currently assembled is different from the first address stored in the first database; and determine, based on a correspondence between the bit information and the first address, the bit information represented by the second rewritten address of the lamp bead to be currently assembled;
[0125] The identification content determination module 19 is used to determine the identification content that can be represented by the lamp bead to be assembled currently according to the bit information and the identification information of the lamp string.
[0126] The burning module 20 is further used to burn the identification content into the driving circuit of the lamp bead to be assembled.
[0127] The specific details of the address determination device in the above-mentioned light string can be understood by referring to the corresponding descriptions and effects in the embodiments shown in Figures 1 to 5, and will not be repeated here.
[0128] An embodiment of the present application further provides an electronic device, as shown in FIG7 , which may include a processor 71 and a memory 72 .
[0129] Specifically, the processor 71 may be a central processing unit (CPU). The processor 71 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0130] The memory 72, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the program instructions / modules corresponding to the light string burning control method in the embodiment of the present application (for example, the first acquisition module 10, the first storage module 11, the first judgment module 12, the first rewriting module 13, the second storage module 14, the second acquisition module 15, the third acquisition module 16, the second judgment module 17, the light string address determination module 18, the identification content determination module 19, the burning module 20 and the fourth acquisition module 21 shown in Figure 6). The processor 71 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 72, that is, implements the light string burning control method in the above method embodiment.
[0131] The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created by the processor 71, etc. In addition, the memory 72 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 72 may optionally include a memory remotely located relative to the processor 71, and these remote memories may be connected to the processor 71 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0132] One or more modules are stored in the memory 72 , and when executed by the processor 71 , the light string burning control method in the embodiments shown in FIG. 1 to FIG. 5 is executed.
[0133] The specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the embodiments shown in Figures 1 to 6, and will not be repeated here.
[0134] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, which can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a mechanical hard disk drive (HDD), or a solid-state drive (SSD); the storage medium can also include a combination of the above-mentioned types of memory.
[0135] Although the embodiments of the present application have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations shall fall within the scope defined by the appended claims.
Claims
1. A driving circuit, comprising a storage unit for storing a lamp bead address, characterized in that: The storage unit includes a first space for storing a rewritable address and a second space for storing a fixed address.
2. The driving circuit according to claim 1, characterized in that: The storage unit further includes a third space for storing identification information of a light string, wherein the light string includes a plurality of the light beads.
3. The driving circuit according to claim 2, characterized in that: The number of bits of the identification information of the light string is less than or equal to the product of the number of different addresses that can be expressed by the number of bits of the rewritable address and the bit width of the third space.
4. A light string burning control method, applied to a burning controller, characterized in that: The burning controller includes a first database and a second database, the first database is used to store a first address, the first address is a rewritable address in the driving circuit of claim 1 and a rewritten address obtained by changing the rewritable address; The second database is used to store a second address, the second address is a fixed address in the driving circuit of claim 1, and the light string burning control method includes: Get the fixed address of the lamp bead to be assembled; Saving the fixed address of the lamp bead to be assembled currently in the second database; Determine whether there is a second address in the second database that is the same as the fixed address of the lamp bead to be assembled currently; If it exists, determine the installed lamp bead that has the same second address as the fixed address of the current lamp bead to be assembled, and obtain the first address of the installed lamp bead in the burning controller; Determine a first rewrite address of the lamp bead to be assembled according to the first address of the installed lamp bead, wherein the first rewrite address is different from the first address of the installed lamp bead; The rewritable address in the first space of the lamp bead driving circuit to be assembled is rewritten using the first rewriting address.
5. The method according to claim 4, characterized in that Also includes: When there is no second address in the second database that is the same as the fixed address of the lamp bead to be assembled currently, obtaining the rewritable address of the lamp bead to be assembled currently; The rewritable address of the lamp bead to be assembled is saved in the first database.
6. The method according to claim 4, characterized in that After determining the first rewriting address of the lamp bead to be assembled according to the first address of the installed lamp bead, the method further includes: The first rewrite address is saved in the first database.
7. The method according to claim 5, characterized in that The burning controller also includes a third database, and the third database is used to store the identification information of the light string. The light string burning control method also includes: Obtaining identification information of the light string; Obtaining a first number of remaining assembled lamp beads in the lamp string; Obtaining a second number of bits to be written in the identification information; determining whether the first number is greater than the second number; When the first number is greater than the second number, using the first rewrite address of the lamp bead to be assembled currently or the rewritable address of the lamp bead to be assembled currently as the bit information of the identification information of the light string; Determine the identification content that can be represented by the lamp bead to be assembled currently according to the bit information and the identification information of the lamp string; The identification content is burned into the driving circuit of the lamp bead to be assembled currently.
8. The method according to claim 7, characterized in that The bit information of using the first rewrite address of the lamp bead to be assembled currently or the rewritable address of the lamp bead to be assembled currently as the identification information of the light string includes: When there is a second address in the second database that is the same as the fixed address of the lamp bead to be assembled currently, after determining the first rewritten address of the lamp bead to be assembled currently according to the first address of the installed lamp bead, using the first rewritten address of the lamp bead to be assembled currently as the bit information of the identification information of the light string; When the second database does not contain the second address identical to the fixed address of the lamp bead to be assembled currently, after obtaining the rewritable address of the lamp bead to be assembled currently, the rewritable address of the lamp bead to be assembled currently is used as the bit information of the identification information of the light string.
9. The method according to claim 8, characterized in that The bit information of using the first rewritten address of the lamp bead to be assembled as the identification information of the lamp string includes: Determine whether there is a first address that is the same as the first rewritten address of the lamp bead to be assembled currently in the correspondence relationship between the preset bit information and the first address; When it exists, determining the first rewriting address of the lamp bead to be assembled currently according to the corresponding relationship between the bit information and the first address; Alternatively, the bit information of using the rewritable address of the lamp bead to be assembled as the identification information of the lamp string includes: Determine whether there is a first address that is the same as the rewritable address of the lamp bead to be assembled currently in the correspondence relationship between the preset bit information and the first address; When it exists, the bit information represented by the rewritable address of the current lamp bead to be assembled is determined according to the corresponding relationship between the bit information and the first address.
10. The method according to claim 7, characterized in that Also includes: When the first number is not greater than the second number, determining a second rewriting address of the lamp bead to be assembled currently according to the first database, wherein the second rewriting address of the lamp bead to be assembled currently is different from the first address stored in the first database; Determine the bit information represented by the second rewriting address of the current lamp bead to be assembled according to the corresponding relationship between the bit information and the first address; Determine the identification content that can be represented by the lamp bead to be assembled currently according to the bit information and the identification information of the lamp string; The identification content is burned into the driving circuit of the lamp bead to be assembled currently.
11. The method according to claim 10, characterized in that After determining the second rewriting address of the current lamp bead to be assembled according to the first database, the method further includes: The rewritable address in the first space of the lamp bead driving circuit to be assembled is rewritten using the second rewriting address.
12. The method according to claim 10, characterized in that Also includes: storing the second rewritten address in the first database; Get the fixed address of the lamp bead to be assembled; The fixed address of the lamp bead to be assembled is saved in the second database.
13. A light string burning control device, applied to a burning controller, characterized in that: The burning controller includes a first database and a second database, the first database is used to store a first address, the first address is a rewritable address in the driving circuit of claim 1 or a rewritten address obtained by changing the rewritable address; The second database is used to store a second address, the second address is a fixed address in the driving circuit of claim 1, and the light string burning control device comprises: The first acquisition module is used to obtain the fixed address of the lamp bead to be assembled; A first storage module, used for saving the fixed address of the lamp bead to be assembled currently into the second database; A first judgment module is used to judge whether there is a second address in the second database that is the same as the fixed address of the lamp bead to be assembled currently; The first rewriting module, when present, is used to determine the installed lamp bead to which the second address that is the same as the fixed address of the lamp bead to be assembled currently belongs, and obtain the first address of the installed lamp bead in the burning controller; determine the first rewriting address of the lamp bead to be assembled currently according to the first address of the installed lamp bead, wherein the first rewriting address is different from the first address of the installed lamp bead; The burning module is used to rewrite the rewritable address in the first space of the lamp bead driving circuit to be assembled currently by using the first rewriting address.
14. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the light string burning control method according to any one of claims 4 to 12 by executing the computer instructions.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the light string burning control method according to any one of claims 4 to 12.
Citation Information
Patent Citations
LED lamp bead address code burning method and device
CN110990031A
LED lamp bead address code burning method and device
CN110996443A
High-accuracy camera module OTP burning method and system
CN114449254A
Lamp point address allocation method and device for LED lamp string
CN115665924A
Driving circuit, light string burning control method and device and electronic equipment
CN116450163A
Cited By
Parallel LED address burning system and method, LED module and package
CN119045841A
