A clock synchronization device and method for optical communication

Through the combination device of flashing light source, optical receiver and microcomputer, the clock synchronization of outdoor optical communication is realized by using inter-frame difference and cross-correlation function, which solves the problem of difficult synchronization between light source and receiver, improves communication capacity and reliability, and is applicable for outdoor and indoor optical communication scenarios.

CN113839733BActive Publication Date: 2024-10-25BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111147230.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2024-10-25
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

In outdoor optical communications, it is difficult to synchronize the clocks of light sources and receivers, leading to problems such as signal loss and error codes. Existing technologies are ineffective in complex interference scenarios and occupy a large amount of communication capacity.

Method used

A clock synchronization device composed of a flashing light source, an optical receiver and a microcomputer is used to transmit signals through high-speed flashing through the OOK modulation method. A high-speed camera and a microcomputer that can be triggered with a delay are used for image acquisition and processing, eliminating the special clock synchronization sequence. Clock synchronization and light source identification are achieved using inter-frame difference and cross-correlation functions.

Benefits of technology

It improves communication capacity and reliability, reduces communication capacity occupation, is suitable for outdoor long-distance optical communication, and also has application value in indoor optical communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113839733B_ABST
    Figure CN113839733B_ABST
Patent Text Reader

Abstract

The present invention proposes a clock synchronization device and method for optical communication. The designed clock synchronization device includes a flashing light source, a high-speed camera that can be triggered with a delay, and a microcomputer. The light source transmits binary sequence information by flashing at a high speed, and the receiving end triggers the camera to collect images through a microcomputer, and clock synchronization is achieved by accurately delaying the initial phase of the camera. The clock synchronization method adopted obtains a connected area suspected to be our flashing light source by performing inter-frame difference and connected domain screening on the image sequence collected by the flashing of the light source for one cycle, and accurately judges the identity of the light source by performing correlation calculation on the differential grayscale sequence of the area and the differential sequence of the light source identity encoding. When our flashing light source is not found in the image sequence of a flashing cycle, the initial phase of the camera is controlled to delay one step backward and the image sequence is re-collected for judgment. Since the flashing cycle of the light source is extremely short, only a few delays are required to complete the clock synchronization link. The clock synchronization device and method proposed by the present invention do not need to introduce other auxiliary equipment at all, and avoid the problem that the current clock synchronization method needs to add a special clock synchronization code in the communication encoding, thereby improving the communication capacity, and have a good application prospect in both indoor and outdoor long-distance optical communication scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of information processing and proposes a clock synchronization device and method for optical communication. Background Art

[0002] Optical communication is a new communication technology that uses high-speed flashing of light sources to transmit coded information. Against the backdrop of increasingly tight radio spectrum resources, optical communication has attracted extensive attention from researchers due to its unique advantages such as wide spectrum resources, low human body radiation, and fast communication speed. It has broad application prospects in radiation-sensitive places such as hospitals and airports, as well as in the fields of the Internet of Things and indoor positioning.

[0003] Optical communication can be divided into two types according to the usage scenario: indoor optical communication and outdoor optical communication. Indoor optical communication has the characteristics of strong signal strength, simple transmission link, and can be assisted by radio and other means. At present, it has achieved considerable research results and practical applications. For example, in 2013, the Heinrich Hertz Institute increased the visible light communication rate to 3Gbps in the laboratory. In May 2015, Philips and retail chain giant Carrefour provided positioning services to customers through smartphones integrated with VLC system in a mall in France. At present, the research focus of indoor optical communication is mainly on high-speed short-distance transmission. For outdoor optical communication, due to the long communication distance and the influence of atmospheric attenuation effect, atmospheric turbulence effect and background light interference on the communication channel, there is a significant gap in signal-to-noise ratio, transmission link, auxiliary means, etc. compared with indoor optical communication. Therefore, it is difficult to achieve and the research results are relatively few.

[0004] At present, the main research issues of outdoor long-distance optical communication systems are: (1) synchronous reception of light source signals; (2) identification and tracking of light sources; (3) research on optical links; and (4) research on optical modulation and demodulation technology. The first problem to be solved is the synchronous reception of the light source and the receiver. When the clocks of the receiver and the light source are not aligned, even if a high-speed camera with the same frame rate as the light source flickering frequency is used, it is very easy to have signal loss, error code, shift and other problems when shooting the flickering light source. The current solutions to the clock synchronization problem mainly include radio-assisted alignment and setting a special synchronization identification frame in the signal. However, these solutions still have problems such as poor effect and occupying communication capacity in complex outdoor interference scenarios. Therefore, this technology still has considerable room for development.

[0005] In summary, in order to solve the clock synchronization problem of outdoor optical communication, the present invention proposes a clock synchronization device and method, which has the advantages of strong reliability and small communication capacity compared with the existing technology. It is very suitable for high-speed optical communication scenarios under outdoor long-distance conditions, and also has certain application value in the field of indoor optical communication. Summary of the invention

[0006] (I) Purpose of the invention

[0007] In order to solve the clock synchronization problem of outdoor optical communication, the present invention proposes a clock synchronization device and method, which has the advantages of strong reliability and small communication capacity compared with the existing technology. It is very suitable for high-speed optical communication scenarios under outdoor long-distance conditions, and also has certain application value in the field of indoor optical communication.

[0008] (II) Technical solution

[0009] The clock synchronization device of the present invention is composed of three modules, namely a flashing light source, a light receiver and a microcomputer. The detailed functions of the modules include:

[0010] The flashing light source module may include but is not limited to the visible light band, and transmits binary "01" signals through high-speed flashing using the OOK modulation method. The light source is set to have two flashing modes, namely, identity recognition mode and communication mode. In the identity recognition mode, the light source flashes periodically according to a preset identity recognition code, and in the communication mode, the information to be transmitted is converted into binary ASCII code for transmission. The flashing frequencies in the two modes are the same. For application scenarios such as optical navigation that only require the identity information of the light source, the flashing conditions of the communication mode and the identity recognition mode are the same. The light source carries a radio communication module. In scenarios such as MIMO that use multiple light sources to transmit information, it is difficult to use radio communication to assist in clock synchronization due to the long distance between the receiver and the light source. However, the distance between the light sources is relatively close, so simultaneous flashing can be achieved through radio signals, avoiding the problem that the receiver cannot receive signals transmitted by multiple light sources at the same time.

[0011] The optical receiver module acquires images through a high-speed camera that can be triggered with a delay, and transmits the acquired images to a microcomputer to complete clock synchronization, identity recognition and other processing tasks. When selecting a camera, a frame rate adjustable camera with a maximum frame rate equal to or greater than the light source flicker frame rate should be selected.

[0012] The microcomputer module stores the identity sequence information of all flickering light sources in advance and burns in a variety of algorithms to ensure the normal operation of the system. The algorithms include: a camera trigger algorithm, which is mainly used to delay the camera image acquisition; an image difference algorithm, which is mainly used to perform inter-frame difference on the image sequence acquired by the camera, so as to find the suspected flickering area with grayscale changes; a connected domain screening algorithm, which mainly calculates the size of the flickering light source on the image under the condition that the light source size and the distance from the camera are known, so as to preliminarily screen out the area of ​​the suspected flickering light source in the image; a light source recognition algorithm, which mainly uses the correlation calculation between the suspected area grayscale sequence obtained by inter-frame difference and the light source flicker difference sequence, so as to identify our flickering light source and the interfering light source.

[0013] In order to quickly and accurately complete clock synchronization, the synchronization method adopted by the present invention is as follows:

[0014] A clock synchronization method for optical communication is based on sending a binary sequence by flashing a flashing light source at high speed, wherein the binary sequence is a sequence obtained by encoding the light source identity information and other data information to be transmitted through LS encoding. The current clock synchronization scheme often adds a special binary sequence for clock synchronization before the light source identity information, which undoubtedly reduces the upper limit of the capacity of effective information. The present invention cancels the special clock synchronization sequence, uses a high-speed camera with delayed triggering, and traverses the flashing cycle of the light source when triggering the photo, so as to simultaneously realize the clock synchronization and light source identification links, thereby improving the communication capacity and reliability compared with the prior art. The method comprises:

[0015] The identification codes of all light sources are stored in advance in the microcomputer that triggers the camera to shoot. When the light source flashes periodically according to the identification code, the camera is directly triggered by the microcomputer to take pictures at the same frame rate as the flashing frequency of the light source, regardless of whether the clock is synchronized. When the length of the trigger signal is one flashing cycle, a set of image sequences will be collected. Since there may be interfering light sources that are always on or flashing in the field of view, each frame of the collected image must be differentiated from the previous frame of the image, and the inter-frame difference is used to obtain multiple connected areas where the grayscale values ​​change, and the image sequence is used to obtain the grayscale value of the connected area. The size of the connected area is preliminarily judged based on the known size of the flickering light source, the distance between the light source and the camera, and other information. All connected areas that may be our flickering light sources are preliminarily screened out and their positions and grayscale information on each differential image frame are recorded. Grayscale values ​​above the set threshold are recorded as "1" and those below the threshold are recorded as "0". For areas that have no grayscale changes in the first n differential images but have grayscale changes in the (n+1)th differential image, a new storage space needs to be created to store their positions and grayscale information, and their grayscale information in the first n differential images is assigned to "0".

[0016] When the collected image sequence reaches the predetermined number of frames of a light source flicker cycle, the image sequence captured at this time is subjected to frame difference by a microcomputer. At this time, the microcomputer is still used to continue to trigger the camera to take pictures at the current frame rate, but the captured pictures are not subjected to difference processing. In the microcomputer, the grayscale information sequence of all suspected positions is compared with the previously stored light source identification code difference sequence, and the correlation degree is calculated, such as calculating the cross-correlation function of the difference sequence x of the suspected position and the cooperative light source flicker check sequence y:

[0017]

[0018] The larger the value of the cross-correlation function, the more similar the differential grayscale sequence of the suspected position is to the differential grayscale sequence of the flickering light source. When the correlation function value is greater than the set threshold, it can be determined that the suspected connected area is the position of our flickering light source, thereby completing clock synchronization and identity recognition at the same time. When the differential grayscale information of all suspected positions in a set of image sequences is not correlated with the differential grayscale information of our cooperative light source, it can be determined that the clock synchronization is not completed. At this time, the trigger signal used to trigger the camera to take pictures is delayed by 1ms through the microcomputer, and a new periodic image sequence is obtained for inter-frame difference and correlation judgment. If a differential sequence with a high correlation is still not obtained, continue to repeat the above steps. The light source and receiver used in current optical communications are often LED light sources and high-speed cameras that can be modulated at high speed. This cycle is extremely short. Taking the light source flashing at a frequency of 120Hz as an example, the time of a flashing cycle is only 8.3ms. Therefore, our clock synchronization method only needs 8 time-delay shooting and image processing at most to complete the clock synchronization and light source identity recognition functions. In order to increase the communication capacity, the length of the light source identity recognition code is usually set shorter, mostly 8-bit binary code. Therefore, 8 delays require at most 64 photos to be processed. With the current computing power of microcomputers, this function can be completed in just a few seconds. In other words, the present invention only needs a few seconds to complete the two steps of synchronous reception and light source identification of outdoor long-distance optical communication. Compared with the original method, the time consumed has not increased significantly, and the cancellation of the original clock synchronization code significantly improves the communication capacity, which has significant advantages over the current method.

[0019] (III) Advantages

[0020] The advantages of a clock synchronization device and method for optical communication provided by the present invention are:

[0021] ① Clock synchronization is achieved by only using the receiver to collect images, without the need to add additional modules such as radio communication.

[0022] ② There is no need to add special clock synchronization code in the communication coding, which improves the communication capacity.

[0023] ③The present invention can be applied to both outdoor long-distance optical communication and indoor optical communication scenarios, and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a schematic diagram of the relationship between the modules in the clock synchronization device of the present invention.

[0025] Figure 2 It is a flow chart of the clock synchronization method of the present invention. DETAILED DESCRIPTION

[0026] The following description is for the purpose of helping those skilled in the art to better understand and implement the present invention. Taking the optical communication scenario between a single infrared light source and a high-speed infrared camera that can be triggered with a delay as an example, the process of implementing clock synchronization in the present invention is described. The connectivity between the modules is shown in the attached figure. Figure 1 The following examples are for illustrative purposes only, and the present invention should not be construed as being limited to the illustrative examples described herein.

[0027] In the current scenario, the infrared light source transmits binary "01" sequence information by flashing at high speed through the OOK modulation method, where "0-1" corresponds to the "off-on" state of the light source when it flashes, and the flashing frequency is set to 120Hz. The receiver is set to collect images at the same frame rate as the light source flashing frequency. If clock synchronization is not performed, the collected image information may not correctly reflect the flashing of the light source.

[0028] Keep the high-speed camera continuously collecting images at the same frame rate, and randomly extract a sequence of images collected under the length of a light source flicker cycle, and perform differential analysis on two adjacent frames. Since there is basically no brightness change in the constantly lit interfering light source and background information, the area with brightness change can be extracted from the differential image, which may include our flickering light source, interfering flickering light source, moving objects, etc. The area with brightness change is divided into a single connected domain using a clustering algorithm. The following preferred steps can also be performed in this step: when prior information such as the brightness, size, and distance of our flickering light source is known in advance, the connected domain can be further screened according to size, grayscale, and other conditions to obtain several suspected connected domains that are most likely our flickering light source. If such prior information is not known in advance, this step can be ignored.

[0029] Record the differential grayscale information of all suspected positions. Record the grayscale value above the set threshold as "1" and the grayscale value below the threshold as "0". For the area that has no grayscale change in the first n differential images but has grayscale change in the n+1 differential image, a new storage space needs to be created to store its position and grayscale information, and its grayscale information in the first n differential images is assigned to "0". In the microcomputer, compare the grayscale information sequence of all suspected positions with the previously stored light source identification code differential sequence, and calculate the degree of correlation, such as calculating the cross-correlation function of the differential sequence x of the suspected position and the cooperative light source flicker check sequence y:

[0030]

[0031] The larger the value of the cross-correlation function, the more similar the differential grayscale sequence of the suspected position is to the differential grayscale sequence of the flickering light source. When the correlation function value is greater than the set threshold, it can be determined that the suspected connected area is the position of our flickering light source, thereby completing clock synchronization and identity recognition at the same time. When the differential grayscale information of all suspected positions in a set of image sequences is not correlated with the differential grayscale information of our cooperative light source, it can be determined that the clock synchronization is not completed. At this time, the trigger signal used to trigger the camera to take pictures is delayed by 1ms through the microcomputer, and a new periodic image sequence is obtained for inter-frame difference and correlation judgment. If a differential sequence with a high correlation is still not obtained, continue to repeat the above steps. The light source and receiver used in current optical communications are often LED light sources and high-speed cameras that can be modulated at high speed. Therefore, a cycle The time period is extremely short. In the scenario where the light source flashes at a frequency of 120 Hz in this example, the time of a flashing cycle is only 8.3 ms. Therefore, our clock synchronization method only needs 8 time-delay shooting and image processing at most to complete the clock synchronization and light source identity recognition functions, and in order to increase the communication capacity, the length of the light source identity recognition code is usually set shorter, mostly 8-bit binary code, so 8 delays require at most 64 photos to be processed. With the current computing power of microcomputers, this function can be completed in just a few seconds. In other words, the present invention only needs a few seconds to complete the two steps of synchronous reception and light source identification of outdoor long-distance optical communication. Compared with the original method, the time consumed has not increased significantly, and the cancellation of the original clock synchronization code significantly improves the communication capacity, which has significant advantages over the current method.

Claims

1. A clock synchronization device for optical communication, characterized in that: The clock synchronization device consists of three modules: a flashing light source, a delayed-triggered optical receiver, and a microcomputer. The light source transmits binary information by flashing. The light source carries a radio communication module. In a MIMO scenario where multiple light sources are used to transmit information, radio communication is used to first complete the synchronous flashing between the light sources. The optical receiver uses a delayed-triggered high-speed camera, and the frame rate and initial phase are controlled by a microcomputer. The microcomputer stores the identity sequence information of all flashing light sources in advance, and burns in a variety of algorithms to ensure the normal operation of the system. The algorithms include: a camera trigger algorithm, which is used to delay the camera image acquisition; an image difference algorithm, which is used to perform inter-frame difference on the image sequence acquired by the camera, so as to find the suspected flashing area where the grayscale changes; a connected domain screening algorithm, which is used to select the suspected flashing area in terms of light source size and Under the condition that the distance of the camera is known, the size of the flickering light source on the image is calculated, so as to preliminarily screen out the area of ​​the suspected flickering light source in the image; the light source recognition algorithm uses the grayscale sequence of the suspected area obtained by inter-frame difference and the light source flickering differential sequence to perform correlation calculation, so as to identify our flickering light source and the interfering light source; the clock synchronization device obtains the connected area suspected to be our flickering light source by performing inter-frame difference and connected domain screening on the image sequence collected during one cycle of light source flicker, and accurately judges the identity of the light source by correlating the differential grayscale sequence of the area with the differential sequence of the light source identity encoding. When our flickering light source is not found in the image sequence of one flickering cycle, the initial phase of the camera is controlled to be delayed by one step and the image sequence is re-collected for judgment, so as to complete the clock synchronization link.

2. A clock synchronization method for optical communication, characterized in that: The identification codes of all light sources are stored in advance in a microcomputer that triggers the camera to shoot. When the light source flashes periodically according to the identification code, the microcomputer triggers the camera to take pictures at the same frame rate as the flashing frequency of the light source. When the length of the trigger signal is one flashing cycle, each frame of the image collected is differentiated from the previous frame, and the inter-frame difference is used to obtain multiple connected areas with changes in grayscale values. The size of the connected area is preliminarily judged using the size of the flashing light source and the distance between the light source and the camera, and all connected areas that may be our flashing light sources are preliminarily screened out and recorded. Its position and grayscale information on each frame of the differential image are recorded, and the grayscale value above the set threshold is recorded as "1" and the grayscale value below the threshold is recorded as "0". In the microcomputer, the grayscale information sequence of all suspected positions is compared with the previously stored light source identification code differential sequence, and the cross-correlation function value is calculated. When the cross-correlation function value is greater than the set threshold, it can be determined that the light source and the receiver have completed clock synchronization; if the cross-correlation function values ​​of all suspected area record sequences and light source identity sequences are less than the threshold, the microcomputer controls the camera to delay taking pictures for 1ms, and repeats the above steps until synchronization is completed.