Method and system for rapid communication of series LED lamp beads

文档序号:347406 发布日期:2021-12-03 浏览:8次 中文

阅读说明:本技术 一种串联led灯珠快速通讯的方法及系统 (Method and system for rapid communication of series LED lamp beads ) 是由 沈晔 苏建华 于 2021-11-08 设计创作,主要内容包括:本发明涉及串联LED灯珠快速通讯的方法,包括以下步骤:控制器的两个数据端口分别从串联的LED灯珠组两端同时发送数据组,LED灯珠的一个数据端口接收到数据包时,通讯IC进行数据有效检测,对接收到的第一组数据包进行数据采样存储以及切换LED灯珠的另一数据端口为输出状态的操作,再通过切换为输出状态后的数据端口对后续接收到的数据包进行数据整形转发;LED灯珠的一个数据端口接收到通讯结束指令后,LED灯珠的两个数据端口恢复为默认的输入状态,等待下一次通讯;在进行通讯时,可以从串联的LED灯珠组的两端同时进行数据的发送动作,从而可以大幅提升通讯效率,且系统连接方式简单,使用方便。(The invention relates to a method for rapid communication of series LED lamp beads, which comprises the following steps: two data ports of the controller respectively send data groups from two ends of the LED lamp bead groups connected in series at the same time, when one data port of the LED lamp bead receives a data packet, the communication IC carries out effective data detection, carries out data sampling storage on the received first group of data packets and switches the other data port of the LED lamp bead to be in an output state, and then carries out data shaping and forwarding on the subsequently received data packets through the data port switched to be in the output state; after one data port of the LED lamp bead receives a communication ending instruction, the two data ports of the LED lamp bead are restored to default input states to wait for next communication; when carrying out the communication, can follow the both ends of the LED lamp pearl group of establishing ties and carry out the sending action of data simultaneously to can promote communication efficiency by a wide margin, and the system connection mode is simple, convenient to use.)

1. A method for rapid communication of series LED lamp beads is characterized by comprising the following steps:

the first step is as follows: configuring a communication IC (integrated circuit) for each LED lamp bead participating in series connection, and defaulting two data ports on the LED lamp beads to be in an input state in an initial state;

the second step is that: two data ports of the controller respectively send data groups from two ends of the LED lamp bead groups connected in series at the same time, a plurality of data packets of one of the two data groups are arranged in sequence, a plurality of data packets of the other data group are arranged in reverse sequence, and the sum of the data packets of the two data groups is equal to or more than the total number of the LED lamp beads participating in the series connection;

the third step: when a data port of the LED lamp bead receives a data packet, the communication IC carries out effective data detection, after the effective detection is passed, the operation of carrying out data sampling storage on the received first group of data packets and switching the other data port of the LED lamp bead to be in an output state is carried out, and then data shaping and forwarding are carried out on the subsequently received data packets through the data port switched to be in the output state;

the fourth step: after one data port of the LED lamp bead receives the communication ending instruction, the two data ports of the LED lamp bead are restored to default input states to wait for next communication.

2. The method for rapid communication of series-connected LED lamp beads according to claim 1, wherein in the third step, the communication IC controls the operation of the LED according to the data sampled and stored by the data sampling IC.

3. The method for rapid communication of series-connected LED lamp beads according to claim 2, wherein in the third step, a plurality of LEDs and an LED control board for controlling the LEDs are arranged on the LED lamp beads, and the LED control board controls the LEDs according to data stored in the data sampling of the communication IC.

4. The method for rapid communication of LED lamp beads connected in series according to any one of claims 1 to 3, wherein the communication IC adjusts the input and output states of the two data ports according to the level change of the two data ports of the LED lamp beads.

5. The method for rapid communication of series-connected LED lamp beads according to claim 4, wherein in the fourth step, the communication ending command is represented by a low level.

6. A system for rapid communication of series-connected LED lamp beads, which is used for realizing the method for rapid communication of series-connected LED lamp beads as claimed in any one of claims 1 to 5, and is characterized by comprising a controller and a plurality of LED lamp beads connected in series;

the controller simultaneously sends data groups from two ends of the LED lamp bead groups connected in series by using two data ports of the controller, a plurality of data packets of one of the two data groups are sequentially arranged, a plurality of data packets of the other data group are reversely arranged, and the sum of the data packets of the two data groups is equal to or more than the total number of the LED lamp beads participating in series connection;

the LED lamp bead is provided with a communication IC, and two data ports on the LED lamp bead in an initial state are defaulted to be in an input state;

the communication IC carries out effective data detection on the received data packets, after the effective detection is passed, carries out data sampling storage on the received first group of data packets and switches the other data port of the LED lamp bead to be in an output state, and then carries out data shaping forwarding on the subsequent received data packets through the data port switched to be in the output state.

7. The system for the rapid communication of the series-connected LED lamp beads according to claim 6, wherein the communication IC comprises a port output control unit, a data effective detection unit, a data sampling storage unit and a data shaping and forwarding unit which are electrically connected in sequence;

the port output control unit is electrically connected with the two data ports of the LED lamp bead and used for adjusting the input and output states of the two data ports according to level change;

the data effective detection unit is used for receiving the data packets of the two data ports and checking the data packets, and sending the data packets to the data sampling storage unit for storing the first group of data packets after the data packets pass the checking;

and the data shaping and forwarding unit is used for receiving the subsequent data packet sent by the data sampling storage unit and sending the subsequent data packet to the next LED lamp bead through a data port.

8. The system for rapid communication of serially connected LED lamp beads according to claim 7, wherein the communication IC further comprises an LED control unit, and the LED control unit controls the LEDs of the LED lamp beads according to the data in the first group of data packets stored in the data sampling storage unit.

9. The system for the rapid communication of the series-connected LED lamp beads according to claim 7 or 8, wherein the data valid detection unit is electrically connected with both data ports of the LED lamp beads, and the data transmission direction is from the data ports to the data valid detection unit.

10. The system for the rapid communication of the series-connected LED lamp beads as claimed in claim 7 or 8, wherein the data shaping and forwarding unit is electrically connected to both data ports of the LED lamp beads, and the data transmission direction is from the data valid detection unit to the data ports.

Technical Field

The invention relates to the technical field of serial LED lamp bead communication, in particular to a method and a system for fast communication of serial LED lamp beads.

Background

The existing series LED lamp bead system generally comprises a controller and a plurality of series LED lamp beads, the controller is provided with a data output end, the LED lamp beads are provided with a data input end and a data output end, the communication mode of the series system is that the data output end of the controller is connected with the input end of a first LED lamp bead, the output end of the LED lamp bead is connected to the input end of a next LED lamp bead, and the plurality of LED lamp beads are connected in series in the mode.

When communication is needed, the controller continuously and serially sends data of each LED lamp bead from the data output end, the first LED lamp bead starts to receive the first group of data after receiving the data sent by the controller, the received subsequent data is transmitted and output to the next stage from the output end of the LED lamp bead after the receiving is completed, the input end of the next LED lamp bead starts to receive the first group of data of the transmitted data after receiving the data transmitted by the previous LED lamp bead, the subsequent received data is transmitted and output to the next stage from the output end after the receiving is completed, and the data transmission from the controller to the plurality of LED lamp beads is realized by analogy.

The total time length of one-time communication is related to the length of data received by each LED lamp bead, the number of the LED lamp beads connected in series and the data sending rate of the controller; generally, the communication data rate and the length of each group of data are determined by a communication protocol, so that the more the number of the LED lamp beads connected in series is, the longer the communication is often, and the communication efficiency of the system is influenced.

Disclosure of Invention

The technical problem to be solved by the present invention is to provide a method for fast communication of series-connected LED lamp beads, and also provide a system for fast communication of series-connected LED lamp beads, aiming at the above-mentioned defects of the prior art.

The technical scheme adopted by the invention for solving the technical problems is as follows:

a method for constructing series LED lamp bead rapid communication is provided, wherein the method comprises the following steps:

the first step is as follows: configuring a communication IC (integrated circuit) for each LED lamp bead participating in series connection, and defaulting two data ports on the LED lamp beads to be in an input state in an initial state;

the second step is that: two data ports of the controller respectively send data groups from two ends of the LED lamp bead groups connected in series at the same time, a plurality of data packets of one of the two data groups are arranged in sequence, a plurality of data packets of the other data group are arranged in reverse sequence, and the sum of the data packets of the two data groups is equal to or more than the total number of the LED lamp beads participating in the series connection;

the third step: the third step: when a data port of the LED lamp bead receives a data packet, the communication IC carries out effective data detection, after the effective detection is passed, the operation of carrying out data sampling storage on the received first group of data packets and switching the other data port of the LED lamp bead to be in an output state is carried out, and then data shaping and forwarding are carried out on the subsequently received data packets through the data port switched to be in the output state;

the fourth step: after one data port of the LED lamp bead receives the communication ending instruction, the two data ports of the LED lamp bead are restored to default input states to wait for next communication.

In the third step, the communication IC controls the LED to operate according to the data sampled and stored by the data sampling.

In the third step, the plurality of LEDs and the LED control board for controlling the plurality of LEDs are arranged on the LED lamp bead, and the LED control board controls the plurality of LEDs according to data sampled and stored by the communication IC.

According to the method for the rapid communication of the series LED lamp beads, the communication IC adjusts the input and output states of the two data ports according to the level change of the two data ports of the LED lamp beads.

According to the method for the quick communication of the series LED lamp beads, in the fourth step, the communication ending instruction is represented by a low level.

A series LED lamp bead rapid communication system is used for realizing the method for achieving the series LED lamp bead rapid communication, and comprises a controller and a plurality of series LED lamp beads;

the controller simultaneously sends data groups from two ends of the LED lamp bead groups connected in series by using two data ports of the controller, a plurality of data packets of one of the two data groups are sequentially arranged, a plurality of data packets of the other data group are reversely arranged, and the sum of the data packets of the two data groups is equal to or more than the total number of the LED lamp beads participating in series connection;

the LED lamp bead is provided with a communication IC, and two data ports on the LED lamp bead in an initial state are defaulted to be in an input state;

the communication IC carries out effective data detection on the received data packets, after the effective detection is passed, carries out data sampling storage on the received first group of data packets and switches the other data port of the LED lamp bead to be in an output state, and then carries out data shaping forwarding on the subsequent received data packets through the data port switched to be in the output state.

The invention relates to a system for rapid communication of series-connected LED lamp beads, wherein a communication IC comprises a port output control unit, a data effective detection unit, a data sampling storage unit and a data shaping and forwarding unit which are sequentially and electrically connected;

the port output control unit is electrically connected with the two data ports of the LED lamp bead and used for adjusting the input and output states of the two data ports according to level change;

the data effective detection unit is used for receiving the data packets of the two data ports and checking the data packets, and sending the data packets to the data sampling storage unit for storing the first group of data packets after the data packets pass the checking;

and the data shaping and forwarding unit is used for receiving the subsequent data packet sent by the data sampling storage unit and sending the subsequent data packet to the next LED lamp bead through a data port.

The system for the rapid communication of the series-connected LED lamp beads, disclosed by the invention, is characterized in that the communication IC further comprises an LED control unit, and the LED control unit controls the LEDs of the LED lamp beads according to the data in the first group of data packets stored in the data sampling storage unit.

According to the system for the rapid communication of the series LED lamp beads, the data effective detection unit is electrically connected with the two data ports of the LED lamp beads, and the data transmission direction is from the data ports to the data effective detection unit.

According to the system for the rapid communication of the series-connected LED lamp beads, the data shaping and forwarding unit is electrically connected with the two data ports of the LED lamp beads, and the data transmission direction is from the data effective detection unit to the data ports.

The invention has the beneficial effects that: by the method, a data output port is added on the controller, and the communication IC is configured on the LED lamp beads participating in series connection, so that the two data ports on the LED lamp beads can automatically switch input and output states according to the existence of data receiving, and data packet checking, sampling storage and forwarding can be performed.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described with reference to the accompanying drawings and embodiments, wherein the drawings in the following description are only part of the embodiments of the present invention, and for those skilled in the art, other drawings can be obtained without inventive efforts according to the accompanying drawings:

FIG. 1 is a flow chart of a method for rapid communication between series-connected LED lamp beads according to a preferred embodiment of the present invention;

FIG. 2 is a schematic diagram of a system for rapid communication of series LED lamp beads according to a preferred embodiment of the present invention;

FIG. 3 is a schematic diagram of a system communication IC for the rapid communication of the series LED lamp beads according to the preferred embodiment of the present invention;

FIG. 4 is a schematic diagram of a series LED lamp bead rapid communication system LED lamp bead according to a preferred embodiment of the present invention;

FIG. 5 is a schematic diagram of an exemplary serial data format of the present invention;

FIG. 6 is a schematic diagram of an exemplary controller data sequencing of the present invention;

FIG. 7 is a schematic diagram of an exemplary controller data transmission according to the present invention;

fig. 8 is a schematic diagram of data received by an exemplary LED lamp bead of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without inventive step, are within the scope of the present invention.

The method for the rapid communication of the series LED lamp beads in the preferred embodiment of the invention, as shown in figure 1, comprises the following steps:

s01: configuring a communication IC (integrated circuit) for each LED lamp bead participating in series connection, and defaulting two data ports on the LED lamp beads to be in an input state in an initial state;

s02: two data ports of the controller respectively send data groups from two ends of the LED lamp bead groups connected in series at the same time, a plurality of data packets of one of the two data groups are arranged in sequence, a plurality of data packets of the other data group are arranged in reverse sequence, and the sum of the data packets of the two data groups is equal to or more than the total number of the LED lamp beads participating in the series connection;

s03: when a data port of the LED lamp bead receives a data packet, the communication IC carries out effective data detection, after the effective detection is passed, the operation of carrying out data sampling storage on the received first group of data packets and switching the other data port of the LED lamp bead to be in an output state is carried out, and then data shaping and forwarding are carried out on the subsequently received data packets through the data port switched to be in the output state;

s04: after one data port of the LED lamp bead receives a communication ending instruction, the two data ports of the LED lamp bead are restored to default input states to wait for next communication;

by the method, a data output port is added on the controller, and the communication IC is configured on the LED lamp beads participating in series connection, so that the two data ports on the LED lamp beads can automatically switch input and output states according to the existence of data receiving, and data packets can be checked, sampled, stored and forwarded.

Preferably, in the third step, the communication IC controls the operation of the LED according to the data sampled and stored by the data sampling; the LED lamp beads are provided with a plurality of LEDs and an LED control panel for controlling the LEDs, and the LED control panel controls the LEDs according to data sampled and stored by the communication IC; the control is convenient, and the response speed is fast.

Preferably, the communication IC adjusts the input and output states of the two data ports according to the level change of the two data ports of the LED lamp bead; preferably, in the fourth step, the communication ending instruction is represented by a low level; the quick response switching of the interface is convenient and reliable, the practicability is high, and the response speed is high.

A series LED lamp bead rapid communication system is used for realizing the method for achieving the series LED lamp bead rapid communication, as shown in fig. 2, and referring to fig. 3 and 4, the system comprises a controller and a plurality of series connected LED lamp beads;

the controller is used for simultaneously sending data groups from two ends of the LED lamp bead groups connected in series by utilizing two data ports of the controller, a plurality of data packets of one of the two data groups are sequentially arranged, a plurality of data packets of the other data group are reversely arranged, and the sum of the data packets of the two data groups is equal to or more than the total number of the LED lamp beads participating in the series connection;

the LED lamp bead is provided with a communication IC, and two data ports on the LED lamp bead in an initial state are defaulted to be in an input state;

and the communication IC is used for carrying out effective data detection on the received data packets, carrying out data sampling storage on the received first group of data packets and switching another data port of the LED lamp beads to be in an output state after the effective detection is passed, and then carrying out data shaping and forwarding on the subsequently received data packets through the data port switched to be in the output state.

By the method, a data output port is added on the controller, and the communication IC is configured on the LED lamp beads participating in series connection, so that the two data ports on the LED lamp beads can automatically switch input and output states according to the existence of data receiving, and data packets can be checked, sampled, stored and forwarded.

The communication IC comprises a port output control unit 200, a data effective detection unit 201, a data sampling storage unit 202 and a data shaping forwarding unit 203 which are electrically connected in sequence;

the port output control unit 200 is electrically connected with the two data ports of the LED lamp bead and used for adjusting the input and output states of the two data ports according to the level change;

the data valid detection unit 201 is configured to receive the data packets of the two data ports and perform verification, and send the data packets to the data sampling storage unit 202 after the verification is passed to perform storage of the first group of data packets;

the data shaping and forwarding unit 203 is configured to receive a subsequent data packet sent by the data sampling and storing unit 202 and send the subsequent data packet to a next LED lamp bead through a data port;

the communication IC further includes an LED control unit 204, and the LED control unit 204 controls LEDs of the LED lamp beads according to the data in the first group of data packets stored in the data sampling storage unit 202.

Preferably, the data valid detection unit 201 is electrically connected to two data ports of the LED lamp bead, and the data transmission direction is from the data ports to the data valid detection unit 201.

Preferably, the data shaping and forwarding unit 203 is electrically connected to both data ports of the LED lamp bead, and the data transmission direction is from the data shaping and forwarding unit 203 to the data ports.

As shown in fig. 2-8, specific examples are illustrated as follows:

the technical scheme of the patent comprises a controller and 2n LED lamp beads, and the system is composed as shown in figure 2. The controller has two data output ends DA/DB. The series communication LED lamp bead is shown in fig. 4, a communication IC with a bidirectional data interface and a plurality of LEDs (shown in fig. 4) are arranged in the LED lamp bead, and a schematic diagram of the communication IC is shown in fig. 3.

The LED lamp beads are provided with two ports which are defaulted to be in an input state, and the input state and the output state of the LED lamp beads are automatically adjusted according to the level change of the IO _ A data port and the IO _ B data port. Each LED lamp bead only stores the received first group (namely m bits) of data in each communication process, subsequently received data are directly forwarded from the other port and output to the next-stage LED lamp bead, and each LED lamp bead restores the two respective data ports to the default input state after receiving the low level (namely the RESET state) which is longer than the TR time, and waits for the next communication.

The A end of the controller is connected with one data end of the LED lamp beads 1, the other data end of the LED lamp beads 1 is connected with one data end of the LED lamp beads 2, and the like, 2n LED lamp beads are connected in series, and one data end of the 2n LED lamp bead is connected with the B end of the controller;

the communication data used by the system represents the state of the data 0/1 by high and low level changes, and common coding modes such as return-to-zero codes and non-return-to-zero codes can be used, and the coding type is not the content of the invention and is not described in detail.

The default output low level of controller output is the RESET state promptly, and the RESET state that is greater than the TR time shows that the communication is ended, and the controller sends LED lamp pearl data and needs the T time.

If the serial system is in a common communication mode, the controller sends a serial data format as shown in fig. 5, and at least 2 nxt + TR time is needed for completing one-time communication by serially connecting 2n LED lamp beads;

according to the scheme of the patent, data are sent by two ends of a controller DA and a controller DB at the same time, the data of the DA end are arranged according to the sequence of series-connected LED lamp beads, namely D1, D2 and D3 … … Dn, and the data of the DB end are arranged according to the reverse sequence, namely D2n, D2n-1 and D2n-2 … … Dn +1, as shown in FIG. 6.

The DA end starts to output data, the IO _ A end of the LED lamp bead 1 receives the data sent by the DA end of the controller, the IO _ B is configured to be an output end, meanwhile, the received first group of data D1 is received, and after receiving is completed, the subsequent received data is forwarded from the IO _ B end and output to the next stage. The IO _ A end of the LED lamp bead 2 receives data output by the LED lamp bead 1, the IO _ B is configured to be an output end, meanwhile, the received first group of data D2 is received and stored, and after receiving is completed, the subsequent received data is forwarded from the IO _ B end and output to the next stage.

The DB end starts to output data, the IO _ B end of the LED lamp bead 2n receives the data sent by the DB end of the controller, the IO _ A is configured to be an output end, meanwhile, the received first group of data D2n is received, and after the receiving is completed, the subsequent received data is forwarded from the IO _ A end and output to the next stage. And the IO _ B end of the LED lamp bead 2n-1 receives the data output by the LED lamp bead 2n, so that the IO _ A is configured as an output end, the received first group of data D2n-1 is received and stored at the same time, and after the receiving is finished, the subsequent received data is forwarded from the IO _ A end and output to the next stage.

And by analogy, data are transmitted to the LED lamp beads n, the IO _ A end of the LED lamp beads n receives data Dn forwarded from the DA end of the controller step by step, the IO _ B is configured to be an output end, the data Dn is received and stored, a RESET state is waited after the receiving is completed, and the communication is completed.

According to the communication mode, the one-time communication time is n multiplied by T + TR, and the n multiplied by T time is reduced compared with the traditional mode;

because the two data ports of the series LED lamp beads can automatically configure input and output, the two ends of the DA and the DB do not need to output the same number of data packets in each communication of the controller. As shown in fig. 7, a group of data Dn +1 is generated more at the DA end of the controller, and then the LED lamp bead n +1 receives the data Dn +1 from the DA end, which is forwarded step by step. Similarly, as shown in fig. 8, LED lamp bead n and LED lamp bead n-1 will receive data forwarded from DB end step by step.

It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于无线信号网络的情感关怀传递系统景观环境一体化互动装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!