CN104079351A - Method and device for transmitting visible light communication data - Google Patents

Method and device for transmitting visible light communication data Download PDF

Info

Publication number
CN104079351A
CN104079351A CN201410161719.3A CN201410161719A CN104079351A CN 104079351 A CN104079351 A CN 104079351A CN 201410161719 A CN201410161719 A CN 201410161719A CN 104079351 A CN104079351 A CN 104079351A
Authority
CN
China
Prior art keywords
data
packets
packet
sub
visible light
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
CN201410161719.3A
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.)
PLA Information Engineering University
Original Assignee
PLA Information Engineering University
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 PLA Information Engineering University filed Critical PLA Information Engineering University
Priority to CN201410161719.3A priority Critical patent/CN104079351A/en
Publication of CN104079351A publication Critical patent/CN104079351A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method for transmitting visible light communication data. The method for transmitting the visible light communication data comprises the steps that a data packet in a network is obtained, wherein data in the data packet are parallel data; the data packet is cached to a preset storage position, the data packet is obtained from the storage position and is divided into at least one sub data packet, the data are converted into serial data, line coding is conducted on each sub data packet according to preset line codes, and each sub data packet is transmitted to a controller of an LED lamp so that the controller can control a lamp tube of the LED lamp to be turned on or turned off according to the serial data. According to the method for transmitting the visible light communication data, the data packet obtained in the network is divided into the sub data packets, so that the volume of data contained in each sub data base is small, and the method is suitable for channel transmission for visible light communication of a single line; the data in each sub data packet are made to be adapted to the low-pass characteristic of a channel for visible light communication through line coding, and the transmission accuracy is improved. By the adoption of the method for transmitting the visible light communication data, data information in the network can be obtained in real time, and data information in the network is transmitted in real time according to the visible light communication technology.

Description

A kind of visible light communication data transmission method and device
Technical field
The present invention relates to visible light communication field, in particular, relate to a kind of visible light communication data transmission method and device.
Background technology
Along with scientific and technical development, wireless communication technology is very flourishing, as Bluetooth(bluetooth), Wi-Fi(Wireless Fidelity), WiMax (Worldwide Interoperability for Microwave Access, worldwide interoperability for microwave access) and LTE(Long Term Evolution, Long Term Evolution) etc., electronic equipment can adopt above-mentioned various communications to transmit the data message in network.
But above-mentioned several communications, are to communicate as basis taking radio, and due to the diffraction characteristic of radio signal, make it can penetrate some barriers.Taking Wi-Fi as example, WiFi relies on invisible radio wave transmissions, and plant capacity is increasing, and local electromagnetic radiation certainly will strengthen; Through walls and the mistake of wireless signal, the network information is dangerous.
Visible light communication (Visible Light Communication, VLC) refers to and utilizes the light of visible light wave range as information carrier, does not use the transmission medium of the limited channel of optical fiber lamp, and in air the direct communication mode of transmitting optical signal.So above-mentioned defect can not produce in visible light communication.And large 10000 times than radio-frequency spectrum of spectrum, mean larger bandwidth and the speed of Geng Gao.
But, in prior art, also do not pass through visible light communication technology by the technology of data message real-time Transmission in network, therefore, by visible light communication technology, data message real-time Transmission in network is become to the problem of needing solution badly.
Summary of the invention
In view of this, the invention provides a kind of visible light communication data transmission method, having solved cannot be by visible light communication technology by the problem of data message real-time Transmission in network in prior art.
For achieving the above object, the invention provides following technical scheme:
A kind of visible light communication data transmission method, comprising:
Obtain the packet in network, the data in described packet are parallel data;
By the first extremely default memory location of described data pack buffer;
Obtain described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
By the parallel data transformed into serial data in each data sub-packets;
According to default line coding, the data sub-packets that converts serial state to is carried out to line coding;
Controller by the serial data transmission in described data sub-packets to LED lamp.
Above-mentioned method, preferred, described to converting to after the data sub-packets of serial state carries out line coding, described by the serial data transmission in described data sub-packets to before the controller of LED lamp, also comprise:
For the data in described data sub-packets are added synchronous head.
Above-mentioned method, preferred, the fractionation rule that described foundation is default, is split as at least one data sub-packets by described packet and comprises:
According to preset characters length, obtain successively the data segment in described packet;
For described data segment inserts frame head, in described frame head, carry mark, described mark is for representing the packet under described data segment, length and described data segment.
A kind of visible light communication data transmission method, comprising:
Receive the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
According to default line coding, described data sub-packets is decoded;
The serial data of described data sub-packets is converted to parallel data;
According to default merging rule, at least one data sub-packets merged into a packet;
By the second extremely default memory location of described data pack buffer;
Obtain described packet from described the second memory location, and by described data packet transmission to network interface.
Above-mentioned method, preferred, after the serial data group that described reception sends by the fluorescent tube of LED lamp, the described serial data by described data sub-packets also comprises before being converted to parallel data:
According to the synchronous head in described data sub-packets, the data in described data sub-packets are separated synchronously;
Wherein, in the time of wave distortion corresponding to described serial data group, find optimum sampling point and data starting position according to described synchronous head, to realize, the data in described data sub-packets are separated synchronously.
Above-mentioned method, preferred, the merging rule that described foundation is default, at least one data sub-packets merged into a data handbag and draw together:
According to the frame head in described data sub-packets, obtain length and the affiliated packet of described data sub-packets of described data sub-packets;
According to the packet under described data sub-packets, the data sub-packets that at least one is belonged to same packet is merged into a packet.
A kind of visible light communication data transmitting device, described device is connected with LED lamp, comprising:
Acquisition module, for obtaining the packet of network, the data in described packet are parallel data;
The first cache module, for the first memory location that described data pack buffer is extremely preset;
Split module, for obtaining described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
The first modular converter, for by the parallel data transformed into serial data of each data sub-packets;
Coding module, for the line coding according to default, carries out line coding to the data sub-packets that converts serial state to;
The first sending module, for the controller to LED lamp by the serial data transmission of described data sub-packets.
Above-mentioned device, preferred, described application of installation is in an on-the-spot Programmadle logic gate array FPGA chip.
A kind of visible light communication data transmitting device, comprising:
Receiver module, for receiving the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Decoder module, for the line coding according to default, the described data sub-packets that solution is synchronously completed is decoded;
The second modular converter, for being converted to parallel data by the serial data of described data sub-packets;
Merge module, for the merging rule according to default, at least one data sub-packets merged into a packet;
The second cache module, for the second memory location that described data pack buffer is extremely preset;
The second sending module, for obtaining described packet from described the second memory location, and by described data packet transmission to network interface.
Above-mentioned device, preferred, described application of installation is in a fpga chip.
Known via above-mentioned technical scheme, compared with prior art, the invention provides a kind of visible light communication data transmission method, comprising: obtain the packet in network, owing to obtaining by network interface, the data in this packet are parallel data, this data pack buffer is arrived to the first default memory location, from this first memory location, obtain this packet, and this packet is split, be split as at least one data sub-packets, and the parallel data in each data sub-packets is converted to serial data, according to default line coding, the data sub-packets that converts serial state to is carried out to line coding, serial data transmission in the most each data sub-packets is to the controller of LED lamp, to make the fluorescent tube opening and closing of this controller according to the serial data control LED lamp in each data sub-packets, realize the real time data communication obtaining in network to receiving equipment, realized to the data message in network is carried out Real-time Obtaining and passes through visible light communication technology by data message real-time Transmission in network.And, due to the packet obtaining in network is split, make the data volume that contains in each data sub-packets less and be serial data, the transmission of the visible light communication of suitable single line, the low-pass characteristic that makes the channel of the data adaptation visible light communication in data sub-packets by line coding, improves transmission accuracy rate.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, other accompanying drawing can also be provided according to the accompanying drawing providing.
The flow chart of a kind of visible light communication data transmission method embodiment 1 that Fig. 1 provides for the application;
Another flow chart of a kind of visible light communication data transmission method embodiment 1 that Fig. 2 provides for the application;
The flow chart of a kind of visible light communication data transmission method embodiment 2 that Fig. 3 provides for the application;
The flow chart of a kind of visible light communication data transmission method embodiment 3 that Fig. 4 provides for the application;
Framing flow process and data format schematic diagram in the data transmission procedure of a kind of visible light communication data transmission method embodiment 3 that Fig. 5 provides for the application;
The flow chart of a kind of visible light communication data transmission method embodiment 4 that Fig. 6 provides for the application;
Another flow chart of a kind of visible light communication data transmission method embodiment 4 that Fig. 7 provides for the application;
The flow chart of a kind of visible light communication data transmission method embodiment 5 that Fig. 8 provides for the application;
The flow chart of a kind of visible light communication data transmission method embodiment 6 that Fig. 9 provides for the application;
The structural representation of a kind of visible light communication data transmitting device embodiment 1 that Figure 10 provides for the application;
Another structural representation of a kind of visible light communication data transmitting device embodiment 1 that Figure 11 provides for the application;
The structural representation of a kind of visible light communication data transmitting device embodiment 2 that Figure 12 provides for the application;
The schematic diagram of a kind of visible light communication data transmitting device embodiment 3 that Figure 13 provides for the application;
Another schematic diagram of a kind of visible light communication data transmitting device embodiment 3 that Figure 14 provides for the application;
The schematic diagram of a kind of visible light communication data transmitting device embodiment 4 that Figure 15 provides for the application.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
For the independence of more specifically emphasizing to implement, this specification relates to number of modules or unit.For example, module or unit can be realized by hardware circuit, and this hardware circuit comprises special VLSI circuit or gate array, such as logic chip, transistor, or other assembly.Module or unit also can be realized in programmable computer hardware, such as field effect programmable gate array, programmable logic array, programmable logic device etc.
Module or unit also can be realized in the software performed by various forms of processors.Such as an executable code module can comprise computer instruction block one or more entities or logic, this block may be formed as, such as, object, program or function.But, not can not the needing physically to put together by operating part of identification module or unit, but can be formed by the different instruction that is stored in diverse location, in the time combining in logic, form module or unit and reach this module or the desired object in unit.
In fact, executable code module or unit can be a single instruction or multiple instruction, even can be distributed in the several different code section that is arranged in different programs, and across several memory devices.Similarly, operating data can and be shown in this module or unit by identification, and can be with any suitable form enforcement and in any suitable data structure form inner tissue.Operating data can assemble single data set, maybe can be distributed in the different position with different memory devices, and is only present in a system or network in electronic signal mode at least in part.
" embodiment " or similar term that this specification is mentioned represent the characteristic relevant with embodiment, structure or feature, are included at least one embodiment of the present invention.Therefore term " in one embodiment " that, this specification occurs, " in an embodiment " and similar term may but inevitablely all point to identical embodiment.
Moreover, characteristic of the present invention, structure or feature can be by any way in conjunction with in one or more embodiments.Below explanation will provide many specific details, such as examples such as programming, software module, user's selection, network trading, data base querying, database structure, hardware module, hardware circuit, hardware chips, so that the understanding to the embodiment of the present invention to be provided.But those of ordinary skill in the related art will find out the present invention, even without utilizing wherein one or more specific detail, or utilize other method, assembly, material etc. also can implement.On the other hand, be the present invention that avoids confusion, known structure, material or operation are not described in detail.
The flow chart of a kind of visible light communication data transmission method embodiment 1 that the application as shown in Figure 1 provides, the method is applied in an electronic equipment, the transmitting terminal LED(Light-Emitting Diode of this electronic equipment and visible light communication, light-emitting diode) lamp is connected, and the method comprises:
Step S101: obtain the packet in network, the data in described packet are parallel data;
Concrete, by network interface, the packet in network being obtained, the packet obtaining is so parallel data.
It should be noted that, in the present embodiment, the method is applied to one based on OOK(On-Off Keying, binary system amplitude-shift keying) modulation FPGA(Field Programmable Gate Array, field programmable gate array) data of network interface are read, data are taking byte as unit, and the data length of a frame is generally the length of an ip packet.
In concrete enforcement, can choose UDP(user datagram protocol, User Datagram Protoco (UDP)) as transport layer protocol, and select conventional MPEG(Moving Pictures Experts Group, dynamic image expert group) as the coded system of video, after through VLC player, the data packet length that arrives network interface is 1358, and wherein the number of clear data is 1316.
Step S102: by the first extremely default memory location of described data pack buffer;
Wherein, because network interface can carry higher data rate, so the interval between two packets may be very little, this speed of obtaining the packet in network is higher.
But, in the visible light communication transmitting procedure that follow-up employing OOK modulation realizes, by the fluorescent tube of LED lamp, the information in packet is sent with serial data form, cause this data speed entering to be greater than the speed of the transmission data such as follow-up LED, therefore, need to carry out buffer memory to these data.
It should be noted that two-port RAM (random access memory, the random asccess memory) structure of the M4K piece configuration integrate that this buffer memory can be carried by FPGA.The effect of these two RAM is the effect that realizes buffering by ping-pong operation.
Concrete, read buffer memory data-interface write trailing edge time, read the data of corresponding RAM, to avoid read/write conflict.
Step S103: obtain described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
Wherein, for the frame length that length and the physical layer of adaptive channel coding adapt to, this packet is carried out to physical layer and tear frame open, while tearing frame open, according to the length of the frame length of the length of this chnnel coding and physical layer, this packet is split.
Concrete, the chnnel coding adopting is in the present embodiment the RS code of (255,239), therefore, is divided into 6 segments by removable packet, realizes framing again, and each segment regenerates a data sub-packets.
Step S104: by the parallel data transformed into serial data in each data sub-packets;
Wherein, the data in each data sub-packets are the parallel data with the transmission of byte form.
Wherein, by parallel/serial conversion, the parallel data in this data sub-packets is converted to serial data, so that this data sub-packets can be applicable to OOK modulation, carries out VLC transmission.
Step S105: according to default line coding, the data sub-packets that converts serial state to is carried out to line coding;
Wherein, the amplitude-frequency response of visible light communication channel is also uneven, corresponding to the transmission system based on OOK modulation, the low frequency component of continuous " 1 " or " 0 " representation signal, once cross for a long time and fill (putting) electricity and can cause next time and put (filling) electricity and can not reach normal level, thereby produce the phenomenon of fluctuating signal.
So, because the frequency response characteristic of visible light communication channel has low-pass characteristic, in order to reduce the generation of frequency component, reduce the appearance that connects " 0 " or connect " 1 ", to carrying out line coding in data sub-packets.
Concrete, can adopt 5B/6B coding, 8B/10B coding or manchester(Manchester) coding, in the time that channel condition is poor, can adopt manchester coding, when channel condition is better, can adopt 5B/6B coding or 8B/10B coding.
Step S106: the controller by the serial data transmission in described data sub-packets to LED lamp.
Wherein, this LED lamp comprises controller and fluorescent tube, serial data in controller receiving data attached bag, and according to this serial data, the operating state of fluorescent tube is controlled, in the time that these data are 0, close fluorescent tube, in the time that these data are 1, start fluorescent tube, by the closing and open and send 01 signal of fluorescent tube, realize function data in packet being sent by visible channel.
Concrete, this controller is for can carry out analog-to-digital drive circuit.
Need explanation, receive after the signal that this LED lamp transmits by light on and off with LED lamp supporting receiving equipment, change, finally obtain the final data message corresponding with the data message obtaining in network.
Another flow chart of a kind of visible light communication data transmission method embodiment 1 that the application shown in Figure 2 provides, comprising:
Step S201: obtain the packet in network, the data in described packet are parallel data;
Step S202: by the first extremely default memory location of described data pack buffer;
Step S203: obtain described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
Step S204: the RS of institute code coding in each data sub-packets is adopted;
Wherein, RS(Reed-solomon, inner institute) coding is the multi-system BCH code that a class error correcting capability is stronger, can either error correction random error again can the sudden error code of error correction.
So, in order to ensure that the data in data sub-packets can be sent to receiving system with higher accuracy in transmitting procedure, adopt RS code to encode to the data in each data sub-packets.
Concrete, the RS code that is 8 for general bit wide, code block length is 255, the maximum check digit number that can meet continuous transmission is 16 symbols, is also that corresponding message length is 239 symbols.Therefore, in the present embodiment, select the RS code of (255,239) as chnnel coding.
It should be noted that, in the time that RS encodes, also can be to adding check digit in this data sub-packets, this check digit can adopt 20 bytes.
Step S205: by the parallel data transformed into serial data in each data sub-packets;
Step S206: according to default line coding, the data sub-packets that converts serial state to is carried out to line coding;
Step S207: the controller by the serial data transmission in described data sub-packets to LED lamp.
It should be noted that, in actual enforcement, above-mentioned method can realize in middle low speed chip, as is embedded in FPGA(Field Programmable Gate Array, on-the-spot Programmadle logic gate array) chip realization.
A kind of visible light communication data transmission method providing in the present embodiment, comprising: obtain the packet in network, owing to obtaining by network interface, the data in this packet are parallel data; This data pack buffer is arrived to the first default memory location, from this first memory location, obtain this packet, and this packet is split, be split as at least one data sub-packets, and the parallel data in each data sub-packets is converted to serial data, according to default line coding, the data sub-packets that converts serial state to is carried out to line coding; Serial data transmission in the most each data sub-packets is to the controller of LED lamp, to make the fluorescent tube opening and closing of this controller according to the serial data control LED lamp in each data sub-packets, realized the real time data communication obtaining in network to receiving equipment, realized to the data message in network carry out Real-time Obtaining and by visible light communication technology by data message real-time Transmission in network.And, due to the packet obtaining in network is split, make the data volume that contains in each data sub-packets less and be serial data, the transmission of the visible light communication of suitable single line, the low-pass characteristic that makes the channel of the data adaptation visible light communication in data sub-packets by line coding, improves transmission accuracy rate.
The flow chart of a kind of visible light communication data transmission method embodiment 2 that the application as shown in Figure 3 provides, the method comprises:
Step S301: obtain the packet in network, the data in described packet are parallel data;
Step S302: by the first extremely default memory location of described data pack buffer;
Step S303: obtain described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
Step S304: by the parallel data transformed into serial data in each data sub-packets;
Step S305: according to default line coding, the data sub-packets that converts serial state to is carried out to line coding;
Wherein, step S301-305 is consistent with the step S101-105 in embodiment 1, in the present embodiment, repeats no more.
Step S306: for the data in described data sub-packets are added synchronous head;
Wherein, adopt M sequence (De Brujin sequence) as synchronizing sequence, add synchronous head for the data in each data sub-packets, this M sequence is a kind of pseudo random sequence.
In the present embodiment, select the synchronizing sequence of 64 M sequences as system.
It should be noted that, the wave distortion receiving at the receiving terminal of visible light communication, this M sequence is for finding best sampled point and data starting position, to determine that the data to receiving carry out Correct Analysis.
Step S307: the controller by the serial data transmission in described data sub-packets to LED lamp.
Wherein, step S307 is consistent with the step S106 in embodiment 1, in the present embodiment, repeats no more.
To sum up, in a kind of visible light communication data transmission method providing in the present embodiment, also comprise: be that data in data sub-packets are added synchronous head, to ensure to occur the situation of image fault in transmitting procedure time, receiving terminal can carry out Correct Analysis to data, to improve the quality of transfer of data.
The flow chart of a kind of visible light communication data transmission method embodiment 3 that the application as shown in Figure 4 provides, the method comprises:
Step S401: obtain the packet in network, the data in described packet are parallel data;
Step S402: by the first extremely default memory location of described data pack buffer;
Wherein, step S401-402 is consistent with the step S101-102 in embodiment 2, in the present embodiment, repeats no more.
Step S403: obtain described packet from described the first memory location, and according to preset characters length, obtain successively the data segment in described packet;
Wherein, get packet from the first memory location, this packet is split as to multiple data segments, so that follow-up, each data segment is generated to a data sub-packets.
Concrete, according to default character length, from this packet, obtain data segment successively, the length of each data segment is identical, in the time that last data segment does not meet default character length, can adopt the mode polishing character length that adds 0.
For example, the chnnel coding adopting in this method is (255,239) RS coding, data packet length is 1358, wherein the number of clear data is 1316, packet is split as to 6 segments, the data length of front 5 segments is 237, and vacant two characters are to add frame head in step S404, and the data length of final stage is 131, also vacant two characters add frame head, and all the other are filled to 55H.
Concrete, in the process of obtaining data segment, every adjacent two little segment datas be spaced apart 20 bytes, these 20 bytes are as the check digit of RS coding, synchronous head leaves space.
Step S404: for described data segment inserts frame head;
Wherein, for the every one piece of data obtaining in step S403 adds frame head, in this frame head, carry mark, mark, for representing the packet under this mark place data segment, length and this data segment, adds the data segment of frame head to be data sub-packets.
Concrete, add 2 bytes in the beginning of each data segment, first byte represents the length of this data segment, second byte is for representing the packet under this data segment, the content that 237 bytes are afterwards data segment.
Step S405: by the parallel data transformed into serial data in each data sub-packets;
Step S406: according to default line coding, the data sub-packets that converts serial state to is carried out to line coding;
Step S407: for the data in described data sub-packets are added synchronous head;
Step S408: the controller by the serial data transmission in described data sub-packets to LED lamp.
Wherein, step S405-408 is consistent with the step S304-307 in embodiment 2, in the present embodiment, repeats no more.
Framing flow process and data format schematic diagram in this data transmission procedure of a kind of visible light communication data transmission method embodiment 3 that the application shown in Figure 5 provides, comprising:
Step S501: the IP packet obtaining from network is unpacked, obtain data segment, and add frame head;
The IP packet obtaining from network is overall format.
Data format after unpacking comprises frame head and data segment.
Step S502: frame head and data segment are carried out to RS coding as information bit, and add check digit;
This data format comprises information bit and check digit, and this information is 239 bytes, and check digit is 16 bytes.
Step S503: will add synchronous head in the data after line coding, the data record obtaining is data sub-packets.
This data format comprises data after synchronous head and line coding, and this synchronous head is 64, and after line coding, the computational methods of data are 8*255/ line coding efficiency.
To sum up, in a kind of visible light communication data transmission method embodiment that the application provides, the process of tearing IP bag open is described, first the data in packet are carried out to obtaining of preset characters length, and be that each data segment adds frame head, to this data segment is identified, and owing to being split as multiple little data sub-packets, make carrying out in visible light communication process, successively every one piece of data is sent, avoid the problem that breaks down and need to all resend while sending a larger data bag, reduced the difficulty sending.
3 above-mentioned embodiment are the data transmission methods for the transmitting terminal of visible light communication, the method be applied to the transmitting terminal that is connected with LED lamp controller, describe for the receiving terminal data transmission method embodiment of visible light communication below.
It should be noted that, corresponding with the data transmission method embodiment of above-mentioned transmitting terminal for the receiving terminal data transmission method embodiment of visible light communication below.
The flow chart of a kind of visible light communication data transmission method embodiment 4 that the application as shown in Figure 6 provides, the method is applied in an electronic equipment, this electronic equipment can receive the visible light signal of the transmitting terminal LED lamp transmission of visible light communication, in actual enforcement, this electronic equipment is positioned at this LED light according to coverage.
The method comprises:
Step S601: receive the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Wherein, receive the visible light signal that this LED lamp fluorescent tube sends, this visible light signal is 0,1, and in the time that this fluorescent tube is opened, receiving optical signals, is recorded as 1; In the time that fluorescent tube is closed, being recorded as 0, one group of data record is a data sub-packets.
In concrete enforcement, between each data group, there is the distinguishing signal of preset length, each serial data group is divided making.
Step S602: according to default line coding, described data sub-packets is decoded;
Wherein, the decoding process of this data sub-packets is corresponding with coded system, so that the data that its decoding obtains meet the transmission system based on OOK modulation.
Concrete, can adopt 5B/6B coding, 8B/10B coding or manchester(Manchester) encode and decode accordingly.
Step S603: the serial data of described data sub-packets is converted to parallel data;
Wherein, because the fluorescent tube of LED lamp can only produce data at every turn, the data in this data sub-packets are serial data, are to transmit with byte form and OOK modulates corresponding transmission means, therefore, the serial data in data sub-packets need to be converted to the parallel data that is suitable for OOK modulation.
Step S604: according to default merging rule, at least one data sub-packets merged into a packet;
Wherein, send in the process of packet at transmitting terminal, adopt packet is split as to the mode that several data sub-packets send successively, therefore, when receiving after data sub-packets, the several data sub-packets that split need to be merged, obtain initial packet.
Concrete, the chnnel coding adopting is in the present embodiment the RS code of (255,239), therefore, in the time sending, be divided into 6 segments by removable packet, so in this step, by the rule according to corresponding with fractionation, each data sub-packets combination is obtained to large packet.
Step S605: by the second extremely default memory location of described data pack buffer;
Wherein, because the network port reading speed of receiving terminal and local physical layer transmission speed are inconsistent, so the object of buffer memory is for by the transmission speed of local physical layer and network port reading speed balance, make the speed that reads between the two and transmit average out.
It should be noted that the two-port RAM structure of the M4K piece configuration integrate that the buffer memory of this second memory location can be carried by FPGA.The effect of these two RAM is the effect that realizes buffering by ping-pong operation.
Concrete, read buffer memory data-interface write trailing edge time, read the data of corresponding RAM, to avoid read/write conflict.
Step S606: obtain described packet from described the second memory location, and by described data packet transmission to network interface.
Wherein, from the second memory location of this placement packet, obtain this packet, and this packet is transferred to user's equipment by network interface, final realization by the data in visible light communication real-time Transmission network.
In actual enforcement, what this network interface connected is user's online electronic equipment used, as computer, pad, mobile phone etc.
Another flow chart of a kind of visible light communication data transmission method embodiment 4 that the application shown in Figure 7 provides, comprising:
Step S701: receive the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Step S702: according to default line coding, described data sub-packets is decoded;
Step S703: the serial data of described data sub-packets is converted to parallel data;
Step S704: each data sub-packets is adopted to the decoding of RS code;
Wherein, RS coding is the multi-system BCH code that a class error correcting capability is stronger, can either error correction random error again can the sudden error code of error correction.
Wherein, in to data sub-packets, carry out decoding through RS coded data, so that it replys RS coding original form before, to obtain the packet content of obtaining at first from network.
Step S705: according to default merging rule, at least one data sub-packets merged into a packet;
Step S706: by the second extremely default memory location of described data pack buffer;
Step S707: obtain described packet from described the second memory location, and by described data packet transmission to network interface.
It should be noted that, above-mentioned method can be embedded in fpga chip and realize.
It should be noted that, the method can be applied in the electronic equipment of realizing visible light communication, and this electronic equipment can be the electronic equipments such as desktop computer, notebook, panel computer, mobile phone, intelligent television, intelligent watch, Wearable equipment.
A kind of visible light communication data transmission method providing in the present embodiment, comprise: the visible light signal that the fluorescent tube by LED lamp is sent carries out the operations such as decoding, string conversion merging, this visible light signal is converted to the packet obtaining from network at first the most at last, has completed the real-time transmission data of visible light communication.
The flow chart of a kind of visible light communication data transmission method embodiment 5 that the application as shown in Figure 8 provides, the method comprises:
Step S801: receive the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Step S802: according to default line coding, described data sub-packets is decoded;
Wherein, step S801-808 is consistent with the step S601-602 in embodiment 4, in the present embodiment, repeats no more.
Step S803: according to the synchronous head in described data sub-packets, the data in described data sub-packets are separated synchronously;
Wherein, in the time of wave distortion corresponding to described serial data group, find optimum sampling point and data starting position according to described synchronous head, to realize, the data in described data sub-packets are separated synchronously.
Wherein, this synchronous head obtains for adopting M sequence to add.
Wherein, in order to resist the nonlinear characteristic of visible light communication channel, in the time that solution is synchronous, sampling rate is set to 8 times of OOK speed, for each OOK symbol, has 8 sampled points can supply to process.
Concrete, utilize known synchronizing sequence to the relevant treatment of sliding of the data in this data sub-packets, after obtaining maximum correlation, can think that sampled point corresponding to this position is optimum sampling point, find the original position of data after this coding simultaneously.
It should be noted that, for fear of burr, carrying out OOK while reconciling, choose optimum sampling point 2 sampled points and optimum sampling point around and carry out cascading judgement.
It should be noted that, this employing speed is 8 times of OOK speed, and this multiple is the optimal values arranging, but is not limited to this, in actual enforcement, also can adopt other multiples.
Step S804: the serial data of described data sub-packets is converted to parallel data;
Step S805: according to default merging rule, at least one data sub-packets merged into a packet;
Step S806: by the second extremely default memory location of described data pack buffer;
Step S807: obtain described packet from described the second memory location, and by described data packet transmission to network interface.
Wherein, step S804-807 is consistent with the step S603-606 in embodiment 4, in the present embodiment, repeats no more.
To sum up, in a kind of visible light communication data transmission method providing in the present embodiment, also comprise: be the synchronous head according in described data sub-packets, data in described data sub-packets are separated synchronously, to ensure to occur the situation of image fault in transmitting procedure time, data are carried out to Correct Analysis, to improve the quality of transfer of data.
The flow chart of a kind of visible light communication data transmission method embodiment 6 that the application as shown in Figure 9 provides, the method comprises:
Step S901: receive the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Step S902: according to default line coding, described data sub-packets is decoded;
Step S903: the serial data of described data sub-packets is converted to parallel data;
Wherein, step S901-903 is consistent with the step S601-603 in embodiment 4, in the present embodiment, repeats no more.
Step S904: according to the frame head in described data sub-packets, obtain length and the affiliated packet of described data sub-packets of described data sub-packets;
Wherein, in this frame head, include length and the affiliated packet of this data sub-packets of this data sub-packets.
Concrete, the frame head of this book attached bag is analyzed, obtain length and the affiliated packet of this data sub-packets of this data sub-packets.
Wherein, due at transmitting terminal, a packet can split into multiple data sub-packets, in the data sub-packets receiving, has the situation that multiple data sub-packets belong to same packet.
Step S905: according to the packet under described data sub-packets, the data sub-packets that at least one is belonged to same packet is merged into a packet;
Wherein, according to the information of the affiliated packet containing in the frame head in each data sub-packets, multiple data sub-packets that belong to a packet are merged into a packet, be stitched together by corresponding data segment, form original ip packet.
Step S906: by the second extremely default memory location of described data pack buffer;
Step S907: obtain described packet from described the second memory location, and by described data packet transmission to network interface.
Wherein, step S906-907 is consistent with the step S605-606 in embodiment 4, in the present embodiment, repeats no more.
To sum up, the process that is combined IP bag in a kind of visible light communication data transmission method embodiment that the application provides describes, according to the frame head in described data sub-packets, obtain length and the affiliated packet of described data sub-packets of described data sub-packets, and according to the packet under described data sub-packets, the data sub-packets that at least one is belonged to same packet is merged into a packet.Can be that data merge to being divided into that multiple data sub-packets transmit, obtain the form of the packet obtaining at first from network, make transmitting procedure complete, it is identical with other the data that acquire of wireless network data that user adopts line-of-sight propagation to carry out obtaining of network data, ensured better user experience.
In the embodiment that the invention described above provides, describe a kind of visible light communication data transmission method in detail, can adopt the device of various ways to realize for method of the present invention, therefore the present invention also provides a kind of visible light communication data transmitting device, provides specific embodiment below and is elaborated.
The structural representation of a kind of visible light communication data transmitting device embodiment 1 providing referring to the application shown in Figure 10, this application of installation is in an electronic equipment, and this electronic equipment is connected with the transmitting terminal LED lamp of visible light communication, and this device comprises:
Acquisition module 1001, for obtaining the packet of network, the data in described packet are parallel data;
Concrete, acquisition module 1001, by network interface, obtains the packet in network, and the packet obtaining is so parallel data.
It should be noted that, in the present embodiment, the method is applied to a FPGA who modulates based on OOK the data of network interface is read, and data are taking byte as unit, and the data length of a frame is generally the length of an ip packet.
In concrete enforcement, can choose UDP as transport layer protocol, and select the coded system of conventional MPEG as video, after through VLC player, the data packet length that arrives network interface is 1358, and wherein the number of clear data is 1316.
The first cache module 1002, for the first memory location that described data pack buffer is extremely preset;
Wherein, because network interface can carry higher data rate, so the interval between two packets may be very little, this speed of obtaining the packet in network is higher.
But, in the visible light communication transmitting procedure that follow-up employing OOK modulation realizes, by the fluorescent tube of LED lamp, the information in packet is sent with serial data form, cause this data speed entering to be greater than the speed of the transmission data such as follow-up LED, therefore, need to carry out buffer memory to these data.
It should be noted that the two-port RAM structure of the M4K piece configuration integrate that this buffer memory can be carried by FPGA.The effect of these two RAM is the effect that realizes buffering by ping-pong operation.
Concrete, read buffer memory data-interface write trailing edge time, read the data of corresponding RAM, to avoid read/write conflict.
Split module 1003, for obtaining described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
Wherein, for the frame length that length and the physical layer of adaptive channel coding adapt to, fractionation module 1003 is carried out physical layer by this packet and is torn frame open, while tearing frame open, according to the length of the frame length of the length of this chnnel coding and physical layer, this packet is split.
Concrete, the chnnel coding adopting is in the present embodiment the RS code of (255,239), therefore, is divided into 6 segments by removable packet, realizes framing again, and each segment regenerates a data sub-packets.
Wherein, this fractionation module 1003 comprises: acquiring unit and adding device;
Wherein, this acquiring unit, for according to preset characters length, obtains the data segment in described packet successively;
Wherein, get packet from the first memory location, this packet is split as to multiple data segments, so that follow-up, each data segment is generated to a data sub-packets.
Concrete, acquiring unit, according to default character length, obtains data segment successively from this packet, and the length of each data segment is identical, in the time that last data segment does not meet default character length, can adopt the mode polishing character length that adds 0.
For example, the chnnel coding adopting in this method is (255,239) RS coding, data packet length is 1358, wherein the number of clear data is 1316, packet is split as to 6 segments, the data length of front 5 segments is 237, and vacant two characters are to add frame head in step S404, and the data length of final stage is 131, also vacant two characters add frame head, and all the other are filled to 55H.
Concrete, in the process of obtaining data segment, every adjacent two little segment datas be spaced apart 20 bytes, these 20 bytes are as the check digit of RS coding, synchronous head leaves space.
Wherein, this adding device, is used to described data segment to insert frame head, in described frame head, carries mark, and described mark is for representing the packet under described data segment, length and described data segment.
Wherein, adding device is that the every one piece of data obtaining in acquiring unit adds frame head, in this frame head, carries mark, and mark, for representing the packet under this mark place data segment, length and this data segment, adds the data segment of frame head to be data sub-packets.
Concrete, add 2 bytes in the beginning of each data segment, first byte represents the length of this data segment, second byte is for representing the packet under this data segment, the content that 237 bytes are afterwards data segment.
The first modular converter 1004, for by the parallel data transformed into serial data of each data sub-packets;
Wherein, the data in each data sub-packets are the parallel data with the transmission of byte form.
Wherein, the first modular converter 1004, by parallel/serial conversion, is converted to serial data by the parallel data in this data sub-packets, so that this data sub-packets can be applicable to OOK modulation, carries out VLC transmission.
Coding module 1005, for the line coding according to default, carries out line coding to the data sub-packets that converts serial state to;
Wherein, the amplitude-frequency response of visible light communication channel is also uneven, corresponding to the transmission system based on OOK modulation, the low frequency component of continuous " 1 " or " 0 " representation signal, once cross for a long time and fill (putting) electricity and can cause next time and put (filling) electricity and can not reach normal level, thereby produce the phenomenon of fluctuating signal.
So, because the frequency response characteristic of visible light communication channel has low-pass characteristic, in order to reduce the generation of frequency component, reduce the appearance that connects " 0 " or connect " 1 ", to carrying out line coding in data sub-packets.
Concrete, coding module 1005 can adopt 5B/6B coding, 8B/10B coding or manchester coding, in the time that channel condition is poor, can adopt manchester coding, when channel condition is better, can adopt 5B/6B coding or 8B/10B coding.
The first sending module 1006, for the controller to LED lamp by the serial data transmission of described data sub-packets.
Wherein, this LED lamp comprises controller and fluorescent tube, serial data in controller receiving data attached bag, and according to this serial data, the operating state of fluorescent tube is controlled, in the time that these data are 0, close fluorescent tube, in the time that these data are 1, start fluorescent tube, by the closing and open and send 01 signal of fluorescent tube, realize function data in packet being sent by visible channel.
Concrete, this controller is for can carry out analog-to-digital drive circuit.
Need explanation, receive after the signal that this LED lamp transmits by light on and off with LED lamp supporting receiving equipment, change, finally obtain the final data message corresponding with the data message obtaining in network.
Another structural representation of a kind of visible light communication data transmitting device embodiment 1 that the application shown in Figure 11 provides, comprising:
Acquisition module 1101, the first cache module 1102, fractionation module 1103, the first coding module 1104, the first modular converter 1105, the second coding module 1106 and the first sending module 1107;
Wherein, acquisition module 1101, the first cache module 1102, to split module 1103, the first modular converter 1105, the second coding module 1106 consistent with corresponding construction function in embodiment 1 with the first sending module 1107, in the present embodiment, repeats no more.
Wherein, the first coding module 1104, for the RS of institute code coding in each data sub-packets is adopted.
Wherein, RS coding is the multi-system BCH code that a class error correcting capability is stronger, can either error correction random error again can the sudden error code of error correction.
So, in order to ensure that the data in data sub-packets can be sent to receiving system with higher accuracy in transmitting procedure, adopt RS code to encode to the data in each data sub-packets.
Concrete, the RS code that is 8 for general bit wide, code block length is 255, the maximum check digit number that can meet continuous transmission is 16 symbols, is also that corresponding message length is 239 symbols.Therefore, in the present embodiment, select the RS code of (255,239) as chnnel coding.
It should be noted that, in the time that RS encodes, also can be to adding check digit in this data sub-packets, this check digit can adopt 20 bytes.
A kind of visible light communication data transmitting device providing in the present embodiment, comprising: acquisition module, and for obtaining the packet of network, the data in described packet are parallel data; The first cache module, for the first memory location that described data pack buffer is extremely preset; Split module, for obtaining described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets; The first modular converter, for by the parallel data transformed into serial data of each data sub-packets; Coding module, for the line coding according to default, carries out line coding to the data sub-packets that converts serial state to; The first sending module, for the controller to LED lamp by the serial data transmission of described data sub-packets.Adopt this device, make the controller of this LED lamp according to the fluorescent tube opening and closing of the serial data control LED lamp in each data sub-packets, realized the real time data communication obtaining in network to receiving equipment, realized to the data message in network carry out Real-time Obtaining and by visible light communication technology by data message real-time Transmission in network.And, due to the packet obtaining in network is split, make the data volume that contains in each data sub-packets less and be serial data, the transmission of the visible light communication of suitable single line, the low-pass characteristic that makes the channel of the data adaptation visible light communication in data sub-packets by line coding, improves transmission accuracy rate.
The structural representation of a kind of visible light communication data transmitting device embodiment 2 that the application shown in Figure 12 provides, comprising:
Acquisition module 1201, the first cache module 1202, fractionation module 1203, coding module 1204, the first modular converter 1204, interpolation module 1205 and the first sending module 1206;
Wherein, acquisition module 1201, the first cache module 1202, to split module 1203, coding module 1204, the first modular converter 1204 consistent with corresponding construction function in embodiment 1 with the first sending module 1206, in the present embodiment, repeats no more.
Add module 1205, be used to the data in described data sub-packets to add synchronous head.
Wherein, add module 1205 and adopt M sequence (De Brujin sequence) as synchronizing sequence, add synchronous head for the data in each data sub-packets, this M sequence is a kind of pseudo random sequence.
In the present embodiment, select the synchronizing sequence of 64 M sequences as system.
It should be noted that, the wave distortion receiving at the receiving terminal of visible light communication, this M sequence is for finding best sampled point and data starting position, to determine that the data to receiving carry out Correct Analysis.
To sum up, in a kind of visible light communication data transmitting device providing in the present embodiment, also comprise: be the interpolation module of the data interpolation synchronous head in data sub-packets, to ensure to occur the situation of image fault in transmitting procedure time, receiving terminal can carry out Correct Analysis to data, to improve the quality of transfer of data.
2 above-mentioned embodiment are the data transmission devices for the transmitting terminal of visible light communication, this device be applied to the transmitting terminal that is connected with LED lamp controller, describe for the receiving terminal data transmission device embodiment of visible light communication below.
It should be noted that, corresponding with the data transmission device embodiment of above-mentioned transmitting terminal for the receiving terminal data transmission device embodiment of visible light communication below.
The structural representation of a kind of visible light communication data transmitting device embodiment 3 that the application shown in Figure 13 provides, comprising:
Receiver module 1301, for receiving the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Wherein, receiver module 1301 receives the visible light signal that this LED lamp fluorescent tube sends, and this visible light signal is 0,1, and in the time that this fluorescent tube is opened, receiving optical signals, is recorded as 1; In the time that fluorescent tube is closed, being recorded as 0, one group of data record is a data sub-packets.
In concrete enforcement, between each data group, there is the distinguishing signal of preset length, each serial data group is divided making.
Decoder module 1302, for the line coding according to default, the described data sub-packets that solution is synchronously completed is decoded;
Wherein, the decoding process of this data sub-packets is corresponding with coded system, so that the data that its decoding obtains meet the transmission system based on OOK modulation.
Concrete, decoder module 1302 can adopt 5B/6B coding, 8B/10B coding or manchester(Manchester) encode and decode accordingly.
The second modular converter 1303, for being converted to parallel data by the serial data of described data sub-packets;
Wherein, because the fluorescent tube of LED lamp can only produce data at every turn, the data in this data sub-packets are serial data, to transmit with byte form and OOK modulates corresponding transmission means, therefore, the second modular converter 1303 need to be converted to the serial data in data sub-packets the parallel data that is suitable for OOK modulation.
Merge module 1304, for the merging rule according to default, at least one data sub-packets merged into a packet;
Wherein, send in the process of packet at transmitting terminal, adopt packet is split as to the mode that several data sub-packets send successively, therefore, when receiving after data sub-packets, merging module 1304 need to merge the several data sub-packets that split, and obtains initial packet.
Concrete, the chnnel coding adopting is in the present embodiment the RS code of (255,239), therefore, in the time sending, be divided into 6 segments by removable packet, so in this step, by the rule according to corresponding with fractionation, each data sub-packets combination is obtained to large packet.
Wherein, merge module 1304 and comprise analytic unit and merge cells;
Wherein, analytic unit, for the frame head according to described data sub-packets, obtains length and the affiliated packet of described data sub-packets of described data sub-packets;
Wherein, in this frame head, include length and the affiliated packet of this data sub-packets of this data sub-packets.
Concrete, analytic unit is analyzed the frame head of this book attached bag, obtains length and the affiliated packet of this data sub-packets of this data sub-packets.
Wherein, due at transmitting terminal, a packet can split into multiple data sub-packets, in the data sub-packets receiving, has the situation that multiple data sub-packets belong to same packet.
Wherein, merge cells, for the packet according under described data sub-packets, the data sub-packets that at least one is belonged to same packet is merged into a packet;
Wherein, merge cells, according to the information of the affiliated packet containing in the frame head in each data sub-packets, is merged into a packet by multiple data sub-packets that belong to a packet, is stitched together by corresponding data segment, forms original ip packet.
The second cache module 1305, for the second memory location that described data pack buffer is extremely preset;
Wherein, because the network port reading speed of receiving terminal and local physical layer transmission speed are inconsistent, so the object of buffer memory is for by the transmission speed of local physical layer and network port reading speed balance, make the speed that reads between the two and transmit average out.
It should be noted that the two-port RAM structure of the M4K piece configuration integrate that the buffer memory of this second memory location can be carried by FPGA.The effect of these two RAM is the effect that realizes buffering by ping-pong operation.
Concrete, read buffer memory data-interface write trailing edge time, read the data of corresponding RAM, to avoid read/write conflict.
The second sending module 1306, for obtaining described packet from described the second memory location, and by described data packet transmission to network interface.
Wherein, from the second memory location of this placement packet, obtain this packet, and this packet is transferred to user's equipment by network interface, final realization by the data in visible light communication real-time Transmission network.
In actual enforcement, what this network interface connected is user's online electronic equipment used, as computer, pad, mobile phone etc.
Another structural representation of a kind of visible light communication data transmitting device embodiment 3 that the application shown in Figure 14 provides, comprising: receiver module 1401, the first decoder module 1402, the second modular converter 1403, the second decoder module 1404, merging module 1405, the second cache module 1406 and the second sending module 1407;
Wherein, receiver module 1401, the first decoder module 1402, the second modular converter 1403, merge module 1405, the second cache module 1406 is consistent with corresponding construction function in embodiment 1 with the second sending module 1407, in the present embodiment, repeat no more.
The second decoder module 1404, for adopting the decoding of RS code to each data sub-packets.
Wherein, RS coding is the multi-system BCH code that a class error correcting capability is stronger, can either error correction random error again can the sudden error code of error correction.
Wherein, the second decoder module 1404 is to carrying out decoding through RS coded data in data sub-packets, so that it replys RS coding original form before, to obtain the packet content of obtaining at first from network.
It should be noted that, in actual enforcement, above-mentioned device can be realized in middle low speed chip, as fpga chip.
It should be noted that, this device can be applied in the electronic equipment of realizing visible light communication, and this electronic equipment can be the electronic equipments such as desktop computer, notebook, panel computer, mobile phone, intelligent television, intelligent watch, Wearable equipment.
A kind of visible light communication data transmitting device providing in the present embodiment, comprise: the visible light signal that the fluorescent tube by LED lamp is sent carries out the operations such as decoding, string conversion merging, this visible light signal is converted to the packet obtaining from network at first the most at last, has completed the real-time transmission data of visible light communication.
The structural representation of a kind of visible light communication data transmitting device embodiment 2 that the application shown in Figure 15 provides, comprising: receiver module 1501, the first decoder module 1502, the second modular converter 1503, solution synchronization module 1504, merging module 1505, the second cache module 1506 and the second sending module 1507;
Wherein, separate synchronization module 1504, for the synchronous head according to described data sub-packets, the data in described data sub-packets are separated synchronously;
Wherein, in the time of wave distortion corresponding to described serial data group, separate synchronization module 1504 and find optimum sampling point and data starting position according to described synchronous head, to realize, the data in described data sub-packets are separated synchronously.
Wherein, this synchronous head obtains for adopting M sequence to add.
Wherein, in order to resist the nonlinear characteristic of visible light communication channel, in the time that solution is synchronous, sampling rate is set to 8 times of OOK speed, for each OOK symbol, has 8 sampled points can supply to process.
Concrete, utilize known synchronizing sequence to the relevant treatment of sliding of the data in this data sub-packets, after obtaining maximum correlation, can think that sampled point corresponding to this position is optimum sampling point, find the original position of data after this coding simultaneously.
It should be noted that, for fear of burr, carrying out OOK while reconciling, choose optimum sampling point 2 sampled points and optimum sampling point around and carry out cascading judgement.
It should be noted that, this employing speed is 8 times of OOK speed, and this multiple is the optimal values arranging, but is not limited to this, in actual enforcement, also can adopt other multiples.
To sum up, in a kind of visible light communication data transmitting device providing in the present embodiment, also comprise: separate synchronization module, be used to according to the synchronous head in described data sub-packets, data in described data sub-packets are separated synchronously, to ensure to occur the situation of image fault in transmitting procedure time, data are carried out to Correct Analysis, to improve the quality of transfer of data.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For the device providing for embodiment, because its method providing with embodiment is corresponding, so description is fairly simple, relevant part illustrates referring to method part.
To the above-mentioned explanation of provided embodiment, make professional and technical personnel in the field can realize or use the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiment, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle provided in this article and features of novelty.

Claims (10)

1. a visible light communication data transmission method, is characterized in that, comprising:
Obtain the packet in network, the data in described packet are parallel data;
By the first extremely default memory location of described data pack buffer;
Obtain described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
By the parallel data transformed into serial data in each data sub-packets;
According to default line coding, the data sub-packets that converts serial state to is carried out to line coding;
Controller by the serial data transmission in described data sub-packets to LED lamp.
2. method according to claim 1, is characterized in that, described to converting to after the data sub-packets of serial state carries out line coding, described by the serial data transmission in described data sub-packets to before the controller of LED lamp, also comprise:
For the data in described data sub-packets are added synchronous head.
3. method according to claim 1, is characterized in that, the fractionation rule that described foundation is default is split as at least one data sub-packets by described packet and comprises:
According to preset characters length, obtain successively the data segment in described packet;
For described data segment inserts frame head, in described frame head, carry mark, described mark is for representing the packet under described data segment, length and described data segment.
4. a visible light communication data transmission method, is characterized in that, comprising:
Receive the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
According to default line coding, described data sub-packets is decoded;
The serial data of described data sub-packets is converted to parallel data;
According to default merging rule, at least one data sub-packets merged into a packet;
By the second extremely default memory location of described data pack buffer;
Obtain described packet from described the second memory location, and by described data packet transmission to network interface.
5. method according to claim 4, is characterized in that, after the serial data group that described reception sends by the fluorescent tube of LED lamp, the described serial data by described data sub-packets also comprises before being converted to parallel data:
According to the synchronous head in described data sub-packets, the data in described data sub-packets are separated synchronously;
Wherein, in the time of wave distortion corresponding to described serial data group, find optimum sampling point and data starting position according to described synchronous head, to realize, the data in described data sub-packets are separated synchronously.
6. method according to claim 4, is characterized in that, the merging rule that described foundation is default is merged into a data handbag by least one data sub-packets and drawn together:
According to the frame head in described data sub-packets, obtain length and the affiliated packet of described data sub-packets of described data sub-packets;
According to the packet under described data sub-packets, the data sub-packets that at least one is belonged to same packet is merged into a packet.
7. a visible light communication data transmitting device, is characterized in that, described device is connected with LED lamp, comprising:
Acquisition module, for obtaining the packet of network, the data in described packet are parallel data;
The first cache module, for the first memory location that described data pack buffer is extremely preset;
Split module, for obtaining described packet from described the first memory location, and according to default fractionation rule, described packet is split as at least one data sub-packets;
The first modular converter, for by the parallel data transformed into serial data of each data sub-packets;
Coding module, for the line coding according to default, carries out line coding to the data sub-packets that converts serial state to;
The first sending module, for the controller to LED lamp by the serial data transmission of described data sub-packets.
8. device according to claim 7, is characterized in that, described application of installation is in an on-the-spot Programmadle logic gate array FPGA chip.
9. a visible light communication data transmitting device, is characterized in that, comprising:
Receiver module, for receiving the visible light signal sending by the fluorescent tube of LED lamp, described visible light signal is serial data, and each serial data group is recorded as to a data sub-packets;
Decoder module, for the line coding according to default, the described data sub-packets that solution is synchronously completed is decoded;
The second modular converter, for being converted to parallel data by the serial data of described data sub-packets;
Merge module, for the merging rule according to default, at least one data sub-packets merged into a packet;
The second cache module, for the second memory location that described data pack buffer is extremely preset;
The second sending module, for obtaining described packet from described the second memory location, and by described data packet transmission to network interface.
10. device according to claim 9, is characterized in that, described application of installation is in a fpga chip.
CN201410161719.3A 2014-04-22 2014-04-22 Method and device for transmitting visible light communication data Pending CN104079351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410161719.3A CN104079351A (en) 2014-04-22 2014-04-22 Method and device for transmitting visible light communication data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410161719.3A CN104079351A (en) 2014-04-22 2014-04-22 Method and device for transmitting visible light communication data

Publications (1)

Publication Number Publication Date
CN104079351A true CN104079351A (en) 2014-10-01

Family

ID=51600415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410161719.3A Pending CN104079351A (en) 2014-04-22 2014-04-22 Method and device for transmitting visible light communication data

Country Status (1)

Country Link
CN (1) CN104079351A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016115929A1 (en) * 2015-01-20 2016-07-28 深圳市裕富照明有限公司 Led lighting-based transmission method and system for visible light communication
CN106230503A (en) * 2016-07-29 2016-12-14 邬东强 Data transmission device and the method and system of transmission data
CN106850061A (en) * 2017-01-13 2017-06-13 邦彦技术股份有限公司 Visible light communication system and synchronous detection method thereof
CN106921434A (en) * 2017-04-05 2017-07-04 北京大学 A kind of location information transmitting of novel visible indoor locating system and detection method
CN107005986A (en) * 2015-07-27 2017-08-01 华为技术有限公司 The transmission method and equipment of packet
CN107147444A (en) * 2017-04-18 2017-09-08 东莞信大融合创新研究院 A kind of data transmission method based on visible ray, device and system
CN107222260A (en) * 2017-06-23 2017-09-29 上海大学 It is a kind of that extended code method is encoded based on the visible light communication for becoming data field length
CN107241139A (en) * 2017-05-02 2017-10-10 中国人民解放军信息工程大学 Intelligent worn device and its communication means
CN108055079A (en) * 2017-11-17 2018-05-18 北京智慧光达通信科技有限公司 A kind of visible light communication barcode scanning device, system
CN108400817A (en) * 2018-03-19 2018-08-14 西安电子科技大学 A kind of visible light communication method for transmitting Manchester's code based on serial ports
CN109120342A (en) * 2018-08-13 2019-01-01 南开大学 One of point-to-point visible light communication data frame structure is realized based on FPGA
CN110113100A (en) * 2019-04-10 2019-08-09 南昌大学 A kind of visible light communication device and method for Ethernet data transmission
CN113728562A (en) * 2019-04-25 2021-11-30 索尤若驱动有限及两合公司 Method for transmitting data between a first module and a second module and installation comprising a mobile device for implementing said method
CN114978310A (en) * 2021-02-22 2022-08-30 广州视源电子科技股份有限公司 Method and device for communication by using spectrum, processor and electronic equipment
CN115173941A (en) * 2022-09-06 2022-10-11 中国科学院西安光学精密机械研究所 Method, system, medium, and apparatus for processing electrical digital data in space optical communication

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5475680A (en) * 1989-09-15 1995-12-12 Gpt Limited Asynchronous time division multiplex switching system
US7027738B2 (en) * 2000-04-06 2006-04-11 Sony Corporation Receiving apparatus, transmitting apparatus, and communication system
CN101561110A (en) * 2009-05-13 2009-10-21 华南理工大学 LED lamp system based on primary function mode and system for generating light effect data
CN102224691A (en) * 2008-11-25 2011-10-19 三星电子株式会社 Visible ray communication system, transmission apparatus, and signal transmission method
CN102802088A (en) * 2012-08-29 2012-11-28 上海天跃科技股份有限公司 Data transmission method based on real-time transmission protocol
CN102819006A (en) * 2012-08-08 2012-12-12 中国人民解放军信息工程大学 Broadband direction finding control method based on frequency domain correlation interferometer
CN202663404U (en) * 2012-04-01 2013-01-09 深圳光启创新技术有限公司 Map navigation transmitting device based on visible light communication
CN102892225A (en) * 2012-09-14 2013-01-23 深圳职业技术学院 Data conversion method and device for flexible light-emitting diode (LED) driver
CN103051981A (en) * 2012-11-16 2013-04-17 北京邮电大学 Adaptive frame size calculation method for multiple hop transmission of video
CN103108216A (en) * 2013-01-09 2013-05-15 国家广播电影电视总局广播科学研究院 Radio and television service data processing method and device
CN103124207A (en) * 2011-03-25 2013-05-29 北京新岸线移动多媒体技术有限公司 Wireless communication system and device
CN103488596A (en) * 2013-09-03 2014-01-01 中国电子科技集团公司第四十一研究所 Data transmission device and data transmission method with self-adapting link
CN203387512U (en) * 2013-08-02 2014-01-08 深圳光启创新技术有限公司 Signal transmission apparatus and system
CN103714531A (en) * 2013-12-05 2014-04-09 南京理工大学 FPGA-based phase correlation method image registration system and method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5475680A (en) * 1989-09-15 1995-12-12 Gpt Limited Asynchronous time division multiplex switching system
US7027738B2 (en) * 2000-04-06 2006-04-11 Sony Corporation Receiving apparatus, transmitting apparatus, and communication system
CN102224691A (en) * 2008-11-25 2011-10-19 三星电子株式会社 Visible ray communication system, transmission apparatus, and signal transmission method
CN101561110A (en) * 2009-05-13 2009-10-21 华南理工大学 LED lamp system based on primary function mode and system for generating light effect data
CN103124207A (en) * 2011-03-25 2013-05-29 北京新岸线移动多媒体技术有限公司 Wireless communication system and device
CN202663404U (en) * 2012-04-01 2013-01-09 深圳光启创新技术有限公司 Map navigation transmitting device based on visible light communication
CN102819006A (en) * 2012-08-08 2012-12-12 中国人民解放军信息工程大学 Broadband direction finding control method based on frequency domain correlation interferometer
CN102802088A (en) * 2012-08-29 2012-11-28 上海天跃科技股份有限公司 Data transmission method based on real-time transmission protocol
CN102892225A (en) * 2012-09-14 2013-01-23 深圳职业技术学院 Data conversion method and device for flexible light-emitting diode (LED) driver
CN103051981A (en) * 2012-11-16 2013-04-17 北京邮电大学 Adaptive frame size calculation method for multiple hop transmission of video
CN103108216A (en) * 2013-01-09 2013-05-15 国家广播电影电视总局广播科学研究院 Radio and television service data processing method and device
CN203387512U (en) * 2013-08-02 2014-01-08 深圳光启创新技术有限公司 Signal transmission apparatus and system
CN103488596A (en) * 2013-09-03 2014-01-01 中国电子科技集团公司第四十一研究所 Data transmission device and data transmission method with self-adapting link
CN103714531A (en) * 2013-12-05 2014-04-09 南京理工大学 FPGA-based phase correlation method image registration system and method

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016115929A1 (en) * 2015-01-20 2016-07-28 深圳市裕富照明有限公司 Led lighting-based transmission method and system for visible light communication
CN107005986A (en) * 2015-07-27 2017-08-01 华为技术有限公司 The transmission method and equipment of packet
CN107005986B (en) * 2015-07-27 2021-05-14 华为技术有限公司 Data packet transmission method and device
US10687249B2 (en) 2015-07-27 2020-06-16 Huawei Technologies Co., Ltd. Data packet transmission method and device
CN106230503A (en) * 2016-07-29 2016-12-14 邬东强 Data transmission device and the method and system of transmission data
CN106230503B (en) * 2016-07-29 2018-08-07 邬东强 The method and system of data transmission device and transmission data
CN106850061B (en) * 2017-01-13 2019-03-26 邦彦技术股份有限公司 Visible light communication system and synchronous detection method thereof
CN106850061A (en) * 2017-01-13 2017-06-13 邦彦技术股份有限公司 Visible light communication system and synchronous detection method thereof
WO2018129756A1 (en) * 2017-01-13 2018-07-19 邦彦技术股份有限公司 Visible light communication system and synchronization detection method therefor
CN106921434A (en) * 2017-04-05 2017-07-04 北京大学 A kind of location information transmitting of novel visible indoor locating system and detection method
CN106921434B (en) * 2017-04-05 2019-05-21 北京大学 A kind of the location information transmitting and detection method of novel visible indoor locating system
CN107147444A (en) * 2017-04-18 2017-09-08 东莞信大融合创新研究院 A kind of data transmission method based on visible ray, device and system
CN107241139A (en) * 2017-05-02 2017-10-10 中国人民解放军信息工程大学 Intelligent worn device and its communication means
CN107222260A (en) * 2017-06-23 2017-09-29 上海大学 It is a kind of that extended code method is encoded based on the visible light communication for becoming data field length
CN108055079A (en) * 2017-11-17 2018-05-18 北京智慧光达通信科技有限公司 A kind of visible light communication barcode scanning device, system
CN108400817A (en) * 2018-03-19 2018-08-14 西安电子科技大学 A kind of visible light communication method for transmitting Manchester's code based on serial ports
CN109120342A (en) * 2018-08-13 2019-01-01 南开大学 One of point-to-point visible light communication data frame structure is realized based on FPGA
CN110113100A (en) * 2019-04-10 2019-08-09 南昌大学 A kind of visible light communication device and method for Ethernet data transmission
CN113728562A (en) * 2019-04-25 2021-11-30 索尤若驱动有限及两合公司 Method for transmitting data between a first module and a second module and installation comprising a mobile device for implementing said method
CN113728562B (en) * 2019-04-25 2024-01-05 索尤若驱动有限及两合公司 Method for data transmission between a first module and a second module and installation with mobile device for implementing said method
CN114978310A (en) * 2021-02-22 2022-08-30 广州视源电子科技股份有限公司 Method and device for communication by using spectrum, processor and electronic equipment
CN114978310B (en) * 2021-02-22 2024-02-20 广州视源电子科技股份有限公司 Method, device, processor and electronic equipment for communication by using spectrum
CN115173941A (en) * 2022-09-06 2022-10-11 中国科学院西安光学精密机械研究所 Method, system, medium, and apparatus for processing electrical digital data in space optical communication

Similar Documents

Publication Publication Date Title
CN104079351A (en) Method and device for transmitting visible light communication data
CN107924376B (en) Low power mode signals bridge for optical medium
CN101184195B (en) Audio/video living broadcast system and method
CN102934514B (en) Wireless device and radio base station apparatus
US10007479B2 (en) User terminal, method for playing audio data via bluetooth, and digital signal processor
ATE426278T1 (en) PROCESSING TRANSPORT FORMAT INFORMATION TO PREVENT MAC HEADEND REDUNDANCY
CN104272858A (en) High capacity wireless communications systems and methods
CN102832968B (en) Method for performing communication between mobile phone and equipment by using audio interface
JP2007243898A5 (en)
CN109845260A (en) Decoding method and device
HK1134381A1 (en) Method and unit for efficient reporting of scheduling information in a wireless telecommunications system
ATE345613T1 (en) FRAME-BASED TRANSMISSION OF USER DATA WITH VARIABLE DATA RATE
WO2017012453A1 (en) Method and device for data transmission
WO2008038154A3 (en) System, method, and device for providing content on a wireless communication device
CN103200263A (en) Intelligent terminal, Bluetooth audio playing device and interactive method and interactive system for intelligent terminal and Bluetooth audio playing device
CN101584247A (en) Base station, wireless control device, and wireless device
WO2009059946A3 (en) Data transmission in a mobile communication system apparatus, system and method
CN107005398B (en) Sending device, communication device and signal transmission system
CN105306895A (en) Wireless audio and video transmitting device for trains
WO2006004837A3 (en) Method of video data transmitting
CN106412384A (en) Video processing system
JP2016152597A (en) Wireless communication system, wireless machine, wireless communication method, generation method of packet and data reproduction method from packet
TW200515731A (en) Method for video data transmission in a wireless network
CN100369489C (en) Embedded wireless coder of dynamic access code tactics
CN105007103A (en) Bluetooth communication method mixedly coding control signal and voice signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141001