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

By employing threshold and time hysteresis strategies, the method stabilizes Bluetooth key region positioning in vehicle systems, reducing area switches and improving user experience by ensuring stable region definitions based on signal strength.

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

Patent Information

Application Number
CN202510402718.1
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 stability of the Bluetooth key area positioning is poor and is greatly affected by environmental factors, causing the area positioning to jump back and forth, affecting the user experience.

Method used

The threshold hysteresis strategy and the time hysteresis strategy are adopted to determine the initial division of regions through the signal intensity mapping relationship, and the timer timing is started when the signal intensity changes, and the final area switching is performed after the preset hysteresis time to avoid frequent jumps.

Benefits of technology

Improves the stability of Bluetooth key area positioning, reduces the uncertainty of area switching, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321585A_ABST
    Figure CN120321585A_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 steps that a first preliminary division area where a Bluetooth key is located at a first moment is determined according to the first moment signal intensity of the Bluetooth key at the first moment and a preset mapping relation; wherein the mapping relation is the mapping relation between the signal intensity interval and the divided area; and determining an adjacent region adjacent to the first preliminary division region. According to the method, when a Bluetooth key enters an adjacent area from a first preliminary division area, a timer is started for timing, and when timing of the timer reaches a preset delay time, it is determined that a final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area. Therefore, the Bluetooth key can be prevented from jumping back and forth in the positioning area within the preset delay time, and the positioning stability of the Bluetooth key area 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 in particular, 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 a first preliminary division area where the Bluetooth key is located at a first moment according to the signal strength at the first moment 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;

[0007] Determine an adjacent area adjacent to the first preliminary division area;

[0008] When the signal strength at a second moment after the first moment indicates that the Bluetooth key enters the adjacent area from the first preliminary division area, start a timer to count.

[0009] When the timer counts up to the preset hysteresis time, it is determined that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

[0010] Optionally, 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, starting the timer includes:

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

[0012] 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;

[0013] When the second preliminary division area is the adjacent area, start the timer.

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

[0015] 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;

[0016] Correspondingly, when the timer counts up to the preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes:

[0017] When the hysteresis time timer reaches the preset hysteresis time, it is determined that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area;

[0018] Or,

[0019] 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 the adjacent area;

[0020] 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 final division area 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.

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

[0022] Determining a third moment according to the second moment and the preset hysteresis time;

[0023] Obtaining the signal strength at the third moment of the Bluetooth key at the third moment;

[0024] 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;

[0025] When the third preliminary division area belongs to the target division area, determining that the final division area 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.

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

[0027] When the hysteresis time timer reaches a preset hysteresis time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary division area to the adjacent area;

[0028] Correspondingly, when the area crossing timer reaches a preset area crossing time, if the current preliminary division area of the Bluetooth key indicates that the Bluetooth key has crossed the adjacent area, determining that the final division area of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area includes:

[0029] Determining a fourth moment according to the second moment and the preset area crossing time;

[0030] Obtaining the signal strength at the fourth moment of the Bluetooth key at the fourth moment;

[0031] 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;

[0032] In the case where the fourth preliminary division area represents that the Bluetooth key has passed through the adjacent area, determine that the final division area 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, so as to reposition the final division area of the Bluetooth key when the crossing timer reaches the crossing time of the next division area.

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

[0034] When the Bluetooth master module establishes a connection with the Bluetooth key, at the first moment, obtain the first signal strength when the Bluetooth master module receives the key message, and obtain the second signal strength when the Bluetooth slave module monitors the key message;

[0035] Determine the first moment signal strength of the Bluetooth key based on the first signal strength and the second signal strength;

[0036] Obtain the preset mapping relationship;

[0037] Determine the first preliminary division area where the Bluetooth key is located at the first moment according to the first moment signal strength and the mapping relationship.

[0038] Optionally, the division areas include: a passive start area, a passive entry 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.

[0039] Optionally, when the timer counts up to a preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes:

[0040] Obtain the target switching threshold between the adjacent area and the first preliminary division area from the mapping relationship;

[0041] Obtain a preset switching threshold hysteresis value;

[0042] Determine the switching hysteresis interval between the adjacent area and the first preliminary division area according to the switching threshold hysteresis value and the target switching threshold;

[0043] When the timer counts up to the preset hysteresis time and the current signal strength of the Bluetooth key does not belong to the switching hysteresis interval, determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

[0044] In a second aspect, the present application provides a Bluetooth key area positioning device, the device comprising:

[0045] A preliminary area determination module, configured to determine a first preliminary division area where the Bluetooth key is located at a first moment according to a first moment signal strength of the Bluetooth key at the first moment 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;

[0046] An adjacent area determination module, configured to determine an adjacent area adjacent to the first preliminary division area;

[0047] A timing start module, configured to start timer timing when the signal strength at a second moment after the first moment indicates that the Bluetooth key enters the adjacent area from the first preliminary division area;

[0048] A final area positioning module, configured to determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area when the timer timing reaches a preset hysteresis time.

[0049] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;

[0050] The memory is configured to store a computer program;

[0051] The processor is configured to implement the Bluetooth key area positioning method according to any one of the embodiments of the first aspect when executing the program stored in the memory.

[0052] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program implements the Bluetooth key area positioning method according to any one of the embodiments of the first aspect when executed by a processor.

[0053] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: For the method provided by the embodiment of the present application, the first preliminary division area where the Bluetooth key is located at the first moment is determined according to the signal strength of the Bluetooth key at the first moment 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; the adjacent area adjacent to the first preliminary division area is determined; 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, the timer is started to count; when the timer counts up to the preset hysteresis time, it is determined that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area. This method starts the timer to count when the Bluetooth key enters the adjacent area from the first preliminary division area, and when the timer counts up to the preset hysteresis time, it is determined that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area, thereby avoiding the back-and-forth jumping of the positioning area of the Bluetooth key within the preset hysteresis time and improving the stability of the area positioning of the Bluetooth key. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application and, together with the specification, are used to explain the principles of the present application.

[0055] In order 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 use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0056] One or more embodiments are illustrated by way of example in the accompanying drawings, and these exemplary illustrations do not limit the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, unless otherwise stated, and the drawings in the drawings do not constitute a proportional limitation.

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

[0058] Figure 2 It is a flowchart of a method for positioning the area of a Bluetooth key provided by an embodiment of the present application;

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

[0060] Figure 4 Schematic diagram of preliminary division area positioning of a Bluetooth key provided by an embodiment of the present application;

[0061] Figure 5 Schematic diagram of a switching hysteresis interval provided by an embodiment of the present application;

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

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

[0064] Figure 7 Schematic diagram of the flow of a Bluetooth key area positioning method provided by an embodiment of the present application;

[0065] Figure 8 Schematic diagram of time hysteresis positioning provided by an embodiment of the present application;

[0066] Figure 9A 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;

[0067] Figure 9B 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;

[0068] Figure 10 Schematic diagram of the structure of a Bluetooth key area positioning device provided by an embodiment of the present application;

[0069] Figure 11 Schematic diagram of the structure of a Bluetooth key area positioning device provided by an embodiment of the present application;

[0070] Figure 12 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0071] 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 some, 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.

[0072] The following disclosure provides a number of different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, the 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. This repetition is for the purpose of simplification and clarity and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0073] 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 bouncing back and forth and improve the stability of Bluetooth key area positioning.

[0074] The first embodiment of the present application provides a Bluetooth key area positioning method, which can be applied to a Figure 1 system architecture as shown. The system architecture at least includes a Bluetooth key 101 and a vehicle 102. The Bluetooth key 101 and the vehicle 102 can establish a communication connection through Bluetooth. The functions of keyless start, keyless entry, unlocking and locking of the vehicle can be realized through the Bluetooth key. The vehicle paired with the Bluetooth key can be called the target vehicle. The Bluetooth key (hereinafter also referred to as the key for short) 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. The Bluetooth key area positioning method can perform area positioning through a threshold hysteresis strategy, or through a time hysteresis strategy. Of course, it can also combine the threshold hysteresis strategy and the time hysteresis strategy for area positioning.

[0075] Next, based on this system architecture, the Bluetooth key area positioning method will be described in detail. First, the Bluetooth key area positioning method under the threshold hysteresis strategy will be described. As Figure 2 shown, the Bluetooth key area positioning method includes:

[0076] 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.

[0077] The divided areas can be divided according to the functions available for the Bluetooth key. When the Bluetooth key is in different divided areas, the target vehicle is configured with corresponding different functions. The closer the divided area is to the target vehicle, the greater the signal strength included in the corresponding signal strength interval. The farther the divided area is from the target vehicle, the smaller the signal strength included in the corresponding signal strength interval. For example Figure 3 is a schematic diagram of divided areas, including: 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 (abbreviated as PS) area, the target vehicle can be started without a key. When the Bluetooth key is in the passive entry (abbreviated as PE) 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, vehicle control is not allowed. It should be noted that the above area division is only an example, and the name of each divided area can also be referred to as Area A, Area B, Area C, etc. In fact, the divided areas can be set and adjusted according to needs, and the functions that can be realized in each divided area can also be adjusted accordingly. The embodiments of the present application do not limit it

[0078] In one embodiment, to determine the preliminary divided area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and the preset mapping relationship, it includes: obtaining the current signal strength of the Bluetooth key; obtaining the preset mapping relationship; and determining the preliminary divided area where the Bluetooth key is currently located according to the current signal strength and the mapping relationship

[0079] In this embodiment, the preset mapping relationship is the mapping relationship between the signal strength interval and the divided area. The signal strength can be the received signal strength indication (abbreviated as RSSI) value. Different signal strength intervals correspond to different divided 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 divided 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 divided area is affected by the environment and equipment, etc. The specific mapping relationship can be obtained through calibration

[0080] 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 is connected to 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

[0081] In this embodiment, the schematic diagram of the initial division area positioning of the Bluetooth key is as follows 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 listen to 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 initial division area.

[0082] Step 202: Determine the adjacent areas adjacent to the initially divided area, and from the adjacent areas and the initially divided area, regard 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.

[0083] If the initially divided area is the PS area, the adjacent area is the PE area. If the initially divided area is the PE area, the adjacent area can be the PS area or the welcome area. At this time, to distinguish the area relatively close to the vehicle (PS area) and the area relatively far from the vehicle (welcome area), regard 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. 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 initially divided area is the welcome area or the long-distance area, which will not be elaborated here.

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

[0085] 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.

[0086] Step 204: Obtain the preset switching threshold hysteresis value.

[0087] Since the Bluetooth RSSI value is greatly affected by the environment and may fluctuate significantly, it may cause the calibrated area result (i.e., the preliminary divided area) to jump back and forth between multiple divided areas, leading to 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.

[0088] Step 205: Determine a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold.

[0089] According to the switching threshold hysteresis value and the target switching threshold, a switching hysteresis interval can be determined. When the current signal strength is within the switching hysteresis interval, the final divided area of the Bluetooth key is maintained as the previous positioning area, so as to avoid the frequent jumping of the calibrated divided area when the Bluetooth RSSI value fluctuates significantly.

[0090] 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.

[0091] In this embodiment, the schematic diagram of the switching hysteresis interval is as Figure 5 , where 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, and th is the target switching threshold between area A and area B. 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 located in area A, and when f(t) > th, the key is located 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, and △th is the switching threshold hysteresis value. The switching hysteresis interval is (th - △th, th + △th]. When f(t) ≤ th - △th, the key is located in area A; when f(t) > th + △th, the key is located 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 lagged to ensure area stability.

[0092] In one embodiment, determining a handover hysteresis interval according to a handover threshold hysteresis value and a target handover threshold includes: 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; in the case where the regional trend characterizes approaching the target vehicle, calculating a first difference between the target handover threshold and the handover threshold hysteresis value; determining the interval greater than the first difference and less than or equal to the target handover threshold as the handover hysteresis interval; in the case where 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 the interval greater than the target handover threshold and less than or equal to the first sum value as the handover hysteresis interval.

[0093] In this embodiment, the schematic diagram of the handover hysteresis interval when the regional trend is approaching is shown in Figure 6A , and the schematic diagram of the handover hysteresis interval when the regional trend is moving away is shown in 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, and th is the target handover threshold between area A and area B. Among them, area A can be the first target area and area B can be the second target area. If the handover hysteresis interval is not set, when f(t) ≤ th, the key is located in area A, and when f(t) > th, the key is located 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.

[0094] 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 when changing from an external area to an internal area, it can be considered that the regional trend is approaching. In the case where the regional trend characterizes approaching the target vehicle, as shown in Figure 6A , calculate the first difference (th - △th) between the target handover threshold and the handover threshold hysteresis value; determine the interval greater than the first difference and less than or equal to the target handover threshold as the handover hysteresis interval, that is, the handover hysteresis interval is (th - △th, th]. When f(t) ≤ th - △th, the key is located in area A; when f(t) > th, the key is located in area B; when th - △th < f(t) ≤ th, the key area remains unchanged. When f(t) decreases when changing from an internal area to an external area, it is considered that the regional trend is moving away. In the case where the regional trend characterizes moving away from the target vehicle, as shown in Figure 6B, calculate the first sum value (th + △th) of the target switching threshold and the switching threshold hysteresis value; determine the switching hysteresis interval as the interval that is greater than the target switching threshold and less than or equal to the first sum value, 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. In this embodiment, the range of the switching hysteresis interval is moderately reduced, which can not only ensure the real-time nature of the area change but also ensure the area stability.

[0095] Step 206, determine the final divided area 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 final divided area remains the previous positioning area.

[0096] This method can determine the preliminary divided area where the Bluetooth key is currently located according to the current signal strength of the Bluetooth key and the preset mapping relationship, determine the adjacent area adjacent to the preliminary divided area, and obtain the preset switching threshold hysteresis value. The switching hysteresis interval is determined according to the target switching threshold and the switching threshold hysteresis value of the preliminary divided area and the adjacent area, so that the Bluetooth key can maintain the previous positioning area when it is within the switching hysteresis interval, avoiding the positioning area of the Bluetooth key from jumping back and forth, and improving the stability of the area positioning of the Bluetooth key.

[0097] In one embodiment, determining the final divided area 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 final divided area 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 final divided area 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 final divided area of the Bluetooth key to the second target area.

[0098] In this embodiment, when the current signal strength is within the handover hysteresis range, the final divided area of the Bluetooth key is maintained 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 final divided area 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 final divided area of the Bluetooth key is positioned to the second target area. Thus, the positioning of the preliminary divided area is optimized. The final divided area obtained based on the handover hysteresis range can prevent the positioning area of the Bluetooth key from bouncing back and forth, improving the stability of the Bluetooth key area positioning.

[0099] Next, the Bluetooth key area positioning method under the time hysteresis strategy will be described. As Figure 7 , the Bluetooth key area positioning method includes:

[0100] Step 701: Determine the first preliminary divided area where the Bluetooth key is located at the first moment according to the signal strength of the Bluetooth key at the first moment and a preset mapping relationship; wherein, the mapping relationship is the mapping relationship between the signal strength range and the 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 range.

[0101] The divided area can be divided according to the functions available for the Bluetooth key. When the Bluetooth key is in different divided areas, the target vehicle is configured with corresponding different functions. The closer the divided area is to the target vehicle, the greater the signal strength included in the corresponding signal strength range, and the farther the divided area is from the target vehicle, the smaller the signal strength included in the corresponding signal strength range. For example, the divided area can include: Passive Start (PS) area, Passive Entry (PE) area, Welcome area, and Long-distance area. When the Bluetooth key is in the Passive Start (PS) area, the target vehicle can be started without a key. When the Bluetooth key is in the Passive Entry (PE) 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 divided area can also be referred to as Area A, Area B, Area C, etc. In fact, the divided area can be set and adjusted according to needs, and the functions that can be realized in each divided area can also be adjusted accordingly. The embodiments of the present application do not limit it.

[0102] In one embodiment, the target vehicle includes a Bluetooth master module and a Bluetooth slave module. Determining a first preliminary division area where the Bluetooth key is located at a first moment according to the first moment 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 a first signal strength when the Bluetooth master module receives a key message at the first moment, and obtaining a second signal strength when the Bluetooth slave module monitors the key message; determining the first moment signal strength of the Bluetooth key based on the first signal strength and the second signal strength; obtaining the preset mapping relationship; and determining the first preliminary division area where the Bluetooth key is located at the first moment according to the first moment signal strength and the mapping relationship.

[0103] In this embodiment, the preset mapping relationship is a mapping relationship between signal strength intervals and division areas. The signal strength can be the value of Received Signal Strength Indication (RSSI for short). Different signal strength intervals correspond to different division areas. According to the first moment signal strength of the Bluetooth key at the first moment, the signal strength interval where the first moment signal strength is located can be determined, and then the first preliminary division area where the Bluetooth key is located at the first moment can be determined according to the signal strength interval where it is located and the mapping relationship. It should be understood that according to the second moment signal strength of the Bluetooth key at the second moment, the signal strength interval where the second moment signal strength is located can be determined, and then the second preliminary division area where the Bluetooth key is located at the second moment can be determined in combination with the mapping relationship. The determination methods for the third preliminary division area corresponding to the Bluetooth key at the third moment and the fourth preliminary division area corresponding to the Bluetooth key at the fourth moment are the same and will not be elaborated. It should be noted that the mapping relationship between the signal strength interval and the division area is affected by the environment and devices, etc. The specific mapping relationship can be obtained through calibration.

[0104] In this embodiment, 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 message A of the Bluetooth key in the connection event at the first moment and simultaneously obtains the corresponding RSSI value. Multiple Bluetooth slave modules outside the vehicle monitor message A sent by the key to the Bluetooth master module in real time and simultaneously obtain the corresponding RSSI values, and then send the RSSI values to the Bluetooth master module through the Controller Area Network (CAN for short) bus. After the Bluetooth master module obtains the RSSI values of all modules, it can determine the first moment signal strength at the first moment, and then the regional positioning result of the key relative to the vehicle can be obtained through algorithm processing. Here, the regional positioning result is the first preliminary division area. It should be understood that at the second moment, the second moment signal strength can be determined through the above steps, and then the second preliminary division area of the Bluetooth key relative to the vehicle can be obtained. The same applies to other moments and will not be elaborated.

[0105] Step 702: Determine the adjacent area adjacent to the first preliminary division area.

[0106] If the first preliminary division area is the PS area, the adjacent area is the PE area. If the first preliminary division area is the PE area, the adjacent area can be the PS area or the welcome area. The same applies when the first preliminary division area is the welcome area or the long-distance area, which will not be elaborated here.

[0107] Step 703: 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 timer to count.

[0108] In one embodiment, 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, starting the timer to count includes: obtaining the signal strength 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 at the second moment and the mapping relationship; and starting the timer to count when the second preliminary division area is the adjacent area.

[0109] In this embodiment, obtain the signal strength of the Bluetooth key at the second moment, and determine 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; when the second preliminary division area is the adjacent area of the first preliminary division area, it indicates that the Bluetooth key needs to perform area switching. Without time hysteresis, immediate area switching is required, 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 switching is immediate, 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 the adjacent area of the first preliminary division area, start the timer to count, and perform the switching of the final division area only after the preset hysteresis time has elapsed, thereby avoiding the back-and-forth jumping of the positioning area of the Bluetooth key within the preset hysteresis time and improving the stability of the Bluetooth key area positioning.

[0110] Step 704: When the timer count reaches the preset hysteresis time, determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

[0111] In this method, when the Bluetooth key enters an adjacent area from the first preliminary division area, a timer is started to count. When the timer reaches the preset hysteresis time, it is determined that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area, thereby avoiding the back-and-forth jumping of the positioning area of the Bluetooth key within the preset hysteresis time and improving the stability of the area positioning of the Bluetooth key.

[0112] In one embodiment, when the second preliminary division area is an adjacent area, starting the timer to count 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.

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

[0114] Specifically, when the timer reaches the preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes at least the following two cases.

[0115] The first case: when the hysteresis time timer reaches the preset hysteresis time, it is determined that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

[0116] In this embodiment, only the hysteresis timer can be used. After each area is switched, for example, when the signal strength at the second moment after the first moment indicates that the Bluetooth key enters an adjacent area from the first preliminarily divided area, the hysteresis timer is started to count. When the hysteresis timer reaches the preset hysteresis time, it is determined that the final divided area of the Bluetooth key is switched from the first preliminarily divided area to the adjacent area. Of course, when the hysteresis timer reaches the preset hysteresis time, it can also be determined whether the Bluetooth key is currently in the adjacent area. For example, if the first preliminarily divided 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, the hysteresis timer is started to count at the second moment. When the hysteresis timer reaches the preset hysteresis time, the area where the Bluetooth key is currently located is determined. 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, it is determined that the final divided area of the Bluetooth key is switched 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, although the hysteresis timer reaches the preset hysteresis time, the area positioning is not switched.

[0117] The second case: When the hysteresis timer reaches the preset hysteresis time, it is determined that the current positioning area of the Bluetooth key is switched from the first preliminarily divided 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 final divided area of the Bluetooth key is switched from the adjacent area to the next divided area of the adjacent area; where the preset hysteresis time is less than the preset area crossing time.

[0118] In this embodiment, the hysteresis time timer and the area crossing timer can be combined simultaneously. When the hysteresis time timer reaches the preset hysteresis time, it is determined that the current positioning area of the Bluetooth key has switched from the first preliminary division area to the 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 final division area of the Bluetooth key has 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 the 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 final division area of the Bluetooth key has switched from the adjacent area to the next division area of the adjacent area.

[0119] In one embodiment, when the hysteresis time timer reaches the preset hysteresis time, determining that the final division area of the Bluetooth key has switched from the first preliminary division area to the 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 final division area of the Bluetooth key has 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.

[0120] In this embodiment, the schematic diagram of hysteresis time positioning is as Figure 8When switching from area A to area B, a preset hysteresis time such as △T is added. When it is calculated at the first moment that the first preliminary division area of the Bluetooth key is switched to an adjacent area such as area B, the current area is maintained unchanged, and a timer is started. When timer>△T, the final division area is switched. Of course, when the final division area is switched 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 a scenario where a user approaches a vehicle with a 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 is started, and at the third moment when timer>△T, the third preliminary division area is calculated. If the third division area is a division area inside the welcome area, such as the PE area (it may also be the PS area), it is determined that the final division area of the Bluetooth key is switched from the welcome area to the PE area, thereby avoiding the back and forth jumping of the positioning area of the Bluetooth key within the preset hysteresis time, and improving the stability of the Bluetooth key area positioning.

[0121] In one embodiment, when the delay timer reaches a preset delay time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary divided area to the adjacent area includes: when the delay timer reaches a preset delay time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary divided area to the adjacent area.

[0122] Accordingly, when the area crossing timer reaches the preset area crossing time, if the current preliminary divided area of the Bluetooth key indicates that the Bluetooth key has crossed the adjacent area, then the final divided area of the Bluetooth key is determined to be switched from the adjacent area to the next divided area of the adjacent area, including: determining the fourth moment according to the second moment and the preset area crossing time; obtaining the fourth moment signal strength of the Bluetooth key at the fourth moment; determining the fourth preliminary divided area where the Bluetooth key is located at the fourth moment according to the fourth moment signal strength and the mapping relationship; when the fourth preliminary divided area indicates that the Bluetooth key has crossed the adjacent area, determining that the final divided area of the Bluetooth key is switched from the adjacent area to the next divided area of the adjacent area, and starting the crossing timer corresponding to the next divided area, so as to reposition the final divided area of the Bluetooth key when the crossing timer reaches the crossing time of the next divided area. It should be noted that the first preliminary divided area, the adjacent area, and the next divided area are three continuous areas from far to near (gradually approaching the vehicle) or from near to far (gradually moving away from the vehicle).

[0123] 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 the 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 (at this time, 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 T can be increased. cross , such as the time T for crossing the welcome area cross_welcome , the time T for crossing the PE area cross_pe . When continuously changing in one direction in the region, it takes a certain crossing time to cross the middle welcome area or PE area. If the user carries the key from the long-distance area into the welcome area, then into the PE area, and finally into the PS area, the crossing time T is set for the middle welcome area cross_welcome , and the crossing time T is set for the middle PE area cross_pe ; conversely, if the user carries the key from the PS area into the PE area, then into the welcome area, and finally into the long-distance area, the crossing time T is also set for the middle welcome area cross_welcome , and the crossing time T is also set for the middle PE area cross_pe . Figure 9A is a schematic diagram of time hysteresis positioning for continuous transformation from the long-distance area to the PS area. During the process of gradually entering the PS area from the long-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 ≤ T cross_welcome , the final division region of the key remains the welcome area unchanged; when timer > T cross_welcome , the key is in the inner area of the current welcome area, and the final division region of the key switches to a new region, that is, the PE area. When the final division region switches to the PE area, a timer timer is started. When timer ≤ T cross_pe , the final division region of the key remains the PE area unchanged. When timer > T cross_pe , the key is in the inner area of the current PE area, and the final division region of the key switches to a new region, that is, the PS area. Figure 9B is a schematic diagram of time hysteresis 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 region can be directly switched to the PE area, and a region crossing timer timer is started. When timer ≤ T cross_pe , the final division region of the key remains the PE area unchanged; when timer > T cross_peWhen the key is currently in the outer area of the PE area, the final divided area of the key is switched to a new area, that is, the welcome area. When the final divided area is switched to the welcome area, a timer "timer" is started. When timer ≤ T cross_welcome the final divided area of the key remains the welcome area unchanged. When timer > T cross_welcome the key is currently in the outer area of the welcome area, and the final divided area of the key is switched to a new area, that is, the long-distance area. By setting the area crossing time, it is possible to avoid the positioning area of the Bluetooth key from jumping back and forth, improving the stability of the Bluetooth key area positioning. It should be noted that Figure 9A and Figure 9B 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 with a time lag for area crossing added. And, it is an example with the preset lag time of the lag time timer being 0. In fact, during the continuous 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 lag time before switching the positioning area to the welcome area. Similarly, during the continuous 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 lag time before switching the positioning area to the PE area.

[0124] In one embodiment, when the timer counts up to the preset lag time, determining that the final divided area of the Bluetooth key is switched from the first preliminary divided area to the adjacent area includes: obtaining the target switching threshold between the adjacent area and the first preliminary divided 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 divided area according to the switching threshold lag value and the target switching threshold; when the timer counts up to the preset lag time and the current signal strength of the Bluetooth key does not belong to the switching lag interval, determining that the final divided area of the Bluetooth key is switched from the first preliminary divided area to the adjacent area.

[0125] In this embodiment, while adding a time lag to the final divided area switching through the timer, a switching lag interval can also be determined according to the preset switching threshold lag value and the target switching threshold between the adjacent area and the first preliminary divided area. When both the timer counts up to the preset lag time and the current signal strength of the Bluetooth key does not belong to the switching lag interval, the final divided area of the Bluetooth key is switched from the first preliminary divided area to the adjacent area, so that the Bluetooth key can maintain the previous positioning area when in the switching lag interval, and the area is switched only when the current signal strength of the Bluetooth key does not belong to the switching lag interval, avoiding the positioning area of the Bluetooth key from jumping back and forth and improving the stability of the Bluetooth key area positioning.

[0126] Next, a Bluetooth key area positioning method combining a threshold hysteresis strategy and a time hysteresis strategy will be described. The Bluetooth key area positioning method includes:

[0127] Step S31, 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. This step is the same as the foregoing step 201 and will not be elaborated.

[0128] Step S32, determine the adjacent areas adjacent to the preliminary division area. This step is the same as the foregoing step 202 and will not be elaborated.

[0129] Step S33, 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. This step refers to the steps of area positioning under the threshold hysteresis strategy in the foregoing embodiments and will not be elaborated.

[0130] Step S34, determine 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 switch from the preliminary division area to the adjacent area by a preset hysteresis time. This step refers to the steps of area positioning under the time hysteresis strategy in the foregoing embodiments and will not be elaborated.

[0131] Step S35, 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.

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

[0133] 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 the Bluetooth key area positioning.

[0134] Based on the same inventive concept, the second embodiment of the present application provides a Bluetooth key area positioning device. Under the threshold hysteresis strategy, as Figure 10, the Bluetooth key area positioning device includes:

[0135] A first determination module 1001, 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;

[0136] A second determination module 1002, configured to determine an adjacent area adjacent to the preliminary division area, and from the adjacent area and the preliminary division area, take 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;

[0137] A first acquisition module 1003, configured to acquire a target switching threshold between the first target area and the second target area from the mapping relationship;

[0138] A second acquisition module 1004, configured to acquire a preset switching threshold hysteresis value;

[0139] A third determination module 1005, configured to determine a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold;

[0140] An area positioning module 1006, configured to determine a final division area of the Bluetooth key from the first target area and the second target area according to a first signal strength interval corresponding to the first target area, a 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 final division area remains the previous positioning area.

[0141] This device can 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, determine the adjacent area adjacent to the preliminary division area, and acquire a preset switching threshold hysteresis value, and determine the switching hysteresis interval according to the target switching threshold and the switching threshold hysteresis value between the preliminary division area and the adjacent area, so that the Bluetooth key can maintain the previous positioning area when it 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.

[0142] Under the time hysteresis strategy, such as Figure 11 , the Bluetooth key area positioning device includes:

[0143] The preliminary area determination module 1101 is used to determine the first preliminary divided area where the Bluetooth key is located at the first moment according to the first moment signal strength of the Bluetooth key at the first moment and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the signal strength interval and the divided area; the closer the divided area is to the target vehicle corresponding to the Bluetooth key, the greater the signal strength contained in the corresponding signal strength interval;

[0144] An adjacent region determining module 1102 is used to determine an adjacent region adjacent to the first preliminary divided region;

[0145] The timing start module 1103 is used to start a timer when the signal strength at a second moment after the first moment indicates that the Bluetooth key enters the adjacent area from the first preliminary divided area;

[0146] The final area positioning module 1104 is used to determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area when the timer reaches a preset delay time.

[0147] The device starts a timer when a Bluetooth key enters an adjacent area from a first preliminary divided area, and when the timer reaches a preset hysteresis time, determines that the final divided area of the Bluetooth key is switched from the first preliminary divided area to the adjacent 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.

[0148] like Figure 12 As 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, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0149] Memory 113, used for storing computer programs;

[0150] In one embodiment of the present application, the processor 111 is used to implement the Bluetooth key area positioning method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.

[0151] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus, 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 convenience of representation, only a thick line is used in the figure to represent it, but it does not mean that there is only one bus or one type of bus.

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

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

[0154] The above-mentioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can 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.

[0155] The embodiment of the present application also 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 provided in any one of the foregoing method embodiments.

[0156] 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.

[0157] 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 hardware platform, and of course, it can also be implemented by hardware. Based on such an 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. This 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 can 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.

[0158] 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. 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 these embodiments shown herein, but rather will conform 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 first preliminary division area where the Bluetooth key is located at the first moment according to the signal strength of the Bluetooth key at the first moment 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; Determining an adjacent area adjacent to the first preliminary division area; 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, starting a timer to count; When the timer counts up to a preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

2. The method according to claim 1, characterized in that 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, starting a timer to count, includes: Obtaining the signal strength of the Bluetooth key at the second moment; wherein, the second moment is a moment after the first moment; Determining a 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; When the second preliminary division area is the adjacent area, starting a timer to count.

3. The method according to claim 2, wherein When the second preliminary division area is the adjacent area, starting a timer to count, includes: 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; Accordingly, when the timer counts up to a preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area, includes: When the hysteresis time timer counts up to the preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area; Or, When the hysteresis time timer counts up to the preset hysteresis time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary division area to the adjacent area; When the area crossing timer counts up to a 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 final division area 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.

4. The method according to claim 3, wherein When the hysteresis time timer counts up to the preset hysteresis time, determining that the final division area 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 hysteresis time; Obtaining the signal strength of the Bluetooth key at the third moment; Determine a 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, determine that the final division area 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 side of the adjacent area of the first preliminary division area.

5. The method according to claim 3, characterized in that, When the hysteresis time timer reaches a preset hysteresis time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes: When the hysteresis time timer reaches a preset hysteresis time, determine that the current positioning area of the Bluetooth key is switched from the first preliminary division area to the adjacent area; Correspondingly, when the area crossing timer reaches a 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, determine that the final division area of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area, including: Determine a fourth moment according to the second moment and the preset area crossing time; Obtain the signal strength at the fourth moment of the Bluetooth key at the fourth moment; Determine a 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, determine that the final division area 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 final division area of the Bluetooth key when the crossing timer reaches the crossing time of the next division area.

6. The method according to claim 1, wherein The target vehicle includes a Bluetooth master module and a Bluetooth slave module. Determining a first preliminary division area where the Bluetooth key is located at the first moment according to the signal strength at the first moment of the Bluetooth key and a preset mapping relationship includes: When the Bluetooth master module establishes a connection with the Bluetooth key, obtain the first signal strength when the Bluetooth master module receives the key message and the second signal strength when the Bluetooth slave module monitors the key message at the first moment; Determine the signal strength at the first moment of the Bluetooth key based on the first signal strength and the second signal strength; Obtain the preset mapping relationship; Determine a first preliminary division area where the Bluetooth key is located at the first moment according to the signal strength at the first moment and the mapping relationship.

7. The method according to claim 1, wherein The division areas include: a passive start area, a passive entry area, a welcome area, and a long-distance area; when the Bluetooth key is in different division areas, the target vehicle is configured with corresponding different functions.

8. The method according to claim 1, characterized in that, When the timer counts up to the preset hysteresis time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes: Obtain the target switching threshold between the adjacent area and the first preliminary division area from the mapping relationship; Obtain the preset switching threshold hysteresis value; Determine the switching hysteresis interval between the adjacent area and the first preliminary division area according to the switching threshold hysteresis value and the target switching threshold; When the timer reaches the preset hysteresis time and the current signal strength of the Bluetooth key does not belong to the switching hysteresis interval, determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.

9. A Bluetooth key area positioning device, characterized in that, The device includes: A preliminary area determination module, configured to determine the first preliminary division area where the Bluetooth key is located at the first moment according to the first moment signal strength of the Bluetooth key at the first moment 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; An adjacent area determination module, configured to determine an adjacent area adjacent to the first preliminary division area; A timing start module, configured to start timer timing when the second moment signal strength after the first moment indicates that the Bluetooth key enters the adjacent area from the first preliminary division area; A final area positioning module, configured to determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area when the timer reaches the preset hysteresis time.

10. 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 communication with each other through the communication bus; The memory is used to store a computer program; The processor is configured to implement the Bluetooth key area positioning method according to any one of claims 1-8 when executing the program stored on the memory.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by the processor, implements the Bluetooth key area positioning method according to any one of claims 1-8.