Coding method of LED lamp string

By identifying the position order and identification code of the LED light source bit by bit, generating and writing address codes, the existing LED light string encoding methods are solved, and efficient LED light string encoding and maintenance are achieved.

CN119854994APending Publication Date: 2025-04-18ZHONGSHAN GLAMOR OPTOELECTRONICS TECH

Patent Information

Application Number
CN202510067635.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing LED string encoding method has low production efficiency and requires frequent addressing operations during control, resulting in slow response.

Method used

The LED light source with its own control chip is used. Each LED light source stores a unique identification code. By sending identification commands bit by bit and detecting feedback status, the position sequence and identification code of the LED light source are recorded, based on this, the address code is generated and written to the control chip to complete the encoding.

Benefits of technology

It improves the production efficiency of LED strings, reduces the difficulty of hardware and software implementation, reduces the amount of calculation, and facilitates re-encoding and maintenance after a single LED light source is damaged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_1
    Figure SMS_1
  • Figure SMS_2
    Figure SMS_2
Patent Text Reader

Abstract

The invention discloses a coding method of an LED lamp string, a unique identification code is stored in a control chip of each LED light source forming the LED lamp string, and the control method of the LED lamp string comprises the following steps: firstly, recording the sequence and the number of each LED light source by a detection device, then sending an identification command bit by bit, identifying the position sequence of each LED light source and the corresponding identification code, and sending the identification command to the detection device; finally, based on the position sequence and the identification code, an address code is written into a control chip of each LED light source, the address code is used as the unique identity identification for receiving a working state command, the coding of the LED lamp string is completed, the sequence position of each LED light source does not need to be considered when the LED lamp string is produced, the LED light sources can be randomly selected and matched, the production efficiency of the LED lamp string is improved, and the production cost is reduced. The implementation difficulty of hardware and software is reduced, after a single LED light source is damaged, the single LED light source can be replaced and recoded, and subsequent maintenance is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an LED light string, and in particular to an encoding method for an LED light string. Background Art

[0002] In order to make the LED light string present a variety of different lighting effects, each LED light source in the LED light string needs to be controlled independently. Since each LED light source is in a series-parallel relationship, the control instructions received by all LED light sources are the same, which requires each LED light source to identify the data instruction and intercept the required information. In order to identify the data instruction, each LED light source needs to be encoded.

[0003] There are two existing encoding methods. One is to write the code into each LED light source, and then connect them in sequence according to the coding sequence to form a light string. The production efficiency of this LED light string is relatively low.

[0004] The other is to make arbitrary connections during production and then encode them later. For example, a point-controlled LED light string and a manufacturing method thereof are disclosed in a patent document with publication number CN111148312A. The method is to set an address register corresponding to the LED lamp beads, re-encode the LED lamp beads, establish a mapping relationship between the re-encoded address code and the physical address of the lamp bead chip, and store the address code in the corresponding address register. However, this encoding method requires addressing operations in the register each time the lamp beads are controlled, which has high requirements on the software and hardware of the light string, and the response of the LED light string is also relatively slow. Summary of the invention

[0005] In order to overcome the deficiencies of the prior art, the present invention provides a coding method for an LED light string.

[0006] The technical solution adopted by the present invention to solve the technical problem is: A coding method for an LED light string includes a plurality of LED light sources with their own control chips, wherein a unique identification code is stored in the control chip of each LED light source, and the number of bits of the identification codes of all LED light sources is the same, which is an N-bit binary code consisting of 0 and 1; the control method of the LED light string is as follows: S1: Send a lighting command to all LED light sources, and all LED light sources are lit. The detection device records the order and quantity of each LED light source.

[0007] S2: Send the identification command bit by bit. The identification command includes the instruction to turn on or off the LED light source whose nth bit of the identification code is X. The corresponding LED light source whose nth bit of the identification code is X is turned on or off to give feedback. The detection device records the feedback status of the nth bit instruction, completes an identification cycle, and then changes the value of n to enter the next identification cycle until all the bits of the N-bit identification code are identified, where n is 0<n≤2 N An integer of ; X is 1 or 0.

[0008] S3: Identify the position sequence of each LED light source and the corresponding identification code.

[0009] S4: Based on the position sequence and the identification code, an address code is written into the control chip of each LED light source, and the address code is used as the unique identity identification for receiving the working status command to complete the coding of the LED light string.

[0010] The step S3 includes two sub-steps: S30: Generate a recognition command feedback table, which includes the number of bits of the recognition command, the position sequence of the LED light source and the feedback status.

[0011] S31: converting the feedback table into a position sequence and identification code correspondence table of LED light sources, wherein the position sequence and identification code correspondence table includes the position sequence of the LED light sources and the identification codes corresponding to the LED light sources.

[0012] The detection device can be photosensitive devices arranged in sequence, the number of which is greater than or equal to the number of LED light sources, and each LED light source can correspond to a photosensitive device. It can also be a camera. In step S1, all LED light sources are lit, the camera obtains the number of LED light sources, and anchors the position of the LED light sources. In step S2, each time an identification command is sent, the camera records the lighting or off status of each LED light source.

[0013] The beneficial effects of the present invention are as follows: a unique identification code is stored in the control chip of each LED light source constituting the LED light string of the present invention. When producing the LED light string, there is no need to consider the sequential position of each LED light source, and the combination can be selected at will. The manufacturer subsequently identifies the position sequence and the corresponding identification code of each LED light source, and based on the position sequence and the identification code, writes an address code into the control chip of each LED light source, and uses the address code as the unique identity recognition for receiving the working status command, thereby completing the recoding of the LED light string and improving the production efficiency of the LED light string. Compared with the method of CN111148312A, the step of calling the coding address in the register for reprogramming each time a working command is sent is omitted, thereby reducing the amount of calculation and reducing the difficulty of hardware and software implementation. After a single LED light source is damaged, the single LED light source can also be replaced and recoded, which is convenient for subsequent maintenance. DETAILED DESCRIPTION

[0014] To make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail below in combination with specific implementations and with reference to the accompanying drawings. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0015] A coding method for an LED light string includes a plurality of LED light sources with built-in control chips. A unique identification code (equivalent to the physical address of a computer) is stored in the control chip of each LED light source. The number of bits of the identification code of all LED light sources is the same, and all are N bits of binary code composed of 0 and 1. The identification code is written into the control chip when the LED light source is produced, and the identification codes of all control chips will not be repeated. In this embodiment, N can be 32 bits or 64 bits, which can constitute 2 32 =4294967296 identification codes, 2 64 =18446744073709551616 identification codes. Such a large number of identification codes is sufficient for use.

[0016] In this embodiment, N=4, 5 LED light sources are taken as an example. The LED light source here can be a single lamp bead, or an LED module composed of multiple lamp beads controlled by a control chip. The identification code here is for the LED light source. The LED light source and the control chip are uniquely bound. The current control chip has its own internal memory, which can record and write data multiple times. For insufficient memory, an external memory can be added.

[0017] The binary code of 4 bits consisting of 0 and 1 is 2 4 = 16 combinations, then the binary corresponding to the decimal system is in ascending order: The binary number corresponding to the sequence of 0 is 0000; the binary number corresponding to the sequence of 1 is 0001; the binary number corresponding to the sequence of 2 is 0010; the binary number corresponding to the sequence of 3 is 0011; the binary number corresponding to the sequence of 4 is 0100; the binary number corresponding to the sequence of 5 is 0101; the binary number corresponding to the sequence of 6 is 0110; the binary number corresponding to the sequence of 7 is 0111; the binary number corresponding to the sequence of 8 is 1000; the binary number corresponding to the sequence of 9 is 1001; the binary number corresponding to the sequence of 10 is 1010; the binary number corresponding to the sequence of 11 is 1011; the binary number corresponding to the sequence of 12 is 1100; the binary number corresponding to the sequence of 13 is 1101; the binary number corresponding to the sequence of 14 is 1110; the binary number corresponding to the sequence of 15 is 1111.

[0018] When producing LED light strings, the identification codes of each LED light source are chaotic. You do not need to consider the identification codes of each LED light source. You can choose and match them at will and re-encode them through subsequent methods. The encoding process is completed by the manufacturer of the LED light string. After the light string is connected, the manufacturer of the LED light string encodes each LED light source on the LED light string. Assuming that the identification codes of the 5 LED light sources are: 0010, 0110, 1010, 1100, 1110, and the order of the LED light string composed of the 5 LED light sources is: 1010, 0110, 0010, 1110, 1100, then the identification and encoding process is as follows: S1: Send a lighting instruction to all LED light sources, and all LED light sources are lit. The detection device records the order and quantity of each LED light source. The lighting instruction sent here can be the binary 0000 corresponding to the minimum value 0, or the binary 1111 corresponding to the maximum value 15, or other instructions with a bit number greater than the identification code, such as the 6-bit binary number 111111. In this embodiment, it is assumed that the lighting instruction is 1111. After receiving the lighting instruction, all 5 LED light sources are lit, and the detection device records the number of LED light sources as 5, and records the order of each LED light source. After the identification is completed, all LED light sources can be turned off and wait for the next instruction, or the lighting state can be maintained, and the state of all LED light sources is controlled by the identification command.

[0019] S2: Send the identification command bit by bit. The identification command includes the instruction to turn on or off the LED light source whose nth bit of the identification code is X. The corresponding LED light source whose nth bit of the identification code is X is turned on or off to give feedback. The detection device records the feedback status of the nth bit instruction, completes an identification cycle, and then changes the value of n to enter the next identification cycle until all the bits of the N-bit identification code are identified, where n is 0<n≤2 Ninteger; X is 1 or 0. If the lighting instruction is the minimum value 0000 or the maximum value 1111, the minimum value 0000 or the maximum value 1111 has been used, and the identification command is sent 14 times in this step to distinguish the LED light sources whose identification codes correspond to decimal codes between 0 and 15. Assuming that the lighting instruction is the minimum value 0000, all LED light sources are lit in step S1, and a certain LED light source is never lit in step S2, it can be confirmed that the identification code of the LED light source is 0000. If the lighting instruction is a 6-bit binary number 111111 whose number of bits is greater than the identification code, it is necessary to send the identification command 15 times to distinguish the LED light sources whose identification codes correspond to decimal codes between 0 and 15.

[0020] The order of identifying the digits of a binary code can be from left to right or from right to left. This example uses the order from left to right to illustrate.

[0021] After power-on, if all LED light sources are in the off state, send the LED light source with the first bit as 1 to light it up. If they are in the lit state, send the LED light source with the first bit as 0 to turn it off, or send the LED light source with the first bit as 1 to light it up and the LED light source with the first bit as 0 to turn it off, and repeat this cycle until the first to fourth bits are sent.

[0022] S3: Identify the position sequence of each LED light source and the corresponding identification code. This step includes the following two sub-steps: S30: Generate a recognition command feedback table, which includes the number of bits of the recognition command, the position sequence of the LED light source and the feedback status.

[0023] Assuming that the LED light source at this position is on, the detection device records it as 1, and if it is off, it records it as 0. The recognition command feedback table generated according to the records of the detection device is as follows: S31: converting the feedback table into a position sequence and identification code correspondence table of LED light sources, wherein the position sequence and identification code correspondence table includes the position sequence of the LED light sources and the identification codes corresponding to the LED light sources.

[0024] The corresponding table of position sequence and identification code after conversion is as follows: It can be obtained that the identification code of the position sequence 000 is 1010, the identification code of the position sequence 001 is 0110, the identification code of the position sequence 002 is 0010, the identification code of the position sequence 003 is 1110, and the identification code of the position sequence 004 is 1100.

[0025] S4: Based on the position sequence and identification code, write the address code (equivalent to the fixed IP address of the computer) into the control chip of each LED light source to complete the encoding of the LED light string. The write command includes the identification code, and the address code can be written in five times. The address code format can be: identification code + address code. After receiving it, the corresponding control chip writes the address code into the storage, and uses the address code as the unique identity identification for receiving the subsequent working status command. For example, for the first time, the address code with a position sequence of 000 is sent, and the command format is: 1010 (identification code) + 000 (address code). After the control chip recognizes 1010 (identification code), it thinks it is a useful command for it, and writes the address code 000 into the storage. The remaining LED light sources ignore the command until all 5 LED light sources have the address code written.

[0026] After the LED light string is coded, the working state of the LED light string has nothing to do with the identification code of each LED light source. The address code is used as the unique identification for receiving the later working state command. For example, a working command sent by the controller is: address code 000 LED light source white always on, address code 001 LED light source red flashing, address code 003 LED light source yellow flashing, address code 004 LED light source off, address code 005 LED light source yellow always on, etc. Each LED light source executes the corresponding working state. Compared with the method of CN111148312A, the step of calling the coding address in the register for reprogramming each time a working command is sent is omitted, which reduces the amount of calculation and the difficulty of hardware and software implementation.

[0027] As for how to realize the detection of the on or off status of each LED light source, it can be realized by existing technical means. For example, a photosensitive device corresponding to each LED light source is set. The photosensitive device can be a photodiode, a photoresistor, etc., which can detect the lighting or off status of the corresponding LED light source. The order of each photosensitive device is pre-stored in the system. The order of the photosensitive devices is the same as the order of the LED light sources. According to the detection result of each photosensitive device, the order of the LED light sources and the lighting or off working status of the instruction can be determined.

[0028] Another way is to use the currently mature visual recognition technology. The device mainly consists of a camera and image recognition software. The LED light string is spread out in a straight line. In step S1, all LED light sources are lit, and the camera obtains the number of LED light sources and anchors the position of the LED light sources. In S2, each time an identification command is sent, the camera records the on or off status of each LED light source, thereby identifying the identification code of each LED light source.

[0029] In the present invention, the term "plurality" means two or more, unless otherwise clearly defined. The term "and / or" used herein includes any and all combinations of one or more of the related listed items. The terms "install", "connect", "connect", "fix" and the like should be understood in a broad sense. For example, "connect" can be a fixed connection, a detachable connection, or an integral connection; "connect" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0030] It should be noted that when an element is referred to as being "assembled on", "installed on", "fixed on" or "disposed on" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "upper", "lower", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0031] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0032] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A coding method for an LED light string, comprising a plurality of LED light sources with their own control chips, wherein a unique identification code is stored in the control chip of each LED light source, and the number of bits of the identification codes of all LED light sources is the same, which is a binary code consisting of N bits of 0 and 1; characterized in that The control method of the LED light string is as follows: S1: Send a lighting command to all LED light sources, all LED light sources are lit, and the detection device records the order and quantity of each LED light source; S2: Send the identification command bit by bit, the identification command includes the LED light source lighting or extinguishing instruction whose nth bit of the identification code is X, and the corresponding LED light source whose nth bit of the identification code is X is lit or extinguished to make feedback, and the detection device records the feedback state of the nth bit instruction, completes an identification cycle, and then changes the n value to enter the next identification cycle until all the bits of the N-bit identification code are fully identified, wherein; n is 0<n≤2 N An integer; X is 1 or 0; S3: Identify the position sequence of each LED light source and the corresponding identification code; S4: Based on the position sequence and the identification code, an address code is written into the control chip of each LED light source, and the address code is used as the unique identity identification for receiving the working status command to complete the coding of the LED light string.

2. The LED light string coding method according to claim 1, characterized in that The step S3 comprises: S30: Generate a recognition command feedback table, the recognition command feedback table includes the number of digits of the recognition command, the position sequence of the LED light source and the feedback status; S31: converting the feedback table into a position sequence and identification code correspondence table of LED light sources, wherein the position sequence and identification code correspondence table includes the position sequence of the LED light sources and the identification codes corresponding to the LED light sources.

3. The LED light string coding method according to claim 1, characterized in that The detection device is a photosensitive device arranged in sequence, the number of the photosensitive devices is greater than or equal to the number of LED light sources, and each LED light source can correspond to a photosensitive device.

4. The LED light string coding method according to claim 1, characterized in that The detection device is a camera. In step S1, all LED light sources are turned on, the camera obtains the number of LED light sources, and anchors the position of the LED light sources. In step S2, each time an identification command is sent, the camera records the on or off status of each LED light source.

Citation Information

Patent Citations

  • Point control LED lamp string and manufacturing method thereof

    CN111148312A

Cited By

  • Bright Lamp Autonomous Anomaly Detection System

    TWI936939B