CN110460377B - Device for LED optical communication by using drive circuit switch ripple - Google Patents
Device for LED optical communication by using drive circuit switch ripple Download PDFInfo
- Publication number
- CN110460377B CN110460377B CN201910675812.9A CN201910675812A CN110460377B CN 110460377 B CN110460377 B CN 110460377B CN 201910675812 A CN201910675812 A CN 201910675812A CN 110460377 B CN110460377 B CN 110460377B
- Authority
- CN
- China
- Prior art keywords
- data
- switching
- communication
- phase
- frequency
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 69
- 230000003287 optical effect Effects 0.000 title claims abstract description 9
- 230000005540 biological transmission Effects 0.000 claims abstract description 34
- 230000007704 transition Effects 0.000 claims description 28
- 239000003990 capacitor Substances 0.000 claims description 21
- 238000005070 sampling Methods 0.000 claims description 16
- 238000000034 method Methods 0.000 claims description 9
- 238000012546 transfer Methods 0.000 claims description 5
- 230000010363 phase shift Effects 0.000 claims description 4
- 230000005855 radiation Effects 0.000 claims description 3
- 230000008054 signal transmission Effects 0.000 abstract description 4
- 238000012544 monitoring process Methods 0.000 abstract description 2
- 238000005286 illumination Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000001228 spectrum Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/50—Transmitters
- H04B10/501—Structural aspects
- H04B10/502—LED transmitters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/50—Transmitters
- H04B10/516—Details of coding or modulation
- H04B10/548—Phase or frequency modulation
- H04B10/556—Digital modulation, e.g. differential phase shift keying [DPSK] or frequency shift keying [FSK]
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
Description
技术领域technical field
本发明属于光通信技术领域,具体涉及一种利用驱动电路开关纹波进行LED光通信的装置。The invention belongs to the technical field of optical communication, and in particular relates to a device for LED optical communication using switching ripple of a driving circuit.
背景技术Background technique
可见光通信作为一项新兴技术快速发展,因为可见光的频率相比于现有无线通信技术要高很多,其理论的通信速率比现有技术快100倍以上。可见光通信是控制LED的亮灭来实现的,因为LED亮灭的频率非常高,超出了肉眼可以识别的频率,所以可见光通信是可以保证在通信的同时维持正常的照明效果。同时,LED的市场非常广阔,广泛应用于电视、显示器、手机、家居照明等,成为了日常生活必不可少的一部分,这也就意味着可见光通信可以覆盖的范围非常大。Visible light communication is developing rapidly as an emerging technology, because the frequency of visible light is much higher than that of the existing wireless communication technology, and its theoretical communication rate is more than 100 times faster than the existing technology. Visible light communication is achieved by controlling the on and off of LEDs. Because the frequency of LED on and off is very high, which exceeds the frequency that can be recognized by the naked eye, visible light communication can ensure that the normal lighting effect is maintained while communicating. At the same time, LED has a very broad market and is widely used in TVs, monitors, mobile phones, home lighting, etc., and has become an indispensable part of daily life, which means that visible light communication can cover a very large range.
另外,可见光通信的成本也更加低廉,依靠日常照明即可实现数据的交互。可见光无法穿透不透明障碍物,所以所有通信的信息只局限于一个房间或者某一个特定区域,且随着距离的增加光的强度快速减小,信噪比也跟着减小,相比于现有无线通信技术减少了其他人接触到这些通信数据的可能性,这从特定角度可以理解为保证了通信时的安全问题。更重要的是,无线通信的频谱是受到严格管控的,各个通讯公司需要在有线的频谱里完成信号的传输,但是光波并没有这样的问题,而且因为光波无法穿透不透明障碍物,光波的频谱在不同的区域是可以重复利用的。In addition, the cost of visible light communication is also lower, and data interaction can be realized by relying on daily lighting. Visible light cannot penetrate opaque obstacles, so all communication information is limited to a room or a specific area, and with the increase of distance, the intensity of light decreases rapidly, and the signal-to-noise ratio also decreases. Wireless communication technology reduces the possibility of other people being exposed to these communication data, which can be understood as a security issue during communication from a certain perspective. More importantly, the spectrum of wireless communication is strictly controlled. Each communication company needs to complete the transmission of signals in the wired spectrum, but there is no such problem with light waves, and because light waves cannot penetrate opaque obstacles, the spectrum of light waves It can be reused in different areas.
但是对于LED的驱动方式并没有一个被广泛接受的模式,LED的驱动主要有三方面的考虑:成本、效率和通信速率。现有的拓扑之一如图1所示,通过开关信号来驱动MOS管,因为MOS管的伏安特性曲线的特性是在小电流时呈现电阻性质,即线性电阻区;在大电流时基本保持电流恒定,不随源漏极电压而变化,即饱和区,其中这个维持的电流的数值是根据门极和源极之间的电压差来决定的。所以可以通过设定某一门极电压为工作电压以达到LED的恒流控制,整个工作过程是通过门极电压在设定工作电压和0之间来回切换的。如图1所示,信号传输过程中,如果一个码元内开通信号在前则表示0,关断信号在前则表示1;这种方法成本低廉,但是损耗较高,因为MOS工作在饱和区,相当于线性电源,效率计算等于LED两端电压除以输入直流电源电压,一般为了保证正常工作,输入直流电源电压和LED两端电压会保留一定的裕量,这就导致效率不高,这还是在不考虑辅助电源的情况下计算的效率。However, there is no widely accepted mode for driving LEDs. There are three main considerations for driving LEDs: cost, efficiency and communication speed. One of the existing topologies is shown in Figure 1. The MOS tube is driven by a switching signal, because the characteristic of the volt-ampere characteristic curve of the MOS tube is that it exhibits a resistance property at a small current, that is, a linear resistance region; it basically remains at a large current. The current is constant and does not change with the source-drain voltage, that is, the saturation region, where the value of this maintained current is determined according to the voltage difference between the gate and the source. Therefore, the constant current control of the LED can be achieved by setting a certain gate voltage as the working voltage. The entire working process is switched back and forth between the set working voltage and 0 through the gate voltage. As shown in Figure 1, in the process of signal transmission, if the turn-on signal in a symbol is in front, it means 0, and the turn-off signal is in front, it means 1; this method is low cost, but the loss is high, because the MOS works in the saturation region , equivalent to a linear power supply, the efficiency calculation is equal to the voltage across the LED divided by the input DC power supply voltage. Generally, in order to ensure normal operation, the input DC power supply voltage and the voltage across the LED will retain a certain margin, which leads to low efficiency. Again the efficiency is calculated without considering the auxiliary power supply.
由此可见,现有市场上的LED驱动电路基本都是在做成本、效率和通信速率之间的权衡,并没有一种能够在三方面同时兼顾的方案被提出。It can be seen that the LED driver circuits on the existing market are basically a trade-off between cost, efficiency and communication rate, and no solution that can take into account the three aspects has been proposed.
发明内容SUMMARY OF THE INVENTION
鉴于上述,本发明提供了一种利用驱动电路开关纹波进行LED光通信的装置,该装置的拓扑采用DC-DC变换器,控制方式采取恒定输出电流控制,在不增加任何器件的情况下,通过开关纹波实现信号的传输。In view of the above, the present invention provides a device for LED optical communication using the switching ripple of a driving circuit. The topology of the device adopts a DC-DC converter, and the control method adopts constant output current control. The signal transmission is realized by switching ripple.
一种利用驱动电路开关纹波进行LED光通信的装置,其采用输出恒流控制的DC-DC变换器,通过控制DC-DC变换器的PWM开关信号调节开关纹波的频率、幅值和相位,该开关纹波叠加在LED辐射光强中以实现通信;所述装置把生成PWM开关信号所需开关频率的三角波作为载波信号,调制方式为相移键控。A device for LED optical communication using switching ripple of a driving circuit, which adopts a DC-DC converter with output constant current control, and adjusts the frequency, amplitude and phase of the switching ripple by controlling the PWM switching signal of the DC-DC converter , the switching ripple is superimposed on the LED radiation intensity to realize communication; the device uses the triangular wave of the switching frequency required to generate the PWM switching signal as the carrier signal, and the modulation mode is phase shift keying.
进一步地,所述装置的工作状态分成两个阶段:空闲阶段和通信阶段;数据的传输只在通信阶段进行,通信阶段又由过渡阶段和传输码元阶段交替组成,一个通信阶段对应了一帧数据的传输时间,一帧数据包含N个码元,一组交替的过渡阶段和传输码元阶段共同组成了一个码元的传输时间,即一帧数据的传输时间包含了N组交替的过渡阶段和传输码元阶段,N为大于1的自然数。Further, the working state of the device is divided into two stages: an idle stage and a communication stage; data transmission is only performed in the communication stage, and the communication stage is alternately composed of a transition stage and a transmission symbol stage, and one communication stage corresponds to one frame. The transmission time of data, a frame of data contains N symbols, a group of alternating transition stages and transmission symbol stages together constitute the transmission time of a symbol, that is, the transmission time of a frame of data includes N groups of alternating transition stages And the transmission symbol stage, N is a natural number greater than 1.
进一步地,所述空闲阶段DC-DC变换器的开关频率为固定值f1,传输码元阶段DC-DC变换器的开关频率为固定值f2,过渡阶段DC-DC变换器的开关频率为动态值;对于一个通信阶段中第n个过渡阶段并网逆变器的开关频率fad(n),其计算表达式如下:Further, the switching frequency of the DC-DC converter in the idle stage is a fixed value f 1 , the switching frequency of the DC-DC converter in the transmission symbol stage is a fixed value f 2 , and the switching frequency of the DC-DC converter in the transition stage is Dynamic value; for the switching frequency f ad (n) of the grid-connected inverter in the nth transition stage in a communication stage, its calculation expression is as follows:
若an-1+datan≥K,则 If a n-1 +data n ≥K, then
若an-1+datan<K,则 If a n-1 +data n <K, then
其中:K表示传输数据的进制,datan表示通信阶段对应传输的一帧数据中第n个码元,M为一个过渡阶段中包含的开关周期数,且规定a0=0,%为取模运算符,datai表示通信阶段对应传输的一帧数据中第i个码元,n为自然数且1≤n≤N。Among them: K represents the system of the transmitted data, data n represents the n-th symbol in a frame of data transmitted corresponding to the communication stage, M is the number of switching cycles included in a transition stage, And it is specified that a 0 =0, % is a modulo operator, data i represents the i-th symbol in a frame of data correspondingly transmitted in the communication stage, n is a natural number and 1≤n≤N.
进一步地,一个通信阶段中每个传输码元阶段的时长T固定,且T=A/f2,A为一个传输码元阶段中包含的开关周期数;一个通信阶段中每个过渡阶段的时长不固定,且其中第n个过渡阶段的时长T(n)=M/fad(n)。Further, the duration T of each transmission symbol stage in a communication stage is fixed, and T=A/f 2 , A is the number of switching cycles included in a transmission symbol stage; the duration of each transition stage in a communication stage Not fixed, and where the duration of the nth transition phase T(n)=M/f ad (n).
进一步地,开关频率f1-f2的值大于DC-DC变换器闭环传递函数的穿越频率,所述逆变电路闭环传递函数表示对DC-DC变换器进行电力电子建模之后求得流过LED的输出电流与占空比信号在频域上的关系表达式,当两者在某一频率幅值相等时,则该频率即为所述穿越频率。Further, the value of the switching frequency f 1 -f 2 is greater than the crossover frequency of the closed-loop transfer function of the DC-DC converter, and the closed-loop transfer function of the inverter circuit indicates that the flow through The relationship between the output current of the LED and the duty cycle signal in the frequency domain is expressed. When the amplitudes of the two are equal at a certain frequency, the frequency is the crossover frequency.
进一步地,所述装置包括直流源、输入电容Cin、开关管T1和T2、电感L、输出电容Cout、负载LED、采样电阻和采样控制电路;其中,输入电容Cin的一端与直流源的正极以及开关管T1的漏极相连,输入电容Cin的另一端与直流源的负极、开关管T2的源极、输出电容Cout的一端以及采样电阻的一端相连并接地,开关管T1的源极与开关管T2的漏极以及电感L的一端相连,电感L的另一端与输出电容Cout的另一端以及负载LED的阳极相连,负载LED的阴极与采样电阻的另一端相连,采样控制电路通过采样电阻获取流经负载LED的电流并采用输出恒流控制方法生成相应的PWM开关信号提供给开关管T1和T2的栅极。Further, the device includes a DC source, an input capacitor C in , switch tubes T 1 and T 2 , an inductance L, an output capacitor C out , a load LED, a sampling resistor and a sampling control circuit; wherein one end of the input capacitor C in is connected to a The anode of the DC source and the drain of the switch tube T1 are connected, and the other end of the input capacitor Cin is connected to the cathode of the DC source, the source of the switch tube T2, one end of the output capacitor Cout and one end of the sampling resistor and is connected to ground, The source of the switch tube T1 is connected to the drain of the switch tube T2 and one end of the inductor L, the other end of the inductor L is connected to the other end of the output capacitor C out and the anode of the load LED, and the cathode of the load LED is connected to the sampling resistor. The other end is connected, and the sampling control circuit obtains the current flowing through the load LED through the sampling resistor, and uses the output constant current control method to generate the corresponding PWM switching signal and provide it to the gates of the switching tubes T1 and T2 .
部分LED装置在运行过程中需要对其各种状态进行监控,此时需要使用到LED装置的通信功能。本发明装置实现了在不影响正常照明且不增加专门的有线、无线通讯设备的条件下进行完成数据的传输,这使得LED装置运行状态的监控变得便捷且成本低廉;同时,本发明装置利用开关纹波作为载波信号,能够满足低速通信领域对于数据传输的要求。Some LED devices need to monitor their various states during operation, and the communication function of the LED device needs to be used at this time. The device of the present invention realizes the completion of data transmission without affecting normal lighting and without adding special wired and wireless communication equipment, which makes the monitoring of the operating state of the LED device convenient and low-cost; at the same time, the device of the present invention utilizes As a carrier signal, the switching ripple can meet the requirements for data transmission in the field of low-speed communication.
附图说明Description of drawings
图1为现有的LED驱动电路示意图。FIG. 1 is a schematic diagram of a conventional LED driving circuit.
图2为DC-DC变换器的系统控制流程框图。FIG. 2 is a block diagram of the system control flow of the DC-DC converter.
图3为基于Buck电路的LED驱动电路示意图。FIG. 3 is a schematic diagram of an LED driving circuit based on a Buck circuit.
图4为调制信号的波形示意图。FIG. 4 is a schematic diagram of the waveform of the modulation signal.
图5为通信帧格式示意图。FIG. 5 is a schematic diagram of a communication frame format.
图6为LED电流及解调波形示意图。FIG. 6 is a schematic diagram of LED current and demodulation waveform.
具体实施方式Detailed ways
为了更为具体地描述本发明,下面结合附图从具体实施方式对本发明的技术方案进行详细说明。In order to describe the present invention more specifically, the technical solutions of the present invention will be described in detail below from specific embodiments with reference to the accompanying drawings.
本发明利用开关纹波进行LED光通信的装置,采用输出恒流控制的DC-DC变换器,通过控制DC-DC变换器的PWM开关信号调节LED的电流纹波,在LED辐射光强中叠加纹波信号从而实现通信;本发明装置把开关频率的三角波作为载波信号,调制方式为相移键控。The device of the present invention uses switching ripple for LED optical communication, adopts a DC-DC converter with output constant current control, adjusts the current ripple of the LED by controlling the PWM switching signal of the DC-DC converter, and superimposes the LED radiation intensity. The ripple signal is used to realize communication; the device of the present invention uses the triangular wave of the switching frequency as the carrier signal, and the modulation mode is phase shift keying.
本发明装置的工作状态分成两个阶段:空闲阶段和通信阶段,通信阶段又包括传输码元阶段和过渡阶段,信息的传输只在通信阶段完成。整个工作过程由空闲阶段和通信阶段交替组成,通信阶段又由过渡阶段和传输码元阶段交替组成,一个传输码元阶段和过渡阶段共同组成一个码元。一个通信阶段包含一帧数据,一帧数据中包含N个码元,即一帧数据由N个传输码元阶段和过渡阶段交替组成;空闲阶段开关频率为固定值f1,传输码元阶段开关频率为固定值f2,过渡阶段开关频率为动态值fad(n)。The working state of the device of the present invention is divided into two stages: an idle stage and a communication stage. The communication stage also includes a transmission symbol stage and a transition stage, and the information transmission is only completed in the communication stage. The whole working process is composed of the idle phase and the communication phase alternately, and the communication phase is alternately composed of the transition phase and the transmission symbol phase. A transmission symbol phase and a transition phase together form a symbol. One communication stage contains one frame of data, and one frame of data contains N symbols, that is, one frame of data is alternately composed of N transmission symbol stages and transition stages; the switching frequency in the idle stage is a fixed value f 1 , and the transmission symbol stage switches The frequency is a fixed value f 2 , and the switching frequency in the transition phase is a dynamic value f ad (n).
如图2所示,首先确定装置是否需要发送数据,如果不需要,则当前为空闲阶段,开关频率fs为固定值f1;如果需要,则当前为通信阶段,再判断当前处于何种通信阶段,如果是传输码元阶段,则开关频率fs为固定值f2;如果是过渡阶段,则fs=fad(n),其计算表达式如下:As shown in Figure 2, first determine whether the device needs to send data, if not, it is currently in the idle stage, and the switching frequency f s is a fixed value f 1 ; if necessary, it is currently in the communication stage, and then determine what kind of communication is currently in If it is a transmission symbol stage, the switching frequency f s is a fixed value f 2 ; if it is a transition stage, then f s =f ad (n), and its calculation expression is as follows:
若an-1+datan≥K,则 If a n-1 +data n ≥K, then
若an-1+datan<K,则 If a n-1 +data n <K, then
其中:K表示传输数据的进制,datan表示通信阶段对应传输的一帧数据中第n个码元,M为一个过渡阶段中包含的开关周期数,且规定a0=0,%为取模运算符,datai表示通信阶段对应传输的一帧数据中第i个码元,n为自然数且1≤n≤N。Among them: K represents the system of the transmitted data, data n represents the n-th symbol in a frame of data transmitted corresponding to the communication stage, M is the number of switching cycles included in a transition stage, And it is specified that a 0 =0, % is a modulo operator, data i represents the i-th symbol in a frame of data correspondingly transmitted in the communication stage, n is a natural number and 1≤n≤N.
上述fs是当作载波的三角波的频率,如图2所示,参考电流Iref减去输出电流io(s)经过电流反馈网络H(s)的信号后得到误差信号e(s),再经过比例积分调节得到占空比信号d(s),该占空比信号和上述三角载波通过比较器进行比较,生成开关信号。该开关信号再经过开关管放大以后流过RLC滤波电路,该滤波电路由输出电感、输出电容和负载组成,然后该信号反映在输出电流io(s)上,又因为输出电流io(s)流过LED负载,所以该信号最后可以在辐射光强light(s)中体现。The above f s is the frequency of the triangular wave as the carrier. As shown in Figure 2, the reference current I ref subtracts the output current i o (s) from the signal of the current feedback network H(s) to obtain the error signal e(s), Then, the duty cycle signal d(s) is obtained through proportional and integral adjustment, and the duty cycle signal is compared with the triangular carrier wave through a comparator to generate a switch signal. The switch signal is amplified by the switch tube and then flows through the RLC filter circuit, which is composed of an output inductor, an output capacitor and a load, and then the signal is reflected on the output current i o (s), and because the output current i o (s) ) flows through the LED load, so the signal can finally be reflected in the radiated light intensity light(s).
每个传输码元阶段时长固定,A为固定值,每个过渡阶段时长不固定,同时,为了保证通信的准确率,避免通信阶段和非通信阶段信号的相互干扰,需要设置f1-f2大于电路闭环传递函数的穿越频率,这样就避免了电路在动态相应的时候对通信产生频谱迁移的影响,影响到通信的可靠性。The duration of each transmission symbol stage is fixed, A is a fixed value, and the duration of each transition stage is not fixed. At the same time, in order to ensure the accuracy of communication and avoid the mutual interference of signals in the communication phase and the non-communication phase, it is necessary to set f 1 -f 2 to be greater than the pass-through frequency of the closed-loop transfer function of the circuit, so as to avoid the dynamic response of the circuit to communication. The impact of spectrum migration affects the reliability of communication.
在硬件连接上,本发明装置具体实施采用同步Buck电路,电路结构如图3所示,包括输入电容Cin、开关管S1和S2、电感L、输出电容Cout、负载LED和采样控制电路;其中,输入电容Cin的正极和开关管S1的漏极以及输入正极电源线相连,开关管S1的源极和开关管S2的漏极以及电感L的一端相连,电感L的另一端和输出电容Cout的正极以及负载LED的阳极相连,负载LED的阴极、输出电容Cout的负极、开关管S2的源极、输入电容Cin的负极以及输入负极电源线相连,开关管S1和S2的栅极接控制器输出后经过驱动器的控制信号。其中,Uin是12V电源,Cin是40uF输入电容,T1是上管,T2是下管,L是30uH电感,Cout是30uF输出电容,LED即负载,Rsample是采样电阻用于测量输出电流,T1和T2都是耐压30V导通电阻4.4mΩ的MOS管。In terms of hardware connection, the device of the present invention adopts a synchronous Buck circuit. The circuit structure is shown in FIG. 3 , including input capacitor C in , switch tubes S 1 and S 2 , inductor L, output capacitor C out , load LED and sampling control Circuit; wherein, the positive pole of the input capacitor C in is connected to the drain of the switch S1 and the input positive power supply line, the source of the switch S1 is connected to the drain of the switch S2 and one end of the inductor L, and the The other end is connected to the positive pole of the output capacitor C out and the anode of the load LED, the cathode of the load LED, the negative pole of the output capacitor C out , the source of the switch tube S2 , the negative pole of the input capacitor C in and the input negative power line are connected, the switch The gates of tubes S1 and S2 are connected to the control signal of the driver after being output by the controller. Among them, U in is the 12V power supply, C in is the 40uF input capacitor, T 1 is the upper tube, T 2 is the lower tube, L is the 30uH inductor, C out is the 30uF output capacitor, the LED is the load, and R sample is the sampling resistor for To measure the output current, T1 and T2 are both MOS tubes with a withstand voltage of 30V and an on-resistance of 4.4mΩ.
空闲阶段和通信阶段的开关频率应该大于3kHz,本发明涉及空闲阶段开关频率100kHz,通信阶段开关频率83.3kHz。信号通过相移键控进行调制,要实现相位调制就需要根据码元的数据改变码元之间间隔的时间;如图6所示,每个传输码元阶段长度264us,即22个开关周期,过渡阶段占用3个开关周期,编码采用4进制。图4中第一个数据为0,第二个数据为1,根据和得到这段过渡阶段的时间为39us;第三个数据为3,根据 和得到这段过渡阶段的时间为33us;第四个数据为3,根据和得到这段过渡阶段的时间为45us。The switching frequency of the idle phase and the communication phase should be greater than 3 kHz. The present invention relates to the switching frequency of the idle phase of 100 kHz and the switching frequency of the communication phase of 83.3 kHz. The signal is modulated by phase shift keying. To achieve phase modulation, it is necessary to change the time interval between symbols according to the data of the symbols; as shown in Figure 6, the length of each transmission symbol phase is 264us, that is, 22 switching cycles, The transition stage occupies 3 switching cycles, and the coding adopts 4 system. In Figure 4, the first data is 0, the second data is 1, according to and The time to get this transition stage is 39us; the third data is 3, according to and The time to get this transition stage is 33us; the fourth data is 3, according to and The time to get this transition phase is 45us.
图5是通信时的帧格式,一帧由60个码元组成,通信采用4进制。0~3号数据表示帧头;4、5号数据表示设备编号;6、7号数据表示工作状态;8~23号数据表示从投入使用开始设备总运行时长(单位:秒);24~27号数据表示输出功率(经过编码);28~35号数据表示温度(单位:摄氏度),暂时保留;36~43号数据暂时保留;44~51号数据表示和校验;52~59号数据表示帧尾。Figure 5 is the frame format during communication, one frame is composed of 60 symbols, and the communication adopts 4 system. Data No. 0 to 3 represent the frame header; data No. 4 and 5 represent the device number; data No. 6 and 7 represent the working status; data No. 8 to 23 represent the total running time of the equipment since it was put into use (unit: second); 24 to 27 Data No. 28 to 35 represent temperature (unit: Celsius), temporarily reserved; data No. 36 to 43 are temporarily reserved; data No. 44 to 51 represent sum verification; data No. 52 to 59 represent end of frame.
如图6所示,上方的波形是一帧内LED的电流,下方是对光信号进行解调后的结果。经过解调以后分析波形,解调以后将数据通过ADC输出,总共五个电平,分别表示数据“0”、“1”、“2”、“3”和空闲电平,空闲电平的电压值为数据“0”和“1”电平的一半,所以经过解调以后得到的数据是“003301020000000000000012022000000000000000000000103333333330”,对应到十六进制即“0x0F120000000628000000000004FFFFC”。将该信息进行翻译以后得到如下信息:设备编号:01,工作状态:02,总工作时长:6秒,输出功率:40(实验中该数据除以40即实际输出功率,所以实际输出功率为1.0W),温度:0(该数据现为保留数据),和校验:79=18+6+40+15(和校验的过程以16进制的数据进行,其中最后的15是帧头0x0F)。As shown in Figure 6, the upper waveform is the current of the LED in one frame, and the lower one is the result of demodulating the optical signal. After demodulation, the waveform is analyzed. After demodulation, the data is output through the ADC. There are five levels in total, which represent the data "0", "1", "2", "3" and the idle level, the voltage of the idle level. The value is half the level of data "0" and "1", so the data obtained after demodulation is "003301020000000000000012022000000000000000000001033333333330", which corresponds to "0x0F12000000062800000000004FFFFC" in hexadecimal. After translating this information, the following information is obtained: equipment number: 01, working state: 02, total working time: 6 seconds, output power: 40 (in the experiment, the data divided by 40 is the actual output power, so the actual output power is 1.0 W), temperature: 0 (this data is now reserved data), sum check: 79=18+6+40+15 (the process of sum check is performed with hexadecimal data, and the last 15 is the frame header 0x0F ).
上述对实施例的描述是为便于本技术领域的普通技术人员能理解和应用本发明。熟悉本领域技术的人员显然可以容易地对上述实施例做出各种修改,并把在此说明的一般原理应用到其他实施例中而不必经过创造性的劳动。因此,本发明不限于上述实施例,本领域技术人员根据本发明的揭示,对于本发明做出的改进和修改都应该在本发明的保护范围之内。The above description of the embodiments is for the convenience of those of ordinary skill in the art to understand and apply the present invention. It will be apparent to those skilled in the art that various modifications to the above-described embodiments can be readily made, and the general principles described herein can be applied to other embodiments without inventive effort. Therefore, the present invention is not limited to the above-mentioned embodiments, and improvements and modifications made by those skilled in the art according to the disclosure of the present invention should all fall within the protection scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910675812.9A CN110460377B (en) | 2019-07-25 | 2019-07-25 | Device for LED optical communication by using drive circuit switch ripple |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910675812.9A CN110460377B (en) | 2019-07-25 | 2019-07-25 | Device for LED optical communication by using drive circuit switch ripple |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110460377A CN110460377A (en) | 2019-11-15 |
CN110460377B true CN110460377B (en) | 2020-10-13 |
Family
ID=68483417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910675812.9A Active CN110460377B (en) | 2019-07-25 | 2019-07-25 | Device for LED optical communication by using drive circuit switch ripple |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110460377B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113777938B (en) * | 2021-08-31 | 2023-07-18 | 东风柳州汽车有限公司 | Household appliance control method, device, equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301561A (en) * | 2015-06-28 | 2017-01-04 | 钟镇 | A kind of wireless light communication device based on illumination LED and control method thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8569963B2 (en) * | 2011-06-17 | 2013-10-29 | Intersil Americas Inc. | Cascade boost and inverting buck converter with independent control |
CN103582217B (en) * | 2012-07-31 | 2015-07-29 | 西安展芯微电子技术股份有限公司 | The LED drive circuit that a kind of current ripples is controlled |
CN103124460A (en) * | 2013-01-09 | 2013-05-29 | 友达光电股份有限公司 | A kind of LED driving circuit |
CN106292820B (en) * | 2016-08-05 | 2017-09-08 | 广州金升阳科技有限公司 | A kind of ripple current generation circuit |
-
2019
- 2019-07-25 CN CN201910675812.9A patent/CN110460377B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301561A (en) * | 2015-06-28 | 2017-01-04 | 钟镇 | A kind of wireless light communication device based on illumination LED and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN110460377A (en) | 2019-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103582217B (en) | The LED drive circuit that a kind of current ripples is controlled | |
CN103313472B (en) | LED drive circuit with dimming function and lamp | |
CN109712574A (en) | A kind of constant pressure and flow drive control circuit, driving power and television set | |
CN102065601A (en) | Apparatus and method for driving multiple strings of light emitting diodes and liquid crystal display device thereof | |
CN107809830B (en) | Buck-boost LED drive circuit | |
CN102916593A (en) | Power converter circuit | |
CN102769981A (en) | An embedded intelligent constant current driver and its control method | |
CN101742766A (en) | LED light dimming method and device | |
CN106788398A (en) | Clock division circuits, control circuit and power management integrated circuit | |
CN103683919A (en) | High-power-factor low-harmonic-distortion constant current circuit and device | |
CN107834875A (en) | A kind of frequency control circuit and its control method and switched mode converter | |
Kasi Ramakrishnareddy et al. | Soft switched full‐bridge light emitting diode driver configuration for street lighting application | |
CN110460377B (en) | Device for LED optical communication by using drive circuit switch ripple | |
EP3175676B1 (en) | Circuit for driving a load | |
CN201349353Y (en) | Double-dimming backlight source driving device | |
CN104640268A (en) | High-power-factor constant-current control circuit and LED (light emitting diode) illuminating equipment | |
CN103259427B (en) | A kind of High-power-factor constant current control circuit with open-circuit-protection | |
CN203574903U (en) | High-power factor constant current control circuit and LED lighting equipment | |
CN201247906Y (en) | DC drive circuit structure for high-power laser | |
CN216852427U (en) | Dimming circuit for non-isolated LED constant current driving power supply and illumination control device | |
CN102724797A (en) | Light emitting diode (LED) drive circuit and LED lighting device | |
TW202129285A (en) | Line voltage detection circuit, system and method | |
CN216852426U (en) | Dimming circuit for non-isolated LED constant-current driving power supply and illumination control device | |
CN114189959B (en) | Dimming circuit and lighting control device for non-isolated LED constant current drive power supply | |
CN101541131A (en) | Backlight module and current converter circuit thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |