Intelligent key positioning method, electronic device and readable storage medium

By setting field strength thresholds and linear interpolation calculations for the smart key at different horizontal angles, the problem of inaccurate positioning caused by antenna physical characteristics was solved, achieving high-precision smart key positioning and function triggering, thus improving the user experience.

CN119116885BActive Publication Date: 2025-11-25UNITED AUTOMOTIVE ELECTRONICS SYST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411122252.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2025-11-25
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Due to the physical characteristics of the antenna itself, the different angles between the connection between the smart key and the antenna and the horizontal plane of the vehicle surface cause variations in the RSSI field strength, making it impossible to accurately trigger vehicle functions. In particular, it cannot meet the functional requirements of a specified distance in different directions, affecting the user experience.

Method used

Set the field strength thresholds of the smart key relative to the target antenna at different horizontal angles. Calculate the actual horizontal angle using the field strength data of the target antenna and the auxiliary positioning antenna, and perform linear interpolation to obtain the absolute value of the minimum deviation rate to determine whether to trigger the function.

Benefits of technology

It enables accurate triggering of vehicle functions at different horizontal angles, improves the positioning accuracy of smart keys and user experience, and meets the semi-circular triggering requirement centered on the target antenna.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119116885B_ABST
    Figure CN119116885B_ABST
Patent Text Reader

Abstract

The application provides a smart key positioning method, an electronic device and a readable storage medium. The smart key positioning method comprises the following steps: setting a field strength threshold of a smart key at different horizontal angles relative to a target antenna; calculating an actual horizontal angle of the smart key relative to the target antenna through field strength data of the target antenna and an auxiliary positioning antenna; comparing real-time field strength data of the target antenna with the field strength threshold at the actual horizontal angle to determine whether a function is triggered, so that the vehicle can trigger the same function at a specified distance when the smart key is at different horizontal angles relative to the target antenna. In this way, high-precision positioning of the smart key can be realized, and the requirement of triggering a function in a semicircle centered on the target antenna can be better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, and more specifically, to a smart key positioning method, an electronic device, and a readable storage medium. Background Technology

[0002] The welcome function is a smart, seamless automotive experience. When a user approaches the vehicle with the smart key, the headlights illuminate to illuminate the area and the car automatically unlocks for easy entry. When the user leaves the vehicle after use, the doors automatically lock and a horn sounds to indicate that locking is complete. The function's trigger area can be found in [link to relevant documentation]. Figures 1 to 3 For example, the unlocking area of ​​this function is about 1.5m in radius centered on the door handle, the locking area is about 3.5m away from the vehicle, and the welcome light area (i.e. the illuminated area) is about 4m away from the vehicle.

[0003] In some vehicle models, the entire system consists of a dedicated welcome antenna, a BCM controller, a high-frequency receiver (RFR receiver), and a smart key. It uses LF (low frequency) - HF (high frequency) communication technology and employs a key positioning algorithm to determine the distance between the key and the welcome antenna, thus enabling the above functions. The working principle is as follows: The BCM controller drives one side of the antenna to send a low-frequency signal (LF wake-up frame) to wake up the matched smart key. Then, the BCM controller drives the antenna to send a carrier signal (LF carrier). Upon receiving the carrier signal, the woken smart key automatically replies with a high-frequency signal (HF signal). The vehicle's high-frequency receiver receives the high-frequency signal fed back by the key and sends it to the BCM controller for analysis. The BCM controller calculates the RSSI field strength value of the smart key and determines the distance between the smart key and the antenna based on this value. Furthermore, by observing the real-time changes in the key's RSSI field strength value, it determines the change in the smart key's distance relative to the antenna, ultimately triggering the corresponding welcome function. Therefore, throughout the entire process, the smart key's RSSI field strength value is crucial for determining the distance between the smart key and the antenna. Figure 4 As shown, current mature welcome positioning methods basically use one antenna (such as the front bumper antenna, left front antenna, right front antenna, or tailgate antenna) to drive in turn for wake-up and positioning. Each time, only the RSSI field strength value of one antenna can be obtained when positioning the smart key. Therefore, the threshold used to distinguish the unlocking area, the locking area, and the welcome light area can only be a fixed value. By comparing whether the current RSSI field strength value of the smart key is greater than the threshold, it is determined whether it has entered or left a certain area, thereby triggering the corresponding function.

[0004] Typically, low-frequency signal transmitting antennas inside and outside the vehicle emit 125kHz low-frequency electromagnetic field signals in real time. When the smart key approaches the vehicle, it senses the received 125kHz low-frequency electromagnetic field signal and generates an induced current. The low-frequency receiving module of the smart key consists of three mutually perpendicular three-dimensional receiving coils used to receive the spatial magnetic field and then calculate the electromagnetic field value based on frequency domain algorithms. As is well known, electromagnetic induction is generated by the intersection of magnetic flux and coils; therefore, the horizontal angle between the smart key and the antenna has a significant impact on the calculation of the field strength value. According to real-vehicle test results, when the smart key's height above the ground remains constant and the smart key and antenna are at the same distance, the calculated RSSI field strength values ​​differ greatly depending on the horizontal angle between the line connecting the smart key and antenna and the vehicle surface. Therefore, for a functional area, such as the unlocking area, if only a fixed threshold is selected to determine whether entry into the unlocking area has occurred, it will lead to a significant deviation in the triggering distance for unlocking at different horizontal angles. That is, the same RSSI field strength value will correspond to the smart key being very close to the antenna in the direction perpendicular to it, and very far away in the direction parallel to it. In other words, the same RSSI field strength value corresponds to different distances between the smart key and the antenna at different horizontal angles. Therefore, it is impossible to achieve the theoretical requirement of a semi-circular triggering function centered on the door handle. For example, if the smart key is 80cm above the ground, and only a fixed threshold is set for each functional area calibrated on the actual vehicle, the RSSI field strength distribution of the unlocking, locking, and welcome light triggering areas at different horizontal angles between the line connecting the smart key and the antenna and the vehicle surface is as follows: Figure 5 As shown, taking unlocking as an example, the distances from the center 0 of the circle at horizontal angles of 0°, 180°, 210°, 240°, 270°, 300°, and 330° vary. The same RSSI field strength value is greatest at the distances corresponding to 0° and 180°. Therefore, due to the physical characteristics of the antenna itself, the horizontal angle between the line connecting the smart key and the antenna and the vehicle surface when the ground clearance remains constant significantly affects the RSSI field strength value of the smart key. This fails to meet the user's requirement that the unlocking area maintain a constant distance from the door handle in different directions (e.g., 1.5m). This can easily lead to the welcome unlock being triggered at the front or rear of the vehicle, which is unacceptable to users and greatly impacts their experience.

[0005] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention

[0006] This invention provides a smart key positioning method, an electronic device, and a readable storage medium, which can effectively solve the problem that the same function cannot be triggered at a specified distance when the angle between the connection line between the smart key and the antenna and the horizontal surface of the vehicle is different due to the physical characteristics of the antenna itself, which cause the ground clearance to remain constant.

[0007] To solve the above technical problems, the present invention provides a smart key positioning method, comprising:

[0008] Set the field strength thresholds for the smart key relative to the target antenna at different horizontal angles;

[0009] The actual horizontal angle between the smart key and the target antenna is calculated using the field strength data of the target antenna and the auxiliary positioning antenna.

[0010] The real-time field strength data of the target antenna is compared with the field strength threshold at the actual horizontal angle to determine whether the function is triggered, so that the vehicle can trigger the same function at a specified distance when the smart key is at different horizontal angles relative to the target antenna.

[0011] Optionally, the smart key positioning method further includes:

[0012] Based on the real-time field strength data of multiple antennas around the vehicle, the positioning area of ​​the smart key is determined. At the same time, the antenna with the largest real-time field strength value is selected as the target antenna, and another antenna close to the target antenna in the positioning area is selected as the auxiliary positioning antenna.

[0013] Optionally, the smart key positioning method further includes:

[0014] Linear interpolation calculations are performed on the calibration field strength data and real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles to obtain multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles, and the smallest absolute value of the deviation rate among all the absolute values ​​of the deviation rate is selected.

[0015] The horizontal angle corresponding to the absolute value of the minimum deviation rate is taken as the actual horizontal angle of the smart key.

[0016] Optionally, during linear interpolation calculation, the absolute values ​​of each deviation rate are calculated only within the horizontal angle range corresponding to the positioning area of ​​the smart key, where the horizontal angle range corresponding to the positioning area is 0° to 90° or 90° to 180°.

[0017] Select the minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rate within the positioning area.

[0018] Optionally, the smart key positioning method further includes:

[0019] In addition to the target antenna and the auxiliary positioning antenna, select an additional antenna, and perform linear interpolation calculation on the calibration field strength data and real-time field strength data of the additional antenna and the target antenna at a 90° horizontal angle at the edge of the positioning area to obtain the absolute value of the deviation rate at a 90° horizontal angle at the edge of the positioning area.

[0020] The absolute value of the deviation rate between the additional antenna and the target antenna at a 90° horizontal angle at the edge of the positioning area is included in the selection of the minimum absolute value of the deviation rate.

[0021] Optionally, the smart key positioning method further includes:

[0022] Set up a reuse function, and perform the linear interpolation calculation through the reuse function to obtain the absolute value of the deviation rate at a horizontal angle each time.

[0023] Optionally, the smart key positioning method further includes:

[0024] The smart key is activated by sequentially driving two external vehicle antennas with different combinations; this setup allows for faster key activation with moderate power consumption.

[0025] Optionally, after waking up the smart key, all antennas on the vehicle are driven in turn to transmit LF carriers.

[0026] Optionally, the smart key positioning method further includes:

[0027] Based on the vehicle's functions, one of the following antennas on the vehicle—the left front antenna, the right front antenna, the front bumper antenna, and the tailgate antenna—is identified as the target antenna to trigger the corresponding function.

[0028] Based on the same inventive concept, the present invention also provides an electronic device, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, it implements any of the smart key positioning methods described above.

[0029] Based on the same inventive concept, the present invention also provides a readable storage medium storing a computer program, which, when executed by a processor, implements any of the smart key positioning methods described above.

[0030] Compared with the prior art, the smart key positioning method provided by the present invention has at least the following advantages:

[0031] In the aforementioned smart key positioning method, for the same function on the vehicle, preset field strength thresholds are established for the smart key relative to the target antenna at different horizontal angles. Based on these, the actual horizontal angle between the smart key and the target antenna is calculated using field strength data from the target antenna and auxiliary positioning antennas. Once the actual horizontal angle is determined, the field strength threshold at that angle is compared with the real-time field strength data of the target antenna. The comparison result determines whether to trigger the function. This setup provides field strength thresholds for each welcome function on the vehicle at the same distance but different horizontal angles, thus better meeting the requirements of a semi-circular trigger function centered on the target antenna. Furthermore, because the smart key is positioned using more antennas, high-precision positioning of the smart key is achieved, increasing user acceptance and significantly improving the user experience.

[0032] Since the electronic device and readable storage medium provided by this invention belong to the same inventive concept as the smart key positioning method provided by this invention, the electronic device and readable storage medium provided by this invention have at least all the beneficial effects of the smart key positioning method provided by this invention. For details, please refer to the relevant descriptions of the beneficial effects of the smart key positioning method provided by this invention above. Therefore, the beneficial effects of the electronic device and readable storage medium provided by this invention will not be elaborated here. Attached Figure Description

[0033] Those skilled in the art will understand that the accompanying drawings are provided to better understand the invention and do not constitute any limitation on the scope of the invention. Wherein:

[0034] Figure 1 A scene illustration showing guests approaching the illuminated area to welcome them;

[0035] Figure 2 A scene illustration showing guests approaching the unlocking area;

[0036] Figure 3 A schematic diagram illustrating a scene where guests are being greeted as they leave a locked area.

[0037] Figure 4 This is a waveform diagram of antenna oscillation when the antennas are driven alternately in close-range mode; where cmd represents the low-frequency signal used to wake up the matched smart key, and carrier represents the carrier signal (LF signal);

[0038] Figure 5 This is a schematic diagram of the unlocking, locking, and welcome light triggering areas calibrated for a real vehicle; among them, the same RSSI field strength value corresponds to the largest distance at 0° and 180°, the maximum distance on iso-field line c exceeds the 3rd lap, the maximum distance on iso-field line b is between the 4th and 5th laps and close to the 5th lap, and the maximum distance on iso-field line a is between the 5th and 6th laps and close to the 6th lap;

[0039] Figure 6 This is a flowchart illustrating the smart key positioning method in an embodiment of the present invention;

[0040] Figure 7 This is a schematic diagram of the vehicle antenna arrangement in an embodiment of the present invention; wherein, the IMMO antenna (located in the cup holder), the front instrument panel antenna and the rear seat antenna are all located inside the vehicle, while the left front antenna, the right front antenna and the tailgate antenna are all located outside the vehicle.

[0041] Figure 8 This is an antenna oscillation waveform diagram in an embodiment of the present invention, showing the simultaneous driving of two antennas to wake up the smart key and the sequential driving of six antennas to transmit carrier signals.

[0042] Figure 9 This is a schematic diagram of field strength data acquisition centered on the right front antenna in an embodiment of the present invention;

[0043] Figure 10 This is a schematic diagram illustrating the division of four areas near the vehicle in an embodiment of the present invention;

[0044] Figure 11 This is a flowchart illustrating how the region to which the smart key belongs is determined and how the minimum absolute value of the deviation rate is obtained through linear interpolation calculation in the corresponding sub-regions, as described in this embodiment of the invention.

[0045] Figure 12 This is a logic diagram for obtaining the absolute value of the deviation rate at each horizontal angle by performing linear interpolation calculations at 0°, 30°, 60°, and 90° for the right front antenna in an embodiment of the present invention. Detailed Implementation

[0046] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer from the following description. It should be noted that the drawings are in a very simplified form and use non-precise proportions, used only to facilitate and clarify the purpose provided by the present invention. Please refer to the drawings to make the objectives, features, and advantages of the present invention more apparent and understandable. It should be understood that the structures, proportions, sizes, etc., depicted in the accompanying drawings are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the implementation conditions of the present invention. Any modifications to the structure, changes in the proportional relationships, or adjustments to the size, provided that the effects and purposes achieved by the present invention are the same or similar, should still fall within the scope of the technical content disclosed in the present invention.

[0047] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The singular forms "a," "an," and "the" include plural objects; the term "or" is generally used to include "and / or"; the term "several" is generally used to include "at least one"; and the term "at least two" is generally used to include "two or more".

[0048] Furthermore, in the description of this specification, the reference to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., means that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0049] As described in the background section, current mature welcome positioning methods generally rely on a single antenna to alternately drive the smart key for waking up and locating it. However, due to the physical characteristics of the antenna itself, the field strength value measured by a single antenna for the smart key is inevitably affected by the horizontal angle between the line connecting the smart key and the antenna and the vehicle surface. Therefore, driving only one antenna at a time to wake up and locate the smart key not only results in inaccurate positioning but also fails to address the issue of triggering functions when the triggering distances of various functional areas from the antenna at different horizontal angles are consistent.

[0050] Therefore, the core idea of ​​this invention is to provide a smart key positioning method to effectively solve the problem that, due to the physical characteristics of the antenna itself, the angle between the line connecting the smart key and the antenna and the horizontal plane of the vehicle surface is different when the ground clearance remains constant, preventing the triggering of the same function at a specified distance. This method also improves the positioning accuracy of the smart key. All antennas mentioned in this article are vehicle-mounted antennas.

[0051] To achieve the above-mentioned goals, this invention provides a smart key positioning method, please refer to... Figure 6 This is a flowchart illustrating a smart key positioning method provided in one embodiment of the present invention. Figure 6 As shown, the smart key positioning method provided by the present invention includes the following steps:

[0052] Step S1: Set the field strength threshold of the smart key relative to the target antenna at different horizontal angles;

[0053] Step S2: Calculate the actual horizontal angle between the smart key and the target antenna using the field strength data of the target antenna and the auxiliary positioning antenna;

[0054] Step S3: Compare the real-time field strength data of the target antenna with the field strength threshold under the actual horizontal angle to determine whether the function is triggered.

[0055] This allows the vehicle to trigger the same function at a specified distance when the smart key is at different horizontal angles relative to the target antenna. The vehicle functions discussed in this article mainly include various semi-circular triggering functions centered on the target antenna, such as welcome unlocking, welcome locking, welcome lighting, and tailgate unlocking.

[0056] In various embodiments of the present invention, the target antenna is an antenna that needs to trigger the corresponding function; for example, for welcoming unlocking, the left front antenna (i.e., the left door antenna) or the right front antenna (i.e., the right door antenna) is generally selected as the target antenna; for welcoming lock and welcoming light illumination, any antenna outside the vehicle can be selected as the target antenna; for tailgate unlocking, the tailgate antenna is usually selected as the target antenna; therefore, each function can be implemented with the target antenna as the center to achieve a semi-circular triggering function.

[0057] The smart key positioning method provided by this invention pre-sets field strength thresholds for the same function of a vehicle at the same distance (distance between the smart key and the target antenna) but at different horizontal angles, so that the same function corresponds to multiple field strength thresholds. In other words, when the distance between the smart key and the target antenna is the same, the smart key has a corresponding preset field strength threshold at each horizontal angle relative to the target antenna. These field strength thresholds vary in size; generally, the field strength thresholds at 0° and 180° horizontal angles are larger, while the field strength threshold at 90° horizontal angle is smaller.

[0058] The smart key positioning method provided by this invention enables vehicles to meet the requirements of the semi-circular triggering function centered on the target antenna. It effectively solves the problem that the field strength value of the smart key is affected by the horizontal angle between the connection line between the smart key and the antenna and the vehicle surface due to the physical characteristics of the antenna itself. Furthermore, it can ensure that the triggering distance of each function is almost the same at different horizontal angles from the target antenna, and the triggering distance can also be customized to better meet user needs.

[0059] The smart key positioning method provided by this invention can accurately calculate the actual horizontal angle between the smart key and the target antenna when locating the smart key using the field strength data of the target antenna and the auxiliary positioning antenna, so as to achieve high-precision positioning of the smart key and then accurately control the vehicle's triggering function, making it more acceptable to users and greatly improving the user experience.

[0060] It should be understood that both the target antenna and the auxiliary positioning antenna provide real-time field strength data for locating the smart key, as well as pre-calibrated field strength data (i.e., calibration field strength data). In practice, the field strength is first calibrated on the actual vehicle. Then, based on the real-time field strength values ​​and calibration field strength values ​​of the target antenna and the auxiliary positioning antenna, the actual horizontal angle between the smart key and the target antenna can be calculated.

[0061] In theory, as much field strength data as possible from antennas is needed to locate the smart key. However, more field strength data increases the computational load and can affect the smart key's positioning speed. Therefore, in practice, only one auxiliary positioning antenna is usually needed to ensure positioning accuracy without affecting the smart key's fast positioning speed. Those skilled in the art should recognize that the target antenna is primarily an external vehicle antenna, such as the left front antenna, right front antenna, tailgate antenna, or front bumper antenna, while the auxiliary positioning antenna can be either an external or internal vehicle antenna.

[0062] It should be understood that the target antenna has the highest real-time field strength value, while the auxiliary positioning antenna can be any antenna other than the target antenna. Preferably, the auxiliary positioning antenna is an external or internal antenna of the vehicle that is close to the target antenna. The field strength value of the auxiliary positioning antenna can be second only to the maximum real-time field strength value, but it is not necessarily so. For example, when the auxiliary positioning antenna is used to determine the location of the smart key, its field strength value is not necessarily second only to the target antenna. Furthermore, the auxiliary positioning antenna can be an antenna representing the vehicle's location or the antenna closest to the target antenna. Antennas representing the vehicle's location mainly refer to antennas arranged around the vehicle, including antennas arranged at the front, rear, left, and right sides of the vehicle. Here, the maximum and second-highest real-time field strength values ​​are relative to other antennas on the vehicle. Because other antennas are farther from the key, the received field strength signals are weaker and not suitable for locating the key. Therefore, it is preferable to locate the key based on the target antenna with the highest real-time field strength value and the auxiliary positioning antenna with the second-highest real-time field strength value, which makes the calculation more accurate and the positioning more precise.

[0063] In practice, the actual horizontal angle between the smart key and the target antenna can be calculated in various ways, such as linear interpolation and curve fitting. Therefore, besides the calculation methods listed in the embodiments of this invention, those skilled in the art can find other alternative methods based on the description in this specification to calculate the actual horizontal angle between the smart key and the target antenna and achieve similar or identical effects, not just the solutions disclosed in the embodiments of this invention.

[0064] Furthermore, when using linear interpolation, the absolute value of the deviation rate of the real-time field strength value of the smart key's response target antenna at different horizontal angles can be determined through piecewise linear interpolation calculations. The minimum absolute value of the deviation rate is then compared, and the horizontal angle corresponding to the minimum absolute value of the deviation rate is taken as the actual horizontal angle of the smart key. When using curve fitting, a coordinate system is established using the calibrated field strength values ​​of the target antenna and auxiliary antenna at each horizontal angle. A multivariate function or parametric equation can be used to fit all the calibrated field strength data at each horizontal angle. By substituting the real-time field strength value into the multivariate function or equation, the deviation rate between the real-time field strength value and the fitted value can be calculated. After calculating the deviation rate at each horizontal angle, the horizontal angle with the highest probability can be calculated and taken as the actual horizontal angle.

[0065] Furthermore, it is preferable to obtain the actual horizontal angle between the smart key and the target antenna by linear interpolation calculation, which can effectively reduce the computational load and is more suitable for practical engineering.

[0066] Specifically, linear interpolation is performed on the calibration field strength data and real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles to obtain multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles. The minimum absolute value of the deviation rate is selected from all the absolute values ​​of the deviation rate. Finally, the horizontal angle corresponding to the minimum absolute value of the deviation rate is taken as the actual horizontal angle of the smart key.

[0067] It should be understood that the horizontal angle range between the smart key and the target antenna is 0° to 180° to meet the functional requirements of semi-circular triggering. Therefore, during linear interpolation calculation, either global calculation or regional calculation can be selected, with regional calculation being preferable as it significantly reduces computational load and improves operating speed. "Global calculation" refers to linear interpolation within the 0° to 180° range to obtain the absolute value of the deviation rate of the smart key relative to the target antenna at each horizontal angle. "Regional calculation," on the other hand, involves linear interpolation within the 0° to 90° or 90° to 180° range to obtain the absolute value of the deviation rate of the smart key relative to the target antenna at each horizontal angle.

[0068] In some preferred embodiments of the present invention, the area around the vehicle is pre-divided into several regions, such as four quadrants. Then, based on the real-time field strength values ​​(i.e., real-time field strength data) of multiple antennas around the vehicle returned by the smart key, the positioning area of ​​the smart key is determined. Simultaneously, the antenna with the largest real-time field strength value is selected as the target antenna, and another antenna within the positioning area that is close to the target antenna is selected as the auxiliary positioning antenna. After determining the positioning area, the calculation range of the horizontal angle can be narrowed. Subsequently, during linear interpolation calculation, only the absolute values ​​of each deviation rate need to be calculated within the horizontal angle range corresponding to the positioning area. Finally, the minimum absolute deviation rate among all the absolute deviation rate values ​​within the positioning area is selected. This setup significantly reduces the computational load, lowers the dynamic load, and improves program operating efficiency. The horizontal angle range corresponding to the positioning area is typically 0° to 90° or 90° to 180°.

[0069] In a further improvement, an additional antenna is selected in addition to the target antenna and the auxiliary positioning antenna. This additional antenna is used to perform error compensation at the edge of the positioning area to improve the accuracy of edge angle calculation. Specifically, linear interpolation is performed on the calibration field strength data and real-time field strength data of the additional antenna and the target antenna at a 90° horizontal angle at the edge of the positioning area. The absolute value of the deviation rate at the 90° horizontal angle at the positioning edge is obtained and included in the selection of the minimum absolute value of the deviation rate. That is, the 90° horizontal angle at the edge is linearly interpolated twice, resulting in two absolute values ​​of the deviation rate. It should be noted that the additional antenna is equivalent to another auxiliary positioning antenna. This additional antenna is set in another area adjacent to the positioning area. These two areas share a common boundary area, namely a 90° boundary area. Therefore, using the field strength data of the additional antenna to further interpolate the horizontal angle of the target antenna at the boundary area can improve the accuracy of the linear interpolation calculation.

[0070] On the other hand, since linear interpolation automatically traverses a large amount of calibration field strength data to calculate positioning, it will cause a significant increase in dynamic load. Therefore, in the smart key positioning method provided by this invention, it is best to set up some load reduction processing. To this end, in some embodiments of this invention, a reused function is set up. Each time the absolute value of the deviation rate under a horizontal angle is measured, this reused function is called to perform linear interpolation calculation to obtain the absolute value of the deviation rate under a horizontal angle. Specifically, the function for calculating the absolute value of the deviation rate of each horizontal angle is set as a reusable function, so that this part of the logic in the generated code is a reused function, which can effectively reduce the dynamic load.

[0071] Furthermore, regarding the method of waking up the smart key, you can choose to drive one external vehicle antenna, two external vehicle antennas simultaneously, or even more external vehicle antennas simultaneously. Here, the antennas used to wake up the key include, but are not limited to, the target antenna and the auxiliary positioning antenna, and can also be other antennas on the vehicle.

[0072] After waking the smart key, at least the target antenna and auxiliary positioning antenna should sequentially transmit LF carrier signals in turn. Preferably, two external vehicle antennas with different combinations should be driven sequentially to wake the smart key. This setup ensures a fast wake-up speed, moderate power consumption, and reduces the load on the battery, resulting in better overall performance. Furthermore, the dual-antenna drive mode provides better coverage of the smart key's surroundings, ensuring timely and successful wake-up even when the smart key is moving. Additionally, using external vehicle antennas to wake the smart key is preferable because internal antennas are unlikely to be able to wake the key. Secondly, driving too many antennas simultaneously, such as three external antennas, requires increased drive current, raising the vehicle's static current and potentially causing battery drain, which is counterproductive. Therefore, using two external antennas to wake the key is preferable.

[0073] To continue using the existing vehicle's functions, you can choose to activate the smart key and then sequentially drive all the antennas inside and outside the vehicle to send LF carrier signals. Alternatively, if you don't want to retain the existing functions, you can choose to activate the smart key and then sequentially drive some of the antennas to send LF carrier signals, with the external antennas having higher priority than the internal antennas.

[0074] Please refer to Figure 7 As shown, some vehicle models are equipped with six antennas: the IMMO antenna 1, the rear seat antenna 2, the front instrument panel antenna 3, the left front antenna 4 (also known as the left door antenna), the right front antenna 5 (also known as the right door antenna), and the tailgate antenna 6. The IMMO antenna 1, rear seat antenna 2, and front instrument panel antenna 3 are all located inside the vehicle, while the left front antenna 4, right front antenna 5, and tailgate antenna 6 are all located outside the vehicle. The left front antenna 4 is located at the left door handle position, the right front antenna 5 is located at the right door handle position, and the tailgate antenna 6 is located on the tailgate. It should be noted that in some models, the front instrument panel antenna 3 may not be present, and some models may also have a front bumper antenna (also known as the front bumper antenna or front bumper antenna), which is also located outside the vehicle. Here, the antennas arranged around the vehicle are the front instrument panel antenna 3, the left front antenna 4, the right front antenna 5, and the tailgate antenna 6. The front instrument panel antenna 3 represents the front of the vehicle, the tailgate antenna 6 represents the rear of the vehicle, the left front antenna 4 represents the left side of the vehicle, and the right front antenna 5 represents the right side of the vehicle. Based on the real-time field strength data of these antennas, the positioning area of ​​the smart key can be determined. At the same time, the antenna with the largest real-time field strength value is selected as the target antenna. After determining the positioning area, the auxiliary positioning antenna can be selected within the positioning area.

[0075] Considering that internal vehicle antennas are susceptible to interference from metal structures, the primary focus is on waking up and locating the smart key using external vehicle antennas. Generally, based on the vehicle's existing functions, one of the following antennas—left front antenna 4, right front antenna 5, front bumper antenna, or tailgate antenna 6—is identified as the target antenna to trigger the corresponding function.

[0076] In some embodiments of the present invention, the IMMO antenna 1 can be selected instead of the front instrument panel antenna 3 to determine whether the smart key is in the front position of the vehicle, but the front instrument panel antenna 3 has a higher priority than the IMMO antenna 1.

[0077] In some embodiments of the present invention, the front bumper antenna can be selected instead of the front instrument panel antenna 3 to determine whether the smart key is in the front position of the vehicle, and the front bumper antenna has a higher priority than the front instrument panel antenna 3.

[0078] The IMMO antenna 1, front instrument panel antenna 3, and front bumper antenna are all mainly used to determine the position in front of the vehicle.

[0079] In some embodiments of the present invention, the rear seat antenna 2 can be selected instead of the tailgate antenna 6 to determine whether the smart key is in the rear of the vehicle, but the tailgate antenna 6 has a higher priority than the rear seat antenna 2.

[0080] The following section uses the welcome unlocking function as an example to provide a more detailed explanation of the smart key positioning method provided by this invention.

[0081] Please refer to Figure 8 As shown, in one specific embodiment of the present invention, when waking up the smart key, two different combinations of vehicle external antennas are periodically and sequentially driven at preset time intervals to wake up the smart key. One combination is the left front antenna 4 and the tailgate antenna 6, and the other combination is the right front antenna 5 and the tailgate antenna 6. Accordingly, periodically sending low-frequency wake-up signals can increase the probability of waking up the smart key. (Continue to refer to...) Figure 8 After each wake-up signal is sent, all six antennas are driven in turn to send LF carriers in order to obtain the field strength data of all antennas.

[0082] Furthermore, when calibrating the field strength value on a real vehicle, the specific procedure is as follows: Maintain the arm of your hand holding the smart key at a normal, vertical position (approximately 80cm), and with the target antenna as the center, draw a straight line extending outward from the target antenna at intervals of n°, from 0° to 180°. Sample the field strength value of the target antenna every m interval, typically until the field strength value reaches 0. Here, n° is an arbitrary angle value, and m is an arbitrary distance value; the specific values ​​can be set according to actual needs. Therefore, n° includes, but is not limited to, 30°, and m includes, but is not limited to, 30cm. An illustrative explanation follows.

[0083] Please refer to Figure 9 As shown, when collecting the field strength value of the right front antenna 5, with the right front antenna 5 as the center, draw a straight line (i.e., a radial line) extending outward from the right front antenna 5 every 30° in the 0°~180° half-grid region. Also draw a semicircle with the right front antenna 5 as the center every 30cm. In this way, the field strength values ​​at all intersection points can be collected and used as calibration field strength data. Data collection for other antennas is done in the same way, and will not be elaborated further.

[0084] In one specific embodiment of the present invention, the field strength data of six antennas—IMMO antenna 1, rear seat antenna 2, front instrument antenna 3, left front antenna 4, right front antenna 5, and tailgate antenna 6—are collected and stored in a memory. Collecting data from all antennas allows for easy retrieval when needed. Taking the right door antenna as an example, when collecting field strength data, the field strength value is collected every 30° and every 30cm, centered on the right door antenna, from 0° to 180°, until the field strength value is 0. Field strength values ​​within the range of 0cm to 570cm are collected at each horizontal angle. It should be understood that when collecting field strength data at each horizontal angle centered on the right door antenna, in addition to collecting the field strength data of the right door antenna, the field strength data of the other antennas are also collected simultaneously. Therefore, the field strength data of the other antennas are also recorded, and these data can be saved for later use.

[0085] In practice, based on the collected field strength values, it is known that the calculated field strength values ​​(RSSI values) of the smart key and the right door antenna at the same distance (radial distance) differ significantly at different horizontal angles. Furthermore, the field strength values ​​are relatively larger at 0° and 180° horizontal angles. Therefore, the field strength thresholds set at the same distance (including but not limited to 1.5m) at 0° and 180° horizontal angles should be larger, while the field strength threshold set at the same distance (including but not limited to 1.5m) at 90° horizontal angle should be the smallest, thus fitting the unlocking area as a semi-circle. Therefore, during the welcome unlocking process, to ensure that the unlocking area is as much as possible a semi-circular region centered on the target antenna, the field strength threshold for triggering the function at different horizontal angles at the same distance between the smart key and the target antenna should be set to a variable value.

[0086] In short, the smart key localization problem can actually be transformed into a linear fitting problem. For example, the built-in MATLAB functions `ployfit` and `ployval` can solve this problem well, but because these functions have a huge computational load for embedded software and require numerous header files, this approach is not suitable for practical engineering. Therefore, the most suitable approach is linear interpolation, which can effectively reduce the amount of computation and improve the calculation speed.

[0087] In one specific embodiment of the present invention, the area near the vehicle is first divided into four parts, or four quadrants. Then, based on the real-time field strength values ​​of each antenna returned by the smart key, the field strength values ​​of the left front antenna 4 and the right front antenna 5 are compared to determine whether the smart key is on the left or right door side. Furthermore, the field strength values ​​of the front instrument panel antenna 3 and the tailgate antenna 6 are compared to determine whether the smart key is on the front or rear side of the vehicle. Using this information, it is possible to determine which of the four areas the smart key belongs to. The division of the area near the vehicle is as follows: Figure 10 As shown, the right anterior side is in the first quadrant, the left anterior side is in the second quadrant, the left posterior side is in the third quadrant, and the right posterior side is in the fourth quadrant.

[0088] The process of calculating the location of a smart key using regional interpolation is as follows: Figure 11 As shown. First, the real-time field strength value (RSSI) of the left front antenna 4 is compared with that of the right front antenna 5 to determine whether the smart key is on the left or right side of the vehicle. If the real-time field strength value (RSSI) of the left front antenna 4 is greater than that of the right front antenna 5, the smart key is determined to be on the left side of the vehicle; if the real-time field strength value (RSSI) of the left front antenna 4 is less than that of the right front antenna 5, the smart key is determined to be on the right side of the vehicle. Regardless of whether the smart key is on the left or right side of the vehicle, the real-time field strength value of the front instrument panel antenna 3 is compared with that of the tailgate antenna 6. If the real-time field strength value of the front instrument panel antenna 3 is greater than that of the tailgate antenna 6, the smart key is determined to be on the front side of the vehicle; if the real-time field strength value of the front instrument panel antenna 3 is less than that of the tailgate antenna 6, the smart key is determined to be on the rear side of the vehicle. Finally, the four possible areas where the smart key may be located can be determined: the left front side, the left rear side, the right front side, and the right rear side.

[0089] When the smart key is determined to be on the left front side, the absolute value of the deviation rate of the left front antenna 4 within the 0°-90° range is calculated. The minimum absolute value of the deviation rate is then compared, and a field strength threshold is selected for the corresponding angle based on this minimum absolute value. When the real-time field strength of the left front antenna 4 exceeds the field strength threshold, the welcome unlock is triggered. In this case, the real-time field strength of the left front antenna 4 is the highest, followed by the front instrument panel antenna 3. The left front antenna 4 serves as the target antenna, while the front instrument panel antenna 3 acts as an auxiliary positioning antenna.

[0090] When the smart key is determined to be on the left rear side, the absolute value of the deviation rate of the left front antenna 4 between 90° and 180° is calculated. The minimum absolute value of the deviation rate is then compared, and a field strength threshold is selected for the corresponding angle based on this minimum absolute value. When the real-time field strength of the left front antenna 4 exceeds the field strength threshold, the welcome unlock is triggered. In this case, the real-time field strength of the left front antenna 4 is the highest and is used as the target antenna. The real-time field strength of the rear seat antenna 2 is second only to the left front antenna 4. Therefore, either the tailgate antenna 6 or the rear seat antenna 2 can be selected as the auxiliary positioning antenna.

[0091] When the smart key is determined to be on the right front side, the absolute value of the deviation rate of the right front antenna 5 within the 0°-90° range is calculated. The minimum absolute value of the deviation rate is then compared, and a field strength threshold is selected for the corresponding angle based on this minimum absolute value. When the real-time field strength of the right front antenna 5 exceeds the field strength threshold, the welcome unlock is triggered. In this case, the right front antenna 5, with the highest real-time field strength, serves as the target antenna, while the front instrument panel antenna 3, with the second highest real-time field strength, is used as an auxiliary positioning antenna.

[0092] When the smart key is determined to be on the right rear side, the absolute value of the deviation rate of the right front antenna 5 between 90° and 180° is calculated. The minimum absolute value of the deviation rate is then compared, and a field strength threshold is selected for the corresponding angle based on this minimum absolute value. When the real-time field strength of the right front antenna 5 exceeds the field strength threshold, the welcome unlock is triggered. In this case, the real-time field strength of the right front antenna 5 is at its maximum. Similar to the previous case, the tailgate antenna 6 or the rear seat antenna 2 can be selected as the auxiliary positioning antenna.

[0093] It should be noted that in the above process, the field strength values ​​of the front instrument antenna 3 and the tailgate antenna 6 can be compared first, and then the field strength values ​​of the left front antenna 4 and the right front antenna 5 can be compared. This invention does not limit this.

[0094] Therefore, based on the area to which the smart key belongs, the data from the corresponding two antennas are selected to calculate segmented interpolation. For example, if the key is on the right front side, only the calibrated field strength value of the right front antenna 5 from 0° to 90° needs to be considered. Taking the data at 0° as an example, the calibrated field strength value of the front instrument antenna 3 at a horizontal angle of 0° can be regarded as a series of data ranges. The real-time field strength value of the front instrument antenna 3 is used to traverse the data of the calibrated field strength value at a horizontal angle of 0° to determine which data range of the front instrument antenna 3 at a horizontal angle of 0° belongs to the real-time field strength value of the front instrument antenna 3. After determining the belonging range, the ratio value is calculated according to the interpolation method, and the interpolated data of the corresponding field strength value of the right front antenna 5 is calculated based on this ratio value. Thus, the absolute value of the deviation rate between the interpolated data and the real-time field strength data of the right front antenna 5 at a horizontal angle of 0° is calculated. Following this method, the absolute values ​​of the deviation rates of the interpolated data and real-time field strength data of the right front antenna 5 at horizontal angles of 30°, 60°, and 90° are calculated and compared. The horizontal angle corresponding to the smallest absolute value of the deviation rate is the actual horizontal angle of the smart key.

[0095] Here, we assume that the smart key responds with the following real-time field strength values ​​for the six antennas:

[0096] The RSSI value of the left front antenna is 610; the RSSI value of the right front antenna is 2,750,000; the RSSI value of the front instrument panel antenna is 25,100; the RSSI value of the tailgate antenna is 710; the RSSI value of the IMMO antenna is 3,310; and the RSSI value of the rear seat antenna is 34.

[0097] Based on this, the calculation process of the absolute value of the deviation rate of the right front antenna 5 at a horizontal angle of 0° will be used as an example for demonstration. Based on this, those skilled in the art should be able to know how to calculate the absolute value of the deviation rate of each target antenna at different horizontal angles. The specifics will not be elaborated further.

[0098] According to an exemplary embodiment of this application, the process for calculating the absolute value of the deviation rate of the right front antenna 5 at a horizontal angle of 0° is as follows:

[0099] a) Comparing the left front antenna RSSI (610) and right front antenna RSSI (2750000), and the front instrument antenna RSSI (25100) and tailgate antenna RSSI (710), it is determined that the smart key is located on the right front side;

[0100] b) Query the calibration field strength data, see Table 1 and Table 2 for details;

[0101] Table 1: Field strength data of the front instrument panel antenna from near to far at a 0° horizontal angle.

[0102]

[0103] Table 2: Field strength data of the right front antenna from near to far at a 0° horizontal angle.

[0104]

[0105]

[0106] Since the real-time field strength of the instrument antenna 3 before the smart key response is 25100, referring to Table 1, we know that 25100 falls within the range of 21229.25-56801.63 and simultaneously within the range of 42432.88-24688.44. The method for calculating the minimum absolute value of the deviation rate in these two ranges is as follows:

[0107] Slope1=((25100-21229.25)) / ((56801.63-21229.25))=0.1088;

[0108] InterpolationValue1=(157673.5-34053.75)*slope1+34053.75=47505;

[0109] offset1=abs(InterpolationValue1-2750000) / 2750000=0.9827;

[0110] Slope2=((25100-42432.88)) / ((24688.44-42432.88))=0.9768;

[0111] InterpolationValue2=(2626008-929870)*slope2+929870=2586668;

[0112] offset2=abs(InterpolationValue2-2750000) / 2750000=0.0594;

[0113] offset=min(offset1, offset2)=0.0594.

[0114] So far, the absolute value of the deviation rate of the right front antenna at a horizontal angle of 0° has been calculated to be 0.0594.

[0115] Using the same method, the absolute values ​​of the deviation rate of the right front antenna at 30°, 60°, and 90° were calculated respectively.

[0116] c) Compare the absolute values ​​of the deviation rate of the right front antenna at 0°, 30°, 60° and 90°, and select the absolute value of the smallest deviation rate. The horizontal angle corresponding to the absolute value of the smallest deviation rate is the horizontal angle that best fits the real-time key field strength value.

[0117] Of course, the field strength data and linear interpolation process in the table above are merely illustrative examples and do not constitute an undue limitation on the present invention. In practice, those skilled in the art can obtain the absolute values ​​of the deviation rate of the right front antenna at 0°, 30°, 60°, and 90° using various known linear interpolation methods. In this embodiment, the linear interpolation operation can be performed based on hardware or the linear interpolation function of software such as Matlab.

[0118] In some embodiments, please refer to Figure 12 As shown, the linear interpolation process of the right front antenna 5 at horizontal angles of 0°, 30°, 60°, and 90° can be described as follows:

[0119] (1) Perform linear interpolation calculations on the real-time field strength value RSSIValuePsg of the right front antenna, the real-time field strength value RSSIValueFrontPanel of the front instrument antenna, the 0° calibration data of the right front antenna and the 0° calibration data of the front instrument antenna to obtain the absolute value of the deviation rate Psg_Front_0degree_offset of the right front antenna at a horizontal angle of 0°.

[0120] (2) Perform linear interpolation calculations on the real-time field strength value RSSIValuePsg of the right front antenna, the real-time field strength value RSSIValueFrontPanel of the front instrument antenna, the 30° calibration data of the right front antenna and the 30° calibration data of the front instrument antenna to obtain the absolute value of the deviation rate Psg_Front_30degree_offset of the right front antenna at a 30° horizontal angle.

[0121] (3) Perform linear interpolation calculations on the real-time field strength value RSSIValuePsg of the right front antenna, the real-time field strength value RSSIValueFrontPanel of the front instrument antenna, the 60° calibration data of the right front antenna and the 60° calibration data of the front instrument antenna to obtain the absolute value of the deviation rate Psg_Front_60degree_offset of the right front antenna at a 60° horizontal angle.

[0122] (4) Perform linear interpolation calculations on the real-time field strength value RSSIValuePsg of the right front antenna, the real-time field strength value RSSIValueFrontPanel of the front instrument antenna, the 90° calibration data of the right front antenna and the 90° calibration data of the front instrument antenna to obtain the absolute value of the deviation rate of the right front antenna at a 90° horizontal angle, Psg_Front_90degree_offset.

[0123] (5) Perform linear interpolation calculations on the real-time field strength value RSSIValuePsg of the right front antenna, the real-time field strength value RSSIValueTrk of the tailgate antenna, the 90° calibration data of the right front antenna and the 90° calibration data of the tailgate antenna to obtain the absolute value of the deviation rate Psg_Back_90degree_offset of the right front antenna at a 90° horizontal angle.

[0124] Finally, the absolute value of the smallest deviation rate among Psg_Front_0degree_offset, Psg_Front_30degree_offset, Psg_Front_60degree_offset, Psg_Front_90degree_offset, and Psg_Back_90degree_offset is selected.

[0125] Understandably, in point (5) above, the tailgate antenna, as an additional antenna, performs another linear interpolation on the 90° horizontal angle between the right front antenna and the junction area to improve the accuracy of the measurement.

[0126] Return to reference Figure 11 Regardless of which area the smart key belongs to, the real-time field strength value of the left or right front antenna is compared with the field strength threshold at its actual horizontal angle to determine whether the welcome unlock function is triggered.

[0127] The logic for the welcome locking function, welcome lighting function, and tailgate unlocking function is similar to that of the welcome unlocking function, and will not be repeated here. Furthermore, the maximum field strength threshold of the welcome locking function must be less than the minimum field strength threshold of the welcome unlocking function, and there must be a certain difference between them to avoid frequent locking / unlocking.

[0128] In this invention, the smart key can be, for example, a smartphone, a remote key, or a smart wearable device (such as a smart bracelet or smartwatch). Furthermore, the aforementioned smart key positioning method can be applied to electronic devices such as vehicle controllers and master positioning nodes. The vehicle, as the executor of this method, needs to be pre-bound to the smart key.

[0129] Furthermore, based on the same inventive concept, this invention also provides an electronic device. The electronic device includes a processor and a memory, wherein a computer program is stored in the memory. When the computer program is executed by the processor, it implements the smart key positioning method described above. Since the electronic device and the smart key positioning method provided by this invention belong to the same inventive concept, the electronic device provided by this invention possesses at least all the beneficial effects of the smart key positioning method provided by this invention. For details, please refer to the relevant descriptions of the beneficial effects of the smart key positioning method provided by this invention above. Therefore, the beneficial effects of the electronic device provided by this invention will not be elaborated upon here.

[0130] The processor referred to in this invention can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and lines.

[0131] The memory can be used to store the computer program, and the processor implements various functions of the electronic device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable memory (PROM), electrically programmable memory (EPROM), electrically erasable programmable memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, random access memory is available in a variety of forms, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous random access memory (SDRAM), dual data rate synchronous random access memory (DDRSDRAM), enhanced synchronous random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), memory bus direct random access memory (RDRAM), direct memory bus dynamic random access memory (DRDRAM), and memory bus dynamic random access memory (RDRAM), etc.

[0132] This invention also provides a readable storage medium storing a computer program, which, when executed by a processor, can implement the smart key location method described above. Since the readable storage medium and the smart key location method provided by this invention belong to the same inventive concept, the readable storage medium provided by this invention possesses at least all the beneficial effects of the smart key location method provided by this invention. For details, please refer to the relevant descriptions of the beneficial effects of the smart key location method provided by this invention above; therefore, the beneficial effects of the readable storage medium provided by this invention will not be elaborated upon here.

[0133] The readable storage medium provided by this invention can take the form of any combination of one or more computer-readable media. The readable medium can be a computer-readable signal medium or a computer-readable storage medium. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires, portable computer hard disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device.

[0134] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber, RF, etc., or any suitable combination thereof.

[0135] It should be noted that computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0136] In summary, the smart key positioning method provided by this invention presets field strength thresholds for the same function on a vehicle at different horizontal angles relative to the target antenna. Based on this, the actual horizontal angle between the smart key and the target antenna is calculated using field strength data from the target antenna and auxiliary positioning antennas. Once the actual horizontal angle is determined, the field strength threshold at that angle is compared with the real-time field strength data of the target antenna. The comparison result determines whether to trigger the function. This setup provides field strength thresholds at the same distance but different horizontal angles for each welcome function on the vehicle, thus better meeting the requirements of a semi-circular trigger function centered on the target antenna. Furthermore, because the smart key is positioned using more antennas, high-precision positioning of the smart key is achieved, increasing user acceptance and significantly improving the user experience.

[0137] Further improvements involve linear interpolation calculations of the calibration field strength data and real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles. This yields multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles. The absolute value of the deviation rate is selected, and the horizontal angle corresponding to the smallest absolute value of the deviation rate is determined as the actual horizontal angle of the smart key. This reduces the computational load and makes the solution more suitable for practical engineering applications.

[0138] Further improvements include determining the smart key's location area based on real-time field strength data from multiple antennas around the vehicle; during linear interpolation calculations, the absolute values ​​of each deviation rate are calculated only within the horizontal angle range corresponding to the location area; this setting can greatly reduce the amount of calculation and improve the program's running speed.

[0139] In a further improvement, an additional antenna is selected in addition to the target antenna and the auxiliary positioning antenna. Linear interpolation is performed on the calibration field strength data and real-time field strength data of the additional antenna and the target antenna at a 90° horizontal angle at the edge of the positioning area. The absolute value of the deviation rate at the 90° horizontal angle at the edge is obtained and included in the selection of the minimum absolute value of the deviation rate, so as to further increase the accuracy of the linear interpolation calculation and thus improve the accuracy of smart key positioning.

[0140] In a further improvement, a reusable function is set up that can be called repeatedly. The linear interpolation calculation is performed through the reusable function, and the absolute value of the deviation rate under a horizontal angle is obtained each time, thereby reducing the amount of calculation and reducing the dynamic load.

[0141] Therefore, this invention overcomes the influence of the RSSI field strength value caused by the antenna's physical characteristics on the horizontal angle between the connection line between the key and the antenna and the vehicle surface, enabling customization of the functional trigger area at different horizontal angles. Furthermore, when the key's height from the ground remains constant, the welcome unlock trigger area can be an approximately semi-circular region centered on the antenna, preventing unlocking from being triggered at the front or rear of the vehicle. Simultaneously, it ensures that the welcome lock and welcome light trigger areas maintain approximately consistent distances from the vehicle at different angles, improving the user experience. Additionally, during linear interpolation, the algorithm automatically iterates through calibration data to calculate the location. Different projects only require recalibrating the data and inputting it into the computer program (algorithm), without needing to reanalyze the data or modify the algorithm logic, facilitating subsequent maintenance and expansion to other projects. It should be noted that after collecting data using the same calibration method, blind spots can also be supplemented using if-else statements to achieve consistent functional trigger area distances at different horizontal angles, but this method is less conducive to subsequent maintenance and less easily expandable to other projects.

[0142] It should be noted that the apparatus and methods disclosed in the embodiments herein can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments herein. In this regard, each block in a flowchart or block diagram may represent a module, program, or part of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system to perform the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions. In addition, the functional modules in the various embodiments of this article can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0143] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. A smart key positioning method, characterized in that, include: Set the field strength thresholds for the smart key relative to the target antenna at different horizontal angles; The actual horizontal angle between the smart key and the target antenna is calculated using the field strength data of the target antenna and the auxiliary positioning antenna, including: Linear interpolation is performed on the calibration field strength data and real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles to obtain multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles. The minimum absolute value of the deviation rate is selected from all the absolute values ​​of the deviation rate. The horizontal angle corresponding to the minimum absolute value of the deviation rate is taken as the actual horizontal angle of the smart key. The real-time field strength data of the target antenna is compared with the field strength threshold at the actual horizontal angle to determine whether the function is triggered, so that the vehicle can trigger the same function at a specified distance when the smart key is at different horizontal angles relative to the target antenna.

2. The smart key positioning method according to claim 1, characterized in that, Also includes: Based on the real-time field strength data of multiple antennas around the vehicle, the positioning area of ​​the smart key is determined. At the same time, the antenna with the largest real-time field strength value is selected as the target antenna, and another antenna close to the target antenna in the positioning area is selected as the auxiliary positioning antenna.

3. The smart key positioning method according to claim 1 or 2, characterized in that, During linear interpolation calculation, the absolute value of each deviation rate is calculated only within the horizontal angle range corresponding to the positioning area of ​​the smart key, where the horizontal angle range corresponding to the positioning area is 0°~90° or 90°~180°. Select the minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rate within the positioning area.

4. The smart key positioning method according to claim 3, characterized in that, Also includes: In addition to the target antenna and the auxiliary positioning antenna, select an additional antenna, and perform linear interpolation calculation on the calibration field strength data and real-time field strength data of the additional antenna and the target antenna at a 90° horizontal angle at the edge of the positioning area to obtain the absolute value of the deviation rate at a 90° horizontal angle at the edge of the positioning area. The absolute value of the deviation rate between the additional antenna and the target antenna at a 90° horizontal angle at the edge of the positioning area is included in the selection of the minimum absolute value of the deviation rate.

5. The smart key positioning method according to claim 1 or 2, characterized in that, Also includes: Set up a reuse function, and perform the linear interpolation calculation through the reuse function to obtain the absolute value of the deviation rate at a horizontal angle each time.

6. The smart key positioning method according to claim 1 or 2, characterized in that, Also includes: The two external vehicle antennas, in different combinations, are driven in turn to activate the smart key.

7. The smart key positioning method according to claim 6, characterized in that, After the smart key is activated, all antennas on the vehicle are driven in turn to send LF carrier waves.

8. The smart key positioning method according to claim 1 or 2, characterized in that, Also includes: Based on the vehicle's functions, one of the following antennas on the vehicle—the left front antenna, the right front antenna, the front bumper antenna, and the tailgate antenna—is identified as the target antenna to trigger the corresponding function.

9. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the smart key positioning method according to any one of claims 1 to 8.

10. A readable storage medium, characterized in that, The readable storage medium stores a computer program, which, when executed by a processor, implements the smart key positioning method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • TBOX BLE-RSSI positioning method

    CN114339597A

  • Intelligent access system field intensity equivalent calibration method

    CN114397513A