Vehicle digital key positioning method and device, vehicle and storage medium

Through the combination of MUSIC algorithm and LSTM neural network, the problem of inaccurate positioning and environmental interference in Bluetooth key positioning technology is solved, high-precision and stable key positioning in and out of the car is achieved, and the robustness of keyless entry and start-up is improved. sex.

CN118972788APending Publication Date: 2024-11-15HELLA SHANGHAI ELECTRONICS
View PDF 0 Cites 9 Cited by

Patent Information

Application Number
CN202411065159.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing Bluetooth key positioning technology has problems such as inaccurate positioning, slow speed, and limited application scenarios, especially in the case of environmental interference and signal occlusion, which can easily lead to mislocalization.

Method used

The distance measurement is performed using the MUSIC algorithm, and the filtering and mode judgment are performed in combination with the RSSI signal strength value and the LSTM neural network. The distance measurement value and signal strength of multiple Bluetooth anchor points are performed to ensure positioning accuracy and stability.

Benefits of technology

It realizes high-precision key positioning in and out of the car, reduces the impact of environmental interference, ensures positioning capabilities and system stability in all scenes without dead angles, and improves the robustness of keyless entry and start-up.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972788A_ABST
    Figure CN118972788A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle digital key positioning method and device, a vehicle and a medium. The method comprises the following steps: after Bluetooth connection with a digital key client is established, acquiring Bluetooth signal strength values RSSI of the digital key received by a plurality of Bluetooth anchor points, running a first algorithm to carry out distance measurement, and acquiring distance measurement values of each anchor point and the digital key; based on the average value of the RSSIs of the vehicle end and the digital key end, judging a PE mode or a PS mode, and if the vehicle end is in the PE mode, running a second algorithm based on a distance measurement value and a Bluetooth signal strength value RSSI to determine a position area of the digital key relative to the vehicle; if the key is in the PS mode, when it is confirmed that the digital key is located in the vehicle, an in-vehicle positioning algorithm is executed to determine the position area of the digital key relative to the vehicle, and when it is confirmed that the key is nearby the vehicle, an out-vehicle close-range algorithm is executed to determine the position area of the digital key relative to the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of Bluetooth positioning, and in particular to a high-performance vehicle internal and external Bluetooth key positioning method. Background Art

[0002] With the development and maturity of the Internet of Vehicles, Bluetooth digital keys are an improvement over remote vehicle control, which can avoid the inability to open the door or start the vehicle in an underground garage or in places with poor mobile signals. When the key approaches the vehicle from a distance and is within a certain range, the vehicle turns on the welcome light; when the key is outside the vehicle and in a safe position near the vehicle, the keyless entry function is enabled. The keyless start function is enabled when and only when the key is in the car. Therefore, the Bluetooth digital key function needs to identify whether it is inside or outside the car, as well as its location outside the car.

[0003] The current implementation technology is based on signal strength ranging and positioning methods, but this technology has certain defects and limitations. First, this technology is easily interfered by environmental factors, such as walls, building structures and metal objects, which reduces its accuracy; second, the signal strength ranging range is limited, and occlusion and multipath interference may cause signal fluctuations, affecting the accuracy of ranging and positioning, especially when near the door, it is easy to judge that it is inside the car, causing erroneous positioning results; therefore, when implementing this technology, various factors need to be considered comprehensively to ensure that the needs of specific applications are met.

[0004] In the prior art, the Bluetooth signal strength RSSI value is generally used to directly judge whether the vehicle is inside or outside the vehicle, or the Bluetooth key coordinates are determined by a three-point positioning method and compared with the vehicle size boundary value to judge the inside and outside state of the vehicle. The method of judging the Bluetooth signal strength RSSI value is used to distinguish the inside and outside states of the vehicle. Generally, the judgment is made by the average of the anchor 0 in the car and the RSSI value 3 of the key. If the average is less than a certain threshold, it is judged as inside the car, and if it is greater than a certain threshold, it is judged as outside the car. However, since the key is sometimes blocked by people when it is in the car, the RSSI signal will become worse, and the value will become larger, and it will be judged to be outside the car. In addition, due to the instability of the RSSI signal value, jumps may occur due to interference, signal reflection, etc., causing the Bluetooth system to jump between inside and outside the car.

[0005] The three-point positioning method first obtains the distance between the key and the anchor through the distance measurement algorithm, then determines the position of the Bluetooth key relative to the vehicle coordinate system through the three-point positioning method, and finally determines whether it is inside or outside the vehicle based on the vehicle boundary size. However, due to interference and other reasons, there are certain errors in the distance measurement results, and there are errors in positioning using the distance measurement results. Especially when the key is in the car, there is only one anchor in the car and multiple anchors outside the car, which makes the distance measurement value error between the key and the anchor outside the car large. Multiple errors accumulate and the accuracy of positioning inside and outside the car is not high enough.

[0006] Therefore, the above solution results in the keyless entry system being not very robust and failing to provide a good experience to the driver and passengers. Summary of the invention

[0007] The present invention provides a vehicle digital key positioning method, device, vehicle and storage medium to solve the problems of current key positioning methods such as inaccurate positioning, slow positioning speed and limited application scenarios.

[0008] In a first aspect, the present invention provides a vehicle key positioning method, comprising:

[0009] Establishing a Bluetooth connection with a digital key client, obtaining a Bluetooth signal strength value RSSI of the digital key received by multiple Bluetooth anchor points, wherein each of the Bluetooth anchor points is respectively set in an interior area and an exterior area of ​​the vehicle;

[0010] Running a first algorithm to perform distance measurement, and generating distance measurement values ​​between each Bluetooth anchor point and the digital key;

[0011] Based on the average RSSI of the vehicle and digital key, the PE or PS mode is determined, where:

[0012] If in PE mode, a second algorithm is run based on the ranging value and the Bluetooth signal strength value RSSI to determine the location area of ​​the digital key relative to the vehicle;

[0013] If in PS mode, when it is confirmed that the digital key is in the car, the in-car positioning algorithm is executed to determine the location area of ​​the digital key relative to the vehicle. When it is confirmed that the key is near the car, the out-of-car short-distance algorithm is executed to determine the location area of ​​the digital key relative to the vehicle.

[0014] Furthermore, at least one Bluetooth anchor point is set in the vehicle, and at least two Bluetooth anchor points are set outside the vehicle.

[0015] Furthermore, the first algorithm is a MUSIC algorithm;

[0016] Furthermore, when the RSSI average is less than the minimum boundary value twice in a row, the system enters the PS mode, otherwise it enters the PE mode.

[0017] Furthermore, if it is PE mode, the ranging value and RSSI value are obtained from each Bluetooth anchor point respectively, the three anchor points with the largest RSSI values ​​are selected, and the second algorithm is run, that is, the three-point positioning method is used for initial positioning and then the digital key is tracked and positioned through the Kalman filter algorithm.

[0018] Furthermore, if it is PS mode, the product of the signal strength value of the Bluetooth anchor point transmitter set in the car and the signal strength value of the digital key end is multiplied by the product of the signal strength values ​​of the remaining Bluetooth anchor points set outside the car and the digital key. If all the difference values ​​are greater than the first threshold, the in-car algorithm is executed.

[0019] Furthermore, when the digital key is inside the car, the three-point positioning method is used to determine the position of the Bluetooth key based on the ranging results obtained from the three Bluetooth anchor points with the largest RSSI values, and the position of the Bluetooth key is compared with the pre-divided area position coordinates to determine the area to which the Bluetooth key belongs; when the digital key is near the car, the outside-vehicle short-range algorithm is executed, and the three-point positioning method is used to determine the position of the Bluetooth key based on the ranging results obtained from the three Bluetooth anchor points with the largest RSSI values.

[0020] Furthermore, it also includes filtering the RSSI value, and during filtering, only retaining RSSI values ​​between -25 and -100, and then taking the average of these values ​​as the RSSI value of each Bluetooth anchor point, and then performing a sliding window operation to perform a sliding average of the RSSI value and distance value of each Bluetooth anchor point.

[0021] Furthermore, after filtering, the inside and outside of the car are positioned based on the LSTM neural network according to the ranging value of each anchor point and the RSSI value of the Bluetooth signal strength; if the digital key is judged to be outside the car, the ranging value of the three Bluetooth anchor points with the best signal strength is selected, and the specific position of the digital key is determined by the three-point positioning method; if the digital key is judged to be inside the car, the keyless start operation is performed directly.

[0022] Furthermore, as in the above positioning method, the positioning result is compared with the pre-divided area position, and the body controller BCM controls each component to perform the welcoming operation, keyless entry operation and keyless start operation.

[0023] Another aspect of the present invention further discloses a digital key positioning device, comprising:

[0024] An acquisition module, used for acquiring a Bluetooth signal strength value RSSI of the digital key received by a plurality of Bluetooth anchor points when the digital key enters a position detection area, wherein each of the Bluetooth anchor points is respectively arranged in an interior area of ​​the vehicle and an exterior area of ​​the vehicle;

[0025] A distance measurement module, which runs a first algorithm to measure the distance based on the Bluetooth signal strength values ​​RSSI of the digital key received by multiple Bluetooth anchor points, and obtains the distance between each anchor point and the digital key;

[0026] The judgment module judges the PE or PS mode based on the average RSSI of the vehicle end and the digital key end;

[0027] A first positioning module, used to determine the remote position of the digital key outside the vehicle based on the PE mode;

[0028] The second positioning module is used to determine the position of the digital key in the vehicle or the position of the digital key outside the vehicle at a close distance based on the PS mode.

[0029] Furthermore, it also includes a filtering processing module, which is used to filter the RSSI value and the ranging value.

[0030] Furthermore, it also includes a training module, which is used to input the ranging information and Bluetooth signal strength RSSI value of each anchor point into the LSTM neural network to train the LSTM neural network model.

[0031] The present invention also discloses a vehicle, comprising:

[0032] at least one controller; and

[0033] A memory in communication with the at least one controller; wherein,

[0034] The memory stores a computer program that can be executed by the at least one controller, and the computer program is executed by the at least one controller so that the at least one controller can execute any of the above-mentioned vehicle digital key positioning methods.

[0035] One aspect of the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a controller to implement any of the above-mentioned vehicle digital key pair positioning methods when executed.

[0036] Compared with the prior art, the above technical solution has the following beneficial effects:

[0037] 1. The present invention firstly measures the distance through the MUSIC algorithm, and then performs positioning according to the distance measurement result. Compared with other distance measurement algorithms such as the TOF distance measurement algorithm and the RSSI empirical formula, the present invention has the characteristic of high distance measurement accuracy. Therefore, according to the distance value between the Bluetooth key and the Bluetooth anchor point, accurate positioning can be performed through the positioning algorithm.

[0038] 2. In the past, algorithms for ranging and positioning were based on RSSI values. However, when the RSSI value was blocked by the human body or placed in a pocket or bag, the RSSI value would fluctuate greatly, causing the positioning system to be greatly affected by the external environment and unable to achieve positioning in non-line-of-sight conditions. This limited the application of the positioning system. The present invention can achieve positioning in all scenarios without blind spots without being affected by environmental factors.

[0039] 3. Since most Bluetooth anchor points are installed outside the car, the Bluetooth signal is not as good as outside the car when inside the car, resulting in unstable positioning results. The inside of the car is often positioned outside the car. The present invention adopts two branches in the positioning part of the PS mode. The difference between the RSSI values ​​of Anchor0 and the other Anchors is used to judge whether it is inside or outside the car. If it is judged to be inside the car, coordinate projection is performed to achieve accurate positioning inside and outside the car.

[0040] 4. The present invention first filters the RSSI values ​​and ranging values ​​of anchor0 to anchor5 by a sliding average method to prevent the system from being unstable due to sudden changes in RSSI values ​​and ranging values ​​caused by unstable signals. Then, the LSTM neural network method is used to determine whether the vehicle is inside or outside the vehicle, which is more reliable than the existing solution of manually determining the RSSI threshold of anchor0 and the key. In addition, the LSTM inputs the RSSI value and distance information within a period of time, and combines the RSSI value and distance information of the current state with the information of the historical state for judgment, making the system more stable, such as more accurate transitions from inside the vehicle to outside the vehicle and from outside the vehicle to inside the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Layout diagram for Bluetooth anchor point in vehicle

[0042] Figure 2 Bluetooth signal detection diagram

[0043] Figure 3 Flow chart of the vehicle digital key positioning method according to the first embodiment of the present invention

[0044] Figure 4 Flow chart of the vehicle digital key positioning method according to the second embodiment of the present invention

[0045] Figure 5 Divide the area in the vehicle

[0046] Figure 6 Flowchart of the vehicle digital key positioning method based on LSTM in the third embodiment of the present invention

[0047] Figure 7 Schematic diagram of the three-point positioning algorithm

[0048] Figure 8 A schematic diagram of the structure of the positioning device of the vehicle digital key of the present invention DETAILED DESCRIPTION

[0049] The advantages of the present invention are further described below in conjunction with the accompanying drawings and specific embodiments.

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0051] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0052] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0053] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0054] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0055] In the following description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module" and "component" can be used interchangeably.

[0056] Embodiment 1

[0057] Figure 3 This is a flow chart of a vehicle key positioning method provided according to the first embodiment of the present invention. This embodiment is applicable to the case of accurately positioning a vehicle key. The method can be executed by a vehicle key positioning device. The vehicle key area positioning device can be implemented in the form of software and / or hardware and configured in the vehicle. The type of vehicle is not limited. As shown in the figure, the method includes:

[0058] S1: Arrange multiple Bluetooth devices in the vehicle interior area and the vehicle exterior area respectively.

[0059] There is no limit on the number and location of Bluetooth devices (Anchors), which can be determined based on actual needs. Bluetooth devices can be set in the vehicle interior and exterior areas respectively. For example, one Bluetooth device can be set in the vehicle interior area, and one Bluetooth device can be set in the vehicle exterior area at each of the four headlights. All five devices can receive the digital key signal.

[0060] S2: The Bluetooth device continues to broadcast signals.

[0061] S3: When the digital key enters the range of the Bluetooth device, after establishing a Bluetooth connection with the digital key client, obtain the Bluetooth signal strength value RSSI of the digital key received by multiple Bluetooth anchor points.

[0062] There is no limitation on the way that the digital key establishes Bluetooth connection with multiple Bluetooth anchor points, and the connection method can be any connection method that can achieve the connection between the Bluetooth anchor point and the Bluetooth key. For example, the connection can be made through broadcasting, where the MCU controls and broadcasts multiple Bluetooth anchor points with fixed IDs, or through point-to-point connection or MESH network connection. The car keyless entry system generally uses broadcasting to connect.

[0063] S4: Run the first algorithm to perform distance measurement, and obtain the distance measurement value between each Bluetooth anchor point and the digital key.

[0064] The first algorithm may be a MUSIC algorithm, which performs distance measurement through the MUSIC algorithm, and then performs positioning based on the distance measurement result. Compared with other distance measurement algorithms such as the TOF distance measurement algorithm and the RSSI empirical formula, the MUSIC algorithm has the characteristic of high distance measurement accuracy. Therefore, accurate positioning can be performed through the positioning algorithm based on the distance value between the Bluetooth key and the Bluetooth anchor point.

[0065] S5: Determine PE or PS mode based on the average RSSI of the vehicle and the digital key, where:

[0066] If in PE mode, a second algorithm is run based on the ranging value and the Bluetooth signal strength value RSSI to determine the location area of ​​the digital key relative to the vehicle.

[0067] The second algorithm may be a three-point positioning algorithm.

[0068] If in PS mode, it is determined whether the key is near the car or inside the car. If it is determined that the key is inside the car, the in-car positioning algorithm is executed. If it is determined that the key is near the car, the system will execute the out-of-car short-distance algorithm.

[0069] S6: Compare the positioning result with the pre-divided area position. If it is determined that the digital key is outside or near the vehicle, the body controller BCM controls each component to perform the welcome operation and keyless entry operation. If it is determined that the key is inside the vehicle, there is no need to further determine the specific location of the key in the vehicle, and the keyless start operation is performed directly.

[0070] Embodiment 2

[0071] Figure 4 This is a flow chart of a vehicle key positioning method provided according to the second embodiment of the present invention. This embodiment is a further refinement of the first embodiment and is applicable to the situation of accurately positioning the vehicle key. The method can be executed by a vehicle key positioning device. The vehicle key area positioning device can be implemented in the form of software and / or hardware and configured in the vehicle. The type of vehicle is not limited. Figure 4 As shown, the method includes:

[0072] S1: Bluetooth devices are arranged at 4 anchor points outside the vehicle and 1 anchor point inside the vehicle, forming Anchor0, Anchor1, Anchor2, Anchor3, and Anchor4, where Anchor0 is equipped with 2 MCUs.

[0073] Figure 1The device layout diagram shows a Bluetooth anchor point Anchor0 placed above the vehicle interior, and Anchor1, Anchor2, Anchor3, and Anchor4 placed at the four corners of the vehicle exterior. These Anchor devices communicate via CAN-FD. In addition, there is a body controller BCM that also communicates via CAN-FD and can perform welcome, keyless entry, and keyless start operations based on Bluetooth positioning results.

[0074] Figure 2 This is a Bluetooth signal detection diagram. Anchor0 is a dual MCU, and the other Anchors and keys are single MCUs. Anchor0 is a dual MCU, one MCU is RH850, and the other MCU is KW45. KW45 is used for Bluetooth communication and obtaining IQ data. RH850 is used for ranging and positioning algorithm operation. The use of dual MCUs makes the system run faster. Anchor0 to Anchor5 perform signal detection with the key in sequence, and each Anchor performs ranging operations, and outputs ranging results and signal strength through CAN-FD communication. Finally, the main MCU in Anchor0 performs positioning operations based on ranging results and signal strength.

[0075] S2: Anchor 0 to Anchor 5 installed on the vehicle continuously broadcast signals to the surroundings.

[0076] S3: The car key is also equipped with an MCU. When the car key enters the signal coverage range of the positioning tag, Anchor0 connects with the key. After the connection is successful, channel detection begins. Anchor0 sends the IQ signal and signal strength RSSI value to the bus through CAN-FD. The RSSI value is divided into RSSI1 at the transmitting end and RSSI2 at the reflecting end. Then Anchor0 disconnects from the key.

[0077] The MCU in Anchor0 obtains the IQ signal, runs the distance measurement MUSIC algorithm, generates the distance information between the key and Anchor0, and sends it to the bus. The present invention adopts the MUSIC algorithm for distance measurement, which has the characteristics of high and stable distance measurement accuracy compared with the traditional method of using RSSI value to calculate by empirical formula, so that the algorithm can realize accurate positioning. Anchor0, Anchor1, Anchor2, Anchor3, and Anchor4 run the distance measurement algorithm in turn, and send the distance value between each Anchor and the key and the signal strength RSSI value to the bus.

[0078] The process of the MUSIC algorithm is:

[0079] 1) Get the IQ signal data of Anchor and key on the CAN bus.

[0080] 2) Constructing complex signals. The MUSIC (Multiple Signal Classification) algorithm is a spatial spectrum estimation method based on grid division. Therefore, it is necessary to divide the distance grid to search for the optimal distance. The division range is [0, r max ],Will

[0081]

[0082] Where A is the steering vector, x is the signal source, e is the noise, and f c is the carrier frequency, [0, r1,…, r L-1 ] is the propagation speed of electromagnetic waves. [0, r1,…, r L-1 ] is the distance grid after division, which is also the search space for the optimal distance.

[0083] 3) Calculate the covariance matrix

[0084] The premise of the MUSIC algorithm to solve the distance is that when the signal subspace and the noise subspace are orthogonal to each other, the corresponding distance is the true distance value. Therefore, the covariance matrix of the received signal needs to be calculated.

[0085]

[0086] Where P = E{ H}.

[0087] 4) Singular Value Decomposition

[0088] The covariance matrix R s Perform singular value decomposition and get

[0089] R s =UΛU H #(3)

[0090] Where U=[u0,…,u K-1 ], It is a diagonal matrix, in which p0 is the diagonal element of P and σ is the noise intensity.

[0091] 5) Construct the power spectral density of the signal subspace

[0092] When the signal strength is much greater than the noise strength, p0+σ 2 is the eigenvalue of the signal space, [u0] is its corresponding eigenvector, [σ 2 , σ 2 , …, σ 2 ] is the eigenvalue of the noise space, is the corresponding feature vector.

[0093] R s &=APAH +σ 2 I=UΛU H

[0094]

[0095] when When , according to the properties of singular value decomposition, there is a H (r)G=0. Then the power spectrum density (optimization objective function) is

[0096]

[0097] 6) Search for the peak of the power spectral density

[0098] Search for the peak value of the power spectrum density, and the distance value corresponding to the peak value is the distance measurement result of the MUSIC algorithm.

[0099] S4: In-vehicle and out-vehicle judgment. The PE or PS mode is judged by the RSSI average of the key end and Anchor0. If the RSSI average is less than the minimum boundary value for two consecutive times, the system enters the PS mode, and the PE mode is executed in other cases.

[0100] Among them, PE is passive entry, PS is passive start, which is what we call keyless entry and keyless start. The minimum boundary value can be obtained through testing. The minimum boundary value of different vehicles is different and needs to be obtained through calibration testing. During the test, the Bluetooth key is moved from outside the car to inside the car, and from inside the car to outside the car. This operation is repeated and the changes in the RSSI value during this process are observed to determine the minimum boundary value.

[0101] If the RSSI average of Anchor0 and the key is less than the minimum boundary value for two consecutive times, the system will determine that the key is near or inside the car. If this condition is not met, the system will determine that the key is far away from the car. In other words, the system needs to make two judgments in total to determine the three situations of far away from the car, near the car, and inside the car. In step S4, it is determined that the key is 1. Far away from the car; 2. Near the car / inside the car.

[0102] S5: If the system is in PE mode, the main MCU of Anchor0 obtains the ranging results and RSSI values ​​from Anchor0 to Anchor5 respectively, selects the three anchors with the best signal strength, that is, the three anchors with the largest RSSI values, runs the three-point positioning algorithm for initial positioning, and then tracks and locates the position of the key through the extended Kalman filter algorithm.

[0103] For the three-point positioning algorithm, when the key is outside the car, the signals of most anchors are good, and only the signal of Anchor 0 inside the car is poor. Therefore, the distance measurement result is more accurate and stable, and positioning can be performed based on the Anchor installation position and the distance measurement information between each Anchor and the key. Therefore, the input of the off-vehicle positioning algorithm is the installation coordinates of each Anchor and the distance information between the Anchor and the key.

[0104] The schematic diagram of the three-point positioning algorithm is as follows Figure 7 As shown in the figure, a circle is drawn with the installation positions of the three anchors as the center and the distance value as the radius. In the figure, A, B, and C are the three anchors with better signal strength, R A , R B , R C are the distances between the three anchors and the key. Taking circles A and B as an example, find the coordinates of the center point P of the intersection of the two circles. AB is the distance between the two anchors, which is a known value. According to the Pythagorean theorem, the equation group is:

[0105]

[0106] It can be solved

[0107]

[0108] According to the proportional relationship between line segments AP and AB, the coordinates of point P can be obtained as

[0109]

[0110] By analogy, the coordinates of point Q and point M are

[0111]

[0112] Finally, the mean of the coordinates of points P, Q, and M is the positioning result.

[0113] S6: If the system is in PS mode, the result of multiplying the signal strength RSSI0_1 of the transmitter of Anchor0 and the signal strength RSSI0_2 of the reflector of the key is subtracted from the product of the signal strength RSSI values ​​of the remaining anchors and the key. If all the differences are greater than a certain threshold, the in-car algorithm is executed. This step is to perform a secondary judgment to prevent the key from being judged as being in the car when it is near the car.

[0114] Figure 5The coordinate values ​​of A, B, C, and D are calibrated for the center point coordinates of the front driver's seat, the front passenger seat, the rear driver's seat, and the rear passenger seat. If the system determines that the key is in the car, the in-car positioning algorithm is executed. First, the same three-point positioning algorithm as in S5 is executed, and the distance between the result of the three-point positioning algorithm and each reference point is calculated. The system uses the closest reference point as the positioning result.

[0115] If the system determines that the key is near the car, the system will execute the short-distance algorithm outside the car and directly output the three-point positioning result as the positioning result of the system. The short-distance algorithm outside the car means that the main MCU of Anchor0 obtains the ranging results and RSSI values ​​from Anchor0 to Anchor5 respectively, selects the three anchors with the best signal strength, that is, the three anchors with the largest RSSI values, and runs the three-point positioning algorithm for positioning. The input of the three-point positioning algorithm is the ranging value of the three anchors with the best signal strength.

[0116] Specifically, the signal strength of the transmitter of Anchor0 is RSSI0_1, and the signal strength of the key reflector is RSSI0_2

[0117] Anchor1 transmitter signal strength RSSI1_1, key reflector signal strength RSSI1_2

[0118] Anchor2 transmitter signal strength RSSI2_1, key reflector signal strength RSSI2_2

[0119] Anchor3 transmitter signal strength RSSI3_1, key reflector signal strength RSSI3_2

[0120] Anchor4 transmitter signal strength RSSI4_1, key reflector signal strength RSSI4_2

[0121] The threshold between Anchor0 and anchor1 is THR1, the threshold between Anchor0 and anchor2 is THR2, the threshold between Anchor0 and anchor3 is THR3, the threshold between Anchor4 and anchor1 is THR4,

[0122] If (RSSI0_1*RSSI0_2)-(RSSI1_1*RSSI1_2)>THR1, (RSSI0_1*RSSI0_2)-(RSSI2_1*RSSI2_2)>THR2, (RSSI0_1*RSSI0_2)-(RSSI3_1*RSSI3_2)>THR3, (RSSI0_1*RSSI0_2)-(RSSI4_1*RSSI4_2)>THR4, then the in-vehicle algorithm (three-point positioning + projection) is executed. If none of the above conditions are met, then the outside-vehicle close-range algorithm (three-point positioning) is executed.

[0123] Since most Bluetooth anchor points are installed outside the car, the Bluetooth signal is not as good as outside the car when inside the car, resulting in unstable positioning results. The inside of the car is often positioned as outside the car. The present invention adopts two branches in the positioning part of the PS mode. The difference between the RSSI values ​​of Anchor0 and the other Anchors is used to judge whether the inside or outside of the car is inside the car. If it is judged to be inside the car, coordinate projection is performed to achieve accurate positioning inside and outside the car.

[0124] S7: Compare the positioning result with the pre-divided area position. If it is determined that the digital key is outside or near the vehicle, the body controller BCM controls each component to perform the welcome operation and keyless entry operation. If it is determined that the key is inside the vehicle, there is no need to further determine the specific location of the key in the vehicle, and the keyless start operation is performed directly.

[0125] This embodiment uses Bluetooth positioning to achieve higher accuracy. Compared with similar indoor positioning algorithms, it has the advantages of simple positioning method, low cost of detection equipment such as Bluetooth base stations, small size, ultra-low power consumption, easy integration in mobile devices, and relatively low requirements for terminals.

[0126] This embodiment firstly performs distance measurement through the MUSIC algorithm, and then performs positioning according to the distance measurement result. Compared with other distance measurement algorithms such as the TOF distance measurement algorithm and the RSSI empirical formula, it has the characteristic of high distance measurement accuracy. Therefore, according to the distance value between the Bluetooth key and the Bluetooth anchor point, accurate positioning can be performed through the positioning algorithm.

[0127] In the past, algorithms for ranging and positioning were based on RSSI values. However, when the RSSI value was blocked by the human body or placed in a pocket or bag, the RSSI value would fluctuate greatly, causing the positioning system to be greatly affected by the external environment and unable to achieve positioning in non-line-of-sight conditions. This limited the application of the positioning system. The present invention can achieve positioning in all scenarios without blind spots without being affected by environmental factors.

[0128] Since most Bluetooth anchor points are installed outside the car, the Bluetooth signal is not as good as outside the car when inside the car, resulting in unstable positioning results. The inside of the car is often positioned as outside the car. The present invention adopts two branches in the positioning part of the PS mode. The difference between the RSSI values ​​of Anchor0 and the other Anchors is used to judge whether the inside or outside of the car is inside the car. If it is judged to be inside the car, coordinate projection is performed to achieve accurate positioning inside and outside the car.

[0129] Embodiment 3

[0130] Figure 6 This is a flow chart of a vehicle key positioning method provided according to Embodiment 3 of the present invention.

[0131] S1: Install one anchor above the cockpit and one anchor at each of the four corners outside the car, for a total of five anchors.

[0132] The number of anchors can be adjusted according to different customers' requirements for positioning accuracy and cost, but there is at least 1 anchor inside the car and at least 2 anchors outside the car.

[0133] S2: 5 anchors continuously send Bluetooth signals outward.

[0134] S3: If the Bluetooth anchor on the car successfully communicates with the Bluetooth key and enters the coverage range of the Bluetooth anchor, proceed to the next step S4. If not, return to the previous step and execute S2.

[0135] S4: Obtain the IQ data of the vehicle and the key, perform Bluetooth distance measurement through algorithms such as MUSIC, and obtain the distance between each anchor and the Bluetooth key.

[0136] S5: Filtering. First, filter the RSSI value. During filtering, only RSSI values ​​between -25 and -100 are retained. Then the average of these values ​​is used as the RSSI value of each anchor. Then, the RSSI values ​​and distance values ​​of the five anchors are averaged by the sliding window method to make the system more stable. The size of the sliding window needs to be selected. If the window is too large, the system's back-off time will be slowed down. If the window is too small, it will have no effect on improving the stability of the system. The size of the window needs to be determined through experiments.

[0137] If the input data is (X1, X2, X3, X4, ..., X t ), the window size is 4, and the result after filtering is

[0138] S6: Based on the distance measurement information of each anchor and the RSSI value of the Bluetooth signal strength, the inside and outside positioning of the vehicle is performed based on the LSTM neural network. The process is as follows:

[0139] 1. Dataset Collection

[0140] Move the key within a certain range inside and outside the car, with the same speed as a normal human walking speed. Collect a large amount of Bluetooth signal strength RSSI data inside and outside the car, and run Bluetooth ranging algorithms such as MUSIC algorithm while collecting RSSI data. Therefore, the data set includes RSSI strength and ranging values ​​between anchor0, anchor1, anchor2, anchor3, anchor4 and the key.

[0141] 2. Data cleaning and processing

[0142] Clean the collected raw data by drawing a line graph of the distance measurement data. If the distance measurement value changes suddenly, delete this section of data. Divide all the Bluetooth data and distance measurement results of the sequence into even small sections.

[0143] 3. Data labeling

[0144] Make tags for the Bluetooth data of the sequence. If the key is in the car at the last moment of a sequence, the tag is set to be in the car; if the key is outside the car at the last moment of a sequence, the tag is set to be outside the car. The tags inside and outside the car are 0 and 1 respectively.

[0145] 4. LSTM neural network model training

[0146] The cleaned data and labels are input into the LSTM neural network for model training. The loss is optimized to the binary cross entropy loss Loss. The data is continuously iterated to make the loss converge.

[0147]

[0148] where y i is the true value of the label, is the predicted value.

[0149] 5. LSTM Neural Network Inference

[0150] A sequence of RSSI values ​​and ranging values ​​are input into the trained LSTM model to make predictions inside and outside the vehicle.

[0151] S7: If the system determines that the key is outside the car at this time, the distance measurement values ​​of the three anchors with the best signal strength are selected, and the specific coordinates outside the car are output through the three-point positioning method. If the system determines that the key is inside the car at this time, the specific coordinates inside the car are not positioned.

[0152] S8: Based on the coordinate position outside the vehicle output by S7 or the conclusion that the key is inside the vehicle, a signal is sent through the BCM. If it is determined that the digital key is outside the vehicle or near the vehicle, the body controller BCM controls each component to perform the welcome operation and keyless entry operation; if it is determined that the key is inside the vehicle, there is no need to further determine the specific position of the key in the vehicle, and the keyless start operation is performed directly.

[0153] This embodiment first filters the RSSI values ​​and ranging values ​​of anchor0 to anchor5 by a sliding average method to prevent the system from being unstable due to sudden changes in RSSI values ​​and ranging values ​​caused by unstable signals. Then, the LSTM neural network method is used to determine the inside and outside of the car. LSTM inputs the ranging information and RSSI values ​​of 5 anchors for n consecutive cycles for determination. The LSTM neural network method can comprehensively analyze the RSSI values ​​and distance information between the 5 anchors when the key is inside and outside the car, which is more reliable than the existing solution of manually determining the RSSI threshold of anchor0 and the key. In addition, LSTM inputs the RSSI value and distance information within a period of time, and combines the RSSI value and distance information of the current state with the information of the historical state for judgment, making the system more stable, such as the transition from inside to outside the car and from outside to inside the car is more accurate, so that the experience of the driver and passengers is better. Finally, if the system determines that the key is outside the vehicle, it will further use three-point positioning to locate the key outside the vehicle, output specific location information, and perform operations such as welcoming and keyless entry according to the different positions of the key relative to the vehicle; if the system determines that the key is inside the vehicle, there is no need to further determine the specific position of the key in the vehicle, and the keyless start operation can be performed directly.

[0154] The present invention also provides a digital key positioning device, comprising:

[0155] An acquisition module, used for acquiring a Bluetooth signal strength value RSSI of the digital key received by a plurality of Bluetooth anchor points when the digital key enters a position detection area, wherein each of the Bluetooth anchor points is respectively arranged in an interior area of ​​the vehicle and an exterior area of ​​the vehicle;

[0156] A distance measurement module, based on the IQ data obtained from the vehicle end and the digital key end, runs a first algorithm to perform distance measurement to obtain the distance between each anchor point and the digital key; the first algorithm is a MUSIC algorithm;

[0157] A judgment module, used to judge the PE or PS mode based on the ranging result;

[0158] A first positioning module, used to determine the remote position of the digital key outside the vehicle based on the PE mode;

[0159] The second positioning module is used to determine the position of the digital key in the vehicle or the position of the digital key outside the vehicle at a close distance based on the PS mode.

[0160] Furthermore, it also includes a filtering processing module, which is used to filter the RSSI value and the ranging value.

[0161] Furthermore, it also includes a training module, which is used to input the ranging information and Bluetooth signal strength RSSI value of each anchor point into the LSTM neural network to train the LSTM neural network model.

[0162] The principle and implementation process of realizing vehicle key positioning in this embodiment can be referred to the above embodiments and will not be described in detail here.

[0163] In addition, the embodiment of the present application also discloses a vehicle, comprising: at least one controller; and a memory connected to the at least one controller in communication; wherein the memory stores a computer program executable by the at least one controller, and the computer program is executed by the at least one controller so that the at least one controller can execute the steps of the vehicle key positioning method as described above. Since the vehicle key positioning program adopts all the technical solutions of all the aforementioned embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be repeated here one by one.

[0164] In addition, an embodiment of the present application further proposes a computer-readable storage medium, on which a vehicle key locating program is stored. When the vehicle key locating program is executed by a processor, the steps of the vehicle key locating method described above are implemented.

[0165] It should be noted that the embodiments of the present invention have better practicability and do not impose any form of limitation on the present invention. Any technician familiar with the field may use the technical content disclosed above to change or modify it into an equivalent effective embodiment. However, any modification or equivalent changes and modifications made to the above embodiments without departing from the content of the technical solution of the present invention and the technical essence are still within the scope of the technical solution of the present invention.

Claims

1. A vehicle digital key positioning method, characterized in that: include: Establishing a Bluetooth connection with a digital key client, obtaining a Bluetooth signal strength value RSSI of the digital key received by multiple Bluetooth anchor points, wherein each of the Bluetooth anchor points is respectively set in an interior area and an exterior area of ​​the vehicle; Based on the Bluetooth signal strength values ​​RSSI of the digital key received by multiple Bluetooth anchor points, a first algorithm is run to perform distance measurement to generate a distance measurement value between each Bluetooth anchor point and the digital key; Based on the average RSSI of the vehicle and digital key, the PE or PS mode is determined, where: If in PE mode, a second algorithm is run based on the ranging value and the Bluetooth signal strength value RSSI to determine the location area of ​​the digital key relative to the vehicle; If in PS mode, when it is confirmed that the digital key is in the car, the in-car positioning algorithm is executed to determine the location area of ​​the digital key relative to the vehicle. When it is confirmed that the key is near the car, the out-of-car short-distance algorithm is executed to determine the location area of ​​the digital key relative to the vehicle.

2. The positioning method according to claim 1, characterized in that: At least one Bluetooth anchor point is set in the car, and at least two Bluetooth anchor points are set outside the car.

3. The positioning method according to claim 2, characterized in that: The first algorithm is the MUSIC algorithm.

4. The positioning method according to claim 1, characterized in that: When the RSSI average is less than the minimum boundary value twice in a row, the system enters the PS mode, otherwise it enters the PE mode.

5. The positioning method according to claim 1, characterized in that: If it is PE mode, the ranging value and RSSI value are obtained from each Bluetooth anchor point respectively, and the three anchor points with the largest RSSI values ​​are selected. The second algorithm, that is, the three-point positioning method, is run for initial positioning and then the digital key is tracked and located through the Kalman filter algorithm.

6. The positioning method according to claim 1, characterized in that: If it is PS mode, the product of the signal strength value of the Bluetooth anchor point transmitter set in the car and the signal strength value of the digital key end is subtracted from the product of the signal strength value of the remaining Bluetooth anchor points set outside the car and the digital key. If all the differences are greater than the first threshold, the in-car algorithm is executed.

7. The positioning method according to claim 6, characterized in that: When the digital key is inside the car, the three-point positioning method is used to determine the position of the Bluetooth key based on the ranging results obtained from the three Bluetooth anchor points with the largest RSSI values. The position of the Bluetooth key is compared with the pre-divided position coordinates of the area inside the car to determine the area to which the Bluetooth key belongs. When the digital key is near the car, the short-range algorithm outside the car is executed, and the three-point positioning method is used to determine the position of the Bluetooth key based on the ranging results obtained from the three Bluetooth anchor points with the largest RSSI values.

8. The positioning method according to claim 1, characterized in that: It also includes filtering the RSSI value, retaining only RSSI values ​​between -25 and -100 during filtering, taking the average of these values ​​as the RSSI value of each Bluetooth anchor point, and then performing a sliding window operation to perform a sliding average of the RSSI value and distance value of each Bluetooth anchor point.

9. The positioning method according to claim 8, characterized in that: After filtering, the car’s inside and outside positioning is performed based on the LSTM neural network according to the ranging values ​​of each anchor point and the RSSI value of the Bluetooth signal strength. If the digital key is judged to be outside the car, the ranging values ​​of the three Bluetooth anchor points with the best signal strength are selected, and the specific location of the digital key is determined through the three-point positioning method. If the digital key is judged to be inside the car, the keyless start operation is performed directly.

10. The positioning method according to claims 1 to 9, characterized in that: The positioning result is compared with the pre-divided area position to determine whether the digital key is outside or near the car. The BCM controls various components to perform the welcome operation and keyless entry operation. If it is determined that the key is inside the car, there is no need to determine the specific location of the key in the car, and the keyless start operation can be performed directly.

11. A digital key positioning device, characterized in that: include: An acquisition module, used for acquiring a Bluetooth signal strength value RSSI of the digital key received by a plurality of Bluetooth anchor points when the digital key enters a position detection area, wherein each of the Bluetooth anchor points is respectively arranged in an interior area of ​​the vehicle and an exterior area of ​​the vehicle; A distance measurement module, which runs a first algorithm to measure the distance based on the Bluetooth signal strength values ​​RSSI of the digital key received by multiple Bluetooth anchor points, and obtains the distance between each anchor point and the digital key; The judgment module judges the PE or PS mode based on the average RSSI of the vehicle end and the digital key end; A first positioning module, used to determine the remote position of the digital key outside the vehicle based on the PE mode; The second positioning module is used to determine the position of the digital key in the vehicle or the position of the digital key outside the vehicle at a close distance based on the PS mode.

12. The positioning device according to claim 11, further comprising a filtering processing module, configured to filter the RSSI value and the ranging value.

13. The positioning device as described in claim 12 further includes a training module, which is used to input the ranging value and the Bluetooth signal strength RSSI value of each anchor point into the LSTM neural network to train the LSTM neural network model.

14. A vehicle, characterized in that: include: at least one controller; as well as a memory in communication with the at least one controller; wherein, The memory stores a computer program that can be executed by the at least one controller, and the computer program is executed by the at least one controller so that the at least one controller can execute the vehicle digital key positioning method described in any one of claims 1-10.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a controller to implement the vehicle digital key positioning method described in any one of claims 1-10 when executed.

Citation Information

Cited By

  • Dual-mode dual-anchor digital key positioning method and device, and positioning equipment

    CN120321767A

  • Positioning method and device combining BLE and UWB, and electronic equipment

    CN120812522A

  • Dual-mode three-anchor-point out-of-vehicle area positioning method and device and electronic equipment

    CN120957228A

  • Dual-mode three-anchor-point off-board area positioning method and device, electronic device

    CN120957228B

  • Bluetooth digital key calibration method and device, Bluetooth digital key control method and device and intelligent equipment

    CN121262532A