Bluetooth key area positioning method and device, electronic equipment and storage medium

The method stabilizes Bluetooth key area positioning by using threshold and time delay strategies to adjust region assignments based on signal strength, addressing the instability caused by environmental factors.

CN120321586APending Publication Date: 2025-07-15XUANCHENG LUXSHARE PRECISION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510402741.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

The positioning of the Bluetooth key area is poor and is greatly affected by the environment, causing the positioning area to jump back and forth, affecting the user experience.

Method used

Through the threshold hysteresis strategy and the time hysteresis strategy, combined with the signal intensity mapping relationship, the preliminary division area and adjacent areas of the Bluetooth key are determined, and the positioning stability is improved by switching the hysteresis interval and preset hysteresis time.

Benefits of technology

It effectively avoids the back and forth of the Bluetooth key positioning area, and improves the stability and user experience of area positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321586A_ABST
    Figure CN120321586A_ABST
Patent Text Reader

Abstract

The invention relates to a Bluetooth key area positioning method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a preliminary division area where a Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relation; wherein the mapping relation is the mapping relation between the signal intensity interval and the divided area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the higher the signal intensity included in the corresponding signal intensity interval is; according to the method, the threshold delay division result of the Bluetooth key can be determined according to the threshold delay strategy, and the time delay division result of the Bluetooth key can be determined according to the time delay strategy. And the target division result is determined from the threshold delay division result and the time delay division result as the area positioning result of the Bluetooth key according to requirements, so that the positioning area of the Bluetooth key is prevented from jumping back and forth, and the stability of the area positioning of the Bluetooth key is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of Bluetooth keys, and particularly to a Bluetooth key area positioning method, device, electronic device, and storage medium. Background Art

[0002] In recent years, with the continuous development of technology, the application of digital key systems in the automotive field has gradually matured and has slowly been accepted by end users. The latest Car Connectivity Consortium (CCC) 3.0 standard uses Ultra Wide Band (UWB) as the precise positioning technology for digital key systems. However, the progress of UWB technology on the mobile phone side is slow, and there are very few mobile phone models on the market that support UWB precise positioning. Therefore, it cannot be popularized on a large scale. Although Bluetooth low energy (BLE) has poor positioning accuracy, it has a high penetration rate. Therefore, it is still active in the market as the mainstream positioning technology for digital key systems.

[0003] Bluetooth positioning is based on the signal strength RSSI (Received Signal Strength Indication). However, the Bluetooth RSSI value is greatly affected by the environment. For example, human body occlusion, occlusion by surrounding objects, multipath reflection, etc. will all cause the Bluetooth RSSI value to fluctuate greatly, resulting in the key positioning area jumping back and forth and difficult area positioning, affecting the user experience. Summary of the Invention

[0004] This application provides a Bluetooth key area positioning method, device, electronic device, and storage medium to solve the technical problem of how to improve the stability of Bluetooth key area positioning.

[0005] In a first aspect, this application provides a Bluetooth key area positioning method, and the method includes:

[0006] Determine the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship; wherein, the mapping relationship is the mapping relationship between the signal strength interval and the division area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval;

[0007] Determine the adjacent areas adjacent to the preliminary division area;

[0008] Determine the threshold hysteresis division result of the Bluetooth key according to the threshold hysteresis strategy; wherein, the threshold hysteresis strategy is used to delay the switch from the preliminary division area to the adjacent area by switching the hysteresis interval;

[0009] Determine the time lag division result of the Bluetooth key according to the time lag strategy; wherein, the time lag strategy is used to delay the switch from the preliminary division area to the adjacent area by a preset lag time;

[0010] Determine the target division result from the threshold lag division result and the time lag division result as the area positioning result of the Bluetooth key.

[0011] Optionally, determining the threshold lag division result of the Bluetooth key according to the threshold lag strategy includes:

[0012] From the adjacent area and the preliminary division area, the area farther from the target vehicle is used as the first target area, and the area closer to the target vehicle is used as the second target area;

[0013] Obtain the target switching threshold between the first target area and the second target area from the mapping relationship;

[0014] Obtain the preset switching threshold lag value;

[0015] Determine the switching lag interval according to the switching threshold lag value and the target switching threshold;

[0016] Determine the threshold lag division result of the Bluetooth key from the first target area and the second target area according to the first signal strength interval corresponding to the first target area, the second signal strength interval corresponding to the second target area, and the switching lag interval; wherein, when the current signal strength is within the switching lag interval, the threshold lag division result remains the previous positioning area.

[0017] Optionally, determining the threshold lag division result of the Bluetooth key from the first target area and the second target area according to the first signal strength interval corresponding to the first target area, the second signal strength interval corresponding to the second target area, and the switching lag interval includes:

[0018] When the current signal strength is within the switching lag interval, keep the threshold lag division result of the Bluetooth key as the previous positioning area;

[0019] When the current signal strength is within the first signal strength interval and not within the switching lag interval, position the threshold lag division result of the Bluetooth key to the first target area;

[0020] When the current signal strength is within the second signal strength interval and not within the switching lag interval, position the threshold lag division result of the Bluetooth key to the second target area.

[0021] Optionally, determining a handover hysteresis interval according to the handover threshold hysteresis value and the target handover threshold includes:

[0022] Calculating a first sum value of the target handover threshold and the handover threshold hysteresis value;

[0023] Calculating a first difference value of the target handover threshold and the handover threshold hysteresis value;

[0024] Determining an interval that is greater than the first difference value and less than or equal to the first sum value as the handover hysteresis interval.

[0025] Optionally, determining a handover hysteresis interval according to the handover threshold hysteresis value and the target handover threshold includes:

[0026] Determining a regional trend of the Bluetooth key based on the previous signal strength and the current signal strength of the Bluetooth key; wherein the regional trend is used to characterize approaching the target vehicle and moving away from the target vehicle;

[0027] When the regional trend characterizes approaching the target vehicle, calculating a first difference value of the target handover threshold and the handover threshold hysteresis value; determining an interval that is greater than the first difference value and less than or equal to the target handover threshold as the handover hysteresis interval;

[0028] When the regional trend characterizes moving away from the target vehicle, calculating a first sum value of the target handover threshold and the handover threshold hysteresis value; determining an interval that is greater than the target handover threshold and less than or equal to the first sum value as the handover hysteresis interval.

[0029] Optionally, determining a time hysteresis division result of the Bluetooth key according to a time hysteresis strategy includes:

[0030] Regarding the current signal strength as the signal strength at the first moment of the first moment; regarding the preliminary division area as the first preliminary division area;

[0031] When the signal strength at the second moment after the first moment characterizes that the Bluetooth key enters the adjacent area from the first preliminary division area, starting a timer to count;

[0032] When the timer counts up to a preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area.

[0033] Optionally, when the signal strength at the second moment after the first moment characterizes that the Bluetooth key enters the adjacent area from the first preliminary division area, starting the timer includes:

[0034] Obtaining the signal strength at the second moment of the Bluetooth key; wherein, the second moment is the moment after the first moment;

[0035] Determining the second preliminary division area where the Bluetooth key is located at the second moment according to the signal strength at the second moment and the mapping relationship;

[0036] When the second preliminary division area is the adjacent area, starting the timer.

[0037] Optionally, when the second preliminary division area is the adjacent area, starting the timer includes:

[0038] When the second preliminary division area is the adjacent area, starting the area crossing timer corresponding to the adjacent area, and starting the hysteresis time timer;

[0039] Correspondingly, when the timer reaches the preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area includes:

[0040] When the hysteresis time timer reaches the preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area;

[0041] Or,

[0042] When the hysteresis time timer reaches the preset hysteresis time, determining that the current division result of the Bluetooth key switches from the first preliminary division area to the adjacent area;

[0043] When the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key characterizes that the Bluetooth key has passed through the adjacent area, determining that the time hysteresis division result of the Bluetooth key switches from the adjacent area to the next division area of the adjacent area; wherein, the preset hysteresis time is less than the preset area crossing time.

[0044] Optionally, when the hysteresis time timer reaches the preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area includes:

[0045] Determine a third moment based on the second moment and the preset hysteresis time;

[0046] Obtain the signal strength of the Bluetooth key at the third moment;

[0047] Determine the third preliminary division area where the Bluetooth key is located at the third moment according to the signal strength at the third moment and the mapping relationship;

[0048] When the third preliminary division area belongs to the target division area, determine that the time hysteresis division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area; wherein, the target division area includes all division areas on the adjacent area side of the first preliminary division area.

[0049] Optionally, when the hysteresis time timer reaches the preset hysteresis time, determining that the current division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes:

[0050] When the hysteresis time timer reaches the preset hysteresis time, determine that the current division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area;

[0051] Correspondingly, when the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area, determining that the time hysteresis division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area includes:

[0052] Determine a fourth moment according to the second moment and the preset area crossing time;

[0053] Obtain the signal strength of the Bluetooth key at the fourth moment;

[0054] Determine the fourth preliminary division area where the Bluetooth key is located at the fourth moment according to the signal strength at the fourth moment and the mapping relationship;

[0055] When the fourth preliminary division area indicates that the Bluetooth key has passed through the adjacent area, determine that the time hysteresis division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area, and start the crossing timer corresponding to the next division area to reposition the time hysteresis division result of the Bluetooth key when the crossing timer reaches the crossing time of the next division area.

[0056] Optionally, the target vehicle includes a Bluetooth master module and a Bluetooth slave module. Determining the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship includes:

[0057] When the Bluetooth master module establishes a connection with the Bluetooth key, obtaining a first signal strength when the Bluetooth master module receives a key message;

[0058] Obtaining a second signal strength when the Bluetooth slave module monitors the key message;

[0059] Determining the current signal strength of the Bluetooth key based on the first signal strength and the second signal strength;

[0060] Obtaining the preset mapping relationship;

[0061] Determining the preliminary division area where the Bluetooth key is currently located according to the current signal strength and the mapping relationship.

[0062] Optionally, the division areas include: a PS area, a PE area, a welcome area, and a long-distance area; wherein, when the Bluetooth key is in different division areas, the target vehicle is configured with corresponding different functions.

[0063] In a second aspect, the present application provides a Bluetooth key area positioning device, and the device includes:

[0064] A first determination module, configured to determine a preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship; wherein, the mapping relationship is a mapping relationship between a signal strength interval and a division area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval;

[0065] A second determination module, configured to determine an adjacent area adjacent to the preliminary division area;

[0066] A threshold hysteresis determination module, configured to determine a threshold hysteresis division result of the Bluetooth key according to a threshold hysteresis strategy; wherein, the threshold hysteresis strategy is used to delay switching from the preliminary division area to the adjacent area by switching the hysteresis interval;

[0067] A time hysteresis determination module, configured to determine a time hysteresis division result of the Bluetooth key according to a time hysteresis strategy; wherein, the time hysteresis strategy is used to delay switching from the preliminary division area to the adjacent area by a preset hysteresis time;

[0068] An area positioning module, configured to determine a target division result from the threshold hysteresis division result and the time hysteresis division result as the area positioning result of the Bluetooth key.

[0069] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0070] The memory is used to store a computer program;

[0071] When the processor is used to execute the program stored on the memory, it implements the Bluetooth key area positioning method described in any embodiment of the first aspect.

[0072] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the Bluetooth key area positioning method described in any embodiment of the first aspect.

[0073] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art: In the method provided by the embodiments of the present application, the preliminary division area where the Bluetooth key is currently located is determined according to the current signal strength of the Bluetooth key and a preset mapping relationship; among them, the mapping relationship is the mapping relationship between the signal strength interval and the division area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval; the adjacent area adjacent to the preliminary division area is determined; the threshold hysteresis division result of the Bluetooth key is determined according to the threshold hysteresis strategy; among them, the threshold hysteresis strategy is used to delay the switch from the preliminary division area to the adjacent area by switching the hysteresis interval; the time hysteresis division result of the Bluetooth key is determined according to the time hysteresis strategy; among them, the time hysteresis strategy is used to delay the switch from the preliminary division area to the adjacent area by a preset hysteresis time; the target division result is determined from the threshold hysteresis division result and the time hysteresis division result as the area positioning result of the Bluetooth key. This method can determine the threshold hysteresis division result of the Bluetooth key according to the threshold hysteresis strategy, determine the time hysteresis division result of the Bluetooth key according to the time hysteresis strategy, and then determine the target division result from the threshold hysteresis division result and the time hysteresis division result as the area positioning result of the Bluetooth key, providing multiple selection strategies for area positioning while avoiding the positioning area of the Bluetooth key from bouncing back and forth, improving the stability of Bluetooth key area positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0075] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0076] One or more embodiments are exemplarily illustrated by the pictures in the corresponding accompanying drawings. These exemplary illustrations do not limit the embodiments. Elements with the same reference numerals in the drawings represent similar elements. Unless otherwise stated, the drawings in the figures do not constitute a proportional limitation.

[0077] Figure 1 It is a system architecture diagram of a Bluetooth key area positioning method provided by an embodiment of the present application;

[0078] Figure 2 It is a flow schematic diagram of a Bluetooth key area positioning method provided by an embodiment of the present application;

[0079] Figure 3 It is a schematic diagram of a divided area provided by an embodiment of the present application;

[0080] Figure 4 It is a schematic diagram of the preliminary divided area positioning of a Bluetooth key provided by an embodiment of the present application;

[0081] Figure 5 It is a schematic diagram of a switching hysteresis interval provided by an embodiment of the present application;

[0082] Figure 6A It is a schematic diagram of a switching hysteresis interval when the area trend is approaching provided by an embodiment of the present application;

[0083] Figure 6B It is a schematic diagram of a switching hysteresis interval when the area trend is away provided by another embodiment of the present application;

[0084] Figure 7 It is a schematic diagram of time hysteresis positioning provided by an embodiment of the present application;

[0085] Figure 8A It is a schematic diagram of time hysteresis positioning for continuous transformation from a long-distance area to a PS area provided by an embodiment of the present application;

[0086] Figure 8B It is a schematic diagram of time hysteresis positioning for continuous transformation from a PS area to a long-distance area provided by an embodiment of the present application;

[0087] Figure 9 It is a structural schematic diagram of a Bluetooth key area positioning device provided by an embodiment of the present application;

[0088] Figure 10 A schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0089] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part rather than all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0090] The following disclosure provides many different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present application. In addition, the present application may repeat reference numerals and / or letters in different examples. Such repetition is for the purpose of simplification and clarity and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0091] To solve the technical problem of how to improve the stability of Bluetooth key area positioning in the prior art, the present application provides a Bluetooth key area positioning method, device, electronic device, and storage medium, which can avoid the positioning area of the Bluetooth key from jumping back and forth and improve the stability of Bluetooth key area positioning.

[0092] The first embodiment of the present application provides a Bluetooth key area positioning method, which can be applied to a system architecture as shown in Figure 1 . In this system architecture, at least a Bluetooth key 101 and a vehicle 102 are included. The Bluetooth key 101 and the vehicle 102 can establish a communication connection through Bluetooth. Functions such as keyless start, keyless entry, and unlocking and locking of the vehicle can be realized through the Bluetooth key. The vehicle paired with the Bluetooth key can be called a target vehicle. The Bluetooth key (hereinafter also simply referred to as the key) can be a device such as a digital key or a smart terminal, without limitation. This method can be applied to the vehicle 102 in this system architecture. Specifically, it can be applied to the in-vehicle system of the vehicle, without limitation.

[0093] Next, based on this system architecture, the Bluetooth key area positioning method will be described in detail. As Figure 2 , the Bluetooth key area positioning method includes:

[0094] Step 201: Determine the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship; wherein, the mapping relationship is the mapping relationship between the signal strength interval and the division area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval.

[0095] The division area can be divided according to the functions available for the Bluetooth key. When the Bluetooth key is in different division areas, the target vehicle is configured with corresponding different functions. The closer the division area is to the target vehicle, the greater the signal strength included in the corresponding signal strength interval; the farther the division area is from the target vehicle, the smaller the signal strength included in the corresponding signal strength interval. For example Figure 3 As shown in a division area schematic diagram, it includes: a passive start area, a passive entry area, a welcome area, and a long-distance area. For example, when the Bluetooth key is in the passive start (PS for short) area, the target vehicle can be started without a key; when the Bluetooth key is in the passive entry (PE for short) area, the target vehicle can be automatically unlocked; when the Bluetooth key is in the welcome area, the target vehicle can flash its lights for welcome; when the Bluetooth key is in the long-distance area, controlling the vehicle is not allowed. It should be noted that the above area division is only an example, and the name of each division area can also be referred to as Area A, Area B, Area C, etc. In fact, the division area can be set and adjusted according to needs, and the functions that each division area can achieve can also be adjusted accordingly. The embodiments of the present application do not limit this.

[0096] In one embodiment, determining the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship includes: obtaining the current signal strength of the Bluetooth key; obtaining the preset mapping relationship; and determining the preliminary division area where the Bluetooth key is currently located according to the current signal strength and the mapping relationship.

[0097] In this embodiment, the preset mapping relationship is the mapping relationship between the signal strength interval and the division area. The signal strength can be the received signal strength indication (RSSI) value. Different signal strength intervals correspond to different division areas. According to the current signal strength of the Bluetooth key, the signal strength interval where the current signal strength is located can be determined, and then the preliminary division area where the Bluetooth key is currently located can be determined according to the signal strength interval where it is located and the mapping relationship. It should be noted that the mapping relationship between the signal strength interval and the division area is affected by the environment and equipment, etc., and the specific mapping relationship can be obtained through calibration.

[0098] In one embodiment, the target vehicle includes a Bluetooth master module and a Bluetooth slave module. Obtaining the current signal strength of the Bluetooth key includes: when the Bluetooth master module establishes a connection with the Bluetooth key, obtaining the first signal strength when the Bluetooth master module receives the key message; obtaining the second signal strength when the Bluetooth slave module monitors the key message; and determining the current signal strength of the Bluetooth key based on the first signal strength and the second signal strength.

[0099] In this embodiment, the schematic diagram of the preliminary divided area positioning of the Bluetooth key is as Figure 4 , for the Bluetooth positioning function of the digital key system, usually the in-vehicle Bluetooth master module establishes a connection with the Bluetooth key. The Bluetooth master module receives the message of the Bluetooth key in each connection event and obtains the corresponding RSSI value at the same time. Multiple Bluetooth slave modules outside the vehicle monitor the message sent by the key to the Bluetooth master module in real time, obtain the corresponding RSSI value at the same time, and then send the RSSI value to the Bluetooth master module through the Controller Area Network (CAN) bus. After the Bluetooth master module obtains the RSSI values of all modules, it can determine the current signal strength, and then obtain the area positioning result of the key relative to the vehicle through algorithm processing. The area positioning result here is the preliminary divided area.

[0100] Step 202, determine the adjacent area adjacent to the preliminary divided area.

[0101] If the preliminary divided area is the PS area, the adjacent area is the PE area. If the preliminary divided area is the PE area, the adjacent area can be the PS area or the welcome area. To distinguish the area relatively close to the vehicle (PS area) and the area relatively far from the vehicle (welcome area), the area farther from the target vehicle can also be used as the first target area, and the area closer to the target vehicle can be used as the second target area. That is, when the adjacent area is the PS area, the first target area is the PE area, and the second target area is the PS area. When the adjacent area is the welcome area, the first target area is the welcome area, and the second target area is the PE area. The same applies when the preliminary divided area is the welcome area or the long-distance area, and will not be elaborated here.

[0102] Step 203, determine the threshold hysteresis division result of the Bluetooth key according to the threshold hysteresis strategy; wherein, the threshold hysteresis strategy is used to delay the switch from the preliminary divided area to the adjacent area by switching the hysteresis interval.

[0103] In one embodiment, determining the threshold hysteresis division result of the Bluetooth key according to the threshold hysteresis strategy includes:

[0104] Step S11, from the adjacent area and the preliminary divided area, use the area farther from the target vehicle as the first target area, and the area closer to the target vehicle as the second target area.

[0105] Step S12: Obtain the target switching threshold between the first target area and the second target area from the mapping relationship.

[0106] The preset mapping relationship is the mapping relationship between the signal strength interval and the divided area. The splitting point of two adjacent signal strength intervals is the switching threshold between two adjacent divided areas. The target switching threshold between the first target area and the second target area can be obtained from the mapping relationship.

[0107] Step S13: Obtain the preset switching threshold hysteresis value.

[0108] Since the Bluetooth RSSI value is greatly affected by the environment and may fluctuate significantly, the calibrated area result (i.e., the preliminary divided area) may jump back and forth between multiple divided areas, causing functional disorders and affecting the user experience. To reduce the probability of area jumping and improve the stability of area positioning, the embodiment of the present application introduces a switching threshold hysteresis value. The switching threshold hysteresis value can be a unified value between each divided area, or a separate switching threshold hysteresis value corresponding to every two adjacent divided areas, without limitation.

[0109] Step S14: Determine the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold.

[0110] According to the switching threshold hysteresis value and the target switching threshold, the switching hysteresis interval can be determined. When the current signal strength is within the switching hysteresis interval, the threshold hysteresis division result of the Bluetooth key is maintained as the previous positioning area, so as to avoid the frequent jumping of the calibrated divided area in the case of large fluctuations in the Bluetooth RSSI value.

[0111] In one embodiment, determining the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold includes: calculating the first sum value of the target switching threshold and the switching threshold hysteresis value; calculating the first difference value between the target switching threshold and the switching threshold hysteresis value; and determining the interval greater than the first difference value and less than or equal to the first sum value as the switching hysteresis interval.

[0112] In this embodiment, the schematic diagram of the switching hysteresis interval is as Figure 5, f(t) is the current signal strength at time t, which can be the RSSI value of a logical judgment algorithm or the calculated value of a machine learning algorithm. th is the target switching threshold between area A and area B, where area A can be the first target area and area B can be the second target area. If no switching hysteresis interval is set, when f(t) ≤ th, the key is in area A, and when f(t) > th, the key is in area B. At this time, if the current signal strength is near th, due to external factors, the positioning area of the Bluetooth key may frequently jump between area A and area B. In this embodiment, a threshold hysteresis △th is set, where △th is the switching threshold hysteresis value, and the switching hysteresis interval is (th - △th, th + △th]. When f(t) ≤ th - △th, the key is in area A; when f(t) > th + △th, the key is in area B; when th - △th < f(t) ≤ th + △th, the key area remains unchanged. By setting the switching hysteresis interval, the area switching can be made to lag, ensuring area stability.

[0113] In one embodiment, the switching hysteresis interval is determined according to the switching threshold hysteresis value and the target switching threshold, including: determining the area trend of the Bluetooth key based on the previous signal strength and the current signal strength of the Bluetooth key; where the area trend is used to characterize getting closer to the target vehicle and getting farther away from the target vehicle; in the case where the area trend characterizes getting closer to the target vehicle, calculating the first difference between the target switching threshold and the switching threshold hysteresis value; determining the interval greater than the first difference and less than or equal to the target switching threshold as the switching hysteresis interval; in the case where the area trend characterizes getting farther away from the target vehicle, calculating the first sum value of the target switching threshold and the switching threshold hysteresis value; determining the interval greater than the target switching threshold and less than or equal to the first sum value as the switching hysteresis interval.

[0114] In this embodiment, the schematic diagram of the switching hysteresis interval when the area trend is approaching is as Figure 6A , and the schematic diagram of the switching hysteresis interval when the area trend is departing is as Figure 6B . In Figure 6A and Figure 6B , f(t) is the current signal strength at time t, which can be the RSSI value of a logical judgment algorithm or the calculated value of a machine learning algorithm. th is the target switching threshold between area A and area B, where area A can be the first target area and area B can be the second target area. If no switching hysteresis interval is set, when f(t) ≤ th, the key is in area A, and when f(t) > th, the key is in area B. At this time, if the current signal strength is near th, due to external factors, the positioning area of the Bluetooth key may frequently jump between area A and area B.

[0115] In this embodiment, based on the previous signal strength and the current signal strength of the Bluetooth key, the regional trend of the Bluetooth key is determined. When f(t) increases as it changes from the external area to the internal area, it can be considered that the regional trend is approaching. In the case where the regional trend indicates a gradual approach to the target vehicle, such as Figure 6A , calculate the first difference (th - △th) between the target switching threshold and the switching threshold hysteresis value; determine the interval that is greater than the first difference and less than or equal to the target switching threshold as the switching hysteresis interval, that is, the switching hysteresis interval is (th - △th, th]. When f(t) ≤ th - △th, the key is in area A; when f(t) > th, the key is in area B; when th - △th < f(t) ≤ th, the key area remains unchanged. When f(t) decreases as it changes from the internal area to the external area, it is considered that the regional trend is away. In the case where the regional trend indicates a gradual departure from the target vehicle, such as Figure 6B , calculate the first sum value (th + △th) of the target switching threshold and the switching threshold hysteresis value; determine the interval that is greater than the target switching threshold and less than or equal to the first sum value as the switching hysteresis interval, that is, the switching hysteresis interval is (th, th + △th]. When f(t) ≤ th, the key is in area A; when f(t) > th + △th, the key is in area B; when th < f(t) ≤ th + △th, the key area remains unchanged. This embodiment moderately reduces the range of the switching hysteresis interval, which can not only ensure the real-time nature of the area change but also ensure the area stability.

[0116] Step S15: Determine the threshold hysteresis division result of the Bluetooth key from the first target area and the second target area according to the first signal strength interval corresponding to the first target area, the second signal strength interval corresponding to the second target area, and the switching hysteresis interval; wherein, when the current signal strength is in the switching hysteresis interval, the threshold hysteresis division result remains the previous positioning area.

[0117] In this embodiment, the preliminary division area where the Bluetooth key is currently located can be determined according to the current signal strength of the Bluetooth key and the preset mapping relationship. The adjacent area adjacent to the preliminary division area is determined, and the preset switching threshold hysteresis value is obtained. The switching hysteresis interval is determined according to the target switching threshold and the switching threshold hysteresis value between the preliminary division area and the adjacent area. The threshold hysteresis division result obtained based on the threshold hysteresis strategy can keep the previous positioning area when the Bluetooth key is in the switching hysteresis interval, avoiding the positioning area of the Bluetooth key from jumping back and forth, and improving the stability of the Bluetooth key area positioning.

[0118] In one embodiment, according to the first signal strength range corresponding to the first target area, the second signal strength range corresponding to the second target area, and the handover hysteresis range, the threshold hysteresis division result of the Bluetooth key is determined from the first target area and the second target area, including: when the current signal strength is within the handover hysteresis range, keeping the threshold hysteresis division result of the Bluetooth key as the previous positioning area; when the current signal strength is within the first signal strength range and not within the handover hysteresis range, positioning the threshold hysteresis division result of the Bluetooth key to the first target area; when the current signal strength is within the second signal strength range and not within the handover hysteresis range, positioning the threshold hysteresis division result of the Bluetooth key to the second target area.

[0119] In this embodiment, when the current signal strength is within the handover hysteresis range, the threshold hysteresis division result of the Bluetooth key is kept as the previous positioning area. When the current signal strength is within the first signal strength range and not within the handover hysteresis range, the threshold hysteresis division result of the Bluetooth key is positioned to the first target area. When the current signal strength is within the second signal strength range and not within the handover hysteresis range, the threshold hysteresis division result of the Bluetooth key is positioned to the second target area, thereby optimizing the positioning of the preliminary division area. If the threshold hysteresis division result obtained based on the handover hysteresis range is used to perform area positioning on the Bluetooth key, the positioning area of the Bluetooth key can be prevented from bouncing back and forth, improving the stability of the Bluetooth key area positioning.

[0120] Step 204, determining the time hysteresis division result of the Bluetooth key according to the time hysteresis strategy; wherein, the time hysteresis strategy is used to delay the handover from the preliminary division area to the adjacent area by a preset hysteresis time.

[0121] In one embodiment, determining the time hysteresis division result of the Bluetooth key according to the time hysteresis strategy includes:

[0122] Step S21, taking the current signal strength as the first moment signal strength at the first moment; taking the preliminary division area as the first preliminary division area.

[0123] Step S22, when the second moment signal strength at the second moment after the first moment indicates that the Bluetooth key enters the adjacent area from the first preliminary division area, starting the timer to count.

[0124] In one embodiment, when the signal strength of the second moment after the first moment characterizes that the Bluetooth key enters an adjacent area from the first preliminary division area, starting the timer timing includes: obtaining the signal strength of the second moment of the Bluetooth key at the second moment; wherein, the second moment is the moment after the first moment; determining the second preliminary division area where the Bluetooth key is located at the second moment according to the signal strength of the second moment and the mapping relationship; and starting the timer timing when the second preliminary division area is an adjacent area.

[0125] In this embodiment, the signal strength of the second moment of the Bluetooth key is obtained, and the second preliminary division area where the Bluetooth key is located at the second moment is determined according to the signal strength of the second moment and the mapping relationship; when the second preliminary division area is an adjacent area of the first preliminary division area, it indicates that the Bluetooth key needs to perform area switching. Without time hysteresis, area switching is required immediately, that is, switching from the first preliminary division area (such as area A) to the second preliminary division area (such as area B). However, if the switch is made immediately, in the case of external factors affecting the RSSI value, the positioning area of the Bluetooth key may frequently jump between area A and area B. In this embodiment, when the second preliminary division area is an adjacent area of the first preliminary division area, the timer is started to time. After the timing reaches the preset hysteresis time, the time hysteresis division result of the Bluetooth key is determined. If the area positioning of the Bluetooth key is performed according to the time hysteresis division result, the back-and-forth jumping of the positioning area of the Bluetooth key within the preset hysteresis time can be avoided, and the stability of the area positioning of the Bluetooth key is improved.

[0126] Step S23, when the timer timing reaches the preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area.

[0127] In this embodiment, when the Bluetooth key enters an adjacent area from the first preliminary division area, the timer is started to time. When the timer timing reaches the preset hysteresis time, it is determined that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area. The time hysteresis division result obtained based on the time hysteresis strategy can avoid the back-and-forth jumping of the positioning area of the Bluetooth key within the preset hysteresis time and improve the stability of the area positioning of the Bluetooth key.

[0128] In one embodiment, when the second preliminary division area is an adjacent area, starting the timer timing includes: when the second preliminary division area is an adjacent area, starting the area crossing timer corresponding to the adjacent area and starting the hysteresis time timer.

[0129] In this embodiment, the timer can be a hysteresis timer uniformly used in each area, or each area can have a zone crossing timer. Of course, it can also include both a uniformly used hysteresis timer and a separate zone crossing timer for each area. After the hysteresis timer reaches the preset hysteresis time, it can be determined that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area. Or after the zone crossing timer reaches the preset zone crossing time, it can be determined that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area. Of course, it can also be determined that the time hysteresis division result switches from the first preliminary division area to the adjacent area after both of the above two timers meet the conditions.

[0130] Specifically, when the timer counts up to the preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area includes at least the following two cases.

[0131] The first case: When the hysteresis timer reaches the preset hysteresis time, determine that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area.

[0132] In this embodiment, only the hysteresis timer can be used. After each area switch, for example, when the signal strength at the second moment after the first moment indicates that the Bluetooth key enters the adjacent area from the first preliminary division area, start the hysteresis timer to count. When the hysteresis timer reaches the preset hysteresis time, determine that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area. Of course, when the hysteresis timer reaches the preset hysteresis time, it is also possible to determine whether the Bluetooth key is currently in the adjacent area. For example, if the first preliminary division area where the first moment is located is the far - distance area, and the adjacent area entered at the second moment is the welcome area, start the hysteresis timer to count at the second moment. When the hysteresis timer reaches the preset hysteresis time, determine the area where the Bluetooth key is currently located. If the signal strength of the Bluetooth key at the current moment indicates that the Bluetooth key is in the welcome area or the PE area closer to the vehicle, determine that the time hysteresis division result of the Bluetooth key switches from the far - distance area to the welcome area. If the signal strength of the Bluetooth key at the current moment indicates that the Bluetooth key is in the far - distance area, then although the hysteresis timer reaches the preset hysteresis time, no area - location switch is performed.

[0133] Second case: When the hysteresis time timer reaches the preset hysteresis time, it is determined that the current positioning area of the Bluetooth key is switched from the first preliminary division area to an adjacent area. When the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area, it is determined that the time hysteresis division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area; wherein, the preset hysteresis time is less than the preset area crossing time.

[0134] In this embodiment, the hysteresis time timer and the area crossing timer can be combined at the same time. When the hysteresis time timer reaches the preset hysteresis time, it is determined that the current positioning area of the Bluetooth key is switched from the first preliminary division area to an adjacent area. At the same time when the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area, it is determined that the time hysteresis division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area. The preset hysteresis time can be set to a time smaller than the preset area crossing time. More specifically, when continuously crossing areas, the case where the preset hysteresis time is set to 0 can also be included, that is, it is equivalent to only using the area crossing timer. When switching from the first preliminary division area to an adjacent area, the area positioning is directly switched, and the area crossing timer corresponding to the adjacent area is started at the same time. When the area crossing timer corresponding to the adjacent area reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area and reached the next division area, it is determined that the time hysteresis division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area.

[0135] In one embodiment, when the hysteresis time timer reaches the preset hysteresis time, determining that the time hysteresis division result of the Bluetooth key is switched from the first preliminary division area to an adjacent area includes: determining a third moment according to the second moment and the preset hysteresis time; obtaining the signal strength of the Bluetooth key at the third moment; determining the third preliminary division area where the Bluetooth key is located at the third moment according to the signal strength at the third moment and the mapping relationship; when the third preliminary division area belongs to the target division area, determining that the time hysteresis division result of the Bluetooth key is switched from the first preliminary division area to an adjacent area; wherein, the target division area includes all division areas on the adjacent area side of the first preliminary division area.

[0136] In this embodiment, the schematic diagram of time hysteresis positioning is as Figure 7, when switching from area A to area B, a preset hysteresis time such as ΔT is added. When the first preliminary division area of the Bluetooth key is calculated at the first moment and switches to an adjacent area such as area B, the current area is maintained first, and a timer timer is started. When timer > ΔT, the switching of the hysteresis time division result is performed. Of course, when performing the switching of the hysteresis time division result at the third moment, it is necessary to determine whether the third preliminary division area corresponding to the third moment belongs to the target division area. For example, in the scenario where the user approaches the vehicle with the Bluetooth key, the first preliminary division area is the welcome area, and the second preliminary division area at the second moment is the PE area. At this time, the timer timer is started. At the third moment when timer > ΔT, the third preliminary division area is calculated. If the third division area is the division area inside the welcome area, such as the PE area (it may also be the PS area), it is determined that the hysteresis time division result of the Bluetooth key switches from the welcome area to the PE area, thereby avoiding the Bluetooth key from jumping back and forth in the positioning area within the preset hysteresis time and improving the stability of the Bluetooth key area positioning.

[0137] In one embodiment, when the hysteresis time timer reaches the preset hysteresis time, determining that the current positioning area of the Bluetooth key switches from the first preliminary division area to the adjacent area includes: when the hysteresis time timer reaches the preset hysteresis time, determining that the current positioning area of the Bluetooth key switches from the first preliminary division area to the adjacent area.

[0138] Correspondingly, when the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area, determining that the hysteresis time division result of the Bluetooth key switches from the adjacent area to the next division area of the adjacent area includes: determining the fourth moment according to the second moment and the preset area crossing time; obtaining the signal strength of the Bluetooth key at the fourth moment; determining the fourth preliminary division area where the Bluetooth key is located at the fourth moment according to the signal strength at the fourth moment and the mapping relationship; when the fourth preliminary division area indicates that the Bluetooth key has passed through the adjacent area, determining that the hysteresis time division result of the Bluetooth key switches from the adjacent area to the next division area of the adjacent area, and starting the area crossing timer corresponding to the next division area to reposition the hysteresis time division result of the Bluetooth key when the area crossing timer reaches the area crossing time of the next division area. It should be noted that the first preliminary division area, the adjacent area, and the next division area are three consecutive areas from far to near (gradually approaching the vehicle) or from near to far (gradually moving away from the vehicle).

[0139] In this embodiment, in the scenario of continuously crossing regions, when the hysteresis time timer reaches the preset hysteresis time, it is determined that the current positioning region of the Bluetooth key switches from the first preliminary division region to an adjacent region. Specifically, when the preset hysteresis time is set to 0, when the second preliminary division region is the adjacent region, it is directly determined that the current positioning region of the Bluetooth key has switched from the first preliminary division region to the adjacent region (in this case, the adjacent region is the second preliminary division region). Each division region has a certain range, and it takes a certain amount of time for the user to carry the key through the region. The region crossing time Tcross can be increased, such as the crossing time Tcross_welcome for the welcome area and the crossing time Tcross_pe for the PE area. When continuously changing in one direction in the region, it takes a certain crossing time to cross the intermediate welcome area or PE area. If the user carries the key from the far - distance area into the welcome area, then into the PE area, and finally into the PS area, the crossing time Tcross_welcome is set for the intermediate welcome area, and the crossing time Tcross_pe is set for the intermediate PE area; conversely, if the user carries the key from the PS area into the PE area, then into the welcome area, and finally into the far - distance area, the crossing time Tcross_welcome is also set for the intermediate welcome area, and the crossing time Tcross_pe is also set for the intermediate PE area. Figure 8A It is a schematic diagram of time - hysteresis positioning for continuous transformation from the far - distance area to the PS area. During the process of gradually entering the PS area from the far - distance area, when entering the welcome area, the positioning region can be directly switched to the welcome area, and a region - crossing timer timer is started. When timer ≤ Tcross_welcome, the time - hysteresis division result of the key remains unchanged in the welcome area; when timer > Tcross_welcome, the key is in the inner area of the welcome area, and the time - hysteresis division result of the key switches to a new region, that is, the PE area. When the time - hysteresis division result switches to the PE area, a timer timer is started. When timer ≤ Tcross_pe, the time - hysteresis division result of the key remains unchanged in the PE area. When timer > Tcross_pe, the key is in the inner area of the PE area, and the time - hysteresis division result of the key switches to a new region, that is, the PS area. Figure 8BSchematic diagram of time lag positioning for continuous transformation from the PS area to the long-distance area. During the process of gradually entering the long-distance area from the PS area, when entering the PE area, the positioning area can be directly switched to the PE area, and a zone crossing timer "timer" is started. When timer ≤ Tcross_pe, the time lag division result of the key remains unchanged in the PE area; when timer > Tcross_pe, the key is in the outer area of the current PE area, and the time lag division result of the key is switched to a new area, i.e., the welcome area. When the time lag division result is switched to the welcome area, a timer "timer" is started. When timer ≤ Tcross_welcome, the time lag division result of the key remains unchanged in the welcome area. When timer > Tcross_welcome, the key is in the outer area of the current welcome area, and the time lag division result of the key is switched to a new area, i.e., the long-distance area. By setting the zone crossing time, it is possible to avoid the positioning area of the Bluetooth key from bouncing back and forth, improving the stability of the Bluetooth key area positioning. It should be noted that Figure 8A and Figure 8B in, the unbolded lines are the area change lines monitored according to the signal strength, and the bolded lines are the schematic lines for area switching after adding the time lag of zone crossing. And, it is exemplified with the preset time lag of the time lag timer being 0. In fact, during the process of continuously crossing from the long-distance area into the PS area, when entering the welcome area from the long-distance area, it is also possible not to directly switch, but to add a short time lag and then switch the positioning area to the welcome area. Similarly, during the process of continuously crossing from the PS area into the long-distance area, when entering the PE area from the PS area, it is also possible not to directly switch, but to add a short time lag and then switch the positioning area to the PE area.

[0140] In a more specific embodiment, the time lag strategy can be combined with the threshold lag strategy while executing the time lag strategy. For example, when the timer counts up to the preset time lag, it is determined that the time lag division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area, including: obtaining the target switching threshold between the adjacent area and the first preliminary division area from the mapping relationship; obtaining the preset switching threshold lag value; determining the switching lag interval between the adjacent area and the first preliminary division area according to the switching threshold lag value and the target switching threshold; when the timer counts up to the preset time lag and the current signal strength of the Bluetooth key does not belong to the switching lag interval, determining that the time lag division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

[0141] In this embodiment, while adding a time lag to the switching of the time lag division result through a timer, a switching time lag interval can also be determined according to a preset switching threshold lag value and the target switching threshold between the adjacent area and the first preliminary division area. When both the timer reaches the preset lag time and the current signal strength of the Bluetooth key does not belong to the switching time lag interval, the time lag division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area. Thus, the Bluetooth key can maintain the previous positioning area when it is in the switching time lag interval, and the area switching is only performed when the current signal strength of the Bluetooth key does not belong to the switching time lag interval, further avoiding the back-and-forth jumping of the positioning area of the Bluetooth key and improving the stability of the area positioning of the Bluetooth key.

[0142] Step 205: Determine the target division result from the threshold lag division result and the time lag division result as the area positioning result of the Bluetooth key.

[0143] After obtaining the threshold lag division result and the time lag division result, one of the division results can be selected as the final area positioning result of the Bluetooth key according to the preset requirements of the user. For example, the relatively faster-responsive division result can be selected, or the relatively slower-responsive division result can be selected, without limitation.

[0144] This method can determine the threshold lag division result of the Bluetooth key according to the threshold lag strategy, determine the time lag division result of the Bluetooth key according to the time lag strategy, and then determine the target division result from the threshold lag division result and the time lag division result as the area positioning result of the Bluetooth key. While providing multiple selection strategies for area positioning, it avoids the back-and-forth jumping of the positioning area of the Bluetooth key and improves the stability of the area positioning of the Bluetooth key.

[0145] Based on the same technical concept, the second embodiment of the present application provides a Bluetooth key area positioning device, as Figure 9 The device includes:

[0146] The first determination module 901 is configured to determine the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship; wherein, the mapping relationship is the mapping relationship between the signal strength interval and the division area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval;

[0147] The second determination module 902 is configured to determine the adjacent area adjacent to the preliminary division area;

[0148] A threshold hysteresis determination module 903, configured to determine a threshold hysteresis division result of the Bluetooth key according to a threshold hysteresis strategy; wherein, the threshold hysteresis strategy is used to delay switching from the preliminary division area to the adjacent area by switching the hysteresis interval;

[0149] A time hysteresis determination module 904, configured to determine a time hysteresis division result of the Bluetooth key according to a time hysteresis strategy; wherein, the time hysteresis strategy is used to delay switching from the preliminary division area to the adjacent area by a preset hysteresis time;

[0150] A region positioning module 905, configured to determine a target division result from the threshold hysteresis division result and the time hysteresis division result as the region positioning result of the Bluetooth key.

[0151] This device can determine the threshold hysteresis division result of the Bluetooth key according to the threshold hysteresis strategy, determine the time hysteresis division result of the Bluetooth key according to the time hysteresis strategy, and then determine the target division result from the threshold hysteresis division result and the time hysteresis division result as the region positioning result of the Bluetooth key. While providing multiple selection strategies for region positioning, it avoids the positioning area of the Bluetooth key from bouncing back and forth, improving the stability of the Bluetooth key region positioning.

[0152] As Figure 10 shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114. Among them, the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,

[0153] The memory 113 is used to store a computer program;

[0154] In an embodiment of the present application, when the processor 111 executes the program stored on the memory 113, it implements the Bluetooth key region positioning method provided in any one of the foregoing method embodiments.

[0155] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0156] The communication interface is used for communication between the above terminal and other devices.

[0157] The memory may include a Random Access Memory (RAM), or may also include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0158] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0159] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the Bluetooth key area positioning method provided in any one of the foregoing method embodiments.

[0160] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0161] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general-purpose hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the related technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0162] It should be understood that the terms used herein are for the purpose of describing particular example embodiments only and are not intended to be limiting. Unless the context clearly dictates otherwise, the singular forms "a", "an", and "the" as used herein may also include the plural forms. The terms "comprising", "including", "containing", and "having" are inclusive and thus specify the presence of the stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the particular order described or illustrated, unless the order of performance is explicitly stated. It should also be understood that additional or alternative steps may be used.

[0163] It should be understood that the specific embodiments described herein are merely for the purpose of explaining the present application and are not intended to limit the present application. In the description, the suffixes such as "module", "component", or "unit" used to denote elements are only for the convenience of describing the present application and have no specific meaning in themselves. Therefore, "module", "component", or "unit" may be used interchangeably.

[0164] The above are only specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.

Claims

1. A Bluetooth key area positioning method, characterized in that The method includes: Determining a preliminary divided area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship; wherein, the mapping relationship is a mapping relationship between a signal strength interval and a divided area; the closer the divided area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval; Determining an adjacent area adjacent to the preliminary divided area; Determining a threshold hysteresis division result of the Bluetooth key according to a threshold hysteresis strategy; wherein, the threshold hysteresis strategy is used to delay switching from the preliminary divided area to the adjacent area by switching the hysteresis interval; Determining a time hysteresis division result of the Bluetooth key according to a time hysteresis strategy; wherein, the time hysteresis strategy is used to delay switching from the preliminary divided area to the adjacent area by a preset hysteresis time; Determining a target division result from the threshold hysteresis division result and the time hysteresis division result as the area positioning result of the Bluetooth key.

2. The method according to claim 1, characterized in that Determining the threshold hysteresis division result of the Bluetooth key according to the threshold hysteresis strategy includes: From the adjacent area and the preliminary divided area, taking the area farther from the target vehicle as the first target area and the area closer to the target vehicle as the second target area; Obtaining a target switching threshold between the first target area and the second target area from the mapping relationship; Obtaining a preset switching threshold hysteresis value; Determining a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold; Determining the threshold hysteresis division result of the Bluetooth key from the first target area and the second target area according to the first signal strength interval corresponding to the first target area, the second signal strength interval corresponding to the second target area, and the switching hysteresis interval; wherein, when the current signal strength is within the switching hysteresis interval, the threshold hysteresis division result remains the previous positioning area.

3. The method according to claim 2, wherein Determining the threshold hysteresis division result of the Bluetooth key from the first target area and the second target area according to the first signal strength interval corresponding to the first target area, the second signal strength interval corresponding to the second target area, and the switching hysteresis interval includes: When the current signal strength is within the switching hysteresis interval, keeping the threshold hysteresis division result of the Bluetooth key as the previous positioning area; When the current signal strength is within the first signal strength interval and not within the switching hysteresis interval, positioning the threshold hysteresis division result of the Bluetooth key to the first target area; When the current signal strength is within the second signal strength interval and not within the switching hysteresis interval, positioning the threshold hysteresis division result of the Bluetooth key to the second target area.

4. The method according to claim 3, characterized in that Determining the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold includes: Calculating a first sum value of the target switching threshold and the switching threshold hysteresis value; Calculating a first difference value between the target switching threshold and the switching threshold hysteresis value; Determine the interval that is greater than the first difference and less than or equal to the first sum value as the handover hysteresis interval.

5. The method according to claim 3, wherein Determine the handover hysteresis interval according to the handover threshold hysteresis value and the target handover threshold, including: Based on the previous signal strength of the Bluetooth key and the current signal strength, determine the regional trend of the Bluetooth key; wherein, the regional trend is used to characterize approaching the target vehicle gradually and moving away from the target vehicle gradually. When the regional trend characterizes approaching the target vehicle gradually, calculate the first difference between the target handover threshold and the handover threshold hysteresis value; determine the interval that is greater than the first difference and less than or equal to the target handover threshold as the handover hysteresis interval. When the regional trend characterizes moving away from the target vehicle gradually, calculate the first sum value of the target handover threshold and the handover threshold hysteresis value; determine the interval that is greater than the target handover threshold and less than or equal to the first sum value as the handover hysteresis interval.

6. The method according to claim 1, wherein Determine the time hysteresis division result of the Bluetooth key according to the time hysteresis strategy, including: Take the current signal strength as the signal strength at the first moment of the first moment; take the preliminary division area as the first preliminary division area. When the signal strength at the second moment after the first moment characterizes that the Bluetooth key enters the adjacent area from the first preliminary division area, start the timer to count. When the timer counts up to the preset hysteresis time, determine that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area.

7. The method according to claim 6, characterized in that, When the signal strength at the second moment after the first moment characterizes that the Bluetooth key enters the adjacent area from the first preliminary division area, start the timer to count, including: Obtain the signal strength at the second moment of the Bluetooth key; wherein, the second moment is the moment after the first moment. Determine the second preliminary division area where the Bluetooth key is located at the second moment according to the second moment signal strength and the mapping relationship. When the second preliminary division area is the adjacent area, start the timer to count.

8. The method according to claim 7, wherein When the second preliminary division area is the adjacent area, start the timer to count, including: When the second preliminary division area is the adjacent area, start the area crossing timer corresponding to the adjacent area and start the hysteresis time timer. Correspondingly, when the timer counts up to the preset hysteresis time, determine that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area, including: When the hysteresis time timer counts up to the preset hysteresis time, determine that the time hysteresis division result of the Bluetooth key switches from the first preliminary division area to the adjacent area. Or, When the hysteresis time timer counts up to the preset hysteresis time, determine that the current division result of the Bluetooth key switches from the first preliminary division area to the adjacent area. When the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area, it is determined that the time lag division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area; wherein, the preset lag time is less than the preset area crossing time.

9. The method according to claim 8, wherein When the lag time timer reaches the preset lag time, determining that the time lag division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes: Determining a third moment according to the second moment and the preset lag time; Obtaining the signal strength at the third moment of the Bluetooth key at the third moment; Determining the third preliminary division area where the Bluetooth key is located at the third moment according to the signal strength at the third moment and the mapping relationship; When the third preliminary division area belongs to the target division area, determining that the time lag division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area; wherein, the target division area includes all division areas on the adjacent area side of the first preliminary division area.

10. The method according to claim 8, wherein When the lag time timer reaches the preset lag time, determining that the current division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes: When the lag time timer reaches the preset lag time, determining that the current division result of the Bluetooth key is switched from the first preliminary division area to the adjacent area; Correspondingly, when the area crossing timer reaches the preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent area, determining that the time lag division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area includes: Determining a fourth moment according to the second moment and the preset area crossing time; Obtaining the signal strength at the fourth moment of the Bluetooth key at the fourth moment; Determining the fourth preliminary division area where the Bluetooth key is located at the fourth moment according to the signal strength at the fourth moment and the mapping relationship; When the fourth preliminary division area indicates that the Bluetooth key has passed through the adjacent area, determining that the time lag division result of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area, and starting the crossing timer corresponding to the next division area to reposition the time lag division result of the Bluetooth key when the crossing timer reaches the crossing time of the next division area.

11. The method according to claim 1, characterized in that, The target vehicle includes a Bluetooth master module and a Bluetooth slave module. Determining the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship includes: When the Bluetooth master module establishes a connection with the Bluetooth key, obtaining the first signal strength when the Bluetooth master module receives the key message; Obtain the second signal strength when the Bluetooth slave module listens to the key message; Determine the current signal strength of the Bluetooth key based on the first signal strength and the second signal strength; Obtain the preset mapping relationship; Determine the preliminary division area where the Bluetooth key is currently located according to the current signal strength and the mapping relationship; 12. The method according to claim 1, characterized in that, The division areas include: PS area, PE area, welcome area, and long-distance area; among them, when the Bluetooth key is in different division areas, the corresponding functions configured for the target vehicle are different.

13. A Bluetooth key area positioning device, characterized in that The device includes: A first determination module, configured to determine the preliminary division area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and a preset mapping relationship; wherein, the mapping relationship is a mapping relationship between a signal strength interval and a division area; the closer the division area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength included in the corresponding signal strength interval; A second determination module, configured to determine an adjacent area adjacent to the preliminary division area; A threshold hysteresis determination module, configured to determine the threshold hysteresis division result of the Bluetooth key according to a threshold hysteresis strategy; wherein, the threshold hysteresis strategy is used to delay switching from the preliminary division area to the adjacent area by switching the hysteresis interval; A time hysteresis determination module, configured to determine the time hysteresis division result of the Bluetooth key according to a time hysteresis strategy; wherein, the time hysteresis strategy is used to delay switching from the preliminary division area to the adjacent area by a preset hysteresis time; An area positioning module, configured to determine a target division result from the threshold hysteresis division result and the time hysteresis division result as the area positioning result of the Bluetooth key.

14. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; When the processor is used to execute the program stored on the memory, it implements the Bluetooth key area positioning method according to any one of claims 1-12.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the Bluetooth key area positioning method according to any one of claims 1-12.