[go: up one dir, main page]

CN108736973B - Frequency modulation coding and decoding and code spreading method for visible light communication - Google Patents

Frequency modulation coding and decoding and code spreading method for visible light communication Download PDF

Info

Publication number
CN108736973B
CN108736973B CN201810584964.3A CN201810584964A CN108736973B CN 108736973 B CN108736973 B CN 108736973B CN 201810584964 A CN201810584964 A CN 201810584964A CN 108736973 B CN108736973 B CN 108736973B
Authority
CN
China
Prior art keywords
communication
data
decoding
coding
code
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
Application number
CN201810584964.3A
Other languages
Chinese (zh)
Other versions
CN108736973A (en
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.)
University of Shanghai for Science and Technology
Original Assignee
University of Shanghai for Science and Technology
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 University of Shanghai for Science and Technology filed Critical University of Shanghai for Science and Technology
Priority to CN201810584964.3A priority Critical patent/CN108736973B/en
Publication of CN108736973A publication Critical patent/CN108736973A/en
Application granted granted Critical
Publication of CN108736973B publication Critical patent/CN108736973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation
    • H04B10/524Pulse modulation

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

本发明公开了一种可见光通信的调频编码解码及扩码方法。本方法包括以下操作步骤:首先将原始数据位依据调频法编码并添加单通信头,通过LED编码驱动器驱动LED发光循环发送该编码;然后通过图像接收模块拍摄LED灯,得到编码条纹图,经图像处理模块依据图像中的单通信头进行解码,获得原始数据位;在单通信头编码产出的编码数量不够时,可用不同通信头提供次序信息,通过多组编码的组合实现扩码。本发明所述的可见光通信的调频编码解码及扩码方法,方法简单易实现,具有较高的光通量调制率,使得LED照明性能得到保障;同时可通过不同通信头编码的组合实现长数据的分段通信,显著增加编码数量。

Figure 201810584964

The invention discloses a frequency modulation coding, decoding and spreading method for visible light communication. The method includes the following operation steps: first, encode the original data bits according to the frequency modulation method and add a single communication head, and drive the LED light-emitting cycle to send the code through an LED encoder driver; The processing module decodes according to the single communication header in the image to obtain the original data bits; when the number of codes produced by the encoding of the single communication header is not enough, different communication headers can be used to provide sequence information, and the code spread is realized through the combination of multiple sets of codes. The frequency modulation coding, decoding and spreading method for visible light communication of the present invention is simple and easy to implement, has high luminous flux modulation rate, and ensures the LED lighting performance; segment communication, significantly increasing the number of encodings.

Figure 201810584964

Description

Frequency modulation coding and decoding and code spreading method for visible light communication
Technical Field
The invention relates to the field of optical communication, in particular to a frequency modulation coding and decoding and code spreading method for visible light communication.
Background
With the birth and application of new concepts of urban development such as energy conservation and environmental protection, the LED lamp gradually becomes an essential lighting device for factories, shops and homes by virtue of higher energy efficiency and longer service life. In addition to the lighting function, LEDs have the capability of switching at high speed. Compared with the light sources of the existing lighting equipment such as fluorescent lamps, incandescent bulbs and the like, the LED visible light has the characteristic of easy modulation, so that the LED visible light can provide convenient data service for indoor users. Compared with a Radio Frequency (RF) based technology, such as a WIFI communication and Radio Frequency Identification (RFID) technology, VLC bandwidth resources are rich, power consumption is low, privacy is high, electromagnetic interference is avoided, and light is limited in a certain area due to the fact that the VLC bandwidth resources are blocked when the VLC bandwidth resources meet a wall in the transmission process, so that communication privacy is protected. The transmission distance is sacrificed, but the method has more outstanding value in real application such as families, shopping malls, parking lots and the like.
The smart phone is gradually popularized at present, the smart phone becomes a necessary living tool for people, and the function of the camera of the smart phone lays a material foundation for receiving light source signals. The mobile phone camera on the market at present basically uses a CMOS image sensor, the CMOS image sensor controls exposure by an electronic shutter, different electronic shutter modes including a rolling shutter mode and a global shutter exposure mode can be generated by different working modes and time sequences of the same structure array, and the current mobile phone camera basically adopts the rolling shutter exposure mode. In this manner, the CMOS image sensor array is exposed line by line and then read out line by line. Because the rolling frequency is faster than the LED flickering frequency, the exposed image is a fringe pattern with alternate light and shade. The scrolling frequency is determined by the camera itself, and the frequency is not changed, so that the desired code stripes can be displayed on the image by changing the flashing frequency of the LEDs.
Common coding methods are NRZ coding, manchester coding, and PPM coding. In the coding method based on data stream, a unit bright stripe represents a code 1, a unit dark stripe represents a code 0, if too much 0 occurs, the lamp may flicker, if the number difference between 0 and 1 is too large, the stability of illumination may be affected, and even the normal operation of the LED lamp circuit may be disturbed. And Manchester coding utilizes the jump direction of a signal to determine data, 2-bit coding is used for representing 1-bit data, the coding efficiency is only 50%, but the Manchester coding also ensures that the number of 1 and 0 is equal, and the Manchester coding can ensure that the 1 has 50% of the ratio no matter how the coding to be transmitted changes, thereby realizing balanced transmission. The PPM coding adopts carrier waves which are intermittent periodic light pulses, the positions of the pulses are controlled by coding through binary information of a source, and therefore the coding efficiency is only 50%.
Disclosure of Invention
The invention aims to provide a frequency modulation coding decoding and code spreading method for visible light communication aiming at the defects in the prior art, and provides a communication method of lighting equipment and mobile equipment with an image acquisition module on the basis of giving consideration to lighting and coding efficiency.
In order to achieve the purpose, the invention adopts the following technical scheme:
a frequency modulation coding decoding and code expanding method for visible light communication comprises the following steps: step one, encoding original data bits according to a frequency modulation method, adding a single communication head, and driving an LED to emit light to circularly transmit the code through an LED encoding driver. And step two, the image receiving module shoots the LED lamp to obtain a light and shade coding stripe image. And step three, the image processing module decodes according to the single communication header in the image to obtain the original data bit. Optionally, after the third step, the method further comprises: and fourthly, when the coding capacity generated by single-communication-head coding is too small and does not meet the requirement, long data meeting the capacity requirement can be constructed, the long data is divided into a plurality of sections of short data, each section of short data is subjected to frequency modulation coding and is added with different communication heads carrying sequence information, each section of short data is obtained after decoding, the short data is combined into original long data according to the sequence of the communication heads, and data spreading is achieved.
In the single communication head data coding method in the first step, the closing time of the LED lamp is fixed every time, namely the width of a dark stripe of a received image is not changed; the width of the bright stripes is changed by changing the turn-on time of the LED lamp, and the frequency change is represented. Using binary coding
Figure BDA0001689265290000021
Binary data representing "0", and the shortest can be "01"; encoding
Figure BDA0001689265290000022
The data "1" is represented, b > a, the shortest can be "011", the number of 1 in the code can be increased or decreased according to different scenes, but the stripe images of the data "0" and the data "1" are ensured to be distinguished.
In the step one, the single communication head is coded into
Figure BDA0001689265290000023
m>b>a, the shortest communication head may be set to "0111". Further, according to the decoding method in the third step, the widest bright stripe, namely the communication head characteristic area is found, and the unit bright stripe reference width can be obtained
Figure BDA0001689265290000024
Traversing from the communication head to the right, sequentially comparing with a reference width according to the absolute width of each bright stripe, obtaining a width scalar after normalization treatment, namely the number of 1 represented by each bright stripe, judging a data bit corresponding to the bright stripe representation according to the width scalar, traversing from the communication head to the left sequentially to obtain a left data bit, and combining the two groups of data to obtain original data;
optionally, when the coding capacity of the single-header coding is too small to meet the requirement, different headers can be used to provide sequence information to realize the combined spreading code of the multi-segment coding, for example, the header is
Figure BDA0001689265290000025
Time is indicative of a high-bit data head,
Figure BDA0001689265290000026
time represents a low-bit data head, and m is not equal to n; after each segment of code is decoded respectively, splicing two groups of data according to the sequence information of the communication head; when two continuous frame codes sent by the LED are codes of different sections, a bit of 0 code needs to be added between the two frame codes for distinguishing, and a dark stripe corresponding to a 00 code appears at the boundary of the two frame codes after the 0 code is added and is distinguished from a 0 code dark stripe in a data area. Further, when decoding is carried out according to the multi-communication head, whether the left end of the maximum dark stripe is a 00 coding dark stripe or not is judged, and if yes, the decoding is only allowed to be traversed rightwards; if not, a single header decoding technique, i.e., left-to-right bi-directional traversal decoding, may be applied. When more original data bits are available, the original data bits can be split into k segments according to the method, and k segments are set to be similar to the original data bits
Figure BDA0001689265290000027
Figure BDA0001689265290000028
The communication head of (1) represents the order of the communication head, provides the order information of the segmented data, and realizes the segmented encoding and decoding of the long dataCode and combining.
Compared with the prior art, the invention has the following obvious prominent substantive characteristics and remarkable technical progress: the NRZ encoding has a wide variation range of the luminous flux modulation rate with the change of the encoding, and complex encoding screening is required to ensure the luminous flux modulation rate, while the frequency modulation method uses fixed encoding instead of data "0" and "1" due to its own encoding characteristics, and the part that needs to be changed according to the situation is only the communication header part, and does not need to perform complex encoding screening to ensure the luminous flux modulation rate. The method has the advantages of uniformity in the decoding process, no need of table lookup for decoding, simplification of the table lookup step on the basis of meeting the requirement of illumination, and good consistency and simplicity.
Drawings
FIG. 1 is a communication schematic diagram of a visible light camera multi-communication head
FIG. 2 shows a CMOS rolling exposure mode
FIG. 3 is a stripe pattern of a camera shot
FIG. 4 is a schematic diagram of example 1 encoding frequency
FIG. 5 is a graph of data "231" encoded stripes
FIG. 6 is a schematic diagram of example 2 encoding frequencies
FIG. 7 shows an example of a spreading method 3 for low-order data regions
FIG. 8 shows an example of a spreading method 3 for high-order data regions
Detailed Description
The embodiments of the invention, however, are not limited to the details of implementation and the features and advantages thereof as described below with reference to the preferred embodiments and the accompanying drawings.
The first embodiment is as follows: with reference to figures 1-5 of the drawings,
the frequency modulation coding decoding and code expanding method for visible light communication comprises the following operation steps: step one, encoding original data bits according to a frequency modulation method, adding a single communication head, and driving an LED to emit light to circularly transmit the code through an LED encoding driver. And step two, the image receiving module shoots the LED lamp to obtain a light and shade coding stripe image. And step three, the image processing module decodes according to the single communication header in the image to obtain the data bit. Step four, as shown in fig. 1, when the coding capacity generated by single header coding is too small and does not meet the requirement, long data required to meet the capacity requirement can be constructed, the long data is split into multiple sections of short data, each section of short data is subjected to frequency modulation coding and added with different communication headers carrying sequence information, each section of short data is obtained after decoding, and the short data is combined into original long data according to the sequence of the communication headers, so that data spreading is realized.
The following is a detailed description:
step one, the mobile phone camera in the market at present basically uses a CMOS image sensor, the CMOS image sensor controls exposure by an electronic shutter, and at present, a rolling shutter exposure mode is basically adopted. In this manner, the CMOS image sensor array is exposed row by row and then read out row by row as shown in fig. 2. Because the rolling frequency is faster than the LED flickering frequency, the exposed image is a fringe pattern with alternate light and shade. The scrolling frequency is determined by the camera itself, and the frequency is not changed, so that the desired code stripes can be displayed on the image by changing the flashing frequency of the LEDs. Therefore, the data desired to be transmitted is encoded in binary according to
Figure BDA0001689265290000031
Representing binary data of "0", the shortest being "01", encoding
Figure BDA0001689265290000032
The data "1" (b > a) can be "011" at the shortest time, but it is guaranteed that the data "0" can be distinguished from the data "1". In order to successfully realize decoding, a communication header must be provided to provide decoding start position information, and the present invention uses encoding into
Figure BDA0001689265290000033
Provides decoding start position information, but is required to be associated with encoding of data "1
Figure BDA0001689265290000034
The shortest communication head can be set to be '0111' by obviously distinguishing, and the LED coding driver drives the LED to emit light circularly to send the codeThe first step of the method is completed.
And step two, the mobile phone camera shoots the LED, and a fringe pattern with alternate light and shade is presented on the picture, as shown in figure 3. Then, image processing is performed on the picture, and decoding is performed.
Step three, after the image as shown in fig. 3 is obtained, the widest bright stripe can be found out obviously (to ensure the effectiveness of the bright stripe, that is, dark stripes must be arranged on both sides of the bright stripe to ensure the integrity of the data), so that it can be concluded that the region is the communication header portion, and according to the encoding of the communication header at first
Figure BDA0001689265290000035
The unit bright stripe reference width can be obtained
Figure BDA0001689265290000036
Traversing from the communication head to the right, sequentially finding effective bright stripes, sequentially comparing the effective bright stripes with a reference width according to the absolute width of each bright stripe, normalizing to obtain a width scalar (namely the number of 1 represented by each bright stripe), and judging the data value represented by the corresponding bright stripe according to the width scalar; traversing from the communication head to the left in sequence, finding out effective bright stripes on the left side to obtain data bits on the left side, combining the two groups of data, and removing overlapped parts to obtain original data;
optionally, step four, because the coding capacity of a single communication header is limited, in practical application, long data meeting the capacity requirement can be constructed, the long data is split into k segments, and k segments similar to the k segments are set
Figure BDA0001689265290000037
And each section of split short data is subjected to frequency modulation coding, different communication heads carrying sequence information are added respectively, and an LED coding driver drives an LED to emit light to circularly send the group of codes. When decoding, the position of the information is judged according to the number of 1 in the communication head code in each image, and the original data can be restored by combining a plurality of images in sequence after decoding.
In an environment where sufficient light is required, "011" is used to represent data "0",the scalar width is 2, data "1" is represented by "0111", the scalar width is 3, as shown in fig. 4, the "01111" is used as a single communication head, the variation range of the luminous flux modulation rate is 66.7% -75%, and the illumination requirement is met. On the basis, if a decimal number 231 is desired to be sent to the mobile phone end through the LED lamp, the binary data is {011100111}, a single communication header is added to the binary data and then the binary data is encoded into {01111,011,0111,0111,0111,011,011,0111,0111,0111}, and an image obtained by shooting the LED by the mobile phone is shown in fig. 5: effective stripe wmaxbThe unit bright stripe reference obtained based on the maximum bright stripe, i.e. the communication head feature region, is:
Figure BDA0001689265290000041
traversing from the communication head to the right, and obtaining the effective bright stripe as w1b、w2b、w3b,w4bFinding them and wunitbThe width scalars of (a) are 2,3,3,3, respectively. Can obtain the product
Figure BDA0001689265290000042
Representing data of {0111 }. The communication head traverses leftwards to obtain the effective bright stripes w9b~w4bFind out them and
Figure BDA0001689265290000045
the width scalars are {3,3,3,2,2,3}, respectively, and can be obtained
Figure BDA0001689265290000043
The representative data is {100111}, and the two are expressed as w1b~w9bCombining, splicing and eliminating overlapped parts w4bThen, the complete binary code can be obtained:
Figure BDA0001689265290000044
the binary data is {011100111}, and the decimal value is 231, so that the communication between the LED and the mobile phone is realized.
Example two: the present embodiment is substantially the same as the first embodiment, and is characterized in that: with reference to figure 6 of the drawings,
if the requirement of the working environment on illumination is not high, a '01' is used to represent a data bit '0', the width scalar is 1, a '011' is used to represent a data bit '1', and the width scalar is 2, as shown in fig. 6. When the shortest communication head '0111' is used, the light flux modulation rate can be changed within the range of 50% -66.7%, and the illumination effect can also be achieved. In this encoding case, since the number of stripes that can be photographed by a single image is fixed, using fewer stripes to represent one bit of data can lead to higher encoding capacity. The subsequent codec process is the same as in example 1. Therefore, the number of 1's in the code can be increased or decreased according to the actual use situation in exchange for high illumination or high code amount.
Example three: with reference to figures 7-8 of the drawings,
when the single-pattern coding amount does not meet the requirement, different communication heads can be used for representing different segments of data, for example, the communication head "01111" represents high-order data, and "011111" represents low-order data. However, if two sets of codes are spliced directly, the left side and the right side of the communication head may not be the same segment of coded data, and bidirectional traversal decoding cannot be performed. Therefore, when two continuous frames of codes sent by the LED are codes of different sections, a 0-bit code needs to be added between the two frames of codes for distinguishing, dark stripes corresponding to 00 codes appear at the code boundaries of the different sections after the 0 codes are added, the dark stripes are distinguished from the 0-code dark stripes in the data area, and the code patterns are shown in fig. 7 and 8. And during decoding, judging whether the left end of the effective maximum bright stripe is a 00 coding dark stripe or not, if so, only allowing to perform traversal decoding rightward, and if not, applying a single communication header decoding technology, namely performing bidirectional traversal decoding leftward and rightward. When the code is spread, it is impossible to know in advance whether the communication header is "01111" or "011111". The method adopted by the invention is that firstly, the narrowest bright stripe and the narrowest dark stripe of the interested area are compared, namely the width ratio of the unit dark stripe, the shortest bright stripe represents 11 or 111 according to the ratio, and the width w of the unit bright stripe is further obtainedunitb. According to wmaxbAnd wunitbThe ratio may determine the number of communication heads containing 1's.
In order to verify the feasibility of the multi-communication-head decoding technology and the code expanding method, the modulated lamp continuously and circularly transmits two sections of codes, and each section of code is continuously transmitted twiceEvery time one segment of code is transmitted for 2 times, a 0 bit code is added to distinguish another segment of code which is transmitted next. FIG. 7 shows a code segment with a communication header of "011111" and a communication data area of "101110110" and only from wmaxb2In the case where the communication head makes a one-way traversal to the right to acquire the code, fig. 8 shows a code segment with a communication head of "01111" and a communication data region of "111100111" and may be traversed from wmaxb1And the communication head is traversed in a left-right direction to acquire the condition of the code. In the spread code method, encoded data in which a communication header is specified to be "01111" is located at a high order. As shown in fig. 7, wmaxb2The unit of bright stripe is 5 times, the width of the dark stripe at the left end is 2 times of the unit of dark stripe, so the decoding traversal can only be performed to the right, and the corresponding binary data can be obtained as {101110110 }. As shown in fig. 8, wmaxb1The unit of bright stripe is 4 times, the width of the dark stripe at the left end is 1 time of the unit of dark stripe, therefore, the decoding traversal can be performed leftwards and rightwards, and the corresponding binary data is obtained as {111100111} by using the single-header decoding technology. Combining the two sets of codes yields binary long data as {111100111101110110 }.
Compared with the prior art, the coding and decoding processes of the invention are simpler, the coding and decoding are consistent, and the stripe width is determined and distinguished obviously, so that the error is not easy to occur. The single communication coding is fast and convenient, and the communication speed is high. When higher coding quantity is needed, better coding capacity can be obtained through spreading codes, and the practical application of the future related fields can be completely met.

Claims (6)

1.一种可见光通信的调频编码解码及扩码方法,所述光通信系统至少包括LED编码驱动器、LED灯、图像接收模块、图像处理模块,其特征在于包括以下操作步骤:1. A frequency modulation coding and decoding and spreading method for visible light communication, the optical communication system comprises at least an LED coding driver, an LED lamp, an image receiving module, an image processing module, and is characterized in that comprising the following operation steps: 步骤一、将原始数据位依据调频法编码并添加单通信头,通过LED编码驱动器驱动LED发光循环发送该编码;Step 1: Encode the original data bits according to the frequency modulation method and add a single communication head, and drive the LED to emit the code through the LED encoding driver; 步骤二、图像接收模块拍摄LED灯,得到明暗编码条纹图像;Step 2: The image receiving module shoots the LED light to obtain a light and dark encoded stripe image; 步骤三、图像处理模块依据图像中的单通信头进行解码,获得原始数据位;Step 3, the image processing module decodes according to the single communication header in the image to obtain original data bits; 在所述步骤一中的单通信头的数据编码方法,固定LED灯具每次关闭时间,即接收图像的暗条纹宽度不变;通过改变LED灯具开通时间改变亮条纹宽度,代表频率变化;用二进制编码
Figure FDA0002848716540000011
表示“0”二进制数据,最短为“01”;编码
Figure FDA0002848716540000012
表示“1”数据,b>a,最短为“011”;编码中1的数目据场景不同增加或减少,但需保证数据“0”与数据“1”的条纹图像能被区分;
In the data encoding method of the single communication head in the step 1, the turn-off time of the LED lamps is fixed, that is, the width of the dark stripes of the received image remains unchanged; the width of the bright stripes is changed by changing the turn-on time of the LED lamps, which represents the frequency change; binary coding
Figure FDA0002848716540000011
Represents "0" binary data, the shortest is "01"; encoding
Figure FDA0002848716540000012
Indicates "1" data, b>a, and the shortest is "011"; the number of 1s in the encoding increases or decreases depending on the scene, but it is necessary to ensure that the stripe images of data "0" and data "1" can be distinguished;
在所述步骤三的解码的方法,找到最宽亮条纹,即通信头特征区域,得单位亮条纹基准宽度
Figure FDA0002848716540000013
m为通信头中1的个数,从通信头向右遍历,依据各亮条纹绝对宽度,依次与基准宽度做比,归一化处理后得到宽度标量,即各亮条纹代表的1的个数,根据宽度标量判断对应亮条纹代表的数据位,再依次从通信头向左遍历,得到左侧数据位,将两组数据组合,即得到原始数据。
In the decoding method of step 3, find the widest bright stripe, that is, the characteristic area of the communication head, and obtain the reference width of the unit bright stripe
Figure FDA0002848716540000013
m is the number of 1s in the communication head, traversing from the communication head to the right, according to the absolute width of each bright stripe, it is compared with the reference width in turn, and the width scalar is obtained after normalization, that is, the number of 1s represented by each bright stripe , according to the width scalar to determine the data bits represented by the corresponding bright stripes, and then traverse from the communication head to the left in turn to obtain the left data bits, and combine the two groups of data to obtain the original data.
2.根据权利要求1所述的可见光通信的调频编码解码及扩码方法,其特征在于,在所述步骤三之后还包括:步骤四、在单通信头编码产出的编码容量太少不满足需求时,构建满足容量要求的长数据,将该长数据拆分成多段短数据,每段短数据进行调频法编码并加携带次序信息的不同通信头,解码后得到每段短数据并按照通讯头次序组合成原始长数据,实现数据扩码。2. the FM coding and decoding and spreading method of visible light communication according to claim 1, is characterized in that, also comprises after described step 3: step 4, the coding capacity of single communication head coding output is too few not satisfied When needed, construct long data that meets the capacity requirements, split the long data into multiple short data segments, perform frequency modulation encoding for each segment of short data and add different communication headers carrying order information, and decode each segment to obtain short data and follow the communication. The header sequence is combined into the original long data to realize data spreading. 3.根据权利要求1所述的可见光通信的调频编码解码及扩码方法,其特征在于,所述步骤一中单通信头编码为
Figure FDA0002848716540000014
m>b>a,最短通信头设置为“0111”。
3. The FM coding, decoding and spreading method for visible light communication according to claim 1, wherein in the step 1, the single communication header is coded as
Figure FDA0002848716540000014
m>b>a, the shortest communication header is set to "0111".
4.根据权利要求2所述的可见光通信的调频编码解码及扩码方法,其特征在于,在单通信头编码的编码容量太少不能满足需求时,用不同的通信头提供次序信息实现多段编码的组合扩码:通信头为
Figure FDA0002848716540000015
时表示高位数据头,
Figure FDA0002848716540000016
时表示低位数据头,m≠n;每段编码分别解码后,即根据通信头的次序信息进行两组数据的拼接;当LED发送的连续两帧编码是不同段的编码时,这两帧编码之间需添加一位0编码加以区分,添加0编码后两帧编码分界处出现对应00编码的暗条纹,与数据区0编码暗条纹加以区分。
4. the frequency modulation coding decoding and the spreading code method of visible light communication according to claim 2, it is characterized in that, when the coding capacity of single communication head coding is too few to meet demand, provides sequence information with different communication heads and realizes multi-segment coding The combined spreading code of : the communication header is
Figure FDA0002848716540000015
indicates the high-order data header,
Figure FDA0002848716540000016
When it means the low-order data header, m≠n; after each segment of the code is decoded separately, the two sets of data are spliced according to the order information of the communication header; when the two consecutive frames of codes sent by the LED are codes of different segments, the two frame codes It is necessary to add a bit of 0 code to distinguish between them. After adding 0 code, a dark stripe corresponding to the 00 code appears at the boundary of the two frame codes, which is distinguished from the 0 code dark stripe in the data area.
5.根据权利要求2所述的可见光通信的调频编码解码及扩码方法,其特征在于,依据多通信头解码时,判断最大暗条纹的左端是否为00编码暗条纹,如果是,则只允许向右遍历解码;如果不是,则应用单通信头解码技术,即向左向右双向遍历解码。5. the FM coding and decoding of visible light communication according to claim 2 and the spread code method, it is characterized in that, when decoding according to multiple communication heads, judge whether the left end of the maximum dark stripe is a 00 encoded dark stripe, if so, only allow Traverse decoding to the right; if not, apply the single-communication header decoding technique, that is, bidirectional traversal decoding from left to right. 6.根据权利要求2所述的可见光通信的调频编码解码及扩码方法,其特征在于,当原始数据位更多时,将其拆分成k段,设定k个
Figure FDA0002848716540000021
通信头,通过1的个数表示通信头次序,提供分段数据的次序信息,实现长数据的分段编码、解码及组合。
6. The FM coding, decoding and spreading method for visible light communication according to claim 2, wherein when there are more original data bits, it is split into k segments, and k is set
Figure FDA0002848716540000021
The communication header indicates the sequence of the communication header by the number of 1, provides the sequence information of the segmented data, and realizes the segmental encoding, decoding and combination of the long data.
CN201810584964.3A 2018-06-08 2018-06-08 Frequency modulation coding and decoding and code spreading method for visible light communication Active CN108736973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810584964.3A CN108736973B (en) 2018-06-08 2018-06-08 Frequency modulation coding and decoding and code spreading method for visible light communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810584964.3A CN108736973B (en) 2018-06-08 2018-06-08 Frequency modulation coding and decoding and code spreading method for visible light communication

Publications (2)

Publication Number Publication Date
CN108736973A CN108736973A (en) 2018-11-02
CN108736973B true CN108736973B (en) 2021-10-12

Family

ID=63932534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810584964.3A Active CN108736973B (en) 2018-06-08 2018-06-08 Frequency modulation coding and decoding and code spreading method for visible light communication

Country Status (1)

Country Link
CN (1) CN108736973B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110212987B (en) * 2019-06-11 2020-08-28 南京航空航天大学 Radio frequency linear frequency modulation signal generation method and device based on frequency spectrum splicing
CN112164072B (en) * 2020-09-18 2024-11-26 深圳市南科信息科技有限公司 Visible light imaging communication decoding method, device, equipment and medium
CN112511226B (en) * 2020-11-12 2022-01-28 暨南大学 Coding method for lighting, positioning and communication in visible light communication technology
CN112887031B (en) * 2021-01-11 2021-12-10 吉林大学 Implementation method of inter-vehicle communication based on OCC double exposure duration camera receiving mode and distance perception
CN114419063A (en) * 2022-01-05 2022-04-29 东北大学 An image decoding optimization method for indoor visible light positioning system based on soft threshold
CN114844564A (en) * 2022-03-17 2022-08-02 南昌大学 Modulation method of multi-primary-color LED visible light communication light source
CN114677956B (en) * 2022-03-28 2023-09-29 暨南大学 A long-distance real-time display camera communication system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932986A (en) * 2005-09-13 2007-03-21 株式会社东芝 Information storage medium, recording method, reproducing method, and reproducing apparatus
CN101867412A (en) * 2009-04-15 2010-10-20 中国科学院半导体研究所 A system and method for communication using semiconductor lighting
CN102415020A (en) * 2009-04-28 2012-04-11 西门子公司 Data optical transmission method and device
CN102986163A (en) * 2010-03-05 2013-03-20 交互数字专利控股公司 Method and apparatus for providing security to equipment
KR20160144687A (en) * 2015-06-09 2016-12-19 한국전자통신연구원 Apparatus for visible light communication using electrically switchable glass and method using same
CN106877929A (en) * 2017-03-14 2017-06-20 大连海事大学 A mobile terminal camera visible light communication method and system compatible with multiple models
CN107612617A (en) * 2017-09-13 2018-01-19 华南理工大学 A kind of visible light communication method and device based on universal CMOS camera
CN107622295A (en) * 2017-09-20 2018-01-23 华南理工大学 A method and system for encoding and decoding EAN‑13 barcodes based on LED panel lights

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10303945B2 (en) * 2012-12-27 2019-05-28 Panasonic Intellectual Property Corporation Of America Display method and display apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932986A (en) * 2005-09-13 2007-03-21 株式会社东芝 Information storage medium, recording method, reproducing method, and reproducing apparatus
CN101867412A (en) * 2009-04-15 2010-10-20 中国科学院半导体研究所 A system and method for communication using semiconductor lighting
CN102415020A (en) * 2009-04-28 2012-04-11 西门子公司 Data optical transmission method and device
CN102986163A (en) * 2010-03-05 2013-03-20 交互数字专利控股公司 Method and apparatus for providing security to equipment
KR20160144687A (en) * 2015-06-09 2016-12-19 한국전자통신연구원 Apparatus for visible light communication using electrically switchable glass and method using same
CN106877929A (en) * 2017-03-14 2017-06-20 大连海事大学 A mobile terminal camera visible light communication method and system compatible with multiple models
CN107612617A (en) * 2017-09-13 2018-01-19 华南理工大学 A kind of visible light communication method and device based on universal CMOS camera
CN107622295A (en) * 2017-09-20 2018-01-23 华南理工大学 A method and system for encoding and decoding EAN‑13 barcodes based on LED panel lights

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Inverse Source Coding for Dimming in Visible Light Communications Using NRZ-OOK on Reliable Links;Jae Kyun Kwon;《IEEE Photonics Technology Letters》;20100803;全文 *
基于成像光通信的时间-空间扩频混合光码分多址编码方案;潘卫清;《光学学报》;20080804;全文 *

Also Published As

Publication number Publication date
CN108736973A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108736973B (en) Frequency modulation coding and decoding and code spreading method for visible light communication
US10382129B2 (en) Transmission of identifiers using visible light communication
CN105515657B (en) A kind of visible light camera communication system using LED lamp MIMO array framework
CN113613370B (en) Atmosphere lamp control method and device, computer readable storage medium and terminal
Yang et al. Reflexcode: Coding with superposed reflection light for led-camera communication
JP6125535B2 (en) Visible light communication
CN106452602B (en) A kind of modulator approach of visible light communication
CN107612617A (en) A kind of visible light communication method and device based on universal CMOS camera
JP2017511034A (en) Signaling using idle period of coded light
Ferrandiz-Lahuerta et al. A reliable asynchronous protocol for VLC communications based on the rolling shutter effect
Siddique et al. Joint rate-brightness control using variable rate MPPM for LED based visible light communication systems
CN106932770A (en) A kind of indoor locating system and method based on LED
CN106130632B (en) Data transmission method and electronic equipment
CN112511226B (en) Coding method for lighting, positioning and communication in visible light communication technology
CN111490823B (en) Visible light imaging communication decoding method based on convolutional neural network
CN107222260A (en) It is a kind of that extended code method is encoded based on the visible light communication for becoming data field length
CN107370538A (en) Radio data transmission method, camera and system
CN108120435A (en) A kind of plant area's alignment system and localization method based on visible ray
CN113037380B (en) Visible light imaging communication method and system based on multi-channel PAM
CN110531318A (en) A method of luminescence unit ID is extended for visual light imaging indoor positioning
CN109586791B (en) Method and device for visible light communication
Ryu et al. RGB MIMO optical camera communication with Histogram equalization
CN108023640B (en) Visible light communication system based on flat lamp and mobile terminal camera
Wu et al. OnionCode: Enabling multi-priority coding in LED-based optical camera communications
KR102076393B1 (en) Method and apparatus for lighting control using optical camera communication

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