The present invention relates to the visible light communication technology, and particularly, to a visible light communication multiple input multiple output (MIMO) system and a method for realizing data transceiving therefor.
The visible light communication is an emerging short-distance high-speed wireless optical communication technology developed based on the light emitting diode (LED) technology. The most important feature of the visible light communication is that it meets the demand for normal lighting while supporting the communication and it is green and environmental friendly and has no electromagnetic interference. With the development of the visible light communication, a visible light communication MIMO system has also become one of the hotspot technologies.
The requirement on the basic structure of the visible light communication MIMO system is: designing a transmitter into an LED array structure, and requiring that the luminous intensity meets the indoor lighting requirements (500l×); and designing a receiver into a two-dimensional array multi-point detection structure. The visible light communication MIMO system converts the disadvantage of “multipath effect” caused by the multiple reflections of the light ray in the space into an advantage, which exponentially improves the system throughput and the data transmission rate with the spatial multiplexing technology, and also effectively reduces the influence of inter-symbol interference with the array sending technology. Thus it can be seen that, the MIMO system is extremely applicable to a diffused channel of the visible light communication, and it reduces the sensibility of a mobile terminal to the jitter of the optical channel, which can enhance the signal received ability and improve the channel utilization rate in the cases of the location change of the terminal, the channel sudden change and the jitter and so on.
The application of the MIMO system mainly has three hotspot technologies in the visible light communication: one is the spatial diversity, that is, at both a sending end and a receiving end, the data are transmitted in a form of array to reduce the bit error caused by the delay and improve the channel reliability; another one is the spatial multiplexing, that is, at the sending end, the data are transmitted by means of layered space-time multiplexing (BLAST), which can exponentially improve the system throughput and the data transmission rate; and still another one is the beamforming, that is, it is to make the channel directivity precise by reducing the field of view of the light source, thereby reducing the channel interference (ICI) between the adjacent light sources.
At present, in the visible light communication MIMO system, when jitter occurs in the mobile terminal, a distortion will occur in the data of the sending end, thereby causing receiving and sending frames asynchronously; and the optical channel received by the receiver will be forced to interrupt, thus the communication cannot be continued. Therefore, when a long string of locating information is continuously transmitted, the information loss will also be caused due to the occurred jitter, which reduces the data transmission efficiency.
The present invention provides a visible light communication MIMO system and a method for realizing data transceiving thereof, which can guarantee receiving and sending frames synchronously, thereby improving the data transmission efficiency.
In order to solve the above technical problem, the present invention discloses a method for realizing data transceiving in a visible light communication multiple input multiple output MIMO system, which comprises: converting data of a sending end into two-dimensional code information containing locating information through light intensity modulation and compilation, and then sending the two-dimensional code information containing locating information;
a receiving end scanning received two-dimensional code information, and rectifying the received two-dimensional code information according to the locating information; and
demodulating the rectified two-dimensional code information to obtain data.
Preferably, the compilation is: compiling the data by using a two-dimensional code compiler, and converting the data into a two-dimensional code graphic.
Preferably, the locating information is locating graphics constituted in a specific scale conforming to a scale invariance feature and located in the two-dimensional code graphic.
Preferably, there are three locating graphics.
Preferably, said scanning received two-dimensional code information comprises: performing lateral scanning and vertical scanning on a plane image containing the two-dimensional code graphic;
removing redundant light interference in the plane image; and
performing image binaryzation processing on the plane image from which the redundant light interference is removed.
Preferably, said removing redundant light interference in the plane image comprises: recording a light brightness Ei of each pixel point in the plane image, comparing the light brightness Ei with a preset light intensity value range (Emin,Emax), and removing light intensity values exceeding or less than the range (Emin,Emax).
Preferably, said performing image binaryzation processing on the plane image from which the redundant light interference is removed comprises:
respectively finding a maximum light brightness value Emax and a minimum light brightness value Emin in the plane image, and calculating an average value Eaverage of the maximum light brightness value Emax and the minimum light brightness value Emin; and
according to the average value Eaverage, dividing brightness values in the image into two categories: light brightness values greater than the average value Eaverage and light brightness values less than the average value Eaverage, wherein, the light brightness values greater than the average value Eaverage are black images and represented as 1; and the light brightness values less than the average value Eaverage are white images and represented as 0.
Preferably, said rectifying the received two-dimensional code information according to the locating information comprises:
performing lateral scanning and vertical scanning on the two-dimensional code graphic until three locating graphics in the two-dimensional code graphic are acquired;
respectively determining a center point of each locating graphic, and calculating a length of each side of a triangle constituted by three center points;
calculating a scanning area S′ according to lengths of two short sides of the triangle and an inclination angle α, and comparing the scanning area S′ with an actual area S to obtain a slope;
rotating the two-dimensional code graphic according to the obtained slope, and restoring an inclined two-dimensional code graphic; and
determining a boundary contour of the plane image, and calculating rectified coordinates according to a bilinear interpolation algorithm.
Preferably, the obtained slope is obtained according to the following formula:
wherein,
S′ is the scanning area, and S is the actual area;
a represents the length of a short side a in the sides of the triangle, and b represents the length of a short side b in the sides of the triangle; and a is the inclination angle.
The present invention further provides a visible light communication MIMO system, which comprises a sending end and a receiving end, wherein,
the sending end is configured to: convert data to be sent into two-dimensional code information containing locating information through light intensity modulation and compilation, and then send the two-dimensional code information containing locating information; and
the receiving end is configured to: scan received two-dimensional code information, and rectify the received two-dimensional code information according to the locating information; and demodulate the rectified two-dimensional code information to obtain data.
Preferably, the sending end at least comprises a two-dimensional code compilation module and a sending module, wherein,
the two-dimensional code compilation module is configured to: compile the data to be sent into a two-dimensional code graphic; and
the sending module is configured to: through the light intensity modulation, modulate the compiled two-dimensional code graphic to a point light source and send the compiled two-dimensional code graphic in a form of a plane image.
Preferably, the sending module is an LED array, and a transmitting array uses a multiplexing technology.
Preferably, the two-dimensional code graphic comprises locating graphics; and the locating graphics are constituted in a specific scale conforming to a scale invariance feature.
Preferably, there are three locating graphics which are respectively located at three vertex angles of the two-dimensional code graphic.
Preferably, the receiving end at least comprises a receiving module, a preprocessing module, a rectification module and a demodulation module, wherein,
the receiving module is configured to: receive the plane image containing the two-dimensional code information from the sending end;
the preprocessing module is configured to: scan the received plane image containing the two-dimensional code information, remove redundant light interference and perform binaryzation processing, and output a processed two-dimensional code graphic to the rectification module;
the rectification module is configured to: scan the two-dimensional code graphic from the preprocessing module, and acquire the locating graphics; and
locate a boundary contour of the two-dimensional code graphic according to the locating graphics and rectify the two-dimensional code graphic to output to the demodulation module; and
the demodulation module is configured to: perform two-dimensional code demodulation on the processed two-dimensional code graphic from the rectification module, and obtain original data.
Preferably, the receiving module is a two-dimensional array multipoint photoelectric detector.
Preferably, an imaging lens is set above the two-dimensional array multipoint photoelectric detector and used for mirroring the plane image sent remotely to a receiver array.
Preferably, the receiving module collects the plane image from the sending end by using a preset frame rate synchronous with a transmitting frame rate of the LED array of the sending end.
The technical scheme provided in the present invention comprises: converting data of a sending end into two-dimensional code information containing locating information through light intensity modulation and compilation, and then sending the two-dimensional code information; a receiving end scanning the received two-dimensional code information, and rectifying the received two-dimensional code information according to the locating information; and demodulating the rectified two-dimensional code information to obtain data.
Here, the illustrated accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the present invention. The schematic embodiments and illustrations thereof of the present invention are used to explain the present invention, but do not constitute an inappropriate limitation on the present invention. In the drawings:
The two-dimensional code is a graphic code that uses a certain kind of specific geometric figures, black-and-white array graphics distributed in plane (in a two-dimensional direction) according to a certain regularity to record data symbol information; and it uses a plurality of geometric figures corresponding to a binary system to represent texts and numerical information in the code compilation, and it is automatically identified through an image input device or a photoelectric scanning device, which implements automatic information processing. The two-dimensional code can simultaneously express information in the lateral orientation and the vertical orientation, thus the two-dimensional code can express a great deal of information within an extremely small area. Moreover, the two-dimensional code also possesses an ability of resisting the graphic geometric distortion, and when a distorted graphic is scanned in angles of rotation and inclination and so on, it also can correctly restore pixel values of all points within the graphic through the software calculation, and extract the information. In the present invention, the two-dimensional code and the array structure characteristic of the visible light communication MIMO system are combined, which implements the visible light communication MIMO system and the data transceiving thereof, to guarantee sending and receiving frames synchronously, thereby improving the data transmission efficiency.
In the present invention, a transmitter located at the sending end of the visible light communication MIMO system can use an LED array as a signal transmitting system. The transmitting array uses the multiplexing technology, all point light sources are mutually independent and send different signals, and the sent signals are differentiated with the light intensities corresponding to binary values 0 and 1 (e.g., “light intensity is strong” represents 1 and “light intensity is weak” represents 0). “Plane image” signals sent at one time are recorded as one frame, thus a structure of the frame is constituted by a plurality of point pixels with different light-dark intensities, and it corresponds to the array structure of the two-dimensional code. In order to fully utilize the advantage of rectifying the graphics with geometric distortion through the two-dimensional code, a plane principle is determined based on the existing three points in the present invention, and three locating graphic areas are set at the three vertex angles of the LED array, for example, the locating graphic presents a “homocentric square” shape, the scale is divided as strong-weak-strong strong-weak-strong according to the light intensity from outside to inside, and the scale values appear as 1:1:2:1:1 in turn. The possibility of such width scale characteristic 1:1:2:1:1 appearing at other locations of the plane image is very small, thus it is regarded as a scanning characteristic of the locating graphic. Based on the characteristic, when one scanning straight line (such as an L1, L2, L3 and L4 as shown in
It should be noted that, the shape of the locating graphic is not limited to the above “homocentric square” shape, and it is set according to a size and a data amount of the LED array, for example, an LED array with a large size and a small data amount can use a symmetric polygon (such as a hexagon and so on) as a locating graphic, as long as the scale invariance feature is satisfied.
In the present invention, a receiver located at the receiving end of the visible light communication MIMO system is a two-dimensional array multipoint photoelectric detector. A spotlight component (such as a convex lens) is set above the two-dimensional array multipoint photoelectric detector, and it is used for mirroring the remotely sent plane image to a receiver array, and at this point, each pixel (or a group of pixels) of the image will be mapped into the two-dimensional array multipoint photoelectric detector, which improves the channel receiving efficiency. Meanwhile, the receiver can be controlled by an embedded computer, according to the two-dimensional code scanning technology, pixels of various points (including lateral direction and vertical direction) are scanned line by line, and pixels with the strong light intensity are represented by black graphics, and pixels with the weak light intensity are represented by white graphics. Ultimately, the plane image received by the two-dimensional array multipoint photoelectric detector corresponds to a two-dimensional graphic, and the graphic distorted due to the jitter is restored through the calculation, and the independent data signals are extracted.
In the present invention, the receiver continuously scans the received images until the locating graphics in the particular shape are detected, so as to identify the start of the frames. And it is to take the advantage of anti-distortion of the two-dimensional code graphic, when the jitter occurs and a graphic with the geometric distortion is received, it also can guarantee that the received plane image which is rectified is identical with the plane image sent by the LEDs by rectifying the plane image, thereby guaranteeing various pixels within one frame can be simultaneously and correctly restored and detected, to achieve the object of sending and receiving frames synchronously. Moreover, in the present invention, while the frame synchronization is guaranteed, the influence of intersymbol interference within one frame of data also can be reduced.
In conclusion, the sending end of the visible light communication MIMO system of the present invention sends the data in parallel with the multiplexing technology, which improves the sending gain, and also improves the illumination intensity in the meantime. Moreover, the two-dimensional array multipoint photoelectric detector array of the receiving end is in a two-dimensional multipoint structure and corresponds to the sending array, and the parallel data can be better mapped to the two-dimensional array multipoint photoelectric detector array via an imaging lens, which improves the receiving efficiency.
In step 100, data of a sending end are converted into two-dimensional code information containing locating information through light intensity modulation and compilation, and then the two-dimensional code information is sent.
As shown in
In the sent (N*N)bits of information, (3*n*n) bits of locating information is set (n represents the length of the side of the locating graphic), the (3*n*n) bits in the (N*N) bits are regarded as the locating overhead, which is a frame start marker. As for the locating graphics at the three vertex angles shown in the
The step stresses that, at the sending end of the visible light communication MIMO system of the present invention, the data to be sent are complied by means of two-dimensional code. And how to specifically implement the compilation is the prior art known by the people skilled in the art, and it is not required to be protected by the present invention, and the specific implementation way thereof is also not used to limit the protection scope of the present invention.
In step 101, a receiving end scans the received two-dimensional code information, and rectifies the received two-dimensional code information according to the locating information.
The receiving end collects the plane image from the sending end according to a preset frame rate synchronous with a transmitting frame rate of the LED array of the sending end, and performs lateral scanning and vertical scanning on the plane image.
In the image scanning process, firstly, a light brightness Ei of each pixel point in the plane image is recorded, and the light brightness Ei is compared with a preset light intensity value range (Emin,Emax) of the transmission data information after certain attenuation, when the light intensities exceeding or less than the range (Emin,Emax) are detected by the receiver, they are all regarded as the interference of the background light intensity, this part of light intensity values are removed, and only the detected light intensity values within the range (Emin,Emax) are retained, so as to remove the redundant light interference;
then, the image binaryzation processing is performed on the plane image from which the redundant light interference is removed, which includes:
respectively finding a maximum light brightness value Emax and a minimum light brightness value Emin in the plane image, and calculating an average value Eaverage of the maximum light brightness value Emax and the minimum light brightness value Emin; and
according to the average value Eaverage, dividing brightness values in the image into two categories: light brightness values greater than the average value Eaverage and light brightness values less than the average value Eaverage, and performing binaryzation processing on the two categories respectively. Wherein, the light brightness values greater than the average value Eaverage are black images and represented as 1; and the light brightness values less than the average value Eaverage are white images and represented as 0. The processed black-white image is the two-dimensional code graphic.
However, the geometric distortion may occur in the two-dimensional code graphic obtained through the image scanning of the receiver due to the jitter of the terminal, and at this point, it is required to further rectify the two-dimensional code graphic, to restore the received graphic with the geometric distortion, which specifically includes:
performing lateral scanning and axial scanning on the two-dimensional code graphic until the locating graphics in a standard scale namely a specific scale conforming to a scale invariance feature are found. As shown in the
after the three center points are determined, the length of each side of a triangle constituted by the three center points is calculated, according to a short side a and a short side b of the triangle and an inclination angle α, a scanning area S′ is calculated, and it is compared with an actual area S (i.e. an area without the distortion in the standard scale), and a slope Ratio of the scanned straight lines is obtained according to the formula (1) as follows:
When the inclination angle α of the plane image changes between 0°˜10°, the value of the slope Ratio changes between 0.85 to 1. The inclination angle α of the plane image can be obtained by the slope Ratio of the scanned straight lines, and then the inclination of the image is restored according to the α, and as shown in
The image for which the rotation and inclination are restored is as shown in the
after the boundary contour of the plane image is determined, rectified coordinates are calculated according to the bilinear interpolation algorithm. P1, P2, P3 and P4 in
f(x,y)=k1x+k2y+k3xy+k4
f(x′,y′)=k5x+k6y+k7xy+k8 (2)
8 equation sets can be obtained by substituting the 8 vertexes P1, P2, P3, P4, P1′, P2′, P3′ and P4′ into 8 mapping coefficients in the formula (2), and the 8 mapping coefficients can be acquired through simultaneous equations of the 8 equation sets (the bilinear interpolation calculation is the calculation algorithm in the existing two-dimensional code decoding software, and the specific implementation is not used to limit the protections scope of the present invention, and the specific implementation algorithm thereof also does not belong to the protection scope of the present invention). Furthermore, since the rectified coordinates (x,y) may be floating point coordinates, the f(x,y) can be calculated according to coordinates of the 4 vertexes of the unit in which the un-rectified coordinates (x′,y′) are located by using the most adjacent points namely the interpolation algorithm: it is assumed that the coordinates of the 4 adjacent points of the coordinates (x′,y′) are respectively (x0′,y0′), (x0′,y1′), (x1′,y0′) and (x1′,y1′), and the pixel values are f(0,0), f(0,1), f(1,0) and f(1,1), and according to the bilinear interpolation formula (3):
f(x,y)=[f(1,0)−f(0,0)]×(x′−x′0)+[f(0,1)−f(0,0)]×(y′−y′0)+[f(1,1)+f(0,0)−f(0,1)−f(1,0)]×(x′−x′0)×(y′−y′0)+f(0,0) (3)
the pixel value f(x,y) of the coordinates (x,y) can be calculated. That is to say, by calculating the coordinates of each point, the plane coordinate transformation is performed, and the image is rotated to a horizontal level, to obtain the standard image whose pixel module is 1*1.
In the present invention, the rectification on the image with the geometric distortion is implemented by using the two-dimensional code technology, and the rectification on the plane image sent by the LED array in the visible light communication MIMO system is implemented, which guarantees that the pixels of various points within one frame of image are simultaneously and correctly detected, and achieves the object of sending and receiving frames synchronously.
In step 102, the rectified two-dimensional code information is demodulated to obtain data.
The two-dimensional demodulation is performed on the plane image processed in the step 101 to obtain the original data.
Through the method of the present invention, it is guaranteed that the pixels within one “frame” of plane can be simultaneously and correctly demodulated and be not affected by the jitter of the terminal and so on. In the visible light communication, the frame synchronization between the sending end and the receiving end is implemented. In addition, since the pixels within one “frame” of plane are accurately detected, the intersymbol interference is effectively restrained. The sending end of the visible light communication MIMO system of the present invention sends the data in parallel with the multiplexing technology, which improves the sending gain, and also improves the illumination intensity in the meantime. Moreover, the two-dimensional array multipoint photoelectric detector array of the receiving end is in a two-dimensional multipoint structure and corresponds to the sending array, and the parallel data can be better mapped to the two-dimensional array multipoint photoelectric detector array via a spotlight convex lens, which improves the receiving efficiency.
The present invention also provides a visible light communication MIMO system, and as shown in
the sending end is used to: convert data to be sent into two-dimensional code information containing locating information through light intensity modulation and compilation, and then send the two-dimensional code information containing locating information; and
the receiving end is used to: scan the received two-dimensional code information, and rectify the received two-dimensional code information according to the locating information; and demodulate the rectified two-dimensional code information to obtain data.
As shown in
the two-dimensional code compilation module is used to: compile the data to be sent into a two-dimensional code graphic; and
the sending module is used to: through the light intensity modulation, modulate the compiled two-dimensional code graphic to a point light source and send the compiled two-dimensional code graphic in a form of a plane image. The sending module is an LED array, and a transmitting array can use the multiplexing technology.
The two-dimensional code graphic includes locating graphics; three locating graphics are included and respectively located at three vertex angles of the two-dimensional code graphic; and the locating graphics are constituted in a specific scale conforming to a scale invariance feature.
The receiving end of the present invention at least includes a receiving module, a preprocessing module, a rectification module and a demodulation module, wherein,
the receiving module is used to: receive the plane image containing the two-dimensional code information from the sending end. The receiving module can be a two-dimensional array multipoint photoelectric detector, and the receiving module collects the plane image from the sending end by using a preset frame rate synchronous with a transmitting frame rate of the LED array of the sending end. An imaging lens is further set above the two-dimensional array multipoint photoelectric detector and used for mirroring the plane image sent remotely to a receiver array.
The preprocessing module is used to: scan the received plane image containing the two-dimensional code information, remove redundant light interference and perform binaryzation processing, and output a processed two-dimensional code graphic to the rectification module.
The rectification module is used to: scan the two-dimensional code graphic from the preprocessing module, and acquire the locating graphics; and locate a boundary contour of the two-dimensional code graphic according to the locating graphics and rectify the two-dimensional code graphic to output to the demodulation module; and
the demodulation module is used to: perform two-dimensional code demodulation on the processed two-dimensional code graphic from the rectification module, and obtain original data.
The above description is only the preferred embodiments of the present invention, which is not used to limit the protection scope of the present invention. All the modifications, equivalent substitutions, and improvements, etc. made within the spirit and principle of the present invention shall fall into the protection scope of the present invention.
In the embodiments of the present invention, the rectification on the image with the geometric distortion is implemented by using the two-dimensional code technology, and the rectification on the plane image sent by the LED array in the visible light communication MIMO system is implemented, which guarantees that the pixels of various points within one frame of image are simultaneously and correctly detected, and achieves the object of sending and receiving frames synchronously, thereby improving the data transmission efficiency.
In the embodiments of the present invention, the sending end of the visible light communication MIMO system sends the data in parallel with the multiplexing technology, which improves the sending gain, and also improves the illumination intensity in the meantime. Moreover, the two-dimensional array multipoint photoelectric detector array of the receiving end is in a two-dimensional multipoint structure and corresponds to the sending array, and the parallel data can be better mapped to the two-dimensional array multipoint photoelectric detector array via an imaging lens, which improves the receiving efficiency.
Number | Date | Country | Kind |
---|---|---|---|
201310260167.7 | Jun 2013 | CN | national |
This application is the U.S. National Phase application of PCT application number PCT/CN2013/082648 having a PCT filing date of Aug. 30, 2013, which claims priority of Chinese patent application 201310260167.7 filed on Jun. 26, 2013, the disclosures of which are hereby incorporated by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/082648 | 8/30/2013 | WO | 00 |