Intelligent key positioning method, electronic equipment and readable storage medium

By setting the field strength threshold of the smart key at different horizontal angles and calculating the actual horizontal angle, the problem of inaccurate positioning of smart keys caused by the physical characteristics of the antenna is solved, and high-precision smart key positioning and user experience improvement are achieved.

CN119116885AActive Publication Date: 2024-12-13UNITED AUTOMOTIVE ELECTRONICS SYST
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing smart key positioning method is affected by the horizontal angle between the smart key and the antenna due to the physical characteristics of the antenna, and cannot trigger the same function at a specified distance in different directions, resulting in poor user experience.

Method used

By setting the field strength threshold of the smart key with respect to the target antenna at different horizontal angles, and calculating the actual horizontal angle through the field strength data of the target antenna and the auxiliary positioning antenna, comparing the real-time field strength data to determine the function trigger, ensuring that The same function can be triggered at a specified distance at different horizontal angles.

Benefits of technology

It realizes high-precision positioning of smart keys, meets the requirements of semicircular triggering function centered on the target antenna, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119116885A_ABST
    Figure CN119116885A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent key positioning method, electronic equipment and a readable storage medium. The intelligent key positioning method comprises the following steps: setting field intensity thresholds of an intelligent key at different horizontal included angles relative to a target antenna; the actual horizontal included angle of the intelligent key relative to the target antenna is measured and calculated through the field intensity data of the target antenna and the auxiliary positioning antenna; and comparing the real-time field intensity data of the target antenna with the field intensity threshold value under the actual horizontal included angle to judge whether to trigger the function, so that the vehicle can trigger the same function at a specified distance when the intelligent key is located at different horizontal included angles relative to the target antenna. By means of the configuration, high-precision positioning of the intelligent key can be achieved, and the requirement for the semicircular triggering function with the target antenna as the center can be well met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a smart key positioning method, an electronic device and a readable storage medium. Background Art

[0002] The welcome function is a car intelligent non-sensing experience function. When the user approaches the car with the smart key, the lights will light up to illuminate the incoming user and automatically unlock the car to facilitate the user to get on the car. When the user takes the smart key away from the car after using it, it will automatically lock the car and honk to indicate that the locking is completed. The function trigger area is shown in Figures 1 to 3 For example, the unlocking area of ​​this function is about 1.5m in radius from the door handle, the locking area is about 3.5m away from the car, and the welcome light area (i.e., the lighting area) is about 4m away from the car.

[0003] In some car models, the above-mentioned entire functional system is composed of a special welcome antenna, a BCM controller, a high-frequency receiver (RFR receiver) and a smart key. It adopts LF (low frequency)-HF (high frequency) technology communication and uses a key positioning algorithm to determine the distance between the key and the special welcome antenna to achieve the above functions. The working principle is: the BCM controller drives the antenna on one side to send a low-frequency signal (LF wake-up frame) to wake up the matching smart key. Then the BCM controller drives the antenna to send a carrier signal (LF carrier). After receiving the carrier signal, the awakened smart key will automatically reply with a high-frequency signal (HF signal). The high-frequency receiver on the car receives the high-frequency signal fed back by the key, and then 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 the RSSI field strength value of the smart key. According to the real-time change of the RSSI field strength value of the key, the change of the distance between the smart key and the antenna is determined, and finally the corresponding welcome function is triggered. Therefore, in the entire working process, the RSSI field strength value of the smart key is the key to determining the distance between the smart key and the antenna. Figure 4 As shown, the current mature welcome positioning methods basically adopt the method of driving one antenna (such as the front bumper antenna, the left front antenna, the right front antenna or the tailgate antenna) in turn for wake-up and positioning. Only the RSSI field strength value of one antenna can be obtained each time when locating 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 RSSI field strength value of the current 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] Normally, the low-frequency signal transmitting antenna inside and outside the vehicle emits a 125kHz low-frequency electromagnetic field signal 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. Among them, the low-frequency receiving module of the smart key is three mutually perpendicular three-dimensional receiving coils, which are used to receive the spatial magnetic field and then calculate the electromagnetic field value based on the frequency domain algorithm. As we all know, 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 huge impact on the calculation of the field strength value. According to the actual vehicle test results, when the height of the smart key from the ground remains unchanged and the smart key and the antenna are at the same distance, the RSSI field strength values ​​calculated by the different horizontal angles between the connection line between the smart key and the antenna and the vehicle surface are very different. Then, for a functional area, such as the unlocking area, if only a fixed threshold is selected to determine whether to enter the unlocking area, it will lead to a huge deviation in the distance of triggering unlocking at different horizontal angles. That is, the same RSSI field strength value will correspond to the smart key being very close in the direction perpendicular to the antenna, and the smart key being very far away in the direction parallel to the antenna. That is, the same RSSI field strength value will correspond to different distances from the smart key to the antenna at different horizontal angles. Therefore, the theoretical requirement of the semicircular trigger function centered on the door handle cannot be achieved. For example, when the smart key is 80cm above the ground and only a fixed threshold is set for each functional area of ​​the actual vehicle calibration, the RSSI field strength value 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 trigger unlocking as an example, the distances of the three equal field strength lines (a, b, c) from the center of the circle 0 fluctuate at horizontal angles of 0°, 180°, 210°, 240°, 270°, 300°, and 330°, where the same RSSI field strength value has the largest distance corresponding to 0° and 180°. It can be seen that due to the physical characteristics of the antenna itself, when the height from the ground remains unchanged, the horizontal angle between the connection line between the smart key and the antenna and the vehicle surface will greatly affect the RSSI field strength value of the smart key, and cannot meet the user's requirement that the unlocking area should be kept at the same distance (such as 1.5m) from the door handle in different directions. It is easy to trigger the welcome unlocking at the front or rear of the car, which is unacceptable to users and will greatly affect the user experience.

[0005] It should be noted that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or any form of implication that the information constitutes prior art already known to those skilled in the art. Summary of the invention

[0006] The present 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 horizontal angle between the connection line between the smart key and the antenna and the vehicle surface is different when the height above the ground remains unchanged due to the physical characteristics of the antenna itself.

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

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

[0009] Calculate the actual horizontal angle of the smart key relative to the target antenna through 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 to trigger a function, thereby enabling 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.

[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, and an 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] Performing linear interpolation calculation on the calibrated field strength data and the real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles, obtaining multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles, and selecting the minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rate;

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

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

[0017] The minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rates in the positioning area is selected.

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

[0019] An additional antenna is selected in addition to the target antenna and the auxiliary positioning antenna, and a linear interpolation calculation is performed on the calibration field strength data and the real-time field strength data of the additional antenna and the target antenna at a horizontal angle of 90° at the edge of the positioning area to obtain an absolute value of the deviation rate at a horizontal angle of 90° 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 horizontal angle of 90° 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] A multiplexing function is set, and the linear interpolation calculation is performed through the multiplexing function to obtain the absolute value of the deviation rate under a horizontal angle each time.

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

[0024] Two vehicle external antennas in different combinations are driven in turn to wake up the smart key; with this arrangement, the key can be woken up more quickly with moderate power consumption.

[0025] Optionally, after the smart key is awakened, all antennas on the vehicle are driven in turn to send LF carrier waves.

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

[0027] Based on the vehicle function, one of the left front antenna, the right front antenna, the front bumper antenna, and the tailgate antenna on the vehicle is determined 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, any one of the smart key positioning methods is implemented.

[0029] Based on the same inventive concept, the present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any one of the smart key positioning methods is implemented.

[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 above-mentioned smart key positioning method, for the same function on the vehicle, the field strength thresholds of the smart key relative to the target antenna at different horizontal angles are preset. On this basis, the actual horizontal angle of the smart key relative to the target antenna is calculated through the field strength data of the target antenna and the auxiliary positioning antenna. After determining the actual horizontal angle, the field strength threshold at the actual horizontal angle can be compared with the real-time field strength data of the target antenna, and whether to trigger the function can be determined based on the comparison result. In this way, each welcome function on the vehicle can be provided with a field strength threshold at the same distance and different horizontal angles, thereby better meeting the requirements of the semicircular trigger function centered on the target antenna. Because the smart key is positioned by more antennas, high-precision positioning of the smart key is also achieved, which makes the user acceptance higher and greatly improves the user experience.

[0032] Since the electronic device and the readable storage medium provided by the present invention belong to the same inventive concept as the smart key locating method provided by the present invention, the electronic device and the readable storage medium provided by the present invention at least have all the beneficial effects of the smart key locating method provided by the present invention. For details, please refer to the relevant description of the beneficial effects of the smart key locating method provided by the present invention in the above text. Therefore, the beneficial effects of the electronic device and the readable storage medium provided by the present invention will not be described one by one here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Those skilled in the art will appreciate that the accompanying drawings are provided for a better understanding of the present invention and do not constitute any limitation on the scope of the present invention.

[0034] Figure 1 This is a schematic diagram of the scene where the guest is approaching the lighted area;

[0035] Figure 2 This is a schematic diagram of the scene where the guest is approaching the unlocking area;

[0036] Figure 3 This is a schematic diagram of the scene when the guest is leaving the locked area;

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

[0038] Figure 5 The figure is a schematic diagram of the unlocking, locking, and welcome light triggering areas calibrated for a real vehicle; the distances corresponding to the same RSSI field strength values ​​at 0° and 180° are the largest, the maximum distance on the equal field strength line c exceeds the third circle, the maximum distance on the equal field strength line b is between the fourth and fifth circles and close to the fifth circle, and the maximum distance on the equal field strength line a is between the fifth and sixth circles and close to the sixth circle;

[0039] Figure 6 Schematic diagram of the process of the smart key positioning method in an embodiment of the present invention;

[0040] Figure 7 Schematic diagram of the arrangement of the whole vehicle antenna in an embodiment of the present invention; wherein the IMMO antenna (located at the cup holder position), the front instrument antenna and the rear seat antenna are all arranged inside the vehicle, and the left front antenna, the right front antenna and the tailgate antenna are all arranged outside the vehicle;

[0041] Figure 8 The antenna oscillation waveform diagram of the embodiment of the present invention in which two antennas are driven simultaneously to wake up the smart key and six antennas are driven in turn to send carrier signals;

[0042] Fig. 9 It is a schematic diagram of collecting field strength data with the right front antenna as the center in an embodiment of the present invention;

[0043] Fig.10 This is a schematic diagram of dividing the four areas near a vehicle in an embodiment of the present invention;

[0044] Fig.11 A flowchart for determining the region to which the smart key belongs and performing linear interpolation calculations for the corresponding sub-regions to obtain the absolute value of the minimum deviation rate in an embodiment of the present invention;

[0045] Fig.12 This is a logic diagram for performing linear interpolation calculations on the right front antenna at 0°, 30°, 60°, and 90° to obtain the absolute value of the deviation rate at each horizontal angle in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the drawings are in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose provided by the present invention. In order to make the purposes, features and advantages of the present invention more obvious and easy to understand, please refer to the accompanying drawings. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention. Any structural modification, change in proportional relationship or adjustment of size, under the condition of being the same or similar to the effects that can be produced by the present invention and the purposes that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.

[0047] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. The singular forms "one", "one" and "the" include plural objects, the term "or" is usually used with the meaning of including "and / or", the term "several" is usually used with the meaning of including "at least one", and the term "at least two" is usually used with the meaning of including "two or more".

[0048] In addition, in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations 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 any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0049] As described in the background technology, the current mature welcome positioning methods basically use an antenna to drive the smart key in turn to wake up and locate the smart key. The field strength value of the smart key measured by a single antenna is determined by the physical characteristics of the antenna itself, which is determined to be affected by the horizontal angle between the connection line between the smart key and the antenna and the vehicle surface. Therefore, only one antenna is driven each time to wake up and locate the smart key. Not only is the positioning inaccurate, but it also cannot solve the problem of triggering functions of various functional areas when the trigger distance from each horizontal angle of the antenna is consistent.

[0050] To this end, the core idea of ​​the present invention is to provide a smart key positioning method to effectively solve the problem that the same function cannot be triggered at a specified distance when the horizontal angle between the line connecting the smart key and the antenna and the vehicle surface is different when the height above the ground remains unchanged due to the physical characteristics of the antenna itself, and at the same time improve the positioning accuracy of the smart key. The antennas described in this article are all vehicle-mounted antennas.

[0051] To realize the above idea, the present invention provides a smart key positioning method, please refer to Figure 6 , which is a flow chart of a smart key positioning method provided by an 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, setting the field strength thresholds of the smart key at different horizontal angles relative to the target antenna;

[0053] Step S2, calculating the actual horizontal angle of the smart key relative to the target antenna through 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 at the actual horizontal angle to determine whether to trigger the function.

[0055] Therefore, 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 paper, the vehicle functions involved mainly include welcome unlocking, welcome locking, welcome lighting, unlocking the tailgate and other semicircular triggering functions centered on the target antenna.

[0056] In various embodiments of the present invention, the target antenna is an antenna that needs to trigger the corresponding function; for example, for welcome 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 welcome locking and welcome lighting, 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 realize a semicircular triggering function with the target antenna as the center.

[0057] The smart key positioning method provided by the present invention pre-sets the field strength thresholds at the same distance (the distance between the smart key and the target antenna) and different horizontal angles for the same function of the vehicle, 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, and these field strength thresholds are large and small. 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 the present invention can enable the vehicle to well meet the requirements of the semicircular trigger function centered on the target antenna, effectively solve 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, and can achieve that the trigger distances of various functions at different horizontal angles from the target antenna are almost the same, and the trigger distance can also be customized to better meet user needs.

[0059] When the smart key positioning method provided by the present invention positions the smart key through the field strength data of the target antenna and the auxiliary positioning antenna, the actual horizontal angle of the smart key relative to the target antenna can be accurately calculated to achieve high-precision positioning of the smart key, and then accurately control the triggering function of the vehicle, so as to make the user acceptance higher and greatly improve the user experience.

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

[0061] In theory, it is necessary to obtain as many antenna field strength data as possible to locate the smart key, but the more field strength data there is, the greater the calculation load is, and it will also affect the positioning speed of the smart key. Therefore, in practice, only one auxiliary positioning antenna is usually required, which can ensure the positioning accuracy without affecting the fast positioning speed of the smart key. Those skilled in the art should realize that the target antenna is mainly an external antenna of the vehicle, such as the left front antenna, the right front antenna, the tailgate antenna or the front bumper antenna, and the auxiliary positioning antenna can be an external antenna of the vehicle or an internal antenna of the vehicle.

[0062] It should be understood that the real-time field strength value of the target antenna is the largest, and the auxiliary positioning antenna can be any antenna other than the target antenna. Preferably, the auxiliary positioning antenna is an external antenna or an internal antenna of the vehicle 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 an antenna used to determine the orientation of the smart key, the field strength value is not necessarily second only to the target antenna. Further, the auxiliary positioning antenna can be an antenna that characterizes the orientation of the vehicle or an antenna closest to the target antenna. The antenna that characterizes the orientation of the vehicle mainly refers to the antennas arranged around the vehicle, including antennas arranged at the front, rear, left and right sides of the vehicle. Here, the maximum and second largest values ​​of the real-time field strength are relative to other antennas on the vehicle, because other antennas are far away from the key, so the received field strength signal is weak and not suitable for locating the key. Therefore, it is better to locate the key based on the target antenna with the largest real-time field strength value and the auxiliary positioning antenna with the second largest real-time field strength value, which can make the measurement more accurate and the positioning more precise.

[0063] In practice, the actual horizontal angle of the smart key relative to the target antenna can be calculated in a variety of ways, such as linear interpolation, curve fitting, etc. Thus, in addition to the calculation methods listed in the embodiments of the present invention, those skilled in the art can find other alternative methods based on the description of the present invention to achieve the calculation of the actual horizontal angle of the smart key relative to the target antenna, and achieve similar or identical effects, not just including the solutions disclosed in the embodiments of the present invention.

[0064] Furthermore, when linear interpolation is used, the absolute value of the deviation rate of the real-time field strength value of the target antenna replied by the smart key at different horizontal angles can be determined by piecewise linear interpolation calculation, and the minimum absolute value of the deviation rate can be compared, and finally the horizontal angle corresponding to the minimum absolute value of the deviation rate can be used as the actual horizontal angle of the smart key. When curve fitting is used, a coordinate system is established by the calibrated field strength values ​​of the target antenna and the auxiliary antenna at each horizontal angle, and a multivariate function or a parametric equation can be used to fit all the calibrated field strength value data at each horizontal angle. As long as the real-time field strength value is substituted into the multivariate function or equation, the deviation rate between the real-time field strength value and the fitting value can be calculated. After calculating the deviation rate at each horizontal angle, the horizontal angle with the highest possibility can be calculated and used as the actual horizontal angle.

[0065] Furthermore, it is preferred to obtain the actual horizontal angle of the smart key relative to the target antenna through linear interpolation calculation, which can effectively reduce the calculation load and is more suitable for actual engineering.

[0066] Specifically, linear interpolation calculation is performed on the calibrated field strength data and real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles, multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles are obtained, and the minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rate is selected; 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 global horizontal angle range of the smart key relative to the target antenna is 0°~180° to meet the functional requirements of semicircular triggering. Furthermore, when performing linear interpolation calculations, you can choose global calculations or regional calculations. It is more preferred to use regional calculations, which can greatly reduce the amount of calculations and improve the running speed. The so-called "global calculation" refers to linear interpolation calculations within the range of 0°~180° to obtain the absolute value of the deviation rate of the smart key relative to the target antenna at each horizontal angle, while "regional calculations" are linear interpolation calculations within the range of 0°~90° or 90°~180° 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 areas, 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 that are replied by the smart key, the positioning area of ​​the smart key is determined, and at the same time, an 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 an auxiliary positioning antenna. After the positioning area is determined, the calculation range of the horizontal angle can be narrowed. Thereafter, when performing linear interpolation calculations, it is only necessary to calculate the absolute values ​​of each deviation rate within the horizontal angle range corresponding to the positioning area; finally, the minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rate in the positioning area is selected. Such a setting can greatly reduce the amount of calculation, reduce the dynamic load, and improve the efficiency of program operation. Among them, the horizontal angle range corresponding to the positioning area is usually 0° to 90° or 90° to 180°.

[0069] In a further improvement, another additional antenna is selected in addition to the target antenna and the auxiliary positioning antenna, and the other additional antenna is used to perform error compensation at the edge of the positioning area to improve the accuracy of the edge angle calculation. Specifically, 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 are linearly interpolated to obtain the absolute value of the deviation rate at a 90° horizontal angle at the positioning edge and include it 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 to obtain two absolute values ​​of the deviation rate. It should be noted that the additional antenna is equivalent to another auxiliary positioning antenna, and the additional antenna is set in another area adjacent to the positioning area. The two areas have a common boundary area, that is, a 90° boundary area. Therefore, the field strength data of the additional antenna is used to further interpolate the horizontal angle of the target antenna at the boundary area, which 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. For this reason, in the smart key positioning method provided by the present invention, it is best to set some load reduction processing. To this end, in some embodiments of the present invention, a reuse function is set. Each time the absolute value of the deviation rate under a horizontal angle is measured, this reuse 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 for each horizontal angle is set to a reusable function, so that this part of the logic in the generated code is a reuse function, which can effectively reduce the dynamic load.

[0071] In addition, in the method of waking up the smart key, you can choose to drive one vehicle external antenna or two vehicle external antennas at the same time, or drive more vehicle external antennas at the same time. Here, the antenna used to wake up the key includes but is not limited to the target antenna and the auxiliary positioning antenna, and can also be other antennas on the vehicle.

[0072] After waking up the smart key, at least the target antenna and the auxiliary positioning antenna are driven to send LF carrier signals in turn. Preferably, two vehicle external antennas of different combinations are driven in turn to wake up the smart key; such a setting can ensure the wake-up speed, and the power consumption is moderate, which reduces the load on the battery, and relatively speaking, the overall performance is good. And the dual-antenna driving mode can better cover various situations of the smart key around the vehicle. Even if the smart key is moving, the smart key can be woken up in time and successfully. In addition, the reason why the vehicle's external antenna is used to wake up the smart key is that the antenna inside the car is unlikely to wake up the key. Secondly, driving too many antennas at the same time, such as driving three external antennas at the same time, requires increasing the driving current and increasing the static current of the whole vehicle. It is easy for the vehicle to lose power, which is not worth the loss. Therefore, it is better to use two external antennas to wake up the key.

[0073] To continue to use the functions of the original vehicle model, you can choose to wake up the smart key and drive all the antennas inside and outside the vehicle to send LF carrier signals in turn. Of course, if you do not consider using the original functions, you can also choose to wake up the smart key and drive some antennas to send LF carrier signals in turn, where the priority of the vehicle's external antenna is higher than the priority of the vehicle's internal antenna.

[0074] Please refer to Figure 7 As shown, in some models, six antennas are configured, namely, IMMO antenna 1, rear seat antenna 2, front instrument antenna 3, left front antenna 4 (also called left door antenna), right front antenna 5 (also called right door antenna) and tailgate antenna 6. Among them, IMMO antenna 1, rear seat antenna 2, front instrument antenna 3 are all located inside the vehicle, left front antenna 4, right front antenna 5 and tailgate antenna 6 are all located outside the vehicle, and left front antenna 4 is located at the position of the left door handle of the vehicle, right front antenna 5 is located at the position of the right door handle of the vehicle, and tailgate antenna 6 is set at the tailgate of the vehicle. It should be noted that in some models, the front instrument antenna 3 may not exist, and in some models, a front bumper antenna (also called front bumper antenna or front bumper antenna) will also be set, and the front bumper antenna is also set outside the vehicle. Here, the antennas arranged around the vehicle are the front instrument antenna 3, the left front antenna 4, the right front antenna 5 and the tailgate antenna 6. The front instrument antenna 3 represents the front direction of the vehicle, the tailgate antenna 6 represents the rear direction 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. Then, based on the real-time field strength data of these antennas, the positioning area of ​​the smart key can be determined, and the antenna with the largest real-time field strength value can be selected as the target antenna. After the positioning area is determined, an auxiliary positioning antenna can be selected in the positioning area.

[0075] Considering that the internal antenna of the vehicle is easily affected by the metal structure, the external antenna of the vehicle is first considered to wake up and locate the smart key. Generally, based on the functions configured in the vehicle, one of the left front antenna 4, the right front antenna 5, the front bumper antenna, and the tailgate antenna 6 is determined as the target antenna to trigger the corresponding function.

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

[0077] In some embodiments of the present invention, the front bumper antenna may be selected instead of the front instrument 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 antenna 3 .

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

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

[0080] The following takes the welcome unlocking function as an example to further explain the smart key positioning method provided by the present invention in detail.

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

[0082] In addition, when calibrating the field strength value on a real vehicle, the specific method is: keep the normal height of the arm holding the smart key vertically (about 80cm), and take the target antenna as the center of the circle, from 0° to 180°, draw a straight line extending outward from the target antenna every n°, and collect the field strength value of the target antenna every m distance, usually until the field strength value is 0. Here, n° is an arbitrary angle value, m is an arbitrary distance value, and the specific value 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. The following is an exemplary explanation.

[0083] Please refer to Fig. 9 As shown, when collecting the field strength value of the right front antenna 5, with the right front antenna 5 as the center, in the 0°~180° half-grid area, a straight line (i.e., a radial line) extending outward from the right front antenna 5 as the starting point is drawn every 30°, and a semicircle with the right front antenna 5 as the center is drawn every 30cm, so that the field strength values ​​at all intersections can be collected and used as calibration field strength data. The data collection of other antennas is also the same, which will not be repeated.

[0084] In a specific embodiment of the present invention, the field strength data of the 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. By collecting the data of all antennas, it is convenient to call when necessary. Taking the right door antenna as an example, when collecting field strength data, the right door antenna is used as the center of the circle, and the field strength value of the antenna is collected every 30° and every 30cm from 0° to 180° until the field strength value is 0, wherein the field strength value in the range of 0cm to 570cm is collected at each horizontal angle. It should be understood that when collecting the field strength data at each horizontal angle with the right door antenna as the center of the circle, in addition to collecting the field strength value data of the right door antenna, the field strength value data of other antennas will also be collected at the same time, so the field strength value data of other antennas will also be recorded, and these data can be saved for use.

[0085] In practice, based on the collected field strength values, it can be known that when the smart key and the right door antenna are at the same distance (radius distance), the field strength values ​​(RSSI values) calculated at different horizontal angles are very different, and the field strength values ​​at 0° and 180° horizontal angles are relatively large. Therefore, the field strength threshold set at the same distance (including but not limited to 1.5m) at 0° and 180° horizontal angles should be larger, and the field strength threshold set at the same distance (including but not limited to 1.5m) at 90° horizontal angle should be the smallest, so that the unlocking area fits into a semicircle. Therefore, when unlocking the welcome door, in order to make the unlocking area as much as possible a semicircular area 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 positioning problem can actually be converted into a linear fitting problem. For example, the built-in ployfit and ployval functions in MATLAB can solve this problem very well, but since the function has a huge computational load for embedded software and requires many header files, this method is not suitable for actual engineering. Therefore, the most suitable method is linear interpolation calculation, which can effectively reduce the amount of calculation and improve the calculation speed.

[0087] In a specific embodiment of the present invention, the area near the vehicle is first divided into four blocks, i.e., four quadrants. Then, based on the real-time field strength values ​​of each antenna replied 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 door side or the right door side. In addition, the field strength values ​​of the front instrument antenna 3 and the tailgate antenna 6 are compared to determine whether the smart key is on the front side or the rear side of the vehicle. With the above information, it can be determined which of the four areas the smart key belongs to. The area near the vehicle is divided as follows: Fig.10 As shown, the right front side is in the first quadrant, the left front side is in the second quadrant, the left rear side is in the third quadrant, and the right rear side is in the fourth quadrant.

[0088] The process of calculating and locating the smart key by interpolation in different regions is as follows: Fig.11 As shown. First, the real-time field strength value (RSSI) of the left front antenna 4 is compared with the real-time field strength value of the right front antenna 5 to determine whether the smart key is on the left or right side of the vehicle; when the real-time field strength value (RSSI) of the left front antenna 4 is greater than the real-time field strength value of the right front antenna 5, it is determined that the smart key is on the left side of the vehicle; when the real-time field strength value (RSSI) of the left front antenna 4 is less than the real-time field strength value of the right front antenna 5, it is determined that the smart key is on the right side of the vehicle. Regardless of whether the smart key is on the left or right side of the vehicle, it is necessary to compare the real-time field strength value of the front instrument antenna 3 with the real-time field strength value of the tailgate antenna 6; if the real-time field strength value of the front instrument antenna 3 is greater than the real-time field strength value of the tailgate antenna 6, it is determined that the smart key is on the front side of the vehicle; if the real-time field strength value of the front instrument antenna 3 is less than the real-time field strength value of the tailgate antenna 6, it is determined that the smart key is on the rear side of the vehicle; finally, the four areas where the smart key may be located can be determined, namely the left front side, the left rear side, the right front side and the right rear side.

[0089] When it is determined that the smart key is on the left front side, the absolute value of the deviation rate of the left front antenna 4 at 0°-90° is calculated, and then the minimum absolute value of the deviation rate is compared, and then the field strength threshold of the corresponding angle is selected based on the minimum absolute value of the deviation rate, and then when the real-time field strength value of the left front antenna 4 is greater than the field strength threshold, the welcome unlocking can be triggered. In this case, the real-time field strength of the left front antenna 4 is the largest, and the real-time field strength of the front instrument antenna 3 is second only to the left front antenna 4, and the left front antenna 4 is the target antenna, and the front instrument antenna 3 is the auxiliary positioning antenna.

[0090] When it is determined that the smart key is at the left rear side, the absolute value of the deviation rate of the left front antenna 4 at 90°-180° is calculated, and then the minimum absolute value of the deviation rate is compared, and then the field strength threshold of the corresponding angle is selected based on the minimum absolute value of the deviation rate, and then when the real-time field strength value of the left front antenna 4 is greater than the field strength threshold, the welcome unlocking can be triggered. In this case, the real-time field strength of the left front antenna 4 is the largest and serves as the target antenna, and the real-time field strength of the rear seat antenna 2 is second only to the left front antenna 4. At this time, the tailgate antenna 6 can be selected as the auxiliary positioning antenna, and the rear seat antenna 2 can also be selected as the auxiliary positioning antenna.

[0091] When it is determined that the smart key is on the right front side, the absolute value of the deviation rate of the right front antenna 5 at 0°-90° is calculated, and then the minimum absolute value of the deviation rate is compared, and then the field strength threshold of the corresponding angle is selected based on the minimum absolute value of the deviation rate, and then when the real-time field strength value of the right front antenna 5 is greater than the field strength threshold, the welcome unlocking can be triggered. In this case, the real-time field strength of the right front antenna 5 is the largest and is used as the target antenna, and the real-time field strength of the front instrument antenna 3 is second only to the right front antenna 5 and is used as an auxiliary positioning antenna.

[0092] When it is determined that the smart key is at the right rear side, the absolute value of the deviation rate of the right front antenna 5 at 90°-180° is calculated, and then the minimum absolute value of the deviation rate is compared, and then the field strength threshold of the corresponding angle is selected based on the minimum absolute value of the deviation rate, and then when the real-time field strength value of the right front antenna 5 is greater than the field strength threshold, the welcome unlocking can be triggered. In this case, the real-time field strength of the right front antenna 5 is the largest. Similar to the previous case, the tailgate antenna 6 can be selected as the auxiliary positioning antenna, and the rear seat antenna 2 can also 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 may be compared first, and then the field strength values ​​of the left front antenna 4 and the right front antenna 5 may be compared. The present invention is not limited to this.

[0094] It can be seen that according to the area to which the smart key belongs, the data of the corresponding two antennas are selected to calculate the segmented interpolation. For example, if the key is on the right front side, it is only necessary to look at the calibrated field strength value of the right front antenna 5 at 0° to 90°. Taking the data at 0° as an example, the calibrated field strength value at a horizontal angle of 0° in the front instrument antenna 3 can be regarded as a data range of sections, and the real-time field strength value of the front instrument antenna 3 is used to traverse the calibrated field strength value at a horizontal angle of 0° to determine which data range at a horizontal angle of 0° in the front instrument antenna 3 the real-time field strength value of the front instrument antenna 3 belongs to. After determining the belonging range, the ratio value is calculated according to the interpolation method, and the interpolation data corresponding to the field strength value of the right front antenna 5 is calculated based on this ratio value, so as to calculate the absolute value of the deviation rate between the interpolation data of the right front antenna 5 at a horizontal angle of 0° and the real-time field strength data. According to this method, the absolute values ​​of the deviation rates of the interpolation data and the 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, it is assumed that the smart key replies 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 2750000; the RSSI value of the front instrument antenna is 25100; the RSSI value of the tailgate antenna is 710; the RSSI value of the IMMO antenna is 3310; 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° is taken as an example for exemplary explanation. On this basis, technical personnel in this field should be able to know how to calculate the absolute value of the deviation rate of each target antenna at different horizontal angles. The specific details will not be repeated here.

[0098] According to an exemplary embodiment of the present application, the process of 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 RSSI of the left front antenna (610) to the RSSI of the right front antenna (2750000), and the RSSI of the front instrument antenna (25100) to the RSSI of the tailgate antenna (710), thereby determining that the smart key is at 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 antenna from near to far at a horizontal angle of 0° for the right front antenna

[0102]

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

[0104]

[0105]

[0106] Since the real-time field strength value of the instrument antenna 3 before the smart key is restored is 25100, it can be seen from Table 1 that 25100 is in the 21229.25-56801.63 segment and in the 42432.88-24688.44 segment. The method for calculating the minimum absolute value of the deviation rate of these two segments is:

[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, calculate the absolute values ​​of the deviation rates of the right front antenna at 30°, 60°, and 90° 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 minimum absolute value of the deviation rate. The horizontal angle corresponding to the minimum absolute value of the deviation rate is the horizontal angle that best fits the real-time key field strength value.

[0117] Of course, the field strength data and the linear interpolation operation process in the above table are only for illustration and do not constitute an improper limitation on the present invention. In practice, those skilled in the art can obtain the absolute value of the deviation rate of the right front antenna at 0°, 30°, 60°, and 90° according to various known linear interpolation operation methods. In this embodiment, the linear interpolation operation can be completed based on hardware or the linear interpolation function of software such as Matlab.

[0118] For some examples, please refer to Fig.12 As shown, the linear interpolation operation process of the right front antenna 5 at the horizontal angles of 0°, 30°, 60°, and 90° can be:

[0119] (1) Perform linear interpolation calculation 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 Psg_Front_0degree_offset of the deviation rate of the right front antenna at a horizontal angle of 0°;

[0120] (2) Perform linear interpolation calculation 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 Psg_Front_30degree_offset of the deviation rate of the right front antenna at a horizontal angle of 30°;

[0121] (3) Perform linear interpolation calculation 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 Psg_Front_60degree_offset of the deviation rate of the right front antenna at a horizontal angle of 60°;

[0122] (4) Perform linear interpolation calculation 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 Psg_Front_90degree_offset of the deviation rate of the right front antenna at a horizontal angle of 90°;

[0123] (5) Perform linear interpolation calculation 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 Psg_Back_90degree_offset of the deviation rate of the right front antenna at a horizontal angle of 90°.

[0124] Finally, select the minimum absolute value of the deviation rate among Psg_Front_0degree_offset, Psg_Front_30degree_offset, Psg_Front_60degree_offset, Psg_Front_90degree_offset and Psg_Back_90degree_offset.

[0125] It is understandable that in the above point (5), the tailgate antenna is used as an additional antenna, and a linear interpolation is performed on the 90° horizontal angle of the right front antenna at the junction area to improve the accuracy of the measurement.

[0126] Return to reference Fig.11 , no matter which area the smart key belongs to, finally, the real-time field strength value of the left front antenna or the right front antenna is compared with the field strength threshold under its actual horizontal angle to determine whether to trigger the welcome unlocking function.

[0127] Then, the logic of the welcome locking function, the welcome lighting function and the tailgate unlocking function is similar to the above-mentioned welcome unlocking function, and will not be repeated. In addition, 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 to avoid frequent unlocking.

[0128] In the present invention, the smart key can be, for example, a smart phone, a remote control key, a smart wearable device (such as a smart bracelet, a smart watch, etc.). In addition, the above-mentioned smart key positioning method can be applied to electronic devices such as a vehicle controller and a main positioning node. The vehicle is specifically the executor of the above-mentioned method and needs to be bound to the smart key in advance.

[0129] In addition, based on the same inventive concept, the present invention also provides an electronic device, the electronic device provided by the present invention includes a processor and a memory, the memory stores a computer program, and when the computer program is executed by the processor, the smart key positioning method described above is implemented. Since the electronic device provided by the present invention and the smart key positioning method provided by the present invention belong to the same inventive concept, the electronic device provided by the present invention at least has all the beneficial effects of the smart key positioning method provided by the present invention. For details, please refer to the relevant description of the beneficial effects of the smart key positioning method provided by the present invention in the above text, so the beneficial effects of the electronic device provided by the present invention will not be repeated here.

[0130] The processor referred to in the present invention may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and various interfaces and lines are used to connect various parts of the entire electronic device.

[0131] The memory can be used to store the computer program, and the processor realizes various functions of the electronic device by running or executing the computer program stored in the memory and calling the 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. As an illustration and not limitation, random access memory is available in many forms, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous random access memory (SDRAM), double data rate synchronous random access memory (DDRSDRAM), enhanced synchronous random access memory (ESDRAM), synchronous link (Synchlink) dynamic random access memory (SLDRAM), memory bus (Rambus) direct random access memory (RDRAM), direct memory bus dynamic random access memory (DRDRAM), and memory bus dynamic random access memory (RDRAM).

[0132] The present invention also provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and when the computer program is executed by a processor, the smart key positioning method described above can be implemented. Since the readable storage medium provided by the present invention and the smart key positioning method provided by the present invention belong to the same inventive concept, the readable storage medium provided by the present invention at least has all the beneficial effects of the smart key positioning method provided by the present invention. For details, reference can be made to the above description of the beneficial effects of the smart key positioning method provided by the present invention, so the beneficial effects of the readable storage medium provided by the present invention will not be described one by one here.

[0133] The readable storage medium provided by the present invention can adopt 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. The computer-readable storage medium can be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer hard disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this article, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0134] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program codes. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0135] It should be noted that the computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network-including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0136] In summary, in the smart key positioning method provided by the present invention, for the same function on the vehicle, the field strength thresholds of the smart key relative to the target antenna at different horizontal angles are preset. On this basis, the actual horizontal angle of the smart key relative to the target antenna is calculated through the field strength data of the target antenna and the auxiliary positioning antenna. After determining the actual horizontal angle, the field strength threshold at the actual horizontal angle can be compared with the real-time field strength data of the target antenna, and whether to trigger the function can be determined based on the comparison result. With such a setting, a field strength threshold at the same distance and different horizontal angles can be provided for each welcome function on the vehicle, thereby better meeting the requirements of the semicircular trigger function centered on the target antenna. In addition, since the smart key is positioned by more antennas, high-precision positioning of the smart key is also achieved, which makes the user acceptance higher and greatly improves the user experience.

[0137] In further improvements, linear interpolation calculation is performed on the calibrated field strength data and real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles, and multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles are obtained. The smallest 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, thereby reducing the amount of calculation and being more suitable for actual engineering.

[0138] In further improvements, the positioning area of ​​the smart key is determined based on the real-time field strength data of multiple antennas around the vehicle. During linear interpolation calculation, the absolute value of each deviation rate is calculated only within the horizontal angle range corresponding to the positioning area. This setting can greatly reduce the amount of calculation and improve the program running speed.

[0139] In a further improvement, an additional antenna is selected in addition to the target antenna and the auxiliary positioning antenna, and linear interpolation calculation is performed on the calibrated 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 a 90° horizontal angle at the edge is obtained and incorporated into the selection of the minimum absolute value of the deviation rate, so as to further increase the accuracy of the linear interpolation calculation, thereby improving the accuracy of the smart key positioning.

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

[0141] Therefore, the present invention can overcome the problem that the RSSI field strength value caused by the physical characteristics of the antenna will be affected by the horizontal angle between the line connecting the key and the antenna and the vehicle surface, and can realize the customization of the function trigger area at different horizontal angles. In addition, when the height of the key from the ground remains unchanged, the welcome unlocking trigger area can be realized as an approximately semicircular area centered on the antenna, and the unlocking will not be triggered at the front or rear of the vehicle. At the same time, the distance from the vehicle to the welcome lock and the welcome light trigger area at different angles can be kept approximately consistent, thereby improving the user experience. In addition, when performing linear interpolation operations, the algorithm automatically traverses the calibration data to calculate the positioning. Different projects only need to recalibrate the data and input the data into the computer program (algorithm), without reanalyzing the data or modifying the algorithm logic, which is convenient for subsequent maintenance and expansion to other projects. It should be supplemented that after collecting data using the same calibration method, the blind spot can also be supplemented by the if-else statement method to achieve the consistency of the distance of the function trigger area at different horizontal angles, but this method is not conducive to subsequent maintenance and is not easy to expand to other projects.

[0142] It should be noted that the devices and methods disclosed in the embodiments of this article can also be implemented in other ways. The device implementation described above is only schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of this article. In this regard, each box in the flowchart or block diagram can represent a part of a module, program or code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical function, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system for performing a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. In addition, the functional modules in the various embodiments of this document may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0143] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A smart key positioning method, characterized in that: include: Set the field strength threshold of the smart key relative to the target antenna at different horizontal angles; Calculate the actual horizontal angle of the smart key relative to the target antenna through the field strength data of the target antenna and the auxiliary positioning antenna; 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 to trigger a function, thereby enabling 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.

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, and an 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: Also includes: Performing linear interpolation calculation on the calibrated field strength data and the real-time field strength data of the auxiliary positioning antenna and the target antenna at different horizontal angles, obtaining multiple absolute values ​​of the deviation rate of the smart key relative to the target antenna at different horizontal angles, and selecting the minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rate; The horizontal angle corresponding to the absolute value of the minimum deviation rate is used as the actual horizontal angle of the smart key.

4. The smart key positioning method according to claim 3, characterized in that: During the linear interpolation calculation, the absolute values ​​of the deviation rates are calculated only within the horizontal angle range corresponding to the positioning area of ​​the smart key, and the horizontal angle range corresponding to the positioning area is 0° to 90° or 90° to 180°; The minimum absolute value of the deviation rate among all the absolute values ​​of the deviation rates in the positioning area is selected.

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

6. The smart key positioning method according to claim 3, characterized in that: Also includes: A multiplexing function is set, and the linear interpolation calculation is performed through the multiplexing function to obtain the absolute value of the deviation rate under a horizontal angle each time.

7. The smart key positioning method according to claim 1 or 2, characterized in that: Also includes: Two vehicle exterior antennas in different combinations are driven in turn to wake up the smart key.

8. The smart key positioning method according to claim 7, characterized in that: After the smart key is awakened, all antennas on the vehicle are driven in turn to send LF carriers.

9. The smart key positioning method according to claim 1 or 2, characterized in that: Also includes: Based on the vehicle function, one of the left front antenna, the right front antenna, the front bumper antenna, and the tailgate antenna on the vehicle is determined as the target antenna to trigger the corresponding function.

10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the smart key positioning method according to any one of claims 1 to 9 is implemented.

11. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the smart key positioning method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • TBOX BLE-RSSI positioning method

    CN114339597A

  • Intelligent access system field intensity equivalent calibration method

    CN114397513A

  • Keyless entry system and vehicle inside-outside determination method

    JP2018021385A

  • Method and apparatus for communicating wireless in local area

    KR1020130086765A