Physical layer key generation method based on direction finding function of Bluetooth with low power consumption
By using phase difference to estimate angles and perform quantification and information coordination in low-power Bluetooth, combined with the global hash function, the problem of lack of physical layer key generation technology in the Bluetooth field is solved, achieving higher security and key generation. Rate.
Patent Information
- Application Number
- CN202410711532.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, physical layer key generation technology in the Bluetooth field is relatively lacking. Commercial Bluetooth chips only provide signal strength (RSS) values, making it difficult to develop applicable physical layer key generation methods and vulnerable to predictable channel attacks.
Using the direction finding function based on low-power Bluetooth, the angle of arrival and departure are estimated through the phase difference, mapped into a bit sequence using the dual-threshold angle quantization method of the fuzzy boundary, and confidentiality is enhanced through information coordination and a global hash function to generate a shared key.
It reduces the requirements for channel status and signal power, improves the security of key generation, prevents predictable channel attacks, improves the key generation rate, and is difficult to be imitated by attackers.
Smart Images

Figure CN118632245A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of physical layer key generation, and in particular to a physical layer key generation method based on a direction finding function of low power Bluetooth. Background Art
[0002] From smartphones to wearable devices, from home appliances to cars, Bluetooth applications have penetrated into every corner of our lives. However, with the growth of the number of Bluetooth devices, how to ensure the secure transmission of data has become an urgent problem to be solved.
[0003] Key generation technology provides a possibility for wireless communication security, and physical layer key generation is the most special. This technology uses the physical properties of wireless signals, such as channel state information (CSI) and received signal strength (RSS), to generate keys. The advantage of this method is that it does not require any secret information to be shared in advance, and the generated key is random, so it is very effective against traditional password cracking attacks. In fields such as Wi-Fi, there have been many studies and applications on physical layer key generation.
[0004] BLE 5.1 introduces the CTE field, which enables Bluetooth devices that support BLE 5.1 to obtain direction finding capabilities. Although the introduction of the direction finding function is for Bluetooth positioning services, it also provides new possibilities for physical layer key generation technology.
[0005] However, in comparison, physical layer key generation technology in the Bluetooth field is relatively scarce, because commercial Bluetooth chips often only provide RSS values. Therefore, developing a physical layer key generation technology suitable for Bluetooth is an important demand at present. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a method for generating a physical layer key based on a direction finding function of low-power Bluetooth.
[0007] To achieve the above object, the present invention is implemented according to the following technical solutions:
[0008] A method for generating a physical layer key based on a direction finding function of low-power Bluetooth comprises the following steps:
[0009] S1. Estimating an estimated value of an angle of arrival AoA and an estimated value of an angle of departure AoD of a low-power Bluetooth signal using a phase difference;
[0010] S2, using a fuzzy boundary dual threshold angle quantization method to map the estimated value of the arrival angle AoA and the estimated value of the departure angle AoD into a bit sequence, and discarding the value of the threshold boundary when converting into the bit sequence;
[0011] S3, coordinating the bit sequences of the sending Bluetooth device and the receiving Bluetooth device so that the sending end and the receiving end obtain the same bit sequence;
[0012] S4. Perform confidentiality enhancement on the same bit sequence obtained by the transmitting Bluetooth device and the receiving Bluetooth device to obtain a shared key.
[0013] Furthermore, the step S1 specifically includes:
[0014] Estimation of the estimated value of the angle of arrival AoA:
[0015] The low-power Bluetooth signals transmitted from the same antenna of the transmitting Bluetooth device to different antennas of the receiving Bluetooth device are sampled by the analog-to-digital converter ADC, and the I and Q values of the I and Q signals received by different antennas of the receiving Bluetooth device are obtained respectively, through the following formula:
[0016]
[0017] Calculate the phase of the low-power Bluetooth signal received by different antennas of the receiving Bluetooth device, and make a difference in the phase of the low-power Bluetooth signal received by different antennas of the receiving Bluetooth device to obtain the phase difference Ψ, through the following formula:
[0018]
[0019] Obtain an estimated value of the angle of arrival AoA of the low-power Bluetooth signal; where: θ is the estimated value of the angle of arrival AoA, λ is the wavelength, π is the phase period, and d is the spatial distance between different antennas of the receiving Bluetooth device;
[0020] Estimation of the estimated value of the angle of departure AoD:
[0021] The low-power Bluetooth signals transmitted by different antennas of the transmitting Bluetooth device and received by the same antenna of the receiving Bluetooth device are sampled by the analog-to-digital converter ADC to obtain the I value and Q value of the I and Q signals of the low-power Bluetooth signals transmitted by different antennas of the transmitting Bluetooth device, respectively, through the following formula:
[0022]
[0023] Calculate the phase of the low-power Bluetooth signal transmitted by different antennas of the transmitting Bluetooth device, and make a difference in the phase of the low-power Bluetooth signal transmitted by different antennas of the transmitting Bluetooth device to obtain the phase difference Ψ, through the following formula:
[0024]
[0025] Obtain an estimated value of the departure angle AoD of the low-power Bluetooth signal; where: θ is the estimated value of the departure angle AoD, λ is the wavelength, π is the phase period, and d is the spatial distance between different antennas of the transmitting Bluetooth device.
[0026] Furthermore, in step S2, the dual-threshold angle quantization method of fuzzy boundary selects two thresholds n and δ to represent quantization resolution and boundary tolerance respectively.
[0027] Furthermore, the step S3 specifically includes:
[0028] S31. First, the sending Bluetooth device uses a predefined generator polynomial to calculate the CRC check code of the pre-shared key. The specific operation is to perform modulo-2 division of the bit data generated by the sending Bluetooth device on the binary number corresponding to the predefined generator polynomial. The remainder obtained is the CRC check code. Then the sending Bluetooth device sends the remainder to the receiving Bluetooth device.
[0029] S32. After receiving the remainder, the receiving Bluetooth device will use the same generating polynomial to calculate the CRC check code of the pre-shared key generated by itself, and then compare the calculated CRC check code with the received remainder: if the two are equal, it means that the quantization results of both parties are consistent; otherwise, it is discarded or returns to step S31.
[0030] Furthermore, in step S4, a global hash function is used to enhance the confidentiality of the same bit sequence obtained by the transmitting Bluetooth device and the receiving Bluetooth device.
[0031] Compared with the prior art, the present invention has lower requirements on channel status and signal power, and involves the antenna configuration and relative position of the device, making it more difficult for attackers to imitate. It can also prevent predictable channel attacks that are difficult to prevent in RSS-based methods. At the same time, compared with the selection of other entropy sources, the multipath effect is used to further improve the security of key generation; the proposed fuzzy boundary dual threshold angle quantization method greatly improves the key generation rate of Bluetooth key generation compared with traditional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of the present invention.
[0033] Figure 2 The figure is a relationship between the distance between the transmitting and receiving ends and the arriving signal according to an embodiment of the present invention.
[0034] Figure 3 The invention provides a dual-antenna angle of arrival (AoA) estimation principle according to an embodiment of the present invention.
[0035] Figure 4 The invention provides a dual-antenna Angle of Departure (AoD) estimation principle according to an embodiment of the present invention.
[0036] Figure 5 It is the AoA and AoD estimation errors of the present invention and the reciprocity error between them. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments. The specific embodiments described herein are only used to explain the present invention and are not used to limit the invention.
[0038] like Figure 1 As shown, this embodiment exemplarily shows a method for generating a physical layer key based on a direction finding function of low-power Bluetooth, comprising the following steps:
[0039] S1. Estimating an estimated value of an angle of arrival AoA and an estimated value of an angle of departure AoD of a low-power Bluetooth signal using a phase difference;
[0040] S2, using a fuzzy boundary dual threshold angle quantization method to map the estimated value of the arrival angle AoA and the estimated value of the departure angle AoD into a bit sequence, and discarding the value of the threshold boundary when converting into the bit sequence;
[0041] S3, coordinating the bit sequences of the sending Bluetooth device and the receiving Bluetooth device so that the sending end and the receiving end obtain the same bit sequence;
[0042] S4. Perform confidentiality enhancement on the same bit sequence obtained by the transmitting Bluetooth device and the receiving Bluetooth device to obtain a shared key.
[0043] The following is a detailed description. Figure 2 As shown in the figure, a series of concentric circles are made with the transmitting antenna as the center. The transmitting antenna sends a single tone signal to the surroundings. Receiving antenna 1 and receiving antenna 2 are on the same circle, so the phases of the same beam of signals received by the two are the same. However, receiving antenna 3 and receiving antenna 1 are on different circles. If the radius of the circle where receiving antenna 1 is located is not an integer multiple of the wavelength of the signal used, the phases of the same beam of signals received by the two are different, and there is a phase difference between the two.
[0044] Let the distance from the signal emitted by the transmitting antenna to the receiving antenna be r, the time be t, and c be the speed of light, then:
[0045] r=ct (1)
[0046] If the signal period transmitted by the transmitting antenna is T, then:
[0047]
[0048] Among them, (k+u) represents the number of cycles that the signal goes through during flight. When the phase rotates a complete cycle T, it will return to the initial position. Therefore, the k value does not affect the phase change, and the u value reflects the change of the phase in the last incomplete cycle, that is, u*2π.
[0049] Substituting (2) into (1) we get:
[0050]
[0051] Assume that the distances from the transmitting antenna to the receiving antenna 1 and the receiving antenna 3 are r1 and r2 respectively, the time is t1 and t2, and c*T in formula (3) is the wavelength λ of the signal. According to formula (3), we have:
[0052]
[0053] Assuming that the difference between r3 and r1 is very small, less than the wavelength λ of the signal, r3>r1, equation (4) can be simplified to:
[0054] r3-r1=Δu*λ, 0≤Δu<1 (5)
[0055] Among them, r3-r1 is the difference between the distance from the transmitting antenna to the receiving antenna 1 and the distance from the transmitting antenna to the receiving antenna 3, △u is the ratio of this distance difference to the wavelength, which is numerically equal to k3+u3-k1-u1, λ is the signal wavelength, the operating frequency band of Bluetooth is 2.4GHz, and the wavelength λ is about 12.5cm. And because one wavelength represents a complete phase period 2π, equation (5) can be expressed by the phase difference Ψ between the signal transmitted by the transmitting antenna to the receiving antenna 1 and the receiving antenna 2:
[0056]
[0057] In general, it is difficult for the receiving end to directly obtain the phase of the signal. Instead, the signal is orthogonally down-converted after receiving it to generate two signals, I and Q. The essence of this is that the local oscillator at the receiving end generates two orthogonal signals with a known phase difference of 90° and multiplies them with the original signal. These two signals contain information such as the amplitude and phase of the original signal. Subsequently, the analog-to-digital converter (ADC) is used for sampling to obtain samples of the I and Q signals. The phase of the signal can be directly calculated through the I and Q samples, as shown in formula (9):
[0058]
[0059] In AoA estimation, taking the simplest antenna array with two antennas as an example, when estimating AoA, device A with an antenna array receives signals, and device B with a single antenna transmits signals. When the distance between the two devices is large (much larger than the distance between the two antennas of device A), it can be approximately considered that the signal transmitted by the single antenna of device B is parallel to each antenna of the antenna array of device A, such as Figure 3 As shown. Figure 3 In the equation, θ is the angle of arrival of the desired signal, M and N are the locations of the two antennas of the receiving device A, and the spatial distance between them is d. The signals incident in parallel to M and N form a triangle MON, where MO⊥ON. Because it is assumed that the signals are incident in parallel, the phase changes experienced by the signals from the transmitting end when they reach O and N are the same, and the difference in the distance between the two antennas compared to the transmitting antenna is the length Δr of MO. And formula (6) shows that the length of Δr can be obtained by knowing the phase difference Ψ and the wavelength λ of the signal.
[0060] At the same time, Δr and d are in the same triangle, so:
[0061]
[0062] If d is known, the angle of arrival θ can be solved:
[0063]
[0064] The receiving end uses formula (9) to obtain the two phases transmitted from the same antenna to different antennas, and the difference can be used to obtain the phase difference Ψ, and further use formula (8) to complete the AoA estimation.
[0065] The estimation of the departure angle AoD is similar to the estimation of the arrival angle AoA, except that the process is reversed. Figure 4 As shown. When estimating AoD, it is still assumed that the emission directions of different antennas are parallel, and phase synchronization is required between the two antennas at the transmitting end, and the two transmit signals with the same initial phase. Similar to AoA estimation, if the distances from points O and N to the receiving antenna are equal, the phase changes of the two are equal, and the distance difference between the two transmitting antennas and the receiving antenna is still the length Δr of MO, and equation (7) still holds in the AoD scenario, so the formula for calculating AoD is exactly the same as AoA, that is, equation (8). Therefore, under the same reference direction, the estimated value of AoA and the estimated value of AoD are theoretically equal, and are only related to the wavelength of the signal, the distance between the antennas in the antenna array, and the phase difference caused by different antenna positions.
[0066] The receiving end receives the signals transmitted by different phase-synchronized antennas at the transmitting end respectively, and uses formula (9) to obtain their phases. The difference can be used to obtain the phase difference Ψ, and further use formula (8) to complete the AoD estimation.
[0067] The above estimation scheme for AoA and AoD is only an example of implementing this patent. In fact, there are many methods for AoA and AoD estimation, such as the Multiple Signal Classification (MUSIC) algorithm. Using different types of antenna arrays (such as rectangular arrays, circular arrays, etc.) will also have more different types of AoA and AoD estimation algorithms.
[0068] Then, the AoA and AoD values are quantified:
[0069] This embodiment proposes a fuzzy boundary dual threshold angle quantization method to quantize the angle value generated above.
[0070] Generally speaking, the process of key quantization is to map the detected entropy source (referring to the AoA estimation value and the AoD estimation value in the present invention) into a string of bit sequences, so a threshold value n is needed to divide the value range of the entropy source into different intervals, and the values in the same interval are quantized into the same bit sequence, and the values in different intervals are quantized into different bit sequences. The value of n determines the resolution of the quantization process. However, considering that the detection process in reality will be affected by hardware defects, ambient temperature, noise, etc., the values of the entropy source detected by the sender and receiver are not completely equal. Therefore, the values at the boundary between the two intervals may be quantized into different bit sequences due to errors, thereby increasing the bit mismatch rate. In order to reduce the occurrence of this situation, it is necessary to introduce another threshold value δ to discard the values at (boundary value-δ, boundary value+δ). The δ value determines the tolerance to the boundary value.
[0071] In this embodiment, two thresholds n and δ are selected to represent the quantization resolution and the boundary tolerance respectively. For example, if n is selected as 20° and δ is selected as 3°, the mapping relationship between the angle and the quantized bit sequence is shown in Table 1.
[0072] Table 1: Quantization mapping of angles to bit sequences when n = 20° and δ = 3°
[0073] Angle range Quantization value Binary bit string 0°-17° 0 0000 23°-37° 1 0001 43°-57° 2 0010 63°-77° 3 0011 83°-97° 4 0100 103°-117° 5 0101 123°-137° 6 0110 143°-157° 7 0111 163°-180° 8 1000
[0074] For example, when the estimated AoA is 44° and the corresponding AoD is 46°, the angle between the two parties is quantized to 0010; when the estimated AoA is 121° and the corresponding AoD is 119°, the measurement result is discarded. This is the role of the boundary tolerance δ, because when the angle value is exactly at the quantization boundary, the quantization results of the sender and receiver may be different, increasing the key mismatch rate. The higher δ is, the greater the tolerance for the boundary, the lower the key mismatch rate, but the corresponding key generation rate will also decrease, because the discarded angle values will also increase; the lower δ is, the lower the tolerance for the boundary, the higher the key mismatch rate, but the corresponding discarded angle values will decrease, and the key generation rate will increase.
[0075] The n value determines the resolution of the quantization mapping table. The larger the n, the lower the resolution and the fewer types of bit sequences generated, because more angles are quantized into the same category; the smaller the n, the higher the resolution, because fewer angles are quantized into the same category.
[0076] Note that the selection of n and δ values should be based on the specific situation, which is related to many factors such as the noise in the scene, whether there is mutual motion between the sender and the receiver, and the performance of the hardware.
[0077] Traditional RSS-based quantization methods often use only two thresholds δ Max With δ Min , higher than δ Max The RSS value is quantized to 1 bit, which is lower than δ Min The value of is quantized to 0 bits, between δ Max With δ Min Therefore, a detection often only generates 1 bit of data or directly discards the RSS value. The method proposed in this patent will greatly improve the key generation rate compared with the traditional RSS-based solution.
[0078] Since the estimation of AoA and AoD in actual scenarios is affected by factors such as noise, the results of the sender and receiver after quantization may be inconsistent, so additional information coordination is required. Here, the cyclic redundancy check (CRC) is taken as an example.
[0079] CRC is a channel coding technology that generates a short fixed-bit data check code based on data such as network data packets or computer files. It is mainly used to detect errors that may occur during data transmission or storage. Its principle is very simple and can complete the check in a short time. It has low cost and high efficiency. It is one of the most commonly used check methods in the communication field.
[0080] Specifically, let the data to be transmitted be L, and select a predefined generating polynomial f. If the bit width of f is W, then the number of bits of the binary number F corresponding to f is W+1. Add W zeros after L to get L'. Perform a modulo-2 division operation on L' and F (that is, all addition and subtraction operations involved in the division operation are changed to XOR operations), and the remainder obtained is the CRC check code. When the sender sends data L, it splices the CRC check code after L to get L", and after receiving L", the receiver performs a modulo-2 division operation on L" and F. If the remainder is 0, it means that the transmitted data is correct.
[0081] In the above process, the generating polynomial f and its corresponding binary number F need to be determined by yourself when implementing this method, but in fact the selection and determination of f is a very complicated issue. There have been a lot of studies in this area, and users can use existing results such as CRC8, CRC16, etc.
[0082] The binary number F corresponding to f represents the coefficient of each term (1 if it exists, 0 if it does not exist). For example, if:
[0083] CRC8=x 8 +x 5 +x 4 +x 0 ;
[0084] Then its bit width W is 8, and the corresponding binary number is 100110001.
[0085] There is only one difference between CRC check in key generation and in data transmission. In key generation, both the sender and the receiver hold the data to be checked, so only the CRC check code needs to be transmitted. In data transmission, the receiver does not hold the data to be checked, so both the CRC check code and the data to be checked need to be transmitted.
[0086] The specific process of implementing an example of CRC in the present invention is as follows:
[0087] First, the sender and receiver generate bit sequences L1 and L2 by quantizing AoA and AoD. The sender and receiver specify that the generating polynomial used is CRC8, and its corresponding binary number is F CRC8 ;
[0088] The sender adds 8 zeros after L1 to get L1', and then lets L1' and F CRC8 The remainder obtained by the modulo-2 division operation is the CRC check code, and this CRC check code is sent to the receiver;
[0089] The receiver adds 8 zeros after L2 to get L2', and then compares L2' with F CRC8The remainder obtained by the modulo-2 division operation is compared with the received CRC check code. If the two are equal, it means that L1 and L2 are the same and the key generation is consistent, so they are retained; otherwise, it means that L1 and L2 are different and the key generation is inconsistent, so they are discarded. Finally, the receiving end informs the sending end of the check result, and the sending end decides whether to keep or discard the bit sequence based on the check result.
[0090] After information coordination, it can be ensured that the quantitative results of both parties are consistent.
[0091] Note that there are many mature information coordination methods. In addition to the error detection algorithm, there are many error correction algorithms. This embodiment only selects one of them as an implementation plan of this patent.
[0092] After information coordination, the sender and receiver can obtain the same bit sequence. However, this set of sequences cannot be used as a real shared key because the information coordination process will leak information related to this set of sequences (such as CRC checksums). Although this information is not enough to directly restore the complete bit sequence, it still provides clues for attackers to help them guess certain parts of the sequence. Therefore, the bit sequence after information coordination needs to be further enhanced for confidentiality. Currently, confidentiality enhancement work is often carried out using the global hash function solution.
[0093] The so-called hash function h transforms an input k of any length into an output y of fixed length, where y is the hash value. One of the most common hash functions is
[0094] y=h(k)=(a*k+b)mod m, m is a prime number, a and b are constants;
[0095] Let the domain of the hash function be K and the range be Y. Generally speaking, |K|>|Y|.
[0096] Because it involves a modulo operation, no matter how large the input is, it will eventually become an output of fixed length, which also determines that the hash function is irreversible.
[0097] In addition, hash functions are very sensitive to input data. If a very small modification is made to the content of the input k, the output of the hash function will also change dramatically. As a result, the hash function cannot obtain a desired output by fine-tuning the input. This property is called the avalanche effect of the hash function.
[0098] A common approach to enhancing confidentiality is to feed the coordinated bit sequence of information into a hash function, and then use the output of the hash function as the final key. This ensures that even if an attacker obtains the CRC checksum, they cannot calculate the final key.
[0099] However, the hash function has a fundamental flaw, that is, for an input set K, there may be a set of k1, k2, ..., kn that are not equal to each other, and h(k1) = h(k2) = ... = h(kn). This phenomenon is called a collision. This means that the output of the hash function will tend to certain specific values, and the output key is predictable to some extent, thereby reducing the security of the key.
[0100] Therefore, in order to introduce more randomness, the hash function can be randomly selected at runtime, which is the global hash, which is defined as follows:
[0101] And k1≠k2,
[0102] Where m represents the output space range of the hash function, H represents a hash function cluster, the left side of the equation represents the number of hash functions that cause k1 and k2 to collide, and the right side of the equation represents the ratio of the number of hash functions to the output space range.
[0103] The definition shows that the number of hash functions h in H that cause any k1 and k2 to collide is The total number of hash functions is |H|, which means that if a hash function is randomly selected from H, the probability that k1 and k2 collide is:
[0104]
[0105] That is, the output value of the hash function randomly selected in |H| is probabilistically uniformly distributed in the output space, thereby ensuring the randomness of the output and avoiding the situation where the results may be concentrated on certain specific values. This is the importance of global hashing in confidentiality enhancement work.
[0106] After information coordination, either party initiates confidentiality enhancement and sends the selected hash function and parameters to the recipient. Both parties perform the same hash operation, and the output obtained can be used as the final shared key.
[0107] Existing physical layer key generation work is often affected by noise and multipath effects in the environment.
[0108] Of course, the estimation accuracy of AoA and AoD is very important in positioning work. However, due to the noise and multipath effects in the actual environment, the problem of "uncertainty" often needs to be considered when applying AoA and AoD.
[0109] However, the key point of the solution proposed by the present invention is that it does not rely on the accuracy of AoA and AoD values as much as the positioning work requires, but relies on the reciprocity (similarity) of the two. In an ideal state, the values of the two are equal, such as Figure 5 shown.
[0110] exist Figure 5 In this paper, a software defined radio (SDR) was used to conduct an experiment to estimate AoA and AoD using Bluetooth signals. The distance between the sender and the receiver was 1 meter, and the scene was a conference room. Figure 1 As shown in the figure, the median of the estimated error of AoA and AoD is between 7° and 8°, and the maximum error may even exceed 25°; however, the median of the reciprocity error of AoA and AoD is only 0.7°, or even less than 1°, which means that the error caused by the multipath effect in space will only affect the true value error of the angle, and has little effect on the reciprocity between AoA and AoD. The method proposed in the present invention is a key generation method, which needs to ensure the reciprocity of the physical information detected by both parties, but does not need to ensure accuracy. Therefore, in the method proposed in the present invention, the constantly changing multipath effect in the environment will promote the security of the key work.
[0111] The technical solution of the present invention is not limited to the above-mentioned specific embodiments. All technical variations made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims
1. A method for generating a physical layer key based on a direction finding function of low-power Bluetooth, characterized in that: The following steps are involved: S1. Estimating an estimated value of an angle of arrival AoA and an estimated value of an angle of departure AoD of a low-power Bluetooth signal using a phase difference; S2, using a fuzzy boundary dual threshold angle quantization method to map the estimated value of the arrival angle AoA and the estimated value of the departure angle AoD into a bit sequence, and discarding the value of the threshold boundary when converting into the bit sequence; S3, coordinating the bit sequences of the sending Bluetooth device and the receiving Bluetooth device so that the sending end and the receiving end obtain the same bit sequence; S4. Perform confidentiality enhancement on the same bit sequence obtained by the transmitting Bluetooth device and the receiving Bluetooth device to obtain a shared key.
2. The method for generating a physical layer key based on the direction finding function of low-power Bluetooth according to claim 1, characterized in that: The step S1 specifically includes: Estimation of the estimated value of the angle of arrival AoA: The low-power Bluetooth signals transmitted from the same antenna of the transmitting Bluetooth device to different antennas of the receiving Bluetooth device are sampled by the analog-to-digital converter ADC, and the I and Q values of the I and Q signals received by different antennas of the receiving Bluetooth device are obtained respectively, through the following formula: Calculate the phase Φ of the low-power Bluetooth signal received by different antennas of the receiving Bluetooth device, and make a difference in the phase of the low-power Bluetooth signal received by different antennas of the receiving Bluetooth device to obtain the phase difference Ψ, through the following formula: Obtain an estimated value of the angle of arrival AoA of the low-power Bluetooth signal; where: θ is the estimated value of the angle of arrival AoA, λ is the wavelength, π is the phase period, and d is the spatial distance between different antennas of the receiving Bluetooth device; Estimation of the estimated value of the angle of departure AoD: The low-power Bluetooth signals transmitted by different antennas of the transmitting Bluetooth device and received by the same antenna of the receiving Bluetooth device are sampled by the analog-to-digital converter ADC to obtain the I value and Q value of the I and Q signals of the low-power Bluetooth signals transmitted by different antennas of the transmitting Bluetooth device, respectively, through the following formula: Calculate the phase Φ of the low-power Bluetooth signal transmitted by different antennas of the transmitting Bluetooth device, and make a difference in the phase of the low-power Bluetooth signal transmitted by different antennas of the transmitting Bluetooth device to obtain the phase difference Ψ, through the following formula: Obtain an estimated value of the departure angle AoD of the low-power Bluetooth signal; where: θ is the estimated value of the departure angle AoD, λ is the wavelength, π is the phase period, and d is the spatial distance between different antennas of the transmitting Bluetooth device.
3. The method for generating a physical layer key based on the direction finding function of low-power Bluetooth according to claim 1, characterized in that: In the step S2, the dual-threshold angle quantization method of fuzzy boundary selects two thresholds n and δ to represent the quantization resolution and boundary tolerance respectively.
4. The method for generating a physical layer key based on the direction finding function of low-power Bluetooth according to claim 1, characterized in that: The step S3 specifically includes: S31. First, the sending Bluetooth device uses a predefined generator polynomial to calculate the CRC check code of the pre-shared key. The specific operation is to perform modulo-2 division of the bit data generated by the sending Bluetooth device on the binary number corresponding to the predefined generator polynomial. The remainder obtained is the CRC check code. Then the sending Bluetooth device sends the remainder to the receiving Bluetooth device. S32. After receiving the remainder, the receiving Bluetooth device will use the same generating polynomial to calculate the CRC check code of the pre-shared key generated by itself, and then compare the calculated CRC check code with the received remainder: if the two are equal, it means that the quantization results of both parties are consistent; otherwise, it is discarded or returns to step S31.
5. The method for generating a physical layer key based on the direction finding function of low-power Bluetooth according to claim 1, characterized in that: In step S4, a global hash function is used to enhance the confidentiality of the same bit sequence obtained by the transmitting Bluetooth device and the receiving Bluetooth device.
Citation Information
Cited By
Wireless key generation method based on multipath channel phase random scrambling
CN119697631A
