A long-term air interface clock synchronization method based on channel state information
Through the combination of dewarping phase difference sequence and Kalman filter, the time error problem caused by clock drift in Wi-Fi device clock synchronization is solved, high-precision clock synchronization and real-time compensation are achieved, and the performance of Wi-Fi perception is improved. .
Patent Information
- Application Number
- CN202311332228.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-10-16
AI Technical Summary
The propagation of Wi-Fi signals is affected by environmental factors, making it difficult to synchronize clocks between devices. In particular, the accumulation of time errors caused by clock drift affects perception accuracy.
The long-term air interface clock synchronization method based on channel state information is adopted to adaptively adjust the clock state and error covariance through dewinding phase difference sequence, linear fitting and Kalman filtering to achieve clock synchronization accuracy and real-time compensation.
It eliminates the problem of estimating multiple candidate values for the initial clock deviation, improves the accuracy and stability of clock synchronization, can adjust and compensate for changes in clock status in real time, and enhances the accuracy of Wi-Fi perception.
Smart Images

Figure CN117394971B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of channel measurement of wireless communications, and in particular to a long-term air interface clock synchronization method based on channel state information. Background Art
[0002] Wi-Fi sensing plays an important role in the field of scientific research and can be used in environmental perception, location positioning, behavior recognition, and intelligent system research. This technology provides researchers with a contactless, convenient, and widely applicable means, providing new possibilities for scientific research and technological innovation. However, in the field of Wi-Fi sensing, clock synchronization of transceiver devices will bring some challenges to sensing performance. First, the propagation speed of Wi-Fi signals is affected by environmental factors, such as multipath effects and interference from obstacles, which may cause large transmission delays between devices. Second, due to the limited hardware and clock accuracy of Wi-Fi devices, clock drift between devices may cause the accumulation of time errors. Since Wi-Fi signals have high frequencies and propagate at the speed of light, even a slight time error will greatly reduce the sensing accuracy.
[0003] In order to solve the clock synchronization problem in Wi-Fi sensing, researchers have proposed various algorithms and protocols. Among them, a common method is to use timestamps and mutual communication to estimate the clock deviation and clock drift between devices to achieve time synchronization. Some algorithms also combine time calibration and clock compensation techniques to improve the accuracy and stability of time synchronization. In the field of Wi-Fi sensing, research and solutions to clock synchronization problems have received widespread attention.
[0004] Mainstream Wi-Fi protocols such as 802.11a / g / n / ac / ax use Orthogonal Frequency Division Multiplexing (OFDM) broadband modulation technology for communication. OFDM is a modulation technology used in wireless communication and digital communication systems. It divides high-speed data streams into multiple low-speed subcarriers for transmission, and each subcarrier is orthogonal and independent of each other. This multi-channel transmission capability enables Wi-Fi sensing to sense and receive multiple Wi-Fi signals at the same time, improving the efficiency and capacity of sensing. This spectrum allocation method can make full use of spectrum resources and improve the efficiency of spectrum utilization. In Wi-Fi sensing, this means that multiple Wi-Fi signals can be sensed and received at the same time, providing more comprehensive environmental information.
[0005] Kalman filtering is a recursive filtering algorithm based on the state space model, which was first proposed by RE Kalman in 1960. It models the dynamic model and measurement model of the system, and performs state estimation and filtering based on prior information and measurement results to obtain the optimal estimate of the system state. In the field of clock synchronization, the Kalman filtering method can be used to estimate and correct the drift and noise of the clock to achieve more accurate clock synchronization. Specifically, the Kalman filtering method uses the state equation and observation equation of the system to fuse the predicted value and actual observation value of the clock through a dynamic update process, thereby obtaining an estimate of the true state of the clock. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a long-term air interface clock synchronization method based on channel state information, which eliminates the problem of multiple candidate values for estimating the initial clock deviation by unwrapping the phase difference sequence. According to the principle of linear fitting, the slope of the curve after fitting the unwrapped phase difference sequence and the time interval sequence is unique; the clock deviation is estimated using the Kalman filter method, which uses the accuracy of prior information, measurement noise and system model to adaptively adjust the estimated clock state and error covariance to achieve the accuracy of clock synchronization; the estimation result is continuously improved by iterative updating, thereby providing accurate clock synchronization, and being able to adjust and compensate for changes in the clock state in real time.
[0007] The object of the present invention is to achieve the following technical solution: a long-term air interface clock synchronization method based on channel state information, the method comprising the following steps:
[0008] S1. The master node PN sends several Wi-Fi frames to the slave node SN according to the time interval function Z(k), where k is the Wi-Fi frame sequence number. The calculation formula of the time interval function Z(k) is specifically Z(k)=b+t kmodc , where mod is the modulo operation, and b, t, and c are all constants.
[0009] S2, after receiving n Wi-Fi frames from node SN, measure the CSI information of each frame and extract the phase information of each frame to form a sequence in Represents the phase of the i-th Wi-Fi frame, calculates the phase difference between adjacent frames, and obtains the phase difference sequence The calculation method is The phase difference sequence Δθ is unwound to obtain the unwound phase difference sequence Δθ train .
[0010] S3. Construct a receiving time interval sequence T based on k and Z(k) train , the receiving time interval sequence Ttrain and the phase difference sequence ΔΘ after unwrapping train Perform a linear fit and obtain a linear function with a slope of s.
[0011] S4. Process s to obtain the clock deviation O between the master node PN and the slave node SN at the nth frame. clock (n).
[0012] S5. Let the state vector be x k , V' clock (k) represents the predicted rate of change of the clock deviation of the kth frame, O' clock (k) represents the predicted master-slave clock deviation of the kth frame, ΔΘ' track (k) represents the predicted phase of the kth frame, x k The matrix representation of is as follows:
[0013]
[0014] Assume that the initial value of the change rate of the master node and the slave node clock is 0, that is, V clock (0) = 0, the initial value of the state vector is x 0 , x 0 It is expressed as follows:
[0015]
[0016] Let the state transfer matrix of the kth frame be F k , F k It is expressed as follows:
[0017]
[0018] Let the state covariance matrix of the kth frame be P k , whose initial value is P 0 ,P 0 It is expressed as follows:
[0019]
[0020] Using the state transfer matrix F of the kth frame k and the state vector of the k-1th frame to predict the state vector x of the kth Wi-Fi frame k , the calculation formula is as follows:
[0021] x k =F k x k-1 ;
[0022] Using the state transfer matrix F of the kth frame k The state covariance matrix of the k-1th frame is used to predict the state covariance matrix P of the kth Wi-Fi frame.k , the calculation formula is as follows:
[0023]
[0024] Where Q is the system white noise with variance 1;
[0025] Assume the system observation matrix is H k , the initial value of the system observation matrix is H 0 , H 0 The matrix representation of is as follows:
[0026]
[0027] Let the Kalman gain of the kth Wi-Fi frame be ω k ;
[0028] Let the matrix M k is the clock change rate V of the master node PN for the kth Wi-Fi frame clock (k), clock deviation O clock (k) and the actual measured value of the phase Δθ track (k) measurement, M k The matrix representation of is as follows:
[0029]
[0030] Using the matrix M of the kth frame k , the system observation matrix H of the kth frame k , the Kalman gain of the kth frame and the state vector of the kth frame update the state vector x of the kth frame k1 , x k1 The calculation formula is as follows:
[0031] x k1 =x k +ω k (M k -H k ·x k );
[0032] Update the state covariance matrix P of the kth Wi-Fi frame using the Kalman gain of the kth frame, the system observation matrix of the kth frame, and the state covariance matrix of the k-1th frame k , P k The calculation formula is as follows:
[0033]
[0034] The clock deviation of the kth frame is O' clock (k), O' clock (k) is x kThe second component in .
[0035] The calculated clock deviation O' clock (k) Compensated to the slave node SN clock, the compensated SN clock is O sn The calculation formula is as follows:
[0036] O sn =O s ' n +O' clock (k)
[0037] In the formula, O sn Indicates the clock deviation at the current time, O s ' n Indicates the clock deviation of the last moment.
[0038] The slave node SN continues to receive the kth Wi-Fi frame sent by the master node PN, and then calculates the kth frame according to the clock deviation O at the k-1th frame. clock (k-1), CSI information of the kth frame, use Kalman filtering to predict and update the clock deviation; compensate the calculated clock deviation to the slave node SN clock.
[0039] The slave node SN repeats step S5 for each frame received next, and continuously compensates the clock deviation to the slave node SN clock.
[0040] The beneficial effects of the present invention are:
[0041] 1. The present invention eliminates the problem of multiple candidate values for estimating the initial clock deviation by unwrapping the phase difference sequence. According to the principle of linear fitting, the slope of the curve after fitting the unwrapped phase difference sequence and the time interval sequence is unique.
[0042] 2. The present invention uses a Kalman filter method to estimate the clock deviation. The Kalman filter method uses prior information, measurement noise and the accuracy of the system model to adaptively adjust the estimated clock state and error covariance to achieve the accuracy of clock synchronization.
[0043] 3. The present invention continuously improves the estimation result through iterative updating, thereby providing accurate clock synchronization and being able to adjust and compensate for changes in clock status in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flowchart illustrating the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in 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.
[0046] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0047] The method disclosed in the present invention can be used in all Wi-Fi standards supported working frequency bands 2.4 / 5 / 6GHz bands, bandwidths bw (20, 40, 80, 160, 320MHz), and protocol formats (IEEE802.11 a / g / n / ac / ax / be). For example, the transmitting end PN is 5.75GHz, bw is 40MHz, and the transmission format is the IEEE802.11n protocol.
[0048] The master node PN and the slave node SN operate at the same working bandwidth and carrier frequency. For example, the master node PN and the slave node SN both operate at Wi-Fi standard channel 40 (carrier frequency 5715 MHz) with a bandwidth of 40 MHz.
[0049] like Figure 1 As shown, a long-term air interface clock synchronization method based on channel state information includes the following steps:
[0050] The master node PN end follows the time interval function Z(k)=150+5 kmod5 (k represents the Wi-Fi frame number, mod is the modulo operation), and continuously sends several Wi-Fi frames to the slave node SN.
[0051] After receiving 100 Wi-Fi frames from the node SN, the CSI information of each frame is measured and the phase information of each frame is extracted to form a sequence Difference the phases of two adjacent frames to obtain the phase difference sequence of all adjacent frames
[0052] The slave node SN constructs the receiving time interval sequence T according to k and Z(k) train , then T train is the dependent variable, ΔΘ trainAs the independent variable, a first-order linear fit is performed using y=sx+b to obtain a linear function with a slope s. Based on s, the clock deviation O between the master node PN and the slave node SN when receiving the 100th frame is calculated. clock (100).
[0053] The slave node SN continues to receive the 101th Wi-Fi frame sent by the master node PN.
[0054] Let the state vector be x k , V' clock (k) represents the predicted rate of change of the clock deviation of the kth frame, O' clock (k) represents the predicted master-slave clock deviation of the kth frame, ΔΘ' track (k) represents the predicted phase of the kth frame, x k The matrix representation of is as follows:
[0055]
[0056] Assume that the initial value of the change rate of the master node and the slave node clock is 0, that is, V clock (0) = 0, the initial value of the state vector is x 0 , x 0 It is expressed as follows:
[0057]
[0058] Let the state transfer matrix of the kth frame be F k , F k It is expressed as follows:
[0059]
[0060] Let the state covariance matrix of the kth frame be P k , whose initial value is P 0 ,P 0 It is expressed as follows:
[0061]
[0062] Using the state transfer matrix F of the kth frame k and the state vector of the k-1th frame to predict the state vector x of the kth Wi-Fi frame k , the calculation formula is as follows:
[0063] x k =F k x k-1 ;
[0064] Using the state transfer matrix F of the kth frame k The state covariance matrix of the k-1th frame is used to predict the state covariance matrix P of the kth Wi-Fi frame.k , the calculation formula is as follows:
[0065]
[0066] Where Q is the system white noise with variance 1;
[0067] Assume the system observation matrix is H k , the initial value of the system observation matrix is H 0 , H 0 The matrix representation of is as follows:
[0068]
[0069] Let the Kalman gain of the kth Wi-Fi frame be ω k ;
[0070] Let the matrix M k is the clock change rate V of the master node PN for the kth Wi-Fi frame clock (k), clock deviation O clock (k) and the actual measured value of the phase Δθ track (k) measurement, M k The matrix representation of is as follows:
[0071]
[0072] Using the matrix M of the kth frame k , the system observation matrix H of the kth frame k , the Kalman gain of the kth frame and the state vector of the kth frame update the state vector x of the kth frame k1 , x k1 The calculation formula is as follows:
[0073] x k1 =x k +ω k (M k -H k ·x k );
[0074] Update the state covariance matrix P of the kth Wi-Fi frame using the Kalman gain of the kth frame, the system observation matrix of the kth frame, and the state covariance matrix of the k-1th frame k , P k The calculation formula is as follows:
[0075]
[0076] The clock deviation of the kth frame is O' clock (k), O' clock (k) is x kThe second component in .
[0077] The calculated clock deviation O' clock (k) Compensated to the slave node SN clock, the compensated SN clock is O sn The calculation formula is as follows:
[0078] O sn =O s ' n +O' clock (k)
[0079] In the formula, O sn Indicates the clock deviation at the current time, O s ' n Indicates the clock deviation of the last moment.
[0080] For each frame received next, for example, the 102nd Wi-Fi frame, the 103rd Wi-Fi frame, and so on, the slave node SN starts from step S5, obtains the clock deviation using Kalman filtering, and continuously compensates the clock deviation to the slave node SN clock, thereby achieving long-term air interface clock synchronization between the master node PN and the slave node SN.
[0081] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A long-term air interface clock synchronization method based on channel state information, characterized in that: The following steps are involved: S1. The master node PN sends several Wi-Fi frames to the slave node SN according to the time interval function Z(k), where k is the Wi-Fi frame sequence number; S2: Receive n Wi-Fi frames from the slave node SN and measure the channel state information CSI. Obtain the unwrapped phase difference sequence Δθ based on the CSI of each frame. train ; S3. Construct a receiving time interval sequence T based on k and Z(k) train , the receiving time interval sequence T tra in and the phase difference sequence ΔΘ after unwinding train Perform linear fitting to obtain a linear function with a slope of s; S4. Process s to obtain the clock deviation O between the master node PN and the slave node SN at the nth frame. clock (n); S5, the slave node SN continues to receive the kth Wi-Fi frame sent by the master node PN, and then according to the clock deviation O at the k-1th frame clock (k-1) and the CSI information of the kth frame, use Kalman filtering to predict and update the clock deviation, and compensate the calculated clock deviation to the slave node SN clock; S6. The slave node SN repeats step S5 for each frame received next, and continuously compensates the clock deviation to the slave node SN clock.
2. A long-term air interface clock synchronization method based on channel state information according to claim 1, characterized in that: In step S1, the calculation formula of the time interval function Z(k) is specifically Z(k)=b+t kmodc , where mod is the modulo operation, and b, t, and c are all constants.
3. The long-term air interface clock synchronization method based on channel state information according to claim 1, characterized in that: The sub-steps in step S2 are as follows: S21, after receiving n Wi-Fi frames from node SN, measure the CSI information of each frame and extract the phase information of each frame to form a sequence in represents the phase of the i-th Wi-Fi frame; S22, calculate the phase difference between adjacent frames to obtain a phase difference sequence The calculation method is S23, unwinding the phase difference sequence Δθ to obtain the unwound phase difference sequence Δθ train .
4. The long-term air interface clock synchronization method based on channel state information according to claim 1, characterized in that: The sub-steps in step S5 are as follows: S51, let the state vector be x k , V' clock (k) represents the predicted rate of change of the clock deviation of the kth frame, O' clock (k) represents the predicted master-slave clock deviation of the kth frame, ΔΘ' track (k) represents the predicted phase of the kth frame, x k The matrix representation of is as follows: S52, set the initial value of the change rate of the master node and the slave node clock to 0, that is, V clock (0) = 0, the initial value of the state vector is x0, and x0 is expressed as follows: S53, let the state transfer matrix of the kth frame be F k , F k It is expressed as follows: S54, let the state covariance matrix of the kth frame be P k , its initial value is P0, P0 is expressed as follows: S55, using the state transfer matrix F of the kth frame k and the state vector of the k-1th frame to predict the state vector x of the kth Wi-Fi frame k , the calculation formula is as follows: x k =F k x k-1 ; S56, using the state transfer matrix F of the kth frame k The state covariance matrix of the k-1 frame is used to predict the state covariance matrix P of the k-th Wi-Fi frame. k , the calculation formula is as follows: Where Q is the system white noise with variance 1; S57, let the system observation matrix be H k , the initial value of the system observation matrix is H0, and the matrix of H0 is expressed as follows: S58. Let the Kalman gain of the kth Wi-Fi frame be ω k ; S59, let matrix M k is the clock change rate V of the master node PN for the kth Wi-Fi frame clock (k), clock deviation O clock (k) and the actual measured value of the phase Δθ track (k) measurement, M k The matrix representation of is as follows: S510, using the matrix M of the kth frame k , the system observation matrix H of the kth frame k , the Kalman gain of the kth frame and the state vector of the kth frame update the state vector of the kth frame, and the updated state vector of the kth frame x k1 The calculation formula is as follows: x k1 =x k +ω k (M k -H k ·x k ); S511, using the Kalman gain of the kth frame, the system observation matrix of the kth frame, and the state covariance matrix of the k-1th frame to update the state covariance matrix P of the kth Wi-Fi frame k , P k The calculation formula is as follows: S512, the clock deviation of the kth frame is O' clock (k), O' clock (k) is x k The second component in ; S513, the calculated clock deviation O' clock (k) Compensated to the slave node SN clock, the compensated SN clock is O sn The calculation formula is as follows: O sn =O' sn +O' clock (k), In the formula, O sn Indicates the clock deviation at the current time, O s ' n Indicates the clock deviation of the last moment.
