Bluetooth key area positioning method and device, electronic equipment and storage medium
The method stabilizes Bluetooth key region positioning by using signal strength mapping and threshold hysteresis to minimize area switching, improving user experience.
Patent Information
- Application Number
- CN202510402706.9
- 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
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.
By introducing a switching threshold hysteresis value and time hysteresis strategy, the final partition area of the Bluetooth key is determined to avoid frequent jumps in the positioning area.
Improves the stability of Bluetooth key area positioning, avoids the back and forth jump of the positioning area, and improves the user experience.
Smart Images

Figure CN120321584A_ABST
Abstract
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, and from the adjacent areas and the preliminary division 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;
[0008] Obtain the target switching threshold between the first target area and the second target area from the mapping relationship;
[0009] Obtain the preset switching threshold hysteresis value;
[0010] Determine the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold;
[0011] Determine the final division 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 division area remains the previous positioning area.
[0012] Optionally, determining the final division 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:
[0013] When the current signal strength is within the switching hysteresis interval, keep the final division area of the Bluetooth key as the previous positioning area;
[0014] When the current signal strength is within the first signal strength interval and not within the switching hysteresis interval, position the final division area of the Bluetooth key to the first target area;
[0015] When the current signal strength is within the second signal strength interval and not within the switching hysteresis interval, position the final division area of the Bluetooth key to the second target area.
[0016] Optionally, determining the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold includes:
[0017] Calculate the first sum value of the target switching threshold and the switching threshold hysteresis value;
[0018] Calculate the first difference value between the target switching threshold and the switching threshold hysteresis value;
[0019] Determine the interval greater than the first difference value and less than or equal to the first sum value as the switching hysteresis interval.
[0020] Optionally, determining the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold includes:
[0021] Determine the regional trend of the Bluetooth key based on the last signal strength of the Bluetooth key and the current signal strength; wherein, the regional trend is used to characterize approaching the target vehicle and moving away from the target vehicle gradually;
[0022] When the regional trend characterizes approaching the target vehicle gradually, calculate the first difference between the target switching threshold and the switching threshold hysteresis value; determine the switching hysteresis interval as the interval greater than the first difference and less than or equal to the target switching threshold;
[0023] When the regional trend characterizes moving away from the target vehicle gradually, calculate the first sum value of the target switching threshold and the switching threshold hysteresis value; determine the switching hysteresis interval as the interval greater than the target switching threshold and less than or equal to the first sum value.
[0024] Optionally, 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:
[0025] Obtain the current signal strength of the Bluetooth key;
[0026] Obtain the preset mapping relationship;
[0027] Determine the preliminary division area where the Bluetooth key is currently located according to the current signal strength and the mapping relationship.
[0028] Optionally, the target vehicle includes a Bluetooth master module and a Bluetooth slave module. Obtaining the current signal strength of the Bluetooth key includes:
[0029] 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;
[0030] Obtain the second signal strength when the Bluetooth slave module monitors the key message;
[0031] Determine the current signal strength of the Bluetooth key based on the first signal strength and the second signal strength.
[0032] 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.
[0033] In a second aspect, the present application provides a Bluetooth key regional positioning device, and the device includes:
[0034] 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.
[0035] A second determination module, configured to determine an adjacent area adjacent to the preliminary division area, and from the adjacent area and the preliminary division area, use the area farther from the target vehicle as a first target area and the area closer to the target vehicle as a second target area.
[0036] A first acquisition module, configured to acquire a target switching threshold between the first target area and the second target area from the mapping relationship.
[0037] A second acquisition module, configured to acquire a preset switching threshold hysteresis value.
[0038] A third determination module, configured to determine a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold.
[0039] An area positioning module, 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.
[0040] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus.
[0041] The memory is used for storing a computer program.
[0042] The processor is configured to implement the Bluetooth key area positioning method according to any one of the embodiments in the first aspect when executing the program stored on the memory.
[0043] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the Bluetooth key area positioning method according to any one of the embodiments in the first aspect.
[0044] The above technical solution provided by the embodiments of the present application has 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; 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 areas adjacent to the preliminary division area are determined, and from the adjacent areas 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; the target switching threshold between the first target area and the second target area is obtained from the mapping relationship; the preset switching threshold hysteresis value is obtained; the switching hysteresis interval is determined according to the switching threshold hysteresis value and the target switching threshold; 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, the final division area of the Bluetooth key is determined from the first target area and the second target area; wherein, when the current signal strength is within the switching hysteresis interval, the final division area remains the previous positioning area. This method can determine the preliminary division 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 areas adjacent to the preliminary division area, and obtain the 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 areas, 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] 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.
[0046] 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 drawings required for use in 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.
[0047] One or more embodiments are illustrated by way of example in the accompanying drawings, and these exemplary illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, unless otherwise stated, and the drawings in the figures do not constitute a proportional limitation.
[0048] Figure 1 System architecture diagram of a method for positioning a Bluetooth key area provided by an embodiment of the present application;
[0049] Figure 2 Schematic flow chart of a Bluetooth key area positioning method provided by an embodiment of the present application;
[0050] Figure 3 Schematic diagram of an area division provided by an embodiment of the present application;
[0051] Figure 4 Schematic diagram of preliminary area positioning of a Bluetooth key provided by an embodiment of the present application;
[0052] Figure 5 Schematic diagram of a handover hysteresis interval provided by an embodiment of the present application;
[0053] Figure 6A Schematic diagram of a handover hysteresis interval when the area trend is approaching provided by an embodiment of the present application;
[0054] Figure 6B Schematic diagram of a handover hysteresis interval when the area trend is moving away provided by another embodiment of the present application;
[0055] Figure 7 Schematic flow chart of a Bluetooth key area positioning method provided by an embodiment of the present application;
[0056] Figure 8 Schematic diagram of time hysteresis positioning provided by an embodiment of the present application;
[0057] 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;
[0058] 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;
[0059] Figure 10 Schematic structural diagram of a Bluetooth key area positioning device provided by an embodiment of the present application;
[0060] Figure 11 Schematic structural diagram of a Bluetooth key area positioning device provided by an embodiment of the present application;
[0061] Figure 12 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0062] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Apparently, the described embodiments are some, but not all, of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of this application without creative efforts shall fall within the scope of protection of this application.
[0063] The following disclosure provides many different embodiments or examples for implementing different structures of this application. To simplify the disclosure of this application, components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit this application. In addition, this 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.
[0064] To solve the technical problem of how to improve the stability of Bluetooth key area positioning in the prior art, this 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.
[0065] The first embodiment of this application provides a Bluetooth key area positioning method, which can be applied to a Figure 1 system architecture as shown. This system architecture includes at least a Bluetooth key 101 and a vehicle 102. The Bluetooth key 101 and the vehicle 102 can establish a communication connection via 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 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 in 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.
[0066] 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 , this Bluetooth key area positioning method includes:
[0067] 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 the preset mapping relationship. 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.
[0068] 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 corresponding functions configured for the target vehicle are different. The closer the division area is to the target vehicle, the greater the signal strength included in the corresponding signal strength interval, and 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 a schematic diagram of the division area, it includes: Passive Start area, Passive Entry area, Welcome area, and Long-distance area. For example, 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 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 it.
[0069] 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 the 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.
[0070] 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. The specific mapping relationship can be obtained through calibration.
[0071] 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.
[0072] In this embodiment, the schematic diagram of the preliminary division 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 and 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 division area.
[0073] Step 202: Determine the adjacent areas adjacent to the preliminary division area, and from the adjacent areas and the preliminary division 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.
[0074] If the preliminary division area is the PS area, the adjacent area is the PE area. If the preliminary division 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 preliminary division area is the welcome area or the long-distance area, and will not be elaborated here.
[0075] Step 203: Obtain the target switching threshold between the first target area and the second target area from the mapping relationship.
[0076] The preset mapping relationship is the mapping relationship between the signal strength interval and the division area. The splitting point of two adjacent signal strength intervals is the switching threshold of two adjacent division areas. The target switching threshold between the first target area and the second target area can be obtained from the mapping relationship.
[0077] Step 204, obtain a preset switching threshold hysteresis value.
[0078] 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.
[0079] Step 205, determine a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold.
[0080] 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.
[0081] 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; determining the interval greater than the first difference value and less than or equal to the first sum value as the switching hysteresis interval.
[0082] 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 the switching 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 jump frequently 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 made to lag, ensuring area stability.
[0083] In one embodiment, determining a handover hysteresis range 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 range greater than the first difference and less than or equal to the target handover threshold as the handover hysteresis range; 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 range greater than the target handover threshold and less than or equal to the first sum value as the handover hysteresis range.
[0084] In this embodiment, the schematic diagram of the handover hysteresis range when the regional trend is approaching is as Figure 6A , and the schematic diagram of the handover hysteresis range when the regional trend is moving away 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 handover 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 the handover hysteresis range is not 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.
[0085] 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 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 characterizes approaching the target vehicle, as Figure 6A , calculate the first difference (th - △th) between the target handover threshold and the handover threshold hysteresis value; determine the range greater than the first difference and less than or equal to the target handover threshold as the handover hysteresis range, that is, the handover hysteresis range 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 from the internal area to the 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 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 performance of the area change but also ensure the area stability.
[0086] Step 206, determine the final division 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 division area remains the previous positioning area.
[0087] This method can determine the preliminary division 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 division 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 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.
[0088] In one embodiment, determining the final division 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 division 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 division 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 division area of the Bluetooth key to the second target area.
[0089] 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 preliminary divided area is optimized in terms of positioning. 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.
[0090] Next, the Bluetooth key area positioning method under the time hysteresis strategy will be described. As Figure 7 , this Bluetooth key area positioning method includes:
[0091] Step 701, determine the first preliminary divided 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; 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.
[0092] The divided areas can be divided according to the functions available to 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 areas can include: the passive start area, the passive entry area, the welcome area, and the 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, 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 as needed, 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 this.
[0093] 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 the 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, at the first moment, the first signal strength when the Bluetooth master module receives the key message, and obtaining the 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.
[0094] In this embodiment, the preset mapping relationship is a mapping relationship between signal strength intervals and division areas. The signal strength can be the Received Signal Strength Indication (RSSI) value. Different signal strength intervals correspond to different division areas. According to the first moment signal strength of the Bluetooth key, the signal strength interval where the first moment signal strength is located can be determined. Furthermore, the first preliminary division area where the Bluetooth key is located at the first moment can be determined according to the signal strength interval and the mapping relationship. It should be understood that according to the second moment signal strength of the Bluetooth key, 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 here. 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.
[0095] 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 the message A of the Bluetooth key in the connection event at the first moment and obtains the corresponding RSSI value at the same time. Multiple Bluetooth slave modules outside the vehicle monitor the message A sent by the key to the Bluetooth master module in real time, obtain the corresponding RSSI values at the same time, and then send the RSSI values 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 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 here.
[0096] Step 702: Determine the adjacent area adjacent to the first preliminary division area.
[0097] 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.
[0098] 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.
[0099] 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; where the second moment is a 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.
[0100] In this embodiment, obtaining the signal strength of the Bluetooth key at the second moment, and 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; 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 a time lag, 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 switch is immediate, under the influence of external factors on 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, the timer is started to count, and the final division area is switched only after the preset lag time has elapsed, thereby avoiding the back-and-forth jumping of the positioning area of the Bluetooth key within the preset lag time and improving the stability of the Bluetooth key area positioning.
[0101] Step 704: When the timer counts up to the preset lag time, determine that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area.
[0102] In this method, when the Bluetooth key enters an adjacent area from the first preliminary division area, a timer is started. When the timer reaches the preset hysteresis time, it is determined that the final division area of the Bluetooth key switches 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.
[0103] In one embodiment, when the second preliminary division area is an adjacent area, starting the timer 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.
[0104] In this embodiment, the timer can be a hysteresis time timer uniformly used by 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 switches 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 switches 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 switches from the first preliminary division area to the adjacent area after both of the above two timers meet the conditions.
[0105] Specifically, when the timer reaches the preset hysteresis time, determining that the final division area of the Bluetooth key switches from the first preliminary division area to the adjacent area includes at least the following two cases.
[0106] 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 switches from the first preliminary division area to the adjacent area.
[0107] 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 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 is also possible to determine 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 long-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 long-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 long-distance area, although the hysteresis timer reaches the preset hysteresis time, the area positioning is not switched.
[0108] 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 division area of the Bluetooth key is switched from the adjacent area to the next division area of the adjacent area; where the preset hysteresis time is less than the preset area crossing time.
[0109] In this embodiment, the hysteresis timer and the zone crossing timer can be combined simultaneously. When the hysteresis timer reaches the preset hysteresis time, it is determined that the current positioning zone of the Bluetooth key has switched from the first preliminary division zone to an adjacent zone. At the same time when the zone crossing timer reaches the preset zone crossing time, if the current preliminary division zone of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent zone, it is determined that the final division zone of the Bluetooth key has switched from the adjacent zone to the next division zone of the adjacent zone. The preset hysteresis time can be set to a time smaller than the preset zone crossing time. More specifically, when continuously crossing zones, there can also be a case where the preset hysteresis time is set to 0, which is equivalent to only using the zone crossing timer. When switching from the first preliminary division zone to an adjacent zone, the zone positioning is directly switched, and the zone crossing timer corresponding to the adjacent zone is started simultaneously. When the zone crossing timer corresponding to the adjacent zone reaches the preset zone crossing time, if the current preliminary division zone of the Bluetooth key indicates that the Bluetooth key has passed through the adjacent zone and reached the next division zone, it is determined that the final division zone of the Bluetooth key has switched from the adjacent zone to the next division zone of the adjacent zone.
[0110] In one embodiment, when the hysteresis timer reaches the preset hysteresis time, determining that the final division zone of the Bluetooth key has switched from the first preliminary division zone to an adjacent zone 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 zone where the Bluetooth key is located at the third moment according to the signal strength at the third moment and the mapping relationship; and determining that the final division zone of the Bluetooth key has switched from the first preliminary division zone to an adjacent zone when the third preliminary division zone belongs to the target division zone; where the target division zone includes all division zones on the adjacent zone side of the first preliminary division zone.
[0111] In this embodiment, the schematic diagram of time hysteresis positioning is as Figure 8, 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 final division area is switched. Of course, when switching the final division area 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 final division area of the Bluetooth key is switched from the welcome area to the PE area, thus 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.
[0112] In one embodiment, when the hysteresis time timer reaches the preset hysteresis time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary division area to an adjacent area includes: when the hysteresis time timer reaches the preset hysteresis time, determining that the current positioning area of the Bluetooth key is switched from the first preliminary division area to an adjacent area.
[0113] 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 an 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: 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 an 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, and starting the crossing timer corresponding to the next division area to re-position the final division area of the Bluetooth key when the crossing timer reaches the 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).
[0114] 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 (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 , and 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 far - distance area into the welcome area, then into the PE area, and finally into the PS area, the set crossing time T cross_welcome is set for the middle welcome area, and the set crossing time T cross_pe is set for the middle 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 set crossing time T cross_welcome is also set for the middle welcome area, and the set crossing time T cross_pe is also set for the middle PE area. Figure 9A is a schematic diagram of time - hysteresis positioning for continuous change from the far - distance area to the PS area. In 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 ≤ 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 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 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 change from the PS area to the far - distance area. In the process of gradually entering the far - 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 division area of the key is switched to a new area, that is, the welcome area. When the final division area is switched to the welcome area, a timer "timer" is started. When timer ≤ T cross_welcome When, the final division area of the key remains the welcome area unchanged. When timer > T cross_welcome When, the key is currently in the outer area of the welcome area, and the final division 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 after adding the time lag of area crossing. And, the preset lag time of the lag time timer is taken as 0 for example. 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 and then switch 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 and then switch the positioning area to the PE area.
[0115] In one embodiment, when the timer counts up to the preset lag time, determining that the final division area of the Bluetooth key is switched from the first preliminary division area to the adjacent area includes: 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 lag time and the current signal strength of the Bluetooth key does not belong to the switching lag interval, determining 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, while adding a time lag to the final division 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 division 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 division area of the Bluetooth key is switched from the first preliminary division 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.
[0117] Next, a Bluetooth key area positioning method combining a threshold hysteresis strategy and a time hysteresis strategy will be described. This Bluetooth key area positioning method includes:
[0118] 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. 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. This step is the same as the foregoing step 201 and will not be elaborated here.
[0119] 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 here.
[0120] Step S33: Determine the threshold hysteresis division result of the Bluetooth key 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. This step refers to the steps of area positioning under the threshold hysteresis strategy in the foregoing embodiment and will not be elaborated here.
[0121] Step S34: Determine the time hysteresis division result of the Bluetooth key 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. This step refers to the steps of area positioning under the time hysteresis strategy in the foregoing embodiment and will not be elaborated here.
[0122] 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.
[0123] 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 fast-responsive division result or the relatively slow-responsive division result can be selected, without limitation.
[0124] 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. While providing multiple selection strategies for area positioning, it avoids the positioning area of the Bluetooth key from bouncing back and forth, improving the stability of the Bluetooth key area positioning.
[0125] Based on the same technical 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:
[0126] 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;
[0127] 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, 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;
[0128] 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;
[0129] A second acquisition module 1004, configured to acquire a preset switching threshold hysteresis value;
[0130] A third determination module 1005, configured to determine a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold;
[0131] 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.
[0132] 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 within 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.
[0133] Under the time hysteresis strategy, such as Figure 11 , the Bluetooth key area positioning device includes:
[0134] 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;
[0135] An adjacent region determining module 1102 is used to determine an adjacent region adjacent to the first preliminary divided region;
[0136] 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;
[0137] 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.
[0138] 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.
[0139] 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.
[0140] Memory 113, used for storing computer programs;
[0141] 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.
[0142] 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.
[0143] The communication interface is used for communication between the above terminal and other devices.
[0144] 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 from the aforementioned processor.
[0145] The aforementioned 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.
[0146] 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.
[0147] 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.
[0148] 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 above technical solutions, in essence, or the part that contributes to the related technologies 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 to enable 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.
[0149] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, as used herein, the singular forms "a", "an", and "the" 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 their combinations. 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 execution is explicitly stated. It should also be understood that additional or alternative steps may be used.
[0150] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. In the description, the suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of explaining the present application and have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.
[0151] 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 will be accorded the widest 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 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; Determining an adjacent area adjacent to the preliminary division area, and from the adjacent area and the preliminary division 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 final division 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 division area remains the previous positioning area.
2. The method according to claim 1, characterized in that, Determining the final division 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 division 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 division 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 division area of the Bluetooth key to the second target area.
3. The method according to claim 2, wherein 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; Determining the interval greater than the first difference value and less than or equal to the first sum value as the switching hysteresis interval.
4. The method according to claim 2, characterized in that, Determining the switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold, includes: Determining the area trend of the Bluetooth key based on the previous signal strength and the current signal strength of the Bluetooth key; wherein, the area trend is used to represent gradually approaching the target vehicle and gradually moving away from the target vehicle; When the area trend represents gradually approaching the target vehicle, calculating a first difference value between the target switching threshold and the switching threshold hysteresis value; determining the interval greater than the first difference value and less than or equal to the target switching threshold as the switching hysteresis interval; When the regional trend representation gradually moves away from the target vehicle, calculate the first sum 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 as the switching hysteresis interval.
5. The method according to claim 1, wherein 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, including: Obtain the current signal strength of the Bluetooth key; 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.
6. The method according to claim 5, characterized in that, 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, obtain the first signal strength when the Bluetooth master module receives the key message; Obtain the second signal strength when the Bluetooth slave module monitors the key message; Determine the current signal strength of the Bluetooth key based on the first signal strength and the second signal strength.
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; among them, when the Bluetooth key is in different division areas, the target vehicle is configured with corresponding different functions.
8. 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, and from the adjacent area and the preliminary division 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; A first acquisition module, configured to acquire the target switching threshold between the first target area and the second target area from the mapping relationship; A second acquisition module, configured to acquire a preset switching threshold hysteresis value; A third determination module, configured to determine a switching hysteresis interval according to the switching threshold hysteresis value and the target switching threshold; An area positioning module, configured to determine the final division 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 division area remains the previous positioning area.
9. An electronic device, characterized in that, 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 a computer program; The processor, when executing the program stored on the memory, implements the Bluetooth key area positioning method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the Bluetooth key area positioning method according to any one of claims 1-7.