Indoor wireless optical positioning method, device and system
By using channel estimation and TDOA algorithms in indoor wireless optical positioning technology, combined with wireless optical communications, the problems of insufficient resource utilization and high hardware complexity in the existing technology are solved, and high-precision and low-cost indoor wireless optical positioning is achieved.
Patent Information
- Application Number
- CN202211212528.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-09-29
AI Technical Summary
Existing indoor wireless optical positioning technology does not fully utilize communication resources, has high hardware complexity, high cost, and poor portability.
Using two sets of light source transmitters evenly distributed on the indoor ceiling, through channel estimation and time domain impulse response, the TDOA algorithm is used for positioning, and wireless optical communication and positioning are combined to achieve accurate indoor wireless optical positioning.
It makes full use of communication resources, reduces hardware complexity and cost, improves the portability and accuracy of the system, and can achieve accurate wireless optical indoor positioning in different indoor scenarios.
Smart Images

Figure CN115685068B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of indoor positioning technology, and in particular to an indoor wireless optical positioning method, device and system. Background Art
[0002] With the growing number of smartphones and the continuous development of technologies such as the Internet of Things and virtual reality, it is necessary to track the location of people in close contact in indoor environments, and high-precision indoor positioning is becoming more and more important. Satellite positioning technology used for outdoor positioning cannot provide accurate positioning in indoor environments because its signals experience severe attenuation when passing through walls. In recent years, many new indoor positioning technologies have been continuously developed, including Wi-Fi positioning, ultrasonic sensor positioning, Bluetooth positioning, RFID positioning, visible light positioning based on wireless optical communication, etc.
[0003] The visible light positioning scheme based on fingerprint library recognition is a common scheme. This scheme collects the feature information of each point to be positioned in advance and establishes a library. During the positioning process, positioning is performed by comparing the collected feature information with the feature information stored in the library. The positioning method based on fingerprint library recognition is divided into two processes. The first process is to select some specific positions in the positioning space as reference points. Each reference point has different features, and these features are used to build a fingerprint library. The second process is to compare the features of the point to be positioned with the features in the fingerprint library during actual positioning, so as to estimate the position of the positioning point. In this method, the work of constructing the fingerprint library in the early stage is very cumbersome and time-consuming, and the application environment is specific and has poor portability.
[0004] Another widely used positioning scheme is the geometric measurement method. This positioning method is divided into angle-based positioning method and distance-based positioning method. The positioning method based on the angle of arrival (AOA) requires measuring the angle between the transmitter and the receiver. The key to the distance-based positioning method is to find the distance relationship between the transmitter and the receiver. The distance relationship can be determined by methods such as arrival time (TOA) and received signal strength (RSS). The distance-based positioning method in the geometric measurement method requires strict time synchronization between transceivers or light sources when using TOA to obtain the distance, which increases the implementation complexity of the system. The AOA-based positioning method in the geometric measurement method requires certain modifications to the receiver array to obtain the angle, the hardware complexity is high, and a small angle measurement error will lead to a large positioning error.
[0005] The positioning solution based on image sensor is also a commonly used solution. The receiving end of this method consists of an image sensor and a lens, and the center of the lens is the point to be measured. Since different LEDs appear in different positions on the image sensor after passing through the lens, positioning is completed by analyzing the geometric relationship between the imaging of the LED on the image sensor and the LED on the transmitting end. The algorithm complexity is high and the response rate is relatively slow.
[0006] Wireless optical indoor positioning technology is characterized by low cost, no electromagnetic interference, good safety and high positioning accuracy.
[0007] (up to centimeter level) and other advantages, it stands out among these indoor positioning technologies. However, most of the current wireless optical indoor positioning technologies are based on time division multiplexing or frequency division multiplexing methods to distinguish the signals of different lights and complete positioning. Time division multiplexing requires at least three time slots to send signals, and frequency division multiplexing requires at least three different frequencies to send signals. In addition, communication and positioning are not considered together, but only positioning is considered separately. The function is single, the important demand of communication is ignored, and communication resources are wasted. Summary of the invention
[0008] Therefore, the technical problem to be solved by the present invention is to overcome the problems in the prior art of insufficient utilization of communication resources, poor portability, high hardware complexity and high cost.
[0009] In order to solve the above technical problems, the present invention provides an indoor wireless optical positioning method, comprising:
[0010] S1: Select two different groups of light source transmitters evenly distributed on the indoor ceiling, and ensure that the number of light source transmitters in each group is not less than 3 and are not on the same straight line;
[0011] S2: performing channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and converting the frequency domain information of the channel estimation into the form of a time domain impulse response to obtain a first channel estimation result;
[0012] S3: According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain as the first group of pulses, and the first group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and the time when they are received by the receiver are calculated according to the first group of pulses;
[0013] S4: positioning the receiver using the TDOA algorithm according to the first set of time differences to obtain a first set of receiver coordinates;
[0014] S5: Repeat steps S2-S4 for the second group of light source transmitters that send communication signals in the second time slot to obtain a second group of receiver coordinates;
[0015] S6: Find a pair of coordinates that are closest to the first set of receiver coordinates and the second set of receiver coordinates, and select any one of the pair of coordinates as the final positioning of the receiver.
[0016] Preferably, performing channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and converting the frequency domain information of the channel estimation into the form of a time domain impulse response to obtain the first channel estimation result includes:
[0017] When the receiver receives the communication signal sent by the light source transmitter, it converts the communication signal into an electrical signal and performs analog-to-digital conversion and filters out the DC bias to obtain a received signal;
[0018] Perform discrete Fourier transform on the windowed received signal y(n) to obtain the received signal in the frequency domain Y(K)=DFT[y(n)]=X(K)*H(K)+W(K)K=1,2…N, where the window length is N, N represents the number of DFT points, which is the same as the number of subcarriers, Y(K) represents the pilot symbol received by the Kth subcarrier, X(K) represents the pilot symbol sent by the Kth subcarrier, and W(K) is noise;
[0019] A channel estimate is calculated based on the received signal in the frequency domain. in, is the estimated value of Y(k) with noise added, j is the imaginary unit, and q is the window position offset;
[0020] Take the first half of the frequency domain response sequence for conjugate symmetry:
[0021]
[0022] And perform inverse discrete Fourier transform to obtain the channel estimation of the time domain impulse response:
[0023] in,
[0024] It represents the channel impulse response corresponding to time i, and n is the number of sampling points.
[0025] Preferably, the method further comprises: performing channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and converting the frequency domain information of the channel estimation into the form of a time domain impulse response, and obtaining the first channel estimation result:
[0026] Perform mean denoising on the first channel estimation result.
[0027] Preferably, according to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain as the first group of pulses, and the signals emitted by the three corresponding light source transmitters are calculated according to the first group of pulses, and the first group of time differences between the time of sending and the time of being received by the receiver includes:
[0028] According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain, and three light source transmitters corresponding to the three line-of-sight link pulses are recorded as a first light source transmitter L1, a second light source transmitter L2, and a third light source transmitter L3, and the sampling points corresponding to the three line-of-sight link pulses are marked as a first sampling point subscript n1, a second sampling point subscript n2, and a third sampling point subscript n3;
[0029] Assuming n1>n2>n3, calculate the time difference Δt1 between the time when L1 sends a communication signal to the time when the receiver receives the communication signal and the time when L2 sends a communication signal to the time when the receiver receives the communication signal = (n1-n2)*Ts, where Ts is the sampling period;
[0030] Calculate the time difference Δt2 = (n1-n3)*Ts between the time from when L1 sends out the communication signal to when the receiver receives the communication signal and the time from when L3 sends out the communication signal to when the receiver receives the communication signal.
[0031] Preferably, positioning the receiver using a TDOA algorithm according to the first set of time differences to obtain a first set of receiver coordinates includes:
[0032] Write the equations based on the first set of time differences:
[0033]
[0034] Where c is the speed of light, x i i∈1, 2, 3 represents the horizontal coordinates of L1, L2, L3, y i i∈1, 2, 3 represents the ordinate of L1, L2, L3, z i i∈1, 2, 3 represents the height coordinates of L1, L2, L3, x r Indicates the horizontal coordinate of the receiver, y r represents the vertical coordinate of the receiver, z r Indicates the height coordinate of the receiver;
[0035] Randomly select three light source transmitters from the first group of light source transmitters, and perform permutations and combinations to obtain multiple groups of three-dimensional coordinate values of L1, L2, and L3;
[0036] According to the three-dimensional coordinate values of the multiple groups of L1, L2, and L3, when only two-dimensional positioning is considered, the equation group is solved using CHAN's method or Fang's method to obtain A solution, namely the first set of receiver coordinates, where M1 is the number of the first set of light source transmitters.
[0037] Preferably, the solving the system of equations using CHAN'S method comprises:
[0038] Convert the system of equations to a linear system:
[0039]
[0040] And transform it to get x r ,y r , the relationship between R1:
[0041]
[0042] Among them, R 2,1 =c*Δt1, which represents the difference between the distance from L1 to the receiver and the distance from L2 to the receiver, R 3,1 = c*Δt2, which represents the difference between the distance from L1 to the receiver and the distance from L3 to the receiver, and R1 represents the distance from L1 to the receiver;
[0043] The x r ,y r , R1 is substituted into the formula:
[0044]
[0045] We get a quadratic equation about R1 The value of R1 is obtained by solving the problem and then substituted into the linear equations to obtain the coordinates of the receiver, where a, b, and c1 are all constants.
[0046] Preferably, solving the system of equations using Fang's method comprises:
[0047] A new coordinate system is established, with L1 located at the origin (0, 0), L2 located at (X2, 0), and L3 located at (X3, Y3). The distance R1 from L1 to the receiver can be expressed as:
[0048]
[0049] The distance from L2, L3 to the receiver can be expressed as:
[0050]
[0051] Among them, Ri,1 It represents the difference between the distance from Li to the receiver and the distance from L1 to the receiver;
[0052] Substituting formula (1) into formula (2) yields:
[0053]
[0054]
[0055] According to equations (3) and (4), the relationship between the receiver's horizontal and vertical coordinates is found:
[0056] y r =g·x r +p (5)
[0057] Among them, the coefficient g=(R 3,1 X2 / R 2,1 -X3) / Y3, coefficient
[0058] Substituting equation (5) into equation (3), we get the final equation to be solved: Solve it to get the receiver coordinates;
[0059] Wherein, the coefficient d = -{1-(X2 / R 2,1 ) 2 +g 2}, coefficient e = X2{1-(X2 / R 2,1 ) 2}-2 gp ,coefficient
[0060] The present invention also provides an indoor wireless optical positioning device, comprising:
[0061] The light source transmitter group selection module is used to select two different groups of light source transmitters evenly distributed on the indoor ceiling, and at least ensure that the number of light source transmitters in each group is not less than 3 and are not on the same straight line;
[0062] A channel estimation module, configured to perform channel estimation based on a communication signal sent from a first group of light source transmitters to a receiver in a first time slot, and convert the frequency domain information of the channel estimation into a form of a time domain impulse response to obtain a first channel estimation result; perform channel estimation based on a communication signal sent from a second group of light source transmitters to a receiver in a second time slot, and convert the frequency domain information of the channel estimation into a form of a time domain impulse response to obtain a second channel estimation result;
[0063] A time difference extraction module, for selecting three line-of-sight link pulses with the largest peak values in the time domain as a first group of pulses according to the first channel estimation result, and calculating a first group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and received by the receiver according to the first group of pulses; for selecting three line-of-sight link pulses with the largest peak values in the time domain as a second group of pulses according to the second channel estimation result, and calculating a second group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and received by the receiver according to the second group of pulses;
[0064] A coordinate calculation module, used to locate the receiver using a TDOA algorithm, obtain a first set of receiver coordinates based on the first set of time differences, and obtain a second set of receiver coordinates based on the second set of time differences;
[0065] The positioning module is used to find a pair of coordinates with the shortest distance between the first set of receiver coordinates and the second set of receiver coordinates, and select any one of the pair of coordinates as the final positioning of the receiver.
[0066] The present invention also provides an indoor wireless optical positioning system, comprising:
[0067] Multiple light source transmitters evenly mounted on the indoor ceiling;
[0068] The indoor wireless optical positioning device as mentioned above is used to locate objects or equipment equipped with a receiver using the multiple light source transmitters.
[0069] Preferably, the indoor wireless optical positioning system is applied to car positioning in underground parking lots, the light source transmitter is an LED lamp, and the receiver is a photoelectric detector installed on the car.
[0070] The above technical solution of the present invention has the following advantages compared with the prior art:
[0071] The indoor wireless optical positioning method described in the present invention realizes wireless optical indoor positioning by using channel state information, that is, when two groups of lights communicate in two different time slots, channel estimation is performed on the channel information in the communication process, and then positioning is performed by the time difference of arrival method (TDOA), so as to realize accurate wireless optical indoor positioning. The present invention integrates wireless optical communication and positioning, and uses the information obtained by channel estimation for positioning, making full use of communication resources. The two groups of light sources use time division multiplexing to communicate with the receiver in turn, and only two time slots are needed to complete the positioning. When used, no additional communication resources are required to transmit the positioning information, saving communication resources; it can be applied to different indoor scenes, and only the time domain impulse response needs to be obtained by channel estimation. No matter how complex the indoor environment is, accurate wireless optical indoor positioning can be realized; the time difference of arrival is used, and the TDOA method is used for positioning, which reduces the demand for time synchronization between the transmitter and the receiver, and the system has good portability, greatly reduces the complexity of the hardware, and reduces the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
[0073] Figure 1 is a flowchart for realizing indoor wireless optical positioning according to the present invention;
[0074] Figure 2 is a diagram of an indoor wireless optical positioning system provided by an embodiment;
[0075] Figure 3 is a schematic diagram of frequency domain response of a channel provided by an embodiment;
[0076] Figure 4 is a schematic diagram of a time domain impulse response provided by an embodiment;
[0077] Figure 5 It is a schematic diagram of two-dimensional positioning results;
[0078] Figure 6 A structural block diagram of an indoor wireless optical positioning device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0079] The core of the present invention is to provide an indoor wireless optical positioning method, device and system, which fully utilizes communication resources, has good portability, greatly reduces hardware complexity and reduces costs.
[0080] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0081] During the communication process, each group of light source transmitters communicates with the receiver in different time slots and sends communication information to the receiver. The receiver uses the received communication information to perform channel estimation. We perform an inverse discrete Fourier transform (IDFT) on the results of the channel estimation to convert the frequency domain information of the channel estimation into the form of a time domain impulse response. In the time domain, the three line-of-sight link pulses with the largest peak values are selected, and these three pulses are used to calculate the time difference from different light source transmitters to the receiver. Then, positioning is performed using the time difference of arrival method (TDOA) to calculate the first set of solutions. Then, the same process is performed using the second time slot to calculate the second set of solutions. Find the closest coordinate between the two sets of solutions, which is the result of indoor positioning.
[0082] Please refer to Figure 1 , Figure 1 This is a flowchart of the indoor wireless optical positioning method provided by the present invention; the specific operation steps are as follows:
[0083] S101: Select two different groups of light source transmitters evenly distributed on the indoor ceiling, and ensure that the number of light source transmitters in each group is not less than 3 and are not on the same straight line;
[0084] The light sources at the transmitting end are evenly distributed on the ceiling. As the room gets larger, the number of light sources can be appropriately increased to meet the needs of communication, positioning and lighting at the same time.
[0085] Divide M light sources into two groups, the first group has M1 light sources, and the second group has M2 light sources. These two groups of light sources use time division multiplexing to communicate with the receiver in turn, and only two time slots are needed to complete the positioning;
[0086] In the process of using TDOA for positioning, in time slot 1, 3 light sources are selected from M1 light sources. Similarly, in time slot 2, 3 light sources are selected from M2 light sources. Therefore, the number of light source transmitters in each group is not less than 3 and are not on the same straight line to ensure that the TDOA positioning method has a solution. In addition, the light sources selected in the two time slots cannot be exactly the same and need to be able to ensure that symmetric solutions are excluded.
[0087] S102: performing channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and converting the frequency domain information of the channel estimation into the form of a time domain impulse response to obtain a first channel estimation result;
[0088] A set of binary sequences of length N / 2-1 known to both the transmitter (i.e., the light source transmitter) and the receiver (i.e., the receiver) is randomly generated, where N is the number of OFDM subcarriers;
[0089] Modulate the binary sequence to obtain a pilot sequence The elements in the sequence represent a modulated symbol. If the modulation method is QAM modulation, it is 1 QAM symbol.
[0090] The pilot sequence is conjugate-symmetric to generate a conjugate pair sequence:
[0091]
[0092] Perform an inverse discrete Fourier transform on the conjugate sequence to obtain a discrete sequence corresponding to the pilot sequence in the time domain, and add a cyclic prefix to the discrete sequence to obtain the transmitting end OFDM symbol x cp (n), performing digital-to-analog (D / A) conversion on the transmitting end OFDM symbol to obtain a waveform x(t) of the transmitting end OFDM symbol, adding a DC bias to the waveform to generate a first electrical signal x for modulating the light intensity of the light source transmitter DC (t) generating an optical signal through a light source transmitter by passing the first electrical signal through the light source transmitter, wherein the optical signal is the communication signal;
[0093] The communication signal is transmitted through a channel in space, and at the receiving end, the optical signal is converted into a second electrical signal by a photoelectric converter. Where w(t) is the intensity of the noise, R is the photoelectric conversion coefficient, and h(t) is the transfer function of the wireless optical channel, which can be expressed as: Among them, N l Indicates the number of light source transmitters used in the communication process. Since the subsequent solution is divided into two time slots, in two time slots, N l The values of M1 and M2 are respectively, H i (0) represents the DC gain from the i-th lamp to the receiver, c represents the speed of light, D i represents the distance from the i-th light to the receiver, t represents the time, the moment when the transmitter starts to send information is 0, When , h(t) is not 0, it is because the information of the transmitter is received by the receiver. In the absence of noise, h(t) is 0 at the rest of the time t;
[0094] At the receiving end, y DC(t) Perform analog-to-digital (A / D) conversion and sample with Ts as the sampling period in, is the convolution symbol, and n is the number of sampling points.
[0095] For the convenience of expression, the photoelectric conversion coefficient is set to 1. At the receiving end, the DC bias is filtered out to obtain the received signal y cp (n);
[0096] For cp (n) Windowing (assuming that the windowing position at the receiving end and the transmitting end are perfect), discrete Fourier transform DFT DFT is performed on the windowed signal y(n), the discrete signal in the time domain is transformed into the frequency domain for processing, and the received signal in the frequency domain is obtained: Y(K) = DFT[y(n)] = X(K)*H(K)+W(K) K = 1,2....N, where the windowing length is N (in actual situations, the windowing position cannot be perfect and there must be an offset. Due to circular convolution, y(n) can be regarded as a sequence with a period of length N, so as long as the window length of y(n) is N, it can be guaranteed that the information of one period is intercepted. As long as the window length is N, even if there is an offset, it will not affect the amplitude of the spectrum of the frequency domain response, but only the phase of the frequency domain response. The impact on the phase of the frequency domain response is ultimately manifested in the time domain as an overall offset of the channel's time domain impulse response, which is determined by the time domain cyclic shift theorem of DFT). N represents the number of DFT points, which is the same as the number of subcarriers. Y(K) represents the pilot symbol received by the Kth subcarrier, X(K) represents the pilot symbol sent by the Kth subcarrier, and W(K) is noise;
[0097] A channel estimate is calculated based on the received signal in the frequency domain. in, is the estimated value of Y(K) with noise added, j is the imaginary unit, and q is the window position offset;
[0098] For the formula The first and N / 2 items, since the transmitted sequence is 0, will be infinite when divided by 0. These positions are set to 0 during channel estimation, and the first half of the frequency domain response sequence is taken for conjugate symmetry:
[0099]
[0100] And perform inverse discrete Fourier transform to obtain the channel estimation of the time domain impulse response:
[0101] in,
[0102] It represents the channel impulse response corresponding to time i, and n is the number of sampling points.
[0103] S103: According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain as the first group of pulses, and the first group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and the time when the signals are received by the receiver are calculated according to the first group of pulses;
[0104] Assume that the system has M light source transmitters, and the estimated value of the time domain impulse response from the M1 light source transmitters to the receiver in the first communication time slot contains noise. The time domain impulse response from the M1 light source transmitters to the receiver is manifested as a pulse signal with a higher amplitude, and the noise is manifested as a pulse signal with a lower amplitude. Therefore, the first channel estimation result is subjected to mean denoising, and at this time, the amplitude ratio of the time domain impulse response and noise from each light to the receiver is more different. After mean denoising, the three line-of-sight link pulses with the largest amplitude are selected. These three pulses are emitted by the three light source transmitters closest to the receiver.
[0105] According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain, and the three light source transmitters corresponding to the three line-of-sight link pulses are recorded as the first light source transmitter L1, the second light source transmitter L2, and the third light source transmitter L3 (it is not yet known which three light source transmitters among the M1 light source transmitters these three lights correspond to), and the sampling points corresponding to the three line-of-sight link pulses are marked as the first sampling point subscript n1, the second sampling point subscript n2, and the third sampling point subscript n3;
[0106] Assuming n1>n2>n3 (in actual situations, n1>n2>n3 may not be the case, so it is necessary to obtain solutions in multiple situations through permutations and combinations), calculate the time difference Δt1=(n1-n2)*Ts between the time when L1 sends a communication signal to the time when the receiver receives the communication signal and the time when L2 sends a communication signal to the time when the receiver receives the communication signal, where Ts is the sampling period;
[0107] Calculate the time difference Δt2 = (n1-n3)*Ts between the time from when L1 sends out the communication signal to when the receiver receives the communication signal and the time from when L3 sends out the communication signal to when the receiver receives the communication signal.
[0108] S104: positioning the receiver using a TDOA algorithm according to the first set of time differences to obtain a first set of receiver coordinates;
[0109] Repeat steps S102-S104 for the second group of light source transmitters that send communication signals in the second time slot to obtain a second group of receiver coordinates;
[0110] S105: Find a pair of coordinates with the shortest distance between the first set of receiver coordinates and the second set of receiver coordinates, and select any one of the pair of coordinates as the final positioning of the receiver.
[0111] The indoor wireless optical positioning method described in the present invention realizes wireless optical indoor positioning by using channel state information, that is, when two groups of lights communicate in two different time slots, channel estimation is performed on the channel information in the communication process, and then positioning is performed by the time difference of arrival method (TDOA), so as to realize accurate wireless optical indoor positioning. The present invention integrates wireless optical communication and positioning, and uses the information obtained by channel estimation for positioning, making full use of communication resources. The two groups of light sources use time division multiplexing to communicate with the receiver in turn, and only two time slots are needed to complete the positioning. When used, no additional communication resources are required to transmit the positioning information, saving communication resources; it can be applied to different indoor scenes, and only the time domain impulse response needs to be obtained by channel estimation. No matter how complex the indoor environment is, accurate wireless optical indoor positioning can be realized; the time difference of arrival is used to use the TDOA method for positioning, which reduces the need for time synchronization between the transmitter and the receiver, and the system has good portability, greatly reduces the complexity of the hardware, and reduces the cost; it has good scalability, and the range of positioning can be stably expanded by increasing the number of lights.
[0112] Based on the above embodiments, this embodiment further describes steps S104-S105 in detail:
[0113] Write the equations based on the first set of time differences:
[0114]
[0115] Where c is the speed of light, x i i∈1, 2, 3 represents the horizontal coordinates of L1, L2, L3, y i i∈1, 2, 3 represents the ordinate of L1, L2, L3, z i i∈1, 2, 3 represents the height coordinates of L1, L2, L3, x r Indicates the horizontal coordinate of the receiver, y r represents the vertical coordinate of the receiver, z r represents the height coordinate of the receiver. This system only considers two-dimensional positioning for the time being, so z1, z2, z3, z r is known, and since the lights are on the same ceiling, z1, z2, and z3 are equal;
[0116] Randomly select three light source transmitters from the first group of light source transmitters, and perform permutations and combinations to obtain multiple groups of three-dimensional coordinate values of L1, L2, and L3;
[0117] The method of time difference of arrival is essentially to find the intersection of the hyperbola. According to the three-dimensional coordinate values of the multiple groups of L1, L2, and L3, when only two-dimensional positioning is considered, the equation group is solved using CHAN's method or Fang's method to obtain A solution, namely the first set of receiver coordinates, where M1 is the number of the first set of light source transmitters.
[0118] Solving the equations using CHAN'S method includes:
[0119] Convert the system of equations to a linear system:
[0120]
[0121] And transform it to get x r ,y r , the relationship between R1:
[0122]
[0123] Among them, R 2,1 =c*Δt1, which represents the difference between the distance from L1 to the receiver and the distance from L2 to the receiver, R 3,1 = c*Δt2, which represents the difference between the distance from L1 to the receiver and the distance from L3 to the receiver. After calculating R 2,1 and R 3,1 They are all known quantities, R1 represents the distance from L1 to the receiver;
[0124] The x r ,y r , R1 is substituted into the formula:
[0125]
[0126] We get a quadratic equation about R1 Solve to get the value of R1, and substitute it into the linear equations to get the coordinates of the receiver (two solutions can be obtained for each set of three-dimensional coordinates of the light source transmitter (x r1 ,y r1 ) and (x r2 ,y r2 )), where a, b, c1 are the coordinates of the light source transmitter and R 2,1 , R 3,1 The constant found.
[0127] Solving the system of equations using Fang's method includes:
[0128] A new coordinate system is established, with L1 located at the origin (0, 0), L2 located at (X2, 0), and L3 located at (X3, Y3). The distance R1 from L1 to the receiver can be expressed as:
[0129]
[0130] The distance from L2, L3 to the receiver can be expressed as:
[0131]
[0132] Among them, R i,1 It represents the difference between the distance from Li to the receiver and the distance from L1 to the receiver;
[0133] Substituting formula (1) into formula (2), and combining similar terms by calculation, we can get:
[0134]
[0135]
[0136] According to equations (3) and (4), the relationship between the receiver's horizontal and vertical coordinates is found:
[0137] y r =g·x r +p (5)
[0138] Among them, the coefficient g=(R 3,1 X2 / R 2,1 -X3) / Y3, coefficient All are known quantities;
[0139] Substituting equation (5) into equation (3), we get the final equation to be solved: Solve it to get the receiver coordinates (two solutions can be obtained for each set of three-dimensional coordinates of the light source transmitter (x r1 ,y r1 ) and (x r2 ,y r2 ));
[0140] Wherein, the coefficient d = -{1-(X2 / R 2,1 ) 2 +g 2}, coefficient e = X2{1-(X2 / R 2,1 ) 2}-2 gp ,coefficient All are known quantities.
[0141] The receiver coordinates calculated by CHAN'S and Fang's methods both have two values, denoted as (x r1 ,y r1 ) and (x r2 ,y r2 ). In actual situations, it is not certain which three light source transmitters on the ceiling are the closest to the receiver, that is, the specific coordinates of L1, L2, and L3 may be the coordinates of any light source transmitter on the ceiling. Randomly select 3 light source transmitters from the M1 light source transmitters to correspond to L1, L2, and L3. The light arrangement combinations are There are two solutions for each arrangement of lights, so there are a total of Solution:
[0142] Similarly, in the second time slot of communication, there are a total of Solution:
[0143] The two coordinate points closest to the two sets of solutions are the true solutions:
[0144]
[0145] Based on the above embodiments, in order to evaluate the performance of the proposed wireless optical positioning system and method, this embodiment performs positioning in a specific room:
[0146] The room size is 5m×5m×3m (length×width×height). The light source is evenly distributed on the ceiling and is an LED light. The receiver is a photoelectric detector, such as Figure 2 In this example, let M1 = 3, select LED1, LED7, LED9 as the first group of lights, and communicate with the receiver PD in time slot T1. At the same time, let M2 = 3, LED1, LED4, LED6 as the second group of lights, and communicate with the receiver PD in time slot T2. During communication, channel estimation is required, and the key simulation parameters of channel estimation are as follows:
[0147] Room Size 5m×5m×3m(length×width×height) Temporal resolution 0.1ns FFT points 1024 bandwidth 125Mhz Number of pilot sequences 100
[0148] Figure 3 It shows the frequency domain response of the channel when LED1, LED7, LED9 and the receiver PD communicate when the receiver is located at (2m, 1.5m, 1m) in the time slot T1. Figure 4The corresponding time domain impulse response after IDFT of the frequency domain response is shown. According to the time domain impulse response, the time difference used for positioning is extracted. Using the time difference, combined with the TDOA method, 12 possible solutions are calculated. Then, the second group of lights communicates with PD in time slot T2, repeating the steps of time slot T1, and 12 possible solutions are also obtained. Finally, the symmetric solution is eliminated, and the positioning of the receiver is finally achieved.
[0149] We conducted tests at different locations. The receiving plane height of the test point was 1m, and the intervals between these locations were 0.5m. Figure 5 The crosshairs in the figure are shown. The circles represent the results estimated using the proposed wireless optical positioning system and method. In this example, the average positioning error is 2.13 cm.
[0150] Please refer to Figure 6 , Figure 6 A structural block diagram of an indoor wireless optical positioning device provided by an embodiment of the present invention; the specific device may include:
[0151] The light source transmitter group selection module 100 is used to select two different groups of light source transmitters evenly distributed on the indoor ceiling, and at least ensure that the number of light source transmitters in each group is not less than 3 and are not on the same straight line;
[0152] The channel estimation module 200 is used to perform channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and convert the frequency domain information of the channel estimation into the form of a time domain impulse response to obtain a first channel estimation result; perform channel estimation according to the communication signal sent by the second group of light source transmitters to the receiver in the second time slot, and convert the frequency domain information of the channel estimation into the form of a time domain impulse response to obtain a second channel estimation result;
[0153] The time difference extraction module 300 is used to select three line-of-sight link pulses with the largest peak values in the time domain as the first group of pulses according to the first channel estimation result, and calculate the first group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and received by the receiver according to the first group of pulses; select three line-of-sight link pulses with the largest peak values in the time domain as the second group of pulses according to the second channel estimation result, and calculate the second group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and received by the receiver according to the second group of pulses;
[0154] A coordinate calculation module 400, configured to locate the receiver using a TDOA algorithm, obtain a first set of receiver coordinates based on the first set of time differences, and obtain a second set of receiver coordinates based on the second set of time differences;
[0155] The positioning module 500 is used to find a pair of coordinates with the shortest distance between the first set of receiver coordinates and the second set of receiver coordinates, and select any one of the pair of coordinates as the final positioning of the receiver.
[0156] The indoor wireless optical positioning device of this embodiment is used to implement the aforementioned indoor wireless optical positioning method. Therefore, the specific implementation method of the indoor wireless optical positioning device can be seen in the embodiment part of the aforementioned indoor wireless optical positioning method. For example, the light source transmitter group selection module 100, the channel estimation module 200, the time difference extraction module 300, the coordinate calculation module 400, and the positioning module 500 are respectively used to implement steps S101, S102, S103, S104 and S105 in the aforementioned wireless optical positioning method. Therefore, its specific implementation method can refer to the description of the corresponding various parts of the embodiment, which will not be repeated here.
[0157] The present invention also provides an indoor wireless optical positioning system, comprising:
[0158] Multiple light source transmitters evenly mounted on the indoor ceiling;
[0159] The indoor wireless optical positioning device as mentioned above is used to locate objects or equipment equipped with a receiver using the multiple light source transmitters.
[0160] The indoor wireless optical positioning system can be applied to car positioning in underground parking lots. The light source transmitter is an LED lamp, and the receiver is a photoelectric detector installed on the car.
[0161] By integrating the receiver into a mobile phone, the indoor wireless optical positioning system can also be used for indoor crowd tracking.
[0162] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. An indoor wireless optical positioning method, characterized in that: include: S1: Select two different groups of light source transmitters evenly distributed on the indoor ceiling, and ensure that the number of light source transmitters in each group is not less than 3 and are not on the same straight line; S2: performing channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and converting the frequency domain information of the channel estimation into the form of a time domain impulse response to obtain a first channel estimation result, including: When the receiver receives the communication signal sent by the light source transmitter, it converts the communication signal into an electrical signal and performs analog-to-digital conversion and filters out the DC bias to obtain a received signal; Perform discrete Fourier transform on the windowed received signal y(n) to obtain the received signal in the frequency domain Y(K)=DFT[y(n)]=X(K)*H(K)+W(K)K=1,2…N, where the window length is N, N represents the number of DFT points, which is the same as the number of subcarriers, Y(K) represents the pilot symbol received by the Kth subcarrier, X(K) represents the pilot symbol sent by the Kth subcarrier, and W(K) is noise; A channel estimate is calculated based on the received signal in the frequency domain. in, is the estimated value of Y(K) with noise added, j is the imaginary unit, and q is the window position offset; Take the first half of the frequency domain response sequence for conjugate symmetry: And perform inverse discrete Fourier transform to obtain the channel estimation of the time domain impulse response: in, It represents the channel impulse response corresponding to time i, and n is the number of sampling points; S3: According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain as the first group of pulses, and the first group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and the time when they are received by the receiver are calculated according to the first group of pulses; S4: positioning the receiver using the TDOA algorithm according to the first set of time differences to obtain a first set of receiver coordinates; S5: Repeat steps S2-S4 for the second group of light source transmitters that send communication signals in the second time slot to obtain a second group of receiver coordinates; S6: Find a pair of coordinates that are closest to the first set of receiver coordinates and the second set of receiver coordinates, and select any one of the pair of coordinates as the final positioning of the receiver.
2. The indoor wireless optical positioning method according to claim 1, characterized in that: The method further comprises: performing channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and converting the frequency domain information of the channel estimation into the form of a time domain impulse response, and obtaining the first channel estimation result: Perform mean denoising on the first channel estimation result.
3. The indoor wireless optical positioning method according to claim 1, characterized in that: According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain as the first group of pulses, and the signals emitted by the three corresponding light source transmitters are calculated according to the first group of pulses. The first group of time differences between the time of sending and the time of being received by the receiver includes: According to the first channel estimation result, three line-of-sight link pulses with the largest peak values are selected in the time domain, and three light source transmitters corresponding to the three line-of-sight link pulses are recorded as a first light source transmitter L1, a second light source transmitter L2, and a third light source transmitter L3, and the sampling points corresponding to the three line-of-sight link pulses are marked as a first sampling point subscript n1, a second sampling point subscript n2, and a third sampling point subscript n3; Assuming n1>n2>n3, calculate the time difference Δt1=(n1-n2)*Ts between the time when L1 sends a communication signal and the time when the receiver receives the communication signal and the time when L2 sends a communication signal and the time when the receiver receives the communication signal, where Ts is the sampling period; Calculate the time difference Δt2 = (n1-n3)*Ts between the time from when L1 sends out the communication signal to when the receiver receives the communication signal and the time from when L3 sends out the communication signal to when the receiver receives the communication signal.
4. The indoor wireless optical positioning method according to claim 3, characterized in that: Positioning the receiver using the TDOA algorithm according to the first set of time differences to obtain the first set of receiver coordinates includes: Write the equations based on the first set of time differences: Where c is the speed of light, x i i∈1, 2, 3 represents the horizontal coordinates of L1, L2, L3, y i i∈1, 2, 3 represents the ordinate of L1, L2, L3, z i i∈1, 2, 3 represents the height coordinates of L1, L2, L3, x r Indicates the horizontal coordinate of the receiver, y r represents the vertical coordinate of the receiver, z r Indicates the height coordinate of the receiver; Randomly select three light source transmitters from the first group of light source transmitters, and perform permutations and combinations to obtain multiple groups of three-dimensional coordinate values of L1, L2, and L3; According to the three-dimensional coordinate values of the multiple groups of L1, L2, and L3, when only two-dimensional positioning is considered, the equation group is solved using CHAN's method or Fang's method to obtain A solution, namely the first set of receiver coordinates, where M1 is the number of the first set of light source transmitters.
5. The indoor wireless optical positioning method according to claim 4, characterized in that: The method of using CHAN'S to solve the system of equations includes: Convert the system of equations to a linear system: And transform it to get x r ,y r , the relationship between R1: Among them, R 2,1 =c*Δt1, which represents the difference between the distance from L1 to the receiver and the distance from L2 to the receiver, R 3,1 =c*Δt2, represents the difference between the distance from L1 to the receiver and the distance from L3 to the receiver, R1 represents the distance from L1 to the receiver; The x r ,y r , R1 is substituted into the formula: We get a quadratic equation about R1 The value of R1 is obtained by solving the problem and then substituted into the linear equations to obtain the coordinates of the receiver, where a, b, and c1 are all constants.
6. The indoor wireless optical positioning method according to claim 4, characterized in that: The method of solving the system of equations using Fang's method includes: A new coordinate system is established, with L1 located at the origin (0, 0), L2 located at (X2, 0), and L3 located at (X3, Y3). The distance R1 from L1 to the receiver can be expressed as: The distance from L2, L3 to the receiver can be expressed as: Among them, R i,1 It represents the difference between the distance from Li to the receiver and the distance from L1 to the receiver; Substituting formula (1) into formula (2) yields: According to equations (3) and (4), the relationship between the receiver's horizontal and vertical coordinates is found: y r =g·x r +p (5) Among them, the coefficient g=(R 3,1 X2 / R 2,1 -X3) / Y3, coefficient Substituting equation (5) into equation (3), we get the final equation to be solved: Solve it to get the receiver coordinates; Wherein, the coefficient d = -{1-(X2 / R 2,1 ) 2 +g 2 }, coefficient e = X2{1-(X2 / R 2,1 ) 2 }-2gp, coefficient 7. An indoor wireless optical positioning device, characterized in that: include: The light source transmitter group selection module is used to select two different groups of light source transmitters evenly distributed on the indoor ceiling, and at least ensure that the number of light source transmitters in each group is not less than 3 and are not on the same straight line; The channel estimation module is used to perform channel estimation according to the communication signal sent by the first group of light source transmitters to the receiver in the first time slot, and convert the frequency domain information of the channel estimation into the form of time domain impulse response to obtain a first channel estimation result, including: when the receiver receives the communication signal sent by the light source transmitter, converting the communication signal into an electrical signal and performing analog-to-digital conversion and filtering out the DC bias to obtain a received signal; performing discrete Fourier transform on the windowed received signal y(n) to obtain a received signal in the frequency domain Y(K)=DFT[y(n)]=X(K)*H(K)+W(K)K=1,2…N, wherein the windowing length is N, N represents the number of DFT points, which is the same as the number of subcarriers, Y(K) represents the pilot symbol received by the Kth subcarrier, X(K) represents the pilot symbol sent by the Kth subcarrier, and W(K) is noise; and calculating the channel estimation of the frequency domain response according to the received signal in the frequency domain. in, is the estimated value of Y(K) with noise added, j is the imaginary unit, q is the window position offset; take the first half of the frequency domain response sequence for conjugate symmetry: And perform inverse discrete Fourier transform to obtain the channel estimation of the time domain impulse response: in, represents the channel impulse response corresponding to time i, and n is the number of sampling points; according to the communication signal sent by the second group of light source transmitters to the receiver in the second time slot, channel estimation is performed, and the frequency domain information of the channel estimation is converted into the form of a time domain impulse response to obtain a second channel estimation result; A time difference extraction module, for selecting three line-of-sight link pulses with the largest peak values in the time domain as a first group of pulses according to the first channel estimation result, and calculating a first group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and received by the receiver according to the first group of pulses; for selecting three line-of-sight link pulses with the largest peak values in the time domain as a second group of pulses according to the second channel estimation result, and calculating a second group of time differences between the time when the signals emitted by the three corresponding light source transmitters are sent and received by the receiver according to the second group of pulses; A coordinate calculation module, used to locate the receiver using a TDOA algorithm, obtain a first set of receiver coordinates based on the first set of time differences, and obtain a second set of receiver coordinates based on the second set of time differences; The positioning module is used to find a pair of coordinates with the shortest distance between the first set of receiver coordinates and the second set of receiver coordinates, and select any one of the pair of coordinates as the final positioning of the receiver.
8. An indoor wireless optical positioning system, characterized in that: include: Multiple light source transmitters evenly mounted on the indoor ceiling; The indoor wireless optical positioning device as described in claim 7 is used to locate objects or equipment equipped with a receiver using the multiple light source transmitters.
9. The indoor wireless optical positioning system according to claim 8, characterized in that: Applied to car positioning in underground parking lots, the light source transmitter is an LED lamp, and the receiver is a photoelectric detector installed on the car.
