[go: up one dir, main page]

CN115665924A - Lamp point address distribution method and device for LED lamp string - Google Patents

Lamp point address distribution method and device for LED lamp string Download PDF

Info

Publication number
CN115665924A
CN115665924A CN202211411008.8A CN202211411008A CN115665924A CN 115665924 A CN115665924 A CN 115665924A CN 202211411008 A CN202211411008 A CN 202211411008A CN 115665924 A CN115665924 A CN 115665924A
Authority
CN
China
Prior art keywords
address
light
initial address
point
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211411008.8A
Other languages
Chinese (zh)
Inventor
陈力生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinyuhao Technology Co ltd
Original Assignee
Shenzhen Xinyuhao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinyuhao Technology Co ltd filed Critical Shenzhen Xinyuhao Technology Co ltd
Priority to CN202211411008.8A priority Critical patent/CN115665924A/en
Publication of CN115665924A publication Critical patent/CN115665924A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a method and a device for distributing lamp point addresses of LED lamp strings, wherein the method comprises the following steps: the controller obtains initial addresses of all lamp points in the LED lamp string; the initial addresses of the lamp points comprise a first initial address and a second initial address; the controller judges whether the first initial address and the second initial address of each lamp point are repeated or not, and rewrites the lamp point address according to the repetition condition of the first initial address and the second initial address of the lamp point to obtain a new lamp point address. The invention sets two initial addresses for the lamp points, reduces the situation of repeated initial addresses in the same LED lamp string, and when the lamp points are allocated with addresses, if the two initial addresses of each lamp point in the LED lamp string are different or only one initial address is the same, the controller only needs to allocate a new address to the lamp points through one initial address.

Description

一种LED灯串的灯点地址分配方法及装置Method and device for allocating light point addresses of LED light strings

技术领域technical field

本发明涉及LED灯串技术领域,尤其涉及的是一种LED灯串的灯点地址分配方法及装置。The present invention relates to the technical field of LED light strings, in particular to a method and device for assigning address points of LED light strings.

背景技术Background technique

灯点具有初始地址,在加工生产LED灯串后需要利用灯点初始地址及灯点在LED灯串中的位置来产生新的灯点地址,在后续的正常使用中,控制器可以使用新的灯点地址与LED灯串中的灯点进行数据交互。因灯点的初始地址位宽是有限的,在规模化生产时容易出现同一LED灯串中有两个或多个灯点的初始地址重复的情况,导致控制器在按初始地址访问LED灯串中的不同灯点来给灯点分配新地址时,出现一个初始地址对应多个灯点的情况,导致新地址不能正确分配。The light point has an initial address. After processing and producing the LED light string, it is necessary to use the initial address of the light point and the position of the light point in the LED light string to generate a new light point address. In subsequent normal use, the controller can use the new address. The address of the light point performs data interaction with the light point in the LED light string. Because the bit width of the initial address of the light point is limited, it is easy to have two or more initial addresses of the light point in the same LED light string overlap during large-scale production, causing the controller to access the LED light string according to the initial address. When assigning new addresses to different light points in the network, one initial address corresponds to multiple light points, resulting in incorrect allocation of new addresses.

为解决上述问题,通常使用增加灯点初始地址的位宽的方式,但是,灯点初始地址的位宽增加的同时,也增加了灯点新地址的位宽,使得控制器和灯点间访问指令的长度增加,导致数据传输效率降低。还有一种方式是通过增加串行地址分配线将LED灯串中的所有灯点通过地址线串接起来,再配合地址分配指令用顺序的分配灯点地址,但是,该方式需要单独地址线,增加了额外的布线开销,导致成本较高。In order to solve the above problems, the method of increasing the bit width of the initial address of the light point is usually used. However, while the bit width of the initial address of the light point is increased, the bit width of the new address of the light point is also increased, so that the access between the controller and the light point The length of the instruction increases, resulting in less efficient data transfer. Another way is to connect all the light points in the LED light string in series through the address line by adding a serial address assignment line, and then coordinate with the address assignment instruction to assign the address of the light points sequentially, but this method requires a separate address line, Additional wiring overhead is added, resulting in higher costs.

因此,现有技术还有待于改进和发展。Therefore, the prior art still needs to be improved and developed.

发明内容Contents of the invention

鉴于上述现有技术的不足,本发明的目的在于提供一种LED灯串的灯点地址分配方法及装置,以解决现有LED灯串的灯点地址分配方法中存在的数据传输效率低或者成本较高的问题。In view of the above deficiencies in the prior art, the object of the present invention is to provide a method and device for assigning address of LED light strings to solve the problem of low data transmission efficiency or cost higher question.

本发明的技术方案如下:Technical scheme of the present invention is as follows:

一种LED灯串的灯点地址分配方法,其包括:A method for assigning address points of LED light strings, comprising:

控制器获取LED灯串中各个灯点的初始地址;其中,灯点的初始地址包括第一初始地址与第二初始地址;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 judges whether the first initial address and the second initial address of each light point are repeated, and rewrites the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain a new light point address;

其中,若LED灯串中各个灯点的第一初始地址与第二初始地址均不相同,控制器根据灯点的第一初始地址或第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址不同而第二初始地址相同,控制器根据第一初始地址改写灯点地址,或者第一初始地址相同而第二初始地址不同,控制器根据第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是不同的灯点,控制器根据第一初始地址与第二初始地址改写灯点地址。Among them, if the first initial address and the second initial address of each light point in the LED light string are different, the controller rewrites the address of the light point according to the first initial address or the second initial address of the light point; The first initial address of the light point is different but the second initial address is the same, the controller rewrites the light point address according to the first initial address, or the first initial address is the same but the second initial address is different, the controller rewrites the light point address according to the second initial address Address; if the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and the second initial address are different light points, the controller according to the first initial address Rewrite the lamp point address with the second initial address.

本发明的进一步设置,所述控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址的步骤包括:In a further setting of the present invention, the controller judges whether the first initial address and the second initial address of each light point are duplicated, and rewrites the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain The steps for a new light point address include:

控制器根据灯点的第一初始地址、第二初始地址或者第一初始地址与第二初始地址并结合灯点在LED灯串中的位置编号改写灯点地址。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.

本发明的进一步设置,所述控制器根据灯点的第一初始地址、第二初始地址或者第一初始地址与第二初始地址并结合灯点在LED灯串中的位置编号改写灯点地址的步骤包括:In a further setting of the present invention, 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 Steps include:

控制器发送各个灯点的初始地址与对应灯点在LED灯串中的位置编号至LED灯串,若LED灯串中的各个灯点接收的初始地址与自身的初始地址相等,则将对应灯点自身的初始地址改为位置编号,以得到对应灯点的新灯点地址。The controller sends the initial address of each light point and the position number of the corresponding light point in the LED light string to the LED light string. If the initial address received by each light point in the LED light string is equal to its own initial address, the corresponding light The initial address of the point itself is changed to the position number to obtain the new address of the corresponding light point.

本发明的进一步设置,所述控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址的步骤还包括:In a further setting of the present invention, the controller judges whether the first initial address and the second initial address of each light point are duplicated, and rewrites the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain The steps for the new light point address also include:

若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是同样的灯点,将重复灯点对中的其中一个替换后再重新分配地址。If the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and the second initial address are the same light point, one of the light point pairs will be repeated Replace and then reassign addresses.

本发明的进一步设置,所述控制器获取LED灯串中各个灯点的初始地址的步骤包括:In a further setting of the present invention, the step of the controller obtaining the initial address of each light point in the LED light string includes:

控制器发送地址读取指令至LED灯串中的每个灯点;其中,灯点接收地址读取指令后会根据地址读取指令控制发光部件的亮灭状态;The controller sends an address reading command to each light point in the LED light string; among them, after receiving the address reading command, the light point will control the on-off state of the light-emitting component according to the address reading command;

控制器控制感光器读取灯点的亮灭状态并获取感光器反馈的亮灭状态信息;The controller controls the photoreceptor to read the on-off state of the light point and obtains the on-off state information fed back by the photoreceptor;

控制器根据所述亮灭状态信息得到灯点的初始地址,并按照灯点在LED灯串的排列顺序读取所有灯点的初始地址。The controller obtains the initial addresses of the light points according to the on-off status information, and reads the initial addresses of all the light points according to the order in which the light points are arranged in the LED light string.

本发明的进一步设置,灯点在改写地址后会记录自身的初始地址已经被改写,已经改写灯点地址的灯点不再改写自身的新灯点地址。In a further setting of the present invention, after the address is rewritten, the light point will record that its initial address has been rewritten, and the light point whose address has been rewritten will not rewrite its own new light point address.

本发明的进一步设置,所述控制器获取LED灯串中各个灯点的初始地址的步骤之前还包括:In a further setting of the present invention, before the step of the controller obtaining the initial address of each light point in the LED light string, the step further includes:

预先在灯点设置第一初始地址与第二初始地址;Pre-set the first initial address and the second initial address at the light point;

其中,在改写灯点地址时,所述第一初始地址保持不变,对第二初始地址进行修改以得到新灯点地址。Wherein, when rewriting the address of the lamp point, the first initial address remains unchanged, and the second initial address is modified to obtain a new address of the lamp point.

本发明的进一步设置,所述控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址的步骤之后还包括:In a further setting of the present invention, the controller judges whether the first initial address and the second initial address of each light point are duplicated, and rewrites the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain After the steps of the new light point address also include:

控制器通过新灯点地址与对应灯点进行显示数据交互,以控制对应灯点根据显示数据显示不同灰阶图像。The controller performs display data interaction with the corresponding light point through the address of the new light point, so as to control the corresponding light point to display different grayscale images according to the display data.

一种应用于LED灯串的灯点地址分配方法的LED灯串的灯点地址分配装置,与LED灯串连接,其包括:控制器与感光器;其中,A light point address allocation device for LED light strings, which is applied to the light point address allocation method of LED light strings, is connected with LED light strings, and includes: a controller and a photoreceptor; wherein,

所述感光器与所述控制器连接并与所述LED灯串中的灯点相对设置,所述感光器用于读取灯点的亮灭状态并反馈亮灭状态信息至所述控制器;The photoreceptor is connected to the controller and arranged opposite to the light point in the LED light string, the photoreceptor is used to read the on-off state of the light point and feed back the on-off state information to the controller;

所述控制器分别与所述感光器以及所述LED灯串连接,所述控制器用于根据所述亮灭状态信息获取LED灯串中各个灯点的初始地址,并判断各个灯点的第一初始地址与第二初始地址是否重复,根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址。The controller is respectively connected to the photoreceptor and the LED light string, and the controller is used to obtain the initial address of each light point in the LED light string according to the on-off state information, and determine the first address of each light point. Whether the initial address and the second initial address are repeated, according to the duplication of the first initial address and the second initial address of the light point, rewrite the light point address to obtain a new light point address.

本发明的进一步设置,所述感光器为光敏器件。In a further aspect of the present invention, the photoreceptor is a photosensitive device.

本发明所提供的一种LED灯串的灯点地址分配方法及装置,方法包括:控制器获取LED灯串中各个灯点的初始地址;其中,灯点的初始地址包括第一初始地址与第二初始地址;控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址;其中,若LED灯串中各个灯点的第一初始地址与第二初始地址均不相同,控制器根据灯点的第一初始地址或第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址不相同而第二初始地址相同,控制器根据第一初始地址改写灯点地址,或者第一初始地址相同而第二初始地址不同,控制器根据第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是不同的灯点,控制器根据第一初始地址与第二初始地址改写灯点地址。本发明通过对灯点设置两个初始地址,降低了同一LED灯串中初始地址重复的情况,在灯点分配地址时,若LED灯串中各个灯点的两个初始地址都不同或只有一个初始地址相同,控制器只需要通过一个初始地址给灯点分配新地址,相比于通过两个初始地址来访问的方式,提高了数据传输效率,且无需地址分配线,节省了布线空间,降低了成本。The present invention provides a method and device for assigning addresses of LED light points, the method includes: the controller obtains the initial address of each light point in the LED light string; wherein, the initial address of the light point includes the first initial address and the second initial address Two initial addresses: the controller judges whether the first initial address and the second initial address of each light point are repeated, and rewrites the light point address according to the repetition of the first initial address and the second initial address of the light point to obtain a new light point address ; Wherein, if the first initial address and the second initial address of each light point in the LED light string are different, the controller rewrites the light point address according to the first initial address or the second initial address of the light point; if the LED light string If the first initial address of some light points is different but the second initial address is the same, the controller rewrites the address of the light point according to the first initial address, or if the first initial address is the same but the second initial address is different, the controller rewrites the address according to the second initial address Light point address; if the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and second initial address are different light points, the controller according to the first The initial address and the second initial address rewrite the lamp address. The present invention reduces the repetition of initial addresses in the same LED light string by setting two initial addresses for the light points. When assigning addresses to light points, if the two initial addresses of each light point in the LED light string are different or only The initial address is the same, and the controller only needs to assign a new address to the light point through one initial address. Compared with accessing through two initial addresses, the data transmission efficiency is improved, and there is no need for address assignment lines, which saves wiring space and reduces costs.

附图说明Description of drawings

为了更清楚的说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to the structures shown in these drawings without creative effort.

图1是本发明中一种LED灯串的灯点地址分配方法的流程示意图。FIG. 1 is a schematic flow chart of a method for assigning address points of LED light strings in the present invention.

图2是本发明一个具体应用实施例中LED灯串的灯点地址分配方法的流程示意图。Fig. 2 is a schematic flowchart of a method for assigning address points of LED light strings in a specific application embodiment of the present invention.

图3是本发明中LED灯串的灯点地址分配装置的电路原理图。Fig. 3 is a schematic circuit diagram of the light point address distribution device of the LED light string in the present invention.

具体实施方式Detailed ways

本发明提供一种LED灯串的灯点地址分配方法及装置,应用于LED灯饰、LED屏显、LED背光与LED照明等领域。为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The invention provides a method and device for allocating addresses of LED lamp strings, which are applied in the fields of LED lighting, LED screen display, LED backlight, LED lighting and the like. In order to make the object, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

在实施方式和申请专利范围中,除非文中对于冠词有特别限定,否则“一”、“一个”、“所述”和“该”也可包括复数形式。若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。In the embodiments and claims, unless the article is specifically limited, "a", "an", "the" and "the" may also include plural forms. If there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. Significance or implicitly indicates the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features.

应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said 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 will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.

另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.

经发明人研究发现,为避免控制器在按初始地址访问LED灯串中的不同灯点来给灯点分配新地址时出现一个初始地址对应多个灯点的情况而导致新地址不能正确分配的问题,通常使用增加灯点初始地址的位宽的方式,但这样同时也增加了新地址的位宽,最终导致控制器和灯点间访问指令的长度增加,数据传输效率变低,因使用这类技术的系统采用单线数据线的方式来传输显示数据,本身传输速率就低,任何额外增加的数据都将使图像刷新率变低。还有一种方式是不采用初始地址这种分配新地址的方式,而是增加串行地址分配线将LED灯串中的所有灯点通过地址线串接起来,再配合控制的地址分配指令用以顺序的分配灯点地址,该方法需要单独地址线,增加了额外的布线开销,增加成本,并且在透明屏的应用中,增加的地址线会影响透明效果。The inventor found that, in order to avoid the situation that one initial address corresponds 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, the new address cannot be correctly assigned The problem is that the method of increasing the bit width of the initial address of the light point is usually used, but this also increases the bit width of the new address, which eventually leads to an increase in the length of the access instruction between the controller and the light point, and lower data transmission efficiency. The system of this type of technology uses a single-line data line to transmit display data, and the transmission rate itself is low, and any additional data will reduce the image refresh rate. Another way is not to use the initial address to assign a new address, but to add a serial address assignment line to connect all the light points in the LED light string in series through the address line, and then cooperate with the address assignment command of the control to Sequentially assigning the address of the light points, this method requires a separate address line, which increases additional wiring overhead and increases the cost, and in the application of a transparent screen, the added address line will affect the transparency effect.

针对上述技术问题,本发明提供的LED灯串的灯点地址分配方法及装置,通过对灯点设置两个初始地址,这样便降低了同一LED灯串中初始地址重复的情况,在灯点分配地址时,若LED灯串中各个灯点的两个初始地址都不同或只有一个初始地址相同,控制器只需要通过一个初始地址给灯点分配新地址。相比于通过两个初始地址来访问的方式,提高了数据传输效率,节省了测试时间,而灯点的新灯点地址位宽等于其中任意一个初始地址位宽,控制器在和灯点使用新灯点地址来交互显示数据时,数据传输效率高,提高了图像的刷新率。另外,本发明无需地址分配线,节省了布线空间,降低了系统成本,并避免了在透明屏的应用中因增加地址线影响透明效果的问题。Aiming at the above-mentioned technical problems, the method and device for assigning addresses of LED light strings provided by the present invention set two initial addresses for the light points, thus reducing the repetition of initial addresses in the same LED light string. When addressing, 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. Compared with the way of accessing through two initial addresses, it improves the data transmission efficiency and saves the test time, and the bit width of the new light point address of the light point is equal to the bit width of any one of the initial addresses, and the controller is used with the light point When the new light point address is used to interactively display data, the data transmission efficiency is high, and the refresh rate of the image is improved. In addition, the present invention does not need address distribution lines, saves wiring space, reduces system cost, and avoids the problem of affecting the transparent effect due to the addition of address lines in the application of transparent screens.

请同时参阅图1与图2,本发明提供了一种LED灯串的灯点地址分配方法的较佳实施例。Please refer to FIG. 1 and FIG. 2 at the same time. The present invention provides a preferred embodiment of a method for assigning addresses of LED light strings.

如图1所示,本发明所提供的一种LED灯串的灯点地址分配方法,其包括步骤:As shown in Figure 1, a method for allocating lamp point addresses of LED light strings provided by the present invention includes steps:

S100、控制器获取LED灯串中各个灯点的初始地址;其中,灯点的初始地址包括第一初始地址与第二初始地址;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;

S200、控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址;S200. The controller judges whether the first initial address and the second initial address of each light point are duplicated, and rewrites the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain a new light point address;

其中,若LED灯串中各个灯点的第一初始地址与第二初始地址均不相同,控制器根据灯点的第一初始地址或第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址不同而第二初始地址相同,控制器根据第一初始地址改写灯点地址,或者第一初始地址相同而第二初始地址不同,控制器根据第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是不同的灯点,控制器根据第一初始地址与第二初始地址改写灯点地址。Among them, if the first initial address and the second initial address of each light point in the LED light string are different, the controller rewrites the address of the light point according to the first initial address or the second initial address of the light point; The first initial address of the light point is different but the second initial address is the same, the controller rewrites the light point address according to the first initial address, or the first initial address is the same but the second initial address is different, the controller rewrites the light point address according to the second initial address Address; if the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and the second initial address are different light points, the controller according to the first initial address Rewrite the lamp point address with the second initial address.

具体地,每个灯点的初始地址包括第一初始地址与第二初始地址,控制器可以通过第一初始地址或第二初始地址来发送不同的指令即可寻址到对应的灯点,或者同时通过第一初始地址与第二初始地址一起(即将第一初始地址与第二初始地址合在一起)寻址到对应的灯点。Specifically, the initial address of each light point includes a first initial address and a second initial address, and the controller can send different instructions through the first initial address or the second initial address to address the corresponding light point, or At the same time, the corresponding light point is addressed through the combination of the first initial address and the second initial address (that is, the combination of the first initial address and the second initial address).

控制器在获取LED灯串中所有灯点的初始地址后,判断各个灯点的第一初始地址与第二初始地址是否有重复,并判断是第一初始地址重复、第二初始地址重复或是第一初始地址与第二初始地址均重复。首先,控制器判断各个灯点的第一初始地址与第二初始地址是否均不相同,若是LED灯串中各个灯点的第一初始地址与第二初始地址均不相同,那么控制器可以根据第一初始地址改写灯点地址,或者通过第二初始地址改写灯点地址;若是部分灯点的第一初始地址与第二初始地址有其中一个相同,则进一步判断是第一初始地址相同还是第二初始地址相同,若是LED灯串中部分灯点的第一初始地址不相同而第二初始地址相同,控制器根据第一初始地址改写灯点地址,或者第一初始地址相同而第二初始地址不同,控制器根据第二初始地址改写灯点地址;若是控制器判断LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是不同的灯点,则控制器根据第一初始地址与第二初始地址改写灯点地址。After the controller obtains the initial addresses of all the light points in the LED light string, it judges whether the first initial address and the second initial address of each light point are repeated, and judges 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 judges whether the first initial address and the second initial address of each light point are different. If the first initial address and the second initial address of each light point in the LED light string are different, then the controller can according to The first initial address rewrites the address of the light point, or rewrites the address of the light point through the second initial address; if the first initial address of some light points is the same as the second initial address, it is further judged whether the first initial address is the same or the second initial address The two initial addresses are the same. If the first initial address of some light points in the LED light string is different but the second initial address is the same, the controller rewrites the address of the light point according to the first initial address, or the first initial address is the same and the second initial address is the same. Different, the controller rewrites the light point address according to the second initial address; if the controller judges that the first initial address and the second initial address of some light points in the LED light string are the same, and the first initial address and the second initial address are the same The lamp points are different lamp points, and the controller rewrites the address of the lamp point according to the first initial address and the second initial address.

可见,本发明通过对灯点设置两个初始地址,灯点拥有两个初始地址相当于地址位宽变长,降低了同一LED灯串中初始地址重复的情况,在灯点分配地址时,若LED灯串中各个灯点的两个初始地址都不同或只有一个初始地址相同,控制器只需要通过一个初始地址给灯点分配新地址,而新灯点地址的位宽等于其中任一初始地址的位宽,相比于通过两个初始地址来访问的方式,控制器在与灯点使用新灯点地址交互显示数据时,提高了数据传输效率,从而提高了图像的刷新率,且无需地址分配线,节省了布线空间,降低了成本,并避免了在透明屏的应用中因增加地址线影响透明效果的问题。It can be seen that the present invention sets two initial addresses for the light point, and the light point has two initial addresses, which is equivalent to the lengthening of the address bit width, which reduces the repetition of initial addresses in the same LED light string. When assigning addresses to the light point, 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 any of the initial addresses. Compared with the way of accessing through two initial addresses, when the controller uses the new address of the light point to interactively display data, the data transmission efficiency is improved, thereby improving the refresh rate of the image, and no address is required. The distribution line saves the wiring space, reduces the cost, and avoids the problem of affecting the transparency effect due to the addition of address lines in the application of the transparent screen.

例如,一个LED灯串有20个灯点,每个灯点包括R(红)G(绿)B(蓝)三色,每个颜色对应8比特的显示数据,灯点的初始地址B位宽为8比特,初始地址B出现两个重复地址的几率为20/256,约8%,如果增加8比特的地址位宽,出现两个重复地址的几率为20/65536,约万分之三。RGB总计24比特的显示数据加上8比特的地址则为32比特,增加8比特的地址位后变为40比特,也就是说,控制器至少需要发送40个比特的数据才能控制单个灯点,16比特的地址相比于8比特的地址指令效率降低了25%,其指令的长度相应增加了8比特。For example, an LED light string has 20 light points, each light point includes three colors of R (red), G (green) and B (blue), each color corresponds to 8-bit display data, and the initial address of the light point is B-bit wide 8 bits, the probability of two duplicate addresses appearing in the initial address B is 20/256, about 8%. If the address bit width of 8 bits is increased, the probability of two duplicate addresses appearing is 20/65536, about 3/10,000. A total of 24 bits of RGB display data plus an 8-bit address is 32 bits, and after adding an 8-bit address, it becomes 40 bits. That is to say, the controller needs to send at least 40 bits of data to control a single light point. Compared with the 8-bit address, the instruction efficiency of the 16-bit address is reduced by 25%, and the length of the instruction is correspondingly increased by 8 bits.

如果使用本发明,在8比特初始地址B的前提下,增加8比特的初始地址A,出现初始地址B与初始地址A都相同的几率仅为20/65536,控制器访问灯点时使用新灯点地址的情况下,其指令长度没有增加,还是8比特的地址。If the present invention is used, on the premise of 8-bit initial address B, add 8-bit initial address A, the probability that both initial address B and initial address A are the same is only 20/65536, and the controller uses a new lamp when accessing the lamp point In the case of a dot address, the instruction length is not increased, and it is still an 8-bit address.

在一个实施例的进一步地实施方式中,步骤S200还包括步骤:In a further implementation of an embodiment, step S200 also includes the steps of:

S210、若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是同样的灯点,将重复灯点对中的其中一个替换后再重新分配地址。S210. If the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and the second initial address are the same light point, repeat the pairing of light points. One of them is replaced and then the address is reassigned.

具体地,若控制器检测到LED灯串中存在第一初始地址与第二初始地址均相同的灯点,且出现在同一对灯点中,也就是说,第一初始地址相同的两个灯点和第二初始地址相同的两个灯点是同一对灯点,则将灯点地址重复灯点对中的一个用另一新的灯点替换后,再进一步判断LED灯串中灯点地址的重复情况,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址。Specifically, if the controller detects that there is a light point in the LED light string that has the same first initial address and the second initial address, and appears in the same pair of light points, that is, two lights with the same first initial address If the two light points with the same second initial address are the same pair of light points, then the address of the light point is repeated and one of the light point pairs is replaced with another new light point, and then the address of the light point in the LED light string is further judged , and rewrite the address of the light point according to the repetition of the first initial address and the second initial address of the light point to obtain a new light point address.

在一个实施例的进一步地实施方式中,步骤S200包括步骤:In a further implementation of an embodiment, step S200 includes the steps of:

S220、控制器根据灯点的第一初始地址、第二初始地址或者第一初始地址与第二初始地址并结合灯点在LED灯串中的位置编号改写灯点地址。S220. 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.

具体地,控制按照灯点在LED灯串中的排列规律顺序读完所有灯点的初始地址。Specifically, the control reads the initial addresses of all the light points sequentially according to the regular arrangement of the light points in the LED light string.

如若控制器判断LED灯串中各灯点的第一初始地址和第二初始地址都没有重复,则根据各灯点在LED灯串中的位置,通过第一初始地址或第二初始地址中的其中一个来访问灯点并改写其第二初始地址以得到新灯点地址,例如,若将LED灯串中排列在队首的灯点的第二初始地址改为0x00,排列在第二位的灯点的第二初始地址改为0x01,如此类推;If the controller judges that the first initial address and the second initial address of each light point in the LED light string are not repeated, then according to the position of each light point in the LED light string, through the first initial address or the second initial address One of them accesses the light point and rewrites its second initial address to obtain a new light point address. For example, if the second initial address of the light point arranged at the head of the LED light string in the LED light string is changed to 0x00, the second The second initial address of the light point is changed to 0x01, and so on;

如果控制器LED灯串中有灯点的第二初始地址重复,第一初始地址没有重复的,则根据灯点在LED灯串中的位置,通过第一初始地址访问来访问灯点并改写其第二初始地址,例如,若将LED灯串中排列在队首的灯点的第二初始地址改为0x00,排列在第二位的灯点的第二初始地址改为0x01,如此类推;If the second initial address of the light point in the controller LED light string is repeated, but the first initial address is not repeated, then according to the position of the light point in the LED light string, access the light point through the first initial address access and rewrite it The second initial address, for example, if the second initial address of the light point arranged at the head of the team in the LED light string is changed to 0x00, the second initial address of the light point arranged in the second place is changed to 0x01, and so on;

如果控制器判断LED灯串中有灯点的第一初始地址重复,第二初始地址没有重复的,则根据灯点在LED灯串中的位置,通过第二初始地址来访问灯点并改写其第二初始地址,例如,若将LED灯串中排列在队首的灯点的第二初始地址改为0x00,排列在第二位的第二灯点初始地址改为0x01,如此类推;If the controller judges that the first initial address of the light point in the LED light string is repeated, and the second initial address is not repeated, then according to the position of the light point in the LED light string, access the light point through the second initial address and rewrite it The second initial address, for example, if the second initial address of the light point arranged at the head of the team in the LED light string is changed to 0x00, the initial address of the second light point arranged in the second place is changed to 0x01, and so on;

如果LED灯串中有灯点的第一初始地址和第二初始地址都有重复,但不是出现在同一对灯点中,也就是说第一初始地址相同的两个灯点和第二初始地址相同的两个灯点没有交集,则根据灯点在LED灯串中的位置,同时使用第一初始地址和第二初始地址来访问灯点并改写其第二初始地址,例如,若将LED灯串中排列在队首的灯点的第二初始地址改为0x00,排列在第二位的灯点的第二初始地址改为0x01,如此类推;If the first initial address and the second initial address of the light points in the LED light string are repeated, but they do not appear in the same pair of light points, that is to say, two light points with the same first initial address and the second initial address If there is no intersection between the same two light points, then according to the position of the light point in the LED light string, use the first initial address and the second initial address to access the light point and rewrite its second initial address, for example, if the LED light The second initial address of the light point arranged at the head of the queue in the string is changed to 0x00, the second initial address of the light point arranged in the second place is changed to 0x01, and so on;

如果控制器判断LED灯串中有灯点的第一初始地址和第二初始地址都有重复,且出现在同一对灯点中,也就是说第一初始地址相同的两个灯点和第二初始地址相同的两个灯点是同一对灯点,则用一个新的灯点替换掉地址重复灯点对中的其中一个,再重复上述过程。If the controller judges that the first initial address and the second initial address of the light point in the LED light string are repeated and appear in the same pair of light points, that is to say, two light points with the same first initial address and the second Two light points with the same initial address are the same pair of light points, replace one of the light point pairs with duplicate addresses with a new light point, and repeat the above process.

在一个实施例的进一步地实施方式中,步骤S220包括步骤:In a further implementation of an embodiment, step S220 includes the steps of:

S221、控制器发送各个灯点的初始地址与对应灯点在LED灯串中的位置编号至LED灯串,若LED灯串中的各个灯点接收的初始地址与自身的初始地址相等,则将对应灯点自身的初始地址改为位置编号,以得到对应灯点的新灯点地址。S221. The controller sends the initial address of each light point and the position number of the corresponding light point in the LED light string to the LED light string. If the initial address received by each light point in the LED light string is equal to its own initial address, the The initial address of the corresponding light point itself is changed to the position number to obtain the new light point address of the corresponding light point.

具体地,若新灯点地址与灯点在LED灯串中的位置对应关系为其在LED灯串中的位置编号,则控制器发送灯点的初始地址和灯点在LED灯串中的位置编号到LED灯串,LED灯串中的灯点将接收到的初始地址和自身初始地址比较,若相等则将自身的第二初始地址改写为位置编号,该位置编号即为灯点的新灯点地址,此时新灯点地址的位宽等于第二初始地址的位宽。Specifically, if the corresponding relationship between the address of the new light point and the position of the light point in the LED light string is its position number in the LED light string, the controller sends the initial address of the light point and the position of the light point in the LED light string Numbered to the LED light string, the light point in the LED light string compares the received initial address with its own initial address, and if they are equal, rewrites its second initial address as the position number, and the position number is the new light of the light point point address, at this time, the bit width of the new light point address is equal to the bit width of the second initial address.

需要说明的是,新灯点地址必然与其在LED灯串中的位置一一对应,但不一定不能重复,例如想实现一些循环显示的功能,为了提高指令效率可以让LED灯串中灯点的新地址重复,例如有20个灯点的灯串,每5个灯点间显示相同的内容,则1-20号灯点只要按0x00-0x04的编址,重复4组。当发送命令时只用发送5个数据即可实现20个灯点的循环显示,指令长度节省了75%。It should be noted that the address of the new light point must correspond to its position in the LED light string one by one, but it may not be repeated. The new addresses are repeated. For example, if there are 20 light points in a light string, and the same content is displayed between every 5 light points, then the 1-20 light points only need to be addressed according to 0x00-0x04, and repeat 4 groups. When sending a command, it only needs to send 5 data to realize the circular display of 20 light points, and the command length is saved by 75%.

进一步需要说明的是,灯点的第二初始地址和第一初始地址是可替换的,也就是说,第一初始地址可用作第二初始地址,第二初始地址也可用作第一初始地址。在一种实现方式中,本发明以改写第二初始地址来作为新的灯点地址,在另一种实现方式中,也可以改写第一初始地址来作为新的灯点地址。It should be further noted that the second initial address and the first initial address of the 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. address. In one implementation manner, the present invention uses rewriting the second initial address as a new light point address, and in another implementation manner, may also rewrite the first initial address as a new light point address.

在一个实施例的进一步地实施方式中,步骤S100包括步骤:In a further implementation of an embodiment, step S100 includes the steps of:

S110、控制器发送地址读取指令至LED灯串中的每个灯点;其中,灯点接收地址读取指令后会根据地址读取指令控制发光部件的亮灭状态;S110. The controller sends an address reading instruction to each light point in the LED light string; wherein, after receiving the address reading instruction, the light point controls the on-off state of the light-emitting component according to the address reading instruction;

S120、控制器控制感光器读取灯点的亮灭状态并获取感光器反馈的亮灭状态信息;S120. The controller controls the photoreceptor to read the on-off state of the light point and obtains the on-off state information fed back by the photoreceptor;

S130、控制器根据所述亮灭状态信息得到灯点的初始地址,并按照灯点在LED灯串的排列顺序读取所有灯点的初始地址。S130. The controller obtains the initial addresses of the light points according to the on-off state information, and reads the initial addresses of all the light points according to the order in which the light points are arranged in the LED light string.

具体地,控制器发送地址读取指令到LED灯串中的每个灯点,灯点通过控制器发光部件(LED)亮、灭的方式输出自身的初始地址。控制器则通过控制感光器对准等灯点的发光部件,捕捉灯点的亮灭状态信息,并反馈给控制器,实现光信号至电信号的转换,控制器解析感光器反馈的亮灭状态信息,按照灯点在LED灯串的排列顺序读取对应灯点的第一初始地址与第二初始地址。Specifically, the controller sends an address reading command to each light point in the LED light string, and the light point outputs its own initial address by turning on and off the light-emitting part (LED) of the controller. The controller controls the photoreceptor to align with the light-emitting parts of the light point, captures the on-off state information of the light point, and feeds it back to the controller to realize the conversion from optical signal to electrical signal, and the controller analyzes the on-off state fed back by the photoreceptor Information, read the first initial address and the second initial address of the corresponding light point according to the arrangement order of the light point in the LED light string.

在一个实施例的进一步地实施方式中,步骤S100之前还包括:In a further implementation of an embodiment, before step S100, it also includes:

S101、预先在灯点设置第一初始地址与第二初始地址;S101, pre-setting the first initial address and the second initial address at the lamp point;

其中,在改写灯点地址时,所述第一初始地址保持不变,对第二初始地址进行修改以得到新灯点地址。Wherein, when rewriting the address of the lamp point, the first initial address remains unchanged, and the second initial address is modified to obtain a new address of the lamp point.

具体地,每个灯点都有两个初始地址,其中,第一初始地址在将灯点加工成LED灯串前预设好,在后续的生产加工或应用时不需要修改,第二初始地址在灯点加工成LED灯串前也会预设好,加工成LED灯串后需要根据灯点在LED灯串中的排列位置重新修改第二初始地址以得到灯点的新灯点地址,或者,在应用过程中更换掉坏掉的灯点时根据该灯点在LED灯串中的位置修改其第二初始地址以得到灯点的新灯点地址。Specifically, each light point has two initial addresses, among which, the first initial address is preset before the light point is processed into an LED light string, and does not need to be modified in subsequent production, processing or application, and the second initial address It will also be preset before the light points are processed into LED light strings. After processing into LED light strings, the second initial address needs to be re-modified according to the arrangement position of the light points in the LED light string to obtain the new light point addresses of the light points, or In the application process, when a broken lamp point is replaced, the second initial address of the lamp point is modified according to the position of the lamp point in the LED light string to obtain a new lamp point address of the lamp point.

在一个实施例的进一步地实施方式中,灯点在改写地址后会记录自身的初始地址已经被改写,已经改写灯点地址的灯点不再改写自身的新灯点地址。In a further implementation of an embodiment, after the address is rewritten, the light point will record that its initial address has been rewritten, and the light point whose address has been rewritten will not rewrite its own new light point address.

具体地,在改写第二初始地址后,灯点原来存放第二初始地址的地方被新灯点地址所替代,新灯点地址可能和其他为被改写的第二初始地址相同,所以灯点需要记录自身的第二初始地址已经被修改为新灯点地址,后续若继续接受到控制器发送的地址改写指令,已经改写地址的灯点将不再改写自身的新地址。Specifically, after rewriting the second initial address, the place where the light point originally stored the second initial address is replaced by the new light point address, and the new light point address may be the same as other second initial addresses that have not been rewritten, so the light point needs to Record that the second initial address of itself has been modified to the address of the new light point. If the address rewriting command sent by the controller continues to be received later, the light point whose address has been rewritten will not rewrite its new address.

在一个实施例的进一步地实施方式中,步骤S200之后还包括步骤:In a further implementation of an embodiment, after step S200, further steps are included:

S300、控制器通过新灯点地址与对应灯点进行显示数据交互,以控制对应灯点根据显示数据显示不同灰阶图像。S300. The controller performs display data interaction with the corresponding light point through the new light point address, so as to control the corresponding light point to display different grayscale images according to the display data.

具体地,控制器完成对LED灯串的地址再分配之后,即控制器修改完所有灯点的第二初始地址得到新灯点地址后,所有新灯点地址必然与灯点在LED灯串中的位置一一对应,可以通过新灯点地址寻址到对应的灯点对其进行访问,控制灯点按照显示数据显示不同灰阶图像,从而能够控制LED灯串的颜色输出。Specifically, after the controller completes the address redistribution of LED light strings, that is, after the controller modifies the second initial addresses of all light points to obtain new light point addresses, the addresses of all new light points must be the same as those of the light points in the LED light string. The positions of the LEDs are in one-to-one correspondence, and the corresponding lamp points can be accessed through addressing the new lamp point address, and the control lamp points display different grayscale images according to the display data, so that the color output of the LED light string can be controlled.

为更好地理解本发明,请参阅图2,以下以一具体应用实施例对本发明进行说明。For a better understanding of the present invention, please refer to FIG. 2 , and the present invention will be described below with a specific application embodiment.

如图2所示,控制在对LED灯串进行地址再分配时,控制器首先发送地址读指令至LED灯串中的每个灯点,此时灯点控制发光部件(灯点包括驱动芯片与发光部件,发光部件可以是LED)的亮、灭状态来输出自身的第一初始地址与第二初始地址,控制器通过感光器读取灯点的亮、灭状态,解调出第一初始地址与第二初始地址。其后控制器判断所有灯点的第一初始地址与第二初始地址是否都不相同,若是则控制器通过通过第一初始地址或第二初始地址的任一个将新灯点地址写到对应的灯点,否则进一步判断是否所有灯点的第一初始地址不同且部分灯点的第二初始地址相同,若是则控制器通过第一初始地址将新灯点地址写入到对应灯点,否则进一步判断是否所有灯点的第二初始地址不相同而部分灯点的第一初始地址相同,若是则控制器通过第二初始地址将新灯点地址写入到对应灯点,否进一步判断是否部分灯点的第一初始地址与第二初始地址均相同且灯点部交叠,若是控制器通过第一初始地址与第二初始地址将新灯点地址写入到对应的灯点中,否则需要使用一颗新灯点更换掉交叠灯点中的其中一颗,其后进行地址再分配工作,即控制器再发送地址读指令至LED灯串中的每个灯点,进行上述的判断过程。在控制器完成LED灯串的所有的灯点地址更新后,控制器可以通过灯点新地址与灯点进行显示数据的通信,控制灯点显示不同灰阶图像。As shown in Figure 2, when the controller reassigns the address of the LED light string, the controller first sends an address read command to each light point in the LED light string, and at this time the light point controls the light-emitting components (the light point includes the driver chip and Light-emitting component, the light-emitting component can be the on and off status of LED) to output its first initial address and second initial address, the controller reads the on and off status of the light point through the photoreceptor, and demodulates the first initial address with the second initial address. Then the controller judges whether the first initial address and the second initial address of all lamp points are different, and if so, the controller writes the new lamp address to the corresponding otherwise, it is further judged whether the first initial address of all the lamp points is different and the second initial address of some lamp points is the same, if so, the controller writes the new address of the lamp point to the corresponding lamp point through the first initial address, otherwise further Determine whether the second initial addresses of all light points are different and the first initial addresses of some light points are the same, if so, the controller writes the new light point address to the corresponding light point through the second initial address, and further judges whether some light points The first initial address and the second initial address of the point are both the same and the light points overlap. If the controller writes the new light point address into the corresponding light point through the first initial address and the second initial address, otherwise it needs to use Replace one of the overlapping light points with a new light point, and then perform address reassignment, that is, the controller sends an address read command to each light point in the LED light string to perform the above judgment process. After the controller finishes updating the addresses 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.

请参阅图3,在一些实施例中,本发明还提供了一种应用于LED灯串的灯点地址分配方法的LED灯串的灯点地址分配装置,与LED灯串连接,其包括:控制器100与感光器;其中,所述感光器与所述控制器100连接并与所述LED灯串中的灯点相对设置,所述感光器用于读取灯点的亮灭状态并反馈亮灭状态信息至所述控制器;所述控制器100分别与所述感光器以及所述LED灯串连接,所述控制器100用于根据所述亮灭状态信息获取LED灯串中各个灯点的初始地址,并判断各个灯点的第一初始地址与第二初始地址是否重复,根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址。Please refer to Fig. 3, in some embodiments, the present invention also provides a light point address allocation device for LED light strings applied to the light point address allocation method of LED light strings, connected with LED light strings, which includes: control sensor 100 and a photoreceptor; wherein, the photoreceptor is connected to the controller 100 and set opposite to the light point in the LED light string, and the photoreceptor is used to read the on-off state of the light point and feedback the on-off state State information to the controller; the controller 100 is respectively connected to the photoreceptor and the LED light string, and the controller 100 is used to obtain the status of each light point in the LED light string according to the on-off state information The initial address, and judge whether the first initial address and the second initial address of each light point are duplicated, and rewrite the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain a new light point address.

具体地,控制器100发送地址读取指令到LED灯串中的每个灯点,灯点通过控制器发光部件(LED)亮、灭的方式输出自身的初始地址。控制器100则通过控制感光器对准等灯点的发光部件,捕捉灯点的亮灭状态信息,并反馈给控制器,实现光信号至电信号的转换,控制器解析感光器反馈的亮灭状态信息,按照灯点在LED灯串的排列顺序读取对应灯点的第一初始地址与第二初始地址。Specifically, the controller 100 sends an address reading command to each light point in the LED light string, and the light point outputs its own initial address by turning on and off the light-emitting part (LED) of the controller. The controller 100 controls the photoreceptor to align with the light-emitting parts of the light point, captures the on-off status information of the light point, and feeds it back to the controller to realize the conversion from optical signal to electrical signal. The state information reads the first initial address and the second initial address of the corresponding light point according to the arrangement order of the light point in the LED light string.

控制器在获取LED灯串中所有灯点的初始地址后,判断各个灯点的第一初始地址与第二初始地址是否有重复,并判断是第一初始地址重复、第二初始地址重复或是第一地址与第二地址均重复。首先,控制器100判断各个灯点的第一初始地址与第二初始地址是否均不相同,若是LED灯串中各个灯点的第一初始地址与第二初始地址均不相同,那么控制器可以根据第一初始地址改写灯点地址,或者通过第二初始地址改写灯点地址;若是部分灯点的第一初始地址与第二初始地址有其中一个相同,则进一步判断是第一初始地址相同还是第二初始地址相同,若是LED灯串中部分灯点的第一初始地址不相同而第二初始地址相同,控制器100根据第一初始地址改写灯点地址,或者第一初始地址相同而第二初始地址不同,控制器100根据第二初始地址改写灯点地址;若是控制器判断LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是不同的灯点,则控制器100根据第一初始地址与第二初始地址改写灯点地址。After the controller obtains the initial addresses of all the light points in the LED light string, it judges whether the first initial address and the second initial address of each light point are repeated, and judges 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 judges whether the first initial address and the second initial address of each light point are different, if the first initial address and the second initial address of each light point in the LED light string are different, then the controller can Rewrite the address of the lamp point according to the first initial address, or rewrite the address of the lamp point through the second initial address; if the first initial address of some lamp points is the same as the second initial address, then further judge whether the first initial address The second initial address is the same. If the first initial address of some light points in the LED light string is different but the second initial address is the same, the controller 100 rewrites the address of the light point according to the first initial address, or the first initial address is the same and the second initial address is the same. If the initial address is different, the controller 100 rewrites the address of the light point according to the second initial address; if the controller judges that the first initial address and the second initial address of some light points in the LED light string are the same, and the first initial address and the second initial address Light points with the same address are different light points, and the controller 100 rewrites the address of the light point according to the first initial address and the second initial address.

可见,本发明通过对灯点设置两个初始地址,降低了同一LED灯串中初始地址重复的情况,在灯点分配地址时,若LED灯串中各个灯点的两个初始地址都不同或只有一个初始地址相同,控制器只需要通过一个初始地址给灯点分配新地址,而新灯点地址的位宽等于其中任一初始地址的位宽,相比于通过两个初始地址来访问的方式,控制器在与灯点使用新灯点地址交互显示数据时,提高了数据传输效率,且无需地址分配线,节省了布线空间,降低了成本。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 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 to accessing through two initial addresses In this way, when the controller uses the new address of the light point to interactively display data with the light point, the efficiency of data transmission is improved, and no address allocation line is needed, which saves wiring space and reduces costs.

在一个实施例的进一步地实施方式中,所述感光器为光敏器件。In a further implementation of one embodiment, the photoreceptor is a photosensitive device.

具体地,所述光敏器件用于将接收到的光信号转换为电信号并发送至所述控制器。在一些实施例中,所述光敏器件可以是但不限于是光敏电阻、光敏二极管或者光敏三极管,例如,可以是光敏二极管。Specifically, the photosensitive device is used to convert the received light signal into an electrical signal and send it to the controller. In some embodiments, the photosensitive device may be, but not limited to, a photoresistor, a photodiode or a phototransistor, for example, a photodiode.

请参阅图3,在一些实施例中,所述感光器设置有多个,每一所述感光器对应与一所述灯点相对设置。Please refer to FIG. 3 , in some embodiments, there are multiple photoreceptors, and each photoreceptor is correspondingly arranged opposite to one of the light spots.

具体地,LED灯串具有256个灯点,如图3所示,LED灯串的灯点包括L1、L2、L3…LN,其中N为256。Specifically, the LED light string has 256 light points. As shown in FIG. 3 , the light points of the LED light string include L1 , L2 , L3 . . . LN, where N is 256.

因灯点的地址为8bit,那么在只有一个感光器的情况下则需要控制器100发送8次地址匹配指令才能读到一个灯点的完整地址。若并行存在多个感光器,则控制器100发送8次地址匹配指令则可以读到对应多个灯点的灯点地址。在一种实现方式中,所述感光器的数量设置为8个,当感光器的数量为8个时,控制器100发送8次匹配指令即可读取到8个灯点的灯点地址,如图3所示,感光器记为K1、K2、K3…Kn,其中n为8。Because the address of a light point is 8 bits, if there is only one photoreceptor, the controller 100 needs to send an address matching command 8 times to read the complete address of a light point. If there are multiple photoreceptors in parallel, the controller 100 can read the address of the light point corresponding to multiple light points by sending the address matching command 8 times. In one implementation, the number of photoreceptors is set to 8. When the number of photoreceptors is 8, the controller 100 can read the address of 8 light points by sending 8 matching instructions. As shown in Figure 3, the photoreceptors are marked as K1, K2, K3...Kn, where n is 8.

综上所述,本发明所提供的一种LED灯串的灯点地址分配方法及装置具有以下有益效果:To sum up, a method and device for assigning addresses of LED light strings provided by the present invention have the following beneficial effects:

灯点设置两个初始地址,降低了同一LED灯串中初始地址重复的情况,在灯点分配地址时,若LED灯串中各个灯点的两个初始地址都不同或只有一个初始地址相同,控制器只需要通过一个初始地址给灯点分配新地址,而新灯点地址的位宽等于其中任一初始地址的位宽,相比于通过两个初始地址来访问的方式,控制器在与灯点使用新灯点地址交互显示数据时,提高了数据传输效率;Two initial addresses are set for the light points, which reduces 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 an initial address, and the bit width of the new light point address is equal to the bit width of any of the initial addresses. When the light point uses the new light point address to interactively display data, the data transmission efficiency is improved;

无需地址分配线,节省了布线空间,降低了成本,并避免了在透明屏的应用中因增加地址线影响透明效果的问题。There is no need for address distribution lines, 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.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples, and those skilled in the art can make improvements or transformations according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.

Claims (10)

1.一种LED灯串的灯点地址分配方法,其特征在于,包括:1. A method for allocating lamp point addresses of LED light strings, characterized in that it comprises: 控制器获取LED灯串中各个灯点的初始地址;其中,灯点的初始地址包括第一初始地址与第二初始地址;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 judges whether the first initial address and the second initial address of each light point are repeated, and rewrites the light point address according to the duplication of the first initial address and the second initial address of the light point to obtain a new light point address; 其中,若LED灯串中各个灯点的第一初始地址与第二初始地址均不相同,控制器根据灯点的第一初始地址或第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址不同而第二初始地址相同,控制器根据第一初始地址改写灯点地址,或者第一初始地址相同而第二初始地址不同,控制器根据第二初始地址改写灯点地址;若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是不同的灯点,控制器根据第一初始地址与第二初始地址改写灯点地址。Among them, if the first initial address and the second initial address of each light point in the LED light string are different, the controller rewrites the address of the light point according to the first initial address or the second initial address of the light point; The first initial address of the light point is different but the second initial address is the same, the controller rewrites the light point address according to the first initial address, or the first initial address is the same but the second initial address is different, the controller rewrites the light point address according to the second initial address Address; if the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and the second initial address are different light points, the controller according to the first initial address Rewrite the lamp point address with the second initial address. 2.根据权利要求1所述的LED灯串的灯点地址分配方法,其特征在于,所述控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址的步骤包括:2. The method for allocating addresses of light points of LED light strings according to claim 1, wherein the controller judges whether the first initial address and the second initial address of each light point overlap, and according to the first initial address of the light point The step of rewriting the lamp point address to obtain a new lamp point address in case of repetition of the initial address and the second initial address includes: 控制器根据灯点的第一初始地址、第二初始地址或者第一初始地址与第二初始地址并结合灯点在LED灯串中的位置编号改写灯点地址。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. 3.根据权利要求2所述的LED灯串的灯点地址分配方法,其特征在于,所述控制器根据灯点的第一初始地址、第二初始地址或者第一初始地址与第二初始地址并结合灯点在LED灯串中的位置编号改写灯点地址的步骤包括:3. The method for allocating lamp point addresses of LED light strings according to claim 2, wherein the controller according to the first initial address, the second initial address or the first initial address and the second initial address of the light point The steps of rewriting the address of the light point in combination with the position number of the light point in the LED light string include: 控制器发送各个灯点的初始地址与对应灯点在LED灯串中的位置编号至LED灯串,若LED灯串中的各个灯点接收的初始地址与自身的初始地址相等,则将对应灯点自身的初始地址改为位置编号,以得到对应灯点的新灯点地址。The controller sends the initial address of each light point and the position number of the corresponding light point in the LED light string to the LED light string. If the initial address received by each light point in the LED light string is equal to its own initial address, the corresponding light The initial address of the point itself is changed to the position number to obtain the new address of the corresponding light point. 4.根据权利要求1所述的LED灯串的灯点地址分配方法,其特征在于,所述控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址的步骤还包括:4. The method for allocating addresses of light points of LED light strings according to claim 1, wherein the controller judges whether the first initial address and the second initial address of each light point overlap, and according to the first initial address of the light point The step of rewriting the address of the lamp point to obtain a new address of the lamp point also includes: 若LED灯串中部分灯点的第一初始地址与第二初始地址均相同,且第一初始地址与第二初始地址相同的灯点是同样的灯点,将重复灯点对中的其中一个替换后再重新分配地址。If the first initial address and the second initial address of some light points in the LED light string are the same, and the light points with the same first initial address and the second initial address are the same light point, one of the light point pairs will be repeated Replace and then reassign addresses. 5.根据权利要求1所述的LED灯串的灯点地址分配方法,其特征在于,所述控制器获取LED灯串中各个灯点的初始地址的步骤包括:5. The method for allocating addresses of light points of LED light strings according to claim 1, wherein the step of the controller obtaining the initial addresses of each light point in the LED light string comprises: 控制器发送地址读取指令至LED灯串中的每个灯点;其中,灯点接收地址读取指令后会根据地址读取指令控制发光部件的亮灭状态;The controller sends an address reading command to each light point in the LED light string; among them, after receiving the address reading command, the light point will control the on-off state of the light-emitting component according to the address reading command; 控制器控制感光器读取灯点的亮灭状态并获取感光器反馈的亮灭状态信息;The controller controls the photoreceptor to read the on-off state of the light point and obtains the on-off state information fed back by the photoreceptor; 控制器根据所述亮灭状态信息得到灯点的初始地址,并按照灯点在LED灯串的排列顺序读取所有灯点的初始地址。The controller obtains the initial addresses of the light points according to the on-off status information, and reads the initial addresses of all the light points according to the order in which the light points are arranged in the LED light string. 6.根据权利要求1所述的LED灯串的灯点地址分配方法,其特征在于,灯点在改写地址后会记录自身的初始地址已经被改写,已经改写灯点地址的灯点不再改写自身的新灯点地址。6. The method for allocating addresses of LED light strings according to claim 1, characterized in that, after the address is rewritten, the address of the lamp will record that its initial address has been rewritten, and the address of the lamp whose address has been rewritten will not be rewritten. Its own new light point address. 7.根据权利要求1所述的LED灯串的灯点地址分配方法,其特征在于,所述控制器获取LED灯串中各个灯点的初始地址的步骤之前还包括:7. The method for allocating addresses of light points of LED light strings according to claim 1, wherein the step of obtaining the initial addresses of each light point in the LED light string by the controller further includes: 预先在灯点设置第一初始地址与第二初始地址;Pre-set the first initial address and the second initial address at the light point; 其中,在改写灯点地址时,所述第一初始地址保持不变,对第二初始地址进行修改以得到新灯点地址。Wherein, when rewriting the address of the lamp point, the first initial address remains unchanged, and the second initial address is modified to obtain a new address of the lamp point. 8.根据权利要求1所述的LED灯串的灯点地址分配方法,其特征在于,所述控制器判断各个灯点的第一初始地址与第二初始地址是否重复,并根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址的步骤之后还包括:8. The method for allocating addresses of light points of LED light strings according to claim 1, wherein the controller judges whether the first initial address and the second initial address of each light point overlap, and according to the first initial address of the light point The step of rewriting the address of the lamp point to obtain a new address of the lamp point after the repetition of the initial address and the second initial address further includes: 控制器通过新灯点地址与对应灯点进行显示数据交互,以控制对应灯点根据显示数据显示不同灰阶图像。The controller performs display data interaction with the corresponding light point through the address of the new light point, so as to control the corresponding light point to display different grayscale images according to the display data. 9.一种应用于权利要求1-8任一项所述LED灯串的灯点地址分配方法的LED灯串的灯点地址分配装置,与LED灯串连接,其特征在于,包括:控制器与感光器;其中,9. A light point address allocation device for LED light strings applied to the light point address allocation method for LED light strings according to any one of claims 1-8, connected to the LED light strings, characterized in that it includes: a controller with the photoreceptor; where, 所述感光器与所述控制器连接并与所述LED灯串中的灯点相对设置,所述感光器用于读取灯点的亮灭状态并反馈亮灭状态信息至所述控制器;The photoreceptor is connected to the controller and arranged opposite to the light point in the LED light string, the photoreceptor is used to read the on-off state of the light point and feed back the on-off state information to the controller; 所述控制器分别与所述感光器以及所述LED灯串连接,所述控制器用于根据所述亮灭状态信息获取LED灯串中各个灯点的初始地址,并判断各个灯点的第一初始地址与第二初始地址是否重复,根据灯点的第一初始地址与第二初始地址的重复情况改写灯点地址以得到新灯点地址。The controller is respectively connected to the photoreceptor and the LED light string, and the controller is used to obtain the initial address of each light point in the LED light string according to the on-off state information, and determine the first address of each light point. Whether the initial address and the second initial address are repeated, according to the duplication of the first initial address and the second initial address of the light point, rewrite the light point address to obtain a new light point address. 10.根据权利要求9所述的灯点地址分配装置,其特征在于,所述感光器为光敏器件。10. The lamp point address assignment device according to claim 9, wherein the photoreceptor is a photosensitive device.
CN202211411008.8A 2022-11-11 2022-11-11 Lamp point address distribution method and device for LED lamp string Pending CN115665924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211411008.8A CN115665924A (en) 2022-11-11 2022-11-11 Lamp point address distribution method and device for LED lamp string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211411008.8A CN115665924A (en) 2022-11-11 2022-11-11 Lamp point address distribution method and device for LED lamp string

Publications (1)

Publication Number Publication Date
CN115665924A true CN115665924A (en) 2023-01-31

Family

ID=85021926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211411008.8A Pending CN115665924A (en) 2022-11-11 2022-11-11 Lamp point address distribution method and device for LED lamp string

Country Status (1)

Country Link
CN (1) CN115665924A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450163A (en) * 2023-04-12 2023-07-18 杭州芯讯科技有限公司 Driving circuit, lamp string burning control method and device and electronic equipment
CN118301811A (en) * 2024-06-06 2024-07-05 东莞市欧思科光电科技有限公司 Address writing method for LED lamp beads and computer equipment
CN118400354A (en) * 2024-07-01 2024-07-26 杭州视芯科技股份有限公司 LED address configuration method, LED display system, LED display assembly and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130285574A1 (en) * 2010-12-22 2013-10-31 Koninklijke Philips N.V. Control of network lighting systems
CN105188190A (en) * 2015-08-03 2015-12-23 深圳市创荣发电子有限公司 Intelligent bluetooth control method of LED lamp and circuit thereof
CN109027736A (en) * 2018-06-14 2018-12-18 擎茂微电子(深圳)有限公司 A kind of second-level addressing method of the program-controlled lamp string of LED of power supply line transmission signal
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130285574A1 (en) * 2010-12-22 2013-10-31 Koninklijke Philips N.V. Control of network lighting systems
CN105188190A (en) * 2015-08-03 2015-12-23 深圳市创荣发电子有限公司 Intelligent bluetooth control method of LED lamp and circuit thereof
CN109027736A (en) * 2018-06-14 2018-12-18 擎茂微电子(深圳)有限公司 A kind of second-level addressing method of the program-controlled lamp string of LED of power supply line transmission signal
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁国壮等: ""一种新型多路独立调光LED 驱动器"", 《电工电能新技术》, 31 October 2020 (2020-10-31) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450163A (en) * 2023-04-12 2023-07-18 杭州芯讯科技有限公司 Driving circuit, lamp string burning control method and device and electronic equipment
CN116450163B (en) * 2023-04-12 2023-10-20 杭州芯讯科技有限公司 Driving circuit, lamp string burning control method and device and electronic equipment
WO2024212959A1 (en) * 2023-04-12 2024-10-17 杭州芯讯科技有限公司 Drive circuit, light string burning control method and apparatus, and electronic device
CN118301811A (en) * 2024-06-06 2024-07-05 东莞市欧思科光电科技有限公司 Address writing method for LED lamp beads and computer equipment
CN118400354A (en) * 2024-07-01 2024-07-26 杭州视芯科技股份有限公司 LED address configuration method, LED display system, LED display assembly and computer equipment
CN118400354B (en) * 2024-07-01 2024-09-27 杭州视芯科技股份有限公司 LED address configuration method, LED display system, LED display assembly and computer equipment

Similar Documents

Publication Publication Date Title
CN115665924A (en) Lamp point address distribution method and device for LED lamp string
US11327855B2 (en) Electronic apparatus and controlling method thereof
CN101894522B (en) High-resolution universal display screen intelligent control system
WO2002003365A1 (en) Display unit communication system, communication method, display unit, communication circuit, and terminal adapter
CN1898658A (en) Cable with circuitry for asserting stored cable data or other information to an external device or user
CN117935743B (en) Backlight light source partition dimming control method, circuit and LED driving chip
CN110710330B (en) Automatic address allocation apparatus and method for serially connected devices
CN103559863B (en) LED lamp panel and LED display screen
CN118692400A (en) Driving circuit, controller and display device
CN115440157A (en) Display device and cascade control method
CN111212502A (en) DMX512 address writing method for power line carrier drive LED lamp body
CN204808834U (en) LED lamp plate
CN212694810U (en) High-partition regional light control television
TW202322093A (en) Display and associated system on chip
WO2023098856A1 (en) Failure-resistant display driving method
JP2010243990A (en) Method and device for driving compact matrix light-emitting panel block
CN115631717A (en) LED chip driving method and device, display system and display unit
JP2002091382A (en) Drive circuit and drive unit
CN115580969A (en) A control method of a lighting system based on RGB wiring
WO2022109783A1 (en) Data storage method for led display screen and related device
CN113966055B (en) Method for controlling light string by power carrier wave, electronic billboard and device
CN115665925A (en) Lamp point address distribution method and device for LED lamp string
CN111508424A (en) L ED display screen tone mapping method and control system
CN104505018A (en) Asynchronous display control system of LED (Light Emitting Diode) display screen designed by improved CPLD (Complex Programmable Logic Device)
US12159597B2 (en) Backlight control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination