Bluetooth positioning method and related device

By acquiring the signal strength of multiple vehicle Bluetooth modules, the direction and distance area of ​​the Bluetooth modules are determined, and the unlocking and locking areas are divided using target dividing lines. This solves the problem of inconsistent vehicle unlocking and locking distances, and achieves more accurate and stable positioning and unlocking/locking operations.

CN121728418APending Publication Date: 2026-03-24BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing vehicle locking and unlocking methods, which control the locking and unlocking distance via Bluetooth signal strength, result in an inconsistent actual locking and unlocking distance, leading to a poor user experience.

Method used

By acquiring the Bluetooth signal strength received by multiple vehicle Bluetooth modules, the directional and distance regions of the first Bluetooth module are determined. The region is divided into unlock and lock regions using a target dividing line, and the vehicle's unlocking and locking operations are determined based on a preset threshold.

Benefits of technology

The accuracy and stability of Bluetooth module positioning have been improved, ensuring that the actual distance for locking and unlocking operations remains fixed, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121728418A_ABST
    Figure CN121728418A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth positioning method and a related device, and relates to the technical field of positioning, and the method comprises the steps: obtaining the Bluetooth signal intensities of a first Bluetooth module received by a plurality of vehicle Bluetooth modules, taking the Bluetooth signal intensities as a plurality of Bluetooth signal intensities, and according to the relative intensity of the plurality of Bluetooth signal intensities, carrying out the Bluetooth positioning according to the relative intensity of the plurality of Bluetooth signal intensities; and determining a direction area and a distance area where the first Bluetooth module is located. As the relative intensity of the Bluetooth signal intensity cannot be greatly changed due to the influence of external factors on the first Bluetooth module, the first Bluetooth module can be accurately positioned based on the relative intensity. According to the method, the periphery of the vehicle is divided into a plurality of areas, and a certain area is taken as a positioning result, so that the final positioning result is not changed even if the relative strength is slightly changed, and the positioning stability is improved. And the distance from each point on the target segmentation line to the vehicle is the same, so that the problem that the actual unlocking and locking distance is not fixed does not occur, and the user experience is better.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the positioning technical field, and in particular to a Bluetooth positioning method and related device. BACKGROUND

[0002] The current vehicle unlocking method controls unlocking based on the Bluetooth signal strength received by the vehicle Bluetooth module from the user Bluetooth module. However, when this method is applied to the actual vehicle unlocking scenario, the actual distance of unlocking is not fixed, which needs to be solved urgently. SUMMARY

[0003] In view of the above problems, the present application provides a Bluetooth positioning method and related device to solve the problem of the actual distance of vehicle unlocking not being fixed in the prior art. The specific scheme is as follows:

[0004] The first aspect of the present application provides a Bluetooth positioning method, comprising:

[0005] Obtaining the Bluetooth signal strength received by a plurality of vehicle Bluetooth modules from a first Bluetooth module respectively as a plurality of Bluetooth signal strengths;

[0006] Determining the direction area and distance area where the first Bluetooth module is located according to the relative strength of the plurality of Bluetooth signal strengths, wherein the distance area is one of a first distance area and a second distance area, the first distance area is an area for unlocking the vehicle, the second distance area is an area for locking the vehicle, the first distance area and the second distance area are two areas divided by a target dividing line, the target dividing line is determined based on the Bluetooth signal strength received by a plurality of vehicle Bluetooth modules from a second Bluetooth module respectively and the threshold value matched with each preset direction area when the second Bluetooth module is set in each preset direction area, and the threshold value matched with each preset direction area respectively makes the distance from all points on the target dividing line to the vehicle the same.

[0007] In a possible implementation, when the second Bluetooth module is located at any position in the first distance area, the difference between the first value and the second value is greater than the first target threshold value, and when the second Bluetooth module is located at any position in the second distance area, the difference between the first value and the second value is less than or equal to the first target threshold value;

[0008] The first value is determined by the Bluetooth signal strength received by the several vehicle Bluetooth modules closest to the second Bluetooth module among the plurality of vehicle Bluetooth modules, the second value is determined by the Bluetooth signal strength received by the several vehicle Bluetooth modules farthest to the second Bluetooth module among the plurality of vehicle Bluetooth modules, and the first target threshold value refers to a threshold value matched by the direction area where the second Bluetooth module is located.

[0009] In a possible implementation, the determining of the direction area and the distance area where the first Bluetooth module is located according to the relative strength of the plurality of Bluetooth signal strengths comprises:

[0010] The calling area positioning model determines the direction area and the distance area where the first Bluetooth module is located according to the relative strength of the plurality of Bluetooth signal strengths, wherein the area positioning model is trained by using a plurality of training Bluetooth signal strengths labeled with direction areas and distance areas as training data.

[0011] In a possible implementation, the determining of the direction area and the distance area where the first Bluetooth module is located according to the relative strength of the plurality of Bluetooth signal strengths comprises:

[0012] The direction area where the first Bluetooth module is located is determined according to the relative strength of the plurality of Bluetooth signal strengths.

[0013] An error value threshold value matched by the direction area where the first Bluetooth module is located is obtained as a second target threshold value.

[0014] The plurality of vehicle Bluetooth modules are divided into a first group and a second group, wherein the maximum distance between the vehicle Bluetooth modules in the first group and the first Bluetooth module is less than the minimum distance between the vehicle Bluetooth modules in the second group and the first Bluetooth module.

[0015] A third value is determined according to the Bluetooth signal strength received by the vehicle Bluetooth modules in the first group, a fourth value is determined according to the Bluetooth signal strength received by the vehicle Bluetooth modules in the second group, and a difference between the third value and the fourth value is calculated as a target difference value.

[0016] The target difference value is compared with the second target threshold value, and the distance area where the first Bluetooth module is located is determined according to a comparison result.

[0017] In a possible implementation, the determining the third value according to the Bluetooth signal strength received by the vehicle Bluetooth modules in the first group from the first Bluetooth module, and the determining the fourth value according to the Bluetooth signal strength received by the vehicle Bluetooth modules in the second group from the first Bluetooth module, comprises:

[0018] obtaining a first weight of the vehicle Bluetooth modules in the first group, and calculating the third value based on the first weight and the Bluetooth signal strength received by the vehicle Bluetooth modules in the first group from the first Bluetooth module;

[0019] obtaining a second weight of the vehicle Bluetooth modules in the second group, and calculating the fourth value based on the second weight and the Bluetooth signal strength received by the vehicle Bluetooth modules in the second group from the first Bluetooth module.

[0020] In a possible implementation, the comparing the target difference value with the second target threshold value, and determining the distance region where the first Bluetooth module is located according to a comparison result, comprises:

[0021] comparing the target difference value with the second target threshold value, and determining that the first Bluetooth module is located in the first distance region if the target difference value is greater than the second target threshold value, or determining that the first Bluetooth module is located in the second distance region if the target difference value is less than or equal to the second target threshold value.

[0022] In a possible implementation, the direction region comprises: an in-vehicle region, a front-of-vehicle region, a back-of-vehicle region, a left-of-vehicle region, a right-of-vehicle region, a left-front-of-vehicle region, a left-back-of-vehicle region, a right-front-of-vehicle region, and a right-back-of-vehicle region.

[0023] In a possible implementation, the method further comprises:

[0024] if the first Bluetooth module is in the first distance region, sending an unlocking instruction to the vehicle to make the vehicle unlock;

[0025] if the first Bluetooth module is in the second distance region, sending a locking instruction to the vehicle to make the vehicle lock.

[0026] In a possible implementation, before the determining the direction region and the distance region where the first Bluetooth module is located according to the relative strength of the plurality of Bluetooth signal strengths, the method further comprises:

[0027] adjusting the threshold value respectively matched with each preset direction region, so that the distance from all points on the target split line to the vehicle is the same and meets the distance requirement for vehicle unlocking and locking.

[0028] The second aspect of the present application provides a Bluetooth positioning device, comprising:

[0029] a signal acquisition module, configured to acquire a plurality of Bluetooth signal strengths of a first Bluetooth module received by a plurality of vehicle Bluetooth modules respectively, as a plurality of Bluetooth signal strengths;

[0030] a user positioning module, configured to determine a direction area and a distance area where the first Bluetooth module is located according to relative strength of the plurality of Bluetooth signal strengths, wherein the distance area is one of a first distance area and a second distance area, the first distance area is an area for unlocking the vehicle, the second distance area is an area for locking the vehicle, the first distance area and the second distance area are two areas divided by a target dividing line, the target dividing line is determined based on the plurality of Bluetooth signal strengths of a second Bluetooth module received by the plurality of vehicle Bluetooth modules respectively and a threshold value matched with each preset direction area when the second Bluetooth module is arranged in each preset direction area, and the threshold value matched with each preset direction area makes distances from all points on the target dividing line to the vehicle the same.

[0031] The third aspect of the present application provides a computer program product, comprising computer readable instructions, when the computer readable instructions are executed on an electronic device, the electronic device implements the Bluetooth positioning method of the first aspect or any implementation manner of the first aspect.

[0032] The fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected with the processor, wherein:

[0033] the memory is configured to store a computer program;

[0034] the processor is configured to execute the computer program, so that the electronic device can implement the Bluetooth positioning method of the first aspect or any implementation manner of the first aspect.

[0035] The fifth aspect of the present application provides a computer storage medium, the storage medium carries one or more computer programs, when the one or more computer programs are executed by an electronic device, the electronic device can implement the Bluetooth positioning method of the first aspect or any implementation manner of the first aspect.

[0036] By the technical scheme, the Bluetooth positioning method provided by the application can determine the direction area and distance area where the first Bluetooth module is located according to the relative strength of the plurality of Bluetooth signal strengths, that is, position the first Bluetooth module according to the relative strength of the plurality of Bluetooth signal strengths, and improve the accuracy of positioning of the first Bluetooth module.

[0037] Further, the application divides the area around the vehicle into a plurality of areas through the preset direction areas, the first distance area and the second distance area, and takes one of the plurality of areas as the positioning result of the first Bluetooth module, so that even if the relative strength changes slightly due to external factors, the final positioning result will not change, and the stability of positioning is improved.

[0038] The application assigns each preset direction area with a matching threshold value, so that the distance from each point on the target segmentation line to the vehicle is the same, and thus the vehicle is unlocked when entering the first distance area and locked when entering the second distance area, without the actual distance of unlocking and locking being unstable, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0039] The above and other features, advantages, and aspects of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

[0040] Figure 1 A system architecture schematic diagram is provided for the application;

[0041] Figure 2 An optional hardware structure schematic diagram of a terminal 100 is provided for the application;

[0042] Figure 3 A structure schematic diagram of a server 200 is provided for the application;

[0043] Figure 4 A flowchart of a Bluetooth positioning method is provided for the application;

[0044] Figure 5 A schematic diagram of a target segmentation line is provided for the application;

[0045] Figure 6 A structure schematic diagram of a Bluetooth positioning device is provided for the application;

[0046] Figure 7 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0047] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0048] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0049] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0050] As described in the background section, current vehicle unlocking and locking methods control the locking and unlocking based on the Bluetooth signal strength received by the vehicle's Bluetooth module from the user's Bluetooth module. However, when this method is applied to real-world vehicle unlocking and locking scenarios, there is a problem that the actual unlocking and locking distance is not fixed.

[0051] The above problem will be explained using a common vehicle locking / unlocking method as an example.

[0052] When the user is close to the vehicle, the user's Bluetooth module establishes a connection with the vehicle's Bluetooth module. The relevant devices on the vehicle determine the distance between the user and the vehicle based on the Bluetooth signal strength received by the vehicle's Bluetooth module. This determined distance is then compared to a fixed distance threshold. Based on the comparison result, a decision is made regarding whether to lock or unlock the vehicle. Specifically, the vehicle is locked when the determined distance is greater than the fixed distance threshold, and unlocked when the determined distance is less than or equal to the fixed distance threshold.

[0053] The aforementioned fixed distance threshold is set under ideal conditions, meaning that the fixed distance threshold does not take into account the effects of Bluetooth signal obstruction and environmental interference. However, in practical applications, even if the user and the vehicle are at the same distance, the actual distance for unlocking and locking the vehicle will vary depending on the degree of Bluetooth signal obstruction or environmental interference.

[0054] Furthermore, when a user is positioned at different angles but at the same distance from the vehicle, the Bluetooth signal strength received by the same vehicle's Bluetooth module varies significantly. For example, when the user is 10 meters in front of the vehicle, the Bluetooth signal strength received by the Bluetooth module in front of the vehicle is much stronger than when the user is 10 meters behind the vehicle. This results in a large discrepancy in the actual unlocking distance when locking / unlocking is based on the Bluetooth signal strength received by the vehicle's Bluetooth module. For instance, in the example above, when locking / unlocking is based on the Bluetooth signal strength received by the Bluetooth module in front of the vehicle, the vehicle might unlock when the user is 8 meters in front, but only when the user is 5 meters behind.

[0055] In view of the aforementioned technical problems, the inventors of this case conducted in-depth research and ultimately proposed the solution of this application. To enable those skilled in the art to better understand this application, a detailed description is provided below.

[0056] See Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers (…). Figure 1 (The example includes a server), and the server 200 can provide the method provided in the embodiments of this application to one or more terminals.

[0057] The terminal 100 may have a third-party system application installed on it. The application and webpage can provide an interface. The terminal 100 can receive relevant parameters input by the user on the interface and send the parameters to the server 200. The server 200 can obtain the processing result based on the received parameters and return the processing result to the terminal 100.

[0058] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters on its own, without the need for the server to cooperate. This application embodiment is not limited to this.

[0059] The following description Figure 1 The product form of the mid-terminal 100;

[0060] In one possible implementation, the terminal 100 in this embodiment can be installed in a vehicle. For example, the terminal 100 in this embodiment can be an Electronic Control Unit (ECU), Microcontroller Unit (MCU), or Head Unit (HU) in the vehicle. Then, the terminal 100 can obtain the Bluetooth signal strength received by the vehicle's Bluetooth module from the first Bluetooth module, and then perform Bluetooth positioning of the user according to the method of this application, thereby enabling vehicle locking and unlocking. Here, the first Bluetooth module is a Bluetooth module carried by the user.

[0061] In another possible implementation, the terminal 100 in this embodiment can also be installed outside the vehicle. For example, the terminal 100 in this embodiment can be a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc. Then, the terminal 100 can establish a communication connection with the vehicle, allowing the vehicle's Bluetooth module to receive the Bluetooth signal strength from the first Bluetooth module and transmit it to the terminal 100. The terminal 100 then uses the received Bluetooth signal strength to perform Bluetooth positioning of the user according to the method of this application, thereby enabling vehicle locking and unlocking.

[0062] Figure 2 A schematic diagram of an optional hardware structure for terminal 100 is shown.

[0063] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), a headphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190, and other components. Those skilled in the art will understand that... Figure 2 These are merely examples of terminals or multi-functional devices and do not constitute a limitation on terminals or multi-functional devices. They may include more or fewer components than shown in the illustration, or combine certain components, or use different components.

[0064] The input unit 130 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the portable multi-functional device. Specifically, the input unit 130 may include a touchscreen 131 (optional) and / or other input devices 132. The touchscreen 131 can collect touch operations performed by the user on or near it (such as operations performed by the user using fingers, knuckles, styluses, or any suitable object on or near the touchscreen), and drive the corresponding connection devices according to a pre-set program. The touchscreen can detect the user's touch actions, convert the touch actions into touch signals and send them to the processor 170, and can receive and execute commands sent by the processor 170; the touch signal includes at least touch point coordinate information. The touchscreen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, various types of touchscreens, such as resistive, capacitive, infrared, and surface acoustic wave, can be used to implement the touchscreen. Besides the touchscreen 131, the input unit 130 may also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0065] Among them, the input device 132 can receive input data, etc.

[0066] The display unit 140 can be used to display information input by the user or information provided to the user, various menus of the terminal 100, interactive interfaces, file display, and / or playback of any multimedia file.

[0067] The memory 120 can be used to store instructions and data. The memory 120 may primarily include an instruction storage area and a data storage area. The data storage area can store various types of data, such as multimedia files and text. The instruction storage area can store software units such as operating systems, applications, and instructions required for at least one function, or subsets or extended sets thereof. It may also include non-volatile random access memory. It provides the processor 170 with hardware, software, and data resources for managing the computing device, supporting control software and applications. It is also used for storing multimedia files, as well as storing running programs and applications.

[0068] The processor 170 is the control center of the terminal 100. It connects various parts of the terminal 100 via various interfaces and lines. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it performs various functions and processes data of the terminal 100, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 170. In some embodiments, the processor and memory can be implemented on a single chip; in some embodiments, they can also be implemented separately on independent chips. The processor 170 can also be used to generate corresponding operation control signals, send them to the corresponding components of the computing processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that the various functional modules therein perform corresponding functions, thereby controlling the corresponding components to act according to the instructions.

[0069] The memory 120 can be used to store software code related to the Bluetooth positioning method, and the processor 170 can execute the steps of the Bluetooth positioning method, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to achieve the corresponding functions.

[0070] The radio frequency unit 110 (optional) can be used for receiving and transmitting signals during information transmission or calls. For example, it can receive downlink information from the base station and process it for the processor 170; additionally, it can transmit uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, the radio frequency unit 110 can also communicate wirelessly with network devices and other devices. This wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0071] In this embodiment of the application, the radio frequency unit 110 can send data to the server 200 and receive the processing results sent by the server 200.

[0072] It should be understood that the radio frequency unit 110 is optional and can be replaced with other communication interfaces, such as a network port.

[0073] The terminal 100 also includes a power supply 190 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0074] Terminal 100 also includes an external interface 180, which can be a standard Micro USB interface or a multi-pin connector, which can be used to connect terminal 100 to other devices for communication or to connect a charger to charge terminal 100.

[0075] Although not shown, terminal 100 may also include a flash, a Wireless Fidelity (WiFi) module, a Bluetooth module, sensors with various functions, etc., which will not be described in detail here. Some or all of the methods described below can be applied to, for example... Figure 2 In the terminal 100 shown.

[0076] The following description Figure 1 The server 200 can be configured in the form of a vehicle or other devices that communicate with the vehicle, such as other vehicles. This allows the vehicle's Bluetooth module to receive the Bluetooth signal strength from the first Bluetooth module and transmit it to the server 200, where Bluetooth positioning is performed according to the method of this application, thereby enabling vehicle locking and unlocking.

[0077] Figure 3 A structural diagram of a server 200 is provided, as follows: Figure 3 As shown, server 200 includes bus 201, processor 202, communication interface 203, and memory 204. Processor 202, memory 204, and communication interface 203 communicate with each other via bus 201.

[0078] Bus 201 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 3 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0079] The processor 202 can be any one or more of the following processors: a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0080] Memory 204 may include volatile memory, such as random access memory (RAM). Memory 204 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0081] The memory 204 can be used to store software code related to the Bluetooth positioning method, and the processor 202 can execute the steps of the chip's Bluetooth positioning method, and can also schedule other units to achieve the corresponding functions.

[0082] It should be understood that the aforementioned terminal 100 and server 200 can be centralized or distributed devices. The processors (e.g., processor 170 and processor 202) in the aforementioned terminal 100 and server 200 can be hardware circuits (such as application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), general-purpose processors, DSPs, microprocessors, or microcontrollers, etc.) or combinations of these hardware circuits. For example, the processor can be a hardware system with instruction execution capabilities, such as a CPU or DSP, or a hardware system without instruction execution capabilities, such as an ASIC or FPGA, or a combination of the aforementioned hardware systems without instruction execution capabilities and hardware systems with instruction execution capabilities.

[0083] This application provides a Bluetooth positioning method. The Bluetooth positioning method of this application embodiment will be described in detail below with reference to the accompanying drawings.

[0084] Optionally, the Bluetooth positioning method provided in this application embodiment can be applied to vehicle devices, such as ECU, MCU, HU, etc.; the Bluetooth positioning method provided in this application embodiment can also be applied to other devices that communicate with the vehicle, such as mobile phones, tablets, wearable devices, in-vehicle devices, AR devices, VR devices, laptops, UMPCs, netbooks, PDAs, etc. (See also...) Figure 4 , Figure 4 This is a flowchart illustrating a Bluetooth positioning method provided in an embodiment of this application. The method may include:

[0085] Step S401: Obtain the Bluetooth signal strengths received by the first Bluetooth module from multiple vehicle Bluetooth modules, and use them as multiple Bluetooth signal strengths.

[0086] Here, the first Bluetooth module is carried by the user, so locating the first Bluetooth module is equivalent to locating the user.

[0087] In this embodiment, the first Bluetooth module can be used as a Bluetooth key to pair with the vehicle's Bluetooth module. Optionally, the first Bluetooth module can be a built-in Bluetooth module of a user-carried terminal device. If the terminal device does not have a built-in Bluetooth module, an external Bluetooth adapter can be connected to the terminal device so that the terminal device can act as the first Bluetooth module to pair with the vehicle's Bluetooth module.

[0088] Optionally, the aforementioned terminal devices can be mobile phones, tablets, laptops, Bluetooth headsets, Bluetooth speakers, Bluetooth keyboards, Bluetooth mice, Bluetooth watches, Bluetooth bracelets, etc.

[0089] The aforementioned vehicle Bluetooth module refers to a Bluetooth module installed on a vehicle. Optionally, multiple vehicle Bluetooth modules are distributed symmetrically around the vehicle's central axis, evenly covering the entire perimeter of the vehicle body.

[0090] In this embodiment, when the distance between the user and the vehicle is less than the furthest pairing distance between the first Bluetooth module and the vehicle Bluetooth module, the first Bluetooth module and the vehicle Bluetooth module automatically pair successfully, and at this time the vehicle Bluetooth module can receive the Bluetooth signal strength of the first Bluetooth module.

[0091] It should be noted that when multiple vehicle Bluetooth modules are automatically paired with the first Bluetooth module, one of the vehicle Bluetooth modules will act as the central module. If the central module successfully pairs with the first Bluetooth module, then all vehicle Bluetooth modules will successfully pair with the first Bluetooth module. If the central module fails to pair with the first Bluetooth module, then all vehicle Bluetooth modules will fail to pair with the first Bluetooth module.

[0092] For ease of explanation below, this step defines the Bluetooth signal strength received by multiple vehicle Bluetooth modules from the first Bluetooth module as multiple Bluetooth signal strengths. Taking a vehicle equipped with six vehicle Bluetooth modules as an example, this step can obtain six Bluetooth signal strengths.

[0093] Step S402: Determine the directional and distance regions where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signal strengths.

[0094] The distance region is one of the first distance region and the second distance region. The first distance region is the region that unlocks the vehicle, and the second distance region is the region that locks the vehicle. The first distance region and the second distance region are two regions divided by a target dividing line. The target dividing line is determined by setting the second Bluetooth module in each preset directional region, based on the Bluetooth signal strength of the second Bluetooth module received by multiple vehicle Bluetooth modules respectively, and the threshold that matches each preset directional region. The threshold that matches each preset directional region makes the distance from all points on the target dividing line to the vehicle the same.

[0095] Considering that the Bluetooth signal strength of multiple vehicle Bluetooth modules can change due to various external factors—for example, the signal strength of the first Bluetooth module may differ by more than 10dB when it is in the user's pocket (where it is obstructed) versus when it is in the user's hand—this application can locate the first Bluetooth module based on the relative strength of multiple Bluetooth signals, regardless of external factors. Specifically, this location includes locating the directional area where the first Bluetooth module is located and locating the distance area where the first Bluetooth module is located.

[0096] Specifically, this application can preset multiple directional areas. Optionally, the multiple preset directional areas include: the interior area, the area directly in front of the vehicle, the area directly behind the vehicle, the area directly to the left of the vehicle, the area directly to the right of the vehicle, the area to the left front of the vehicle, the area to the left rear of the vehicle, the area to the right front of the vehicle, and the area to the right rear of the vehicle.

[0097] Therefore, determining the directional region where the first Bluetooth module is located in this application means determining which of the aforementioned directional regions the first Bluetooth module is in.

[0098] In order to automatically lock and unlock the vehicle based on multiple Bluetooth signal strengths, and to eliminate the problem of inconsistent actual unlocking distances, this application embodiment divides the area around the vehicle into a first distance area closer to the vehicle and a second distance area farther away from the vehicle according to their distance from the vehicle.

[0099] In this embodiment, the dividing line between the first distance region and the second distance region is defined as the target dividing line. The process for determining the target dividing line is as follows: a second Bluetooth module (which can be the same as or a different Bluetooth module than the first Bluetooth module mentioned earlier) is positioned in each preset directional region. Then, based on the Bluetooth signal strength received by multiple vehicle Bluetooth modules from the second Bluetooth module and the threshold values ​​matching each preset directional region, the target dividing line is determined, ensuring that all points on the target dividing line are at the same distance from the vehicle.

[0100] In this embodiment, the first distance region can be set as the region for unlocking the vehicle, and the second distance region as the region for locking the vehicle. In actual vehicle locking / unlocking scenarios, when the first Bluetooth module is detected moving from the first distance region to the second distance region, the vehicle is locked; when the first Bluetooth module is detected moving from the second distance region to the first distance region, the vehicle is unlocked, thus achieving automatic vehicle locking / unlocking control. That is, if the above steps determine that the first Bluetooth module is in the first distance region, an unlock command is sent to the vehicle to unlock it; if the first Bluetooth module is determined to be in the second distance region, a lock command is sent to the vehicle to lock it.

[0101] In summary, the Bluetooth positioning method provided in this application, when the first Bluetooth module is affected by various external factors such as obstruction, interference, or changes in the position of the vehicle's Bluetooth module, the relative strength of multiple Bluetooth signals usually does not change significantly. Therefore, this application determines the directional and distance regions where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signals, that is, it positions the first Bluetooth module based on the relative strength of multiple Bluetooth signals, thereby improving the accuracy of the positioning of the first Bluetooth module.

[0102] Furthermore, this application divides the area around the vehicle into multiple regions by various preset directional regions, a first distance region, and a second distance region, and uses one of these regions as the positioning result of the first Bluetooth module. This ensures that even if the relative intensity changes slightly due to external factors, the final positioning result will not be altered, thus improving the stability of the positioning.

[0103] This application assigns a matching threshold to each preset directional area, ensuring that the distance from each point on the target dividing line to the vehicle is the same. This allows the vehicle to be locked and unlocked in a manner that unlocks when entering the first distance area and locks when entering the second distance area, thus preventing the actual unlocking and locking distances from being inconsistent and improving the user experience.

[0104] In some embodiments of this application, the first distance region and the second distance region described above are described in detail.

[0105] In this embodiment, when the second Bluetooth module is located at any position in the first distance region, the difference between the first value and the second value is greater than the first target threshold. When the second Bluetooth module is located at any position in the second distance region, the difference between the first value and the second value is less than or equal to the first target threshold.

[0106] That is, when the second Bluetooth module is located at each point on the target dividing line, the difference between the first value and the second value is equal to the first target threshold.

[0107] The first value is determined by the Bluetooth signal strength received by the second Bluetooth module from the vehicle Bluetooth modules closest to it among the multiple vehicle Bluetooth modules. The second value is determined by the Bluetooth signal strength received by the second Bluetooth module from the vehicle Bluetooth modules furthest from it among the multiple vehicle Bluetooth modules. The first target threshold refers to the threshold for matching in the directional region where the second Bluetooth module is located.

[0108] Specifically, this embodiment uses the actual location of the second Bluetooth module as a reference and distinguishes two groups of vehicle Bluetooth modules. The first group consists of several vehicle Bluetooth modules that are closest to the second Bluetooth module, and the second group consists of several vehicle Bluetooth modules that are furthest from the second Bluetooth module. Preferably, the first group and the second group each contain the same number of vehicle Bluetooth modules. For example, if the multiple vehicle Bluetooth modules are specifically six vehicle Bluetooth modules, then the first group consists of the three vehicle Bluetooth modules closest to the second Bluetooth module, and the second group consists of the remaining three vehicle Bluetooth modules.

[0109] It should be noted that the two groups of vehicle Bluetooth modules in the above example are merely illustrations. In practical applications, the two groups of vehicle Bluetooth modules can include all vehicle Bluetooth modules, or they can include only some vehicle Bluetooth modules. For example, if there are multiple vehicle Bluetooth modules specifically six vehicle Bluetooth modules, then the first group consists of the two vehicle Bluetooth modules closest to the second Bluetooth module, and the second group consists of the two vehicle Bluetooth modules furthest from the second Bluetooth module. Furthermore, the two groups of vehicle Bluetooth modules can also include the same vehicle Bluetooth modules. For example, if there are multiple vehicle Bluetooth modules specifically six vehicle Bluetooth modules, then the first group consists of the four vehicle Bluetooth modules closest to the second Bluetooth module, and the second group consists of the four vehicle Bluetooth modules furthest from the second Bluetooth module.

[0110] After distinguishing between the two groups of vehicle Bluetooth modules, this application embodiment calculates a first value and a second value, wherein the first value is determined by the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the second Bluetooth module, and the second value is determined by the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the second Bluetooth module.

[0111] In one possible implementation, the process of "determining the first value by the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the second Bluetooth module" specifically involves: calculating the fused value of the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the second Bluetooth module, and using it as the first value. For example, weights are assigned to each vehicle Bluetooth module in the first group, and then the weights are used to calculate a weighted average or weighted sum of the received Bluetooth signal strengths to obtain the first value. Similarly, the process of "determining the second value by the Bluetooth signal strength received by the vehicle Bluetooth module in the second group" specifically involves: calculating the fused value of the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the second Bluetooth module, and using it as the second value. For example, weights are assigned to each vehicle Bluetooth module in the second group, and then the weights are used to calculate a weighted average or weighted sum of the received Bluetooth signal strengths to obtain the second value.

[0112] Optionally, the weights set when calculating the first and second values ​​can be obtained through model training, determined based on human experience, or determined by analyzing the importance of each vehicle's Bluetooth module. Of course, other methods can also be used to determine the above weights, and no specific limitations are made here.

[0113] Of course, the above method of calculating the fusion value is only an example. In addition, the first value and the second value can be other values. For example, the first value can be the maximum, minimum or average value of the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the second Bluetooth module. Similarly, the second value can be the maximum, minimum or average value of the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the second Bluetooth module.

[0114] Therefore, when the second Bluetooth module is located at any position around the vehicle, if the difference between the first value and the second value is greater than the first target threshold (the first target threshold here refers to the threshold for matching the direction area where the position is located), then the position is determined to belong to the first distance area. Conversely, if the difference between the first value and the second value is less than or equal to the first target threshold, then the position is determined to belong to the second distance area.

[0115] In other words, when the second Bluetooth module is located in different positions, the two sets of vehicle Bluetooth modules and their corresponding first value, second value, and first target threshold may all be different. However, regardless of the location of the second Bluetooth module in the first distance region, the condition that the difference between the first value and the second value is greater than the first target threshold is always met. Similarly, regardless of the location of the second Bluetooth module in the second distance region, the condition that the difference between the first value and the second value is less than or equal to the first target threshold is always met.

[0116] In this embodiment of the application, the threshold values ​​that are matched to each preset directional region make the distance from each point on the target dividing line to the vehicle the same. This makes the first distance region the region that unlocks the vehicle and the second distance region the region that locks the vehicle.

[0117] The following explains "the threshold values ​​that are matched to each preset directional region make the distance from each point on the target segmentation line to the vehicle the same".

[0118] As mentioned earlier, multiple vehicle Bluetooth modules are installed in different locations within the vehicle. For example, some vehicles have Bluetooth modules installed in the center console area, while others have them installed in the front and rear door lights. Due to these different installation locations, the Bluetooth signal strength of each module is affected by different in-vehicle devices, resulting in varying degrees of signal obstruction. If the same threshold is set for different directional areas, the target dividing line will become an irregular curve, meaning that the distance between each point on the target dividing line and the vehicle will vary.

[0119] For example, if the second Bluetooth module is located at the front left of the vehicle, the Bluetooth module at the front left of the vehicle is more obstructed, resulting in a weaker received Bluetooth signal and thus a smaller difference between the first and second values. Conversely, if the second Bluetooth module is located at the left side of the vehicle, the Bluetooth module at the left side of the vehicle is less obstructed, resulting in a stronger received Bluetooth signal and thus a larger difference between the first and second values. If the same threshold is set for both the front left and left side regions, points on the target dividing line located in the front left region will be very close to the vehicle, while points on the target dividing line located in the left side region will be very far from the vehicle. Figure 5 As shown ( Figure 5 The shaded area represents the first distance region.

[0120] Based on this, this application can match different thresholds in each preset directional area so that the distance from each point on the target dividing line to the vehicle is the same, thereby making the actual distance for automatic unlocking and locking of the vehicle the same for each directional area. Even if the first Bluetooth module is affected by external factors, the actual unlocking and locking distance will not change, resulting in a better user experience.

[0121] In one possible implementation, this embodiment can also adjust the threshold values ​​of each preset directional region to match, so that all points on the target dividing line are at the same distance from the vehicle and meet the distance requirements for unlocking and locking the vehicle.

[0122] The threshold adjustment method in this embodiment can better meet the user's personalized distance requirements and make this application applicable to more scenarios, further improving the user experience.

[0123] In some embodiments of this application, the process of "step S402, determining the directional region and distance region where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signal strengths" is described.

[0124] In this embodiment, a region positioning model can be trained using multiple training Bluetooth signal strengths that mark the direction and distance regions as training data, and the first Bluetooth module can be located based on the region positioning model.

[0125] Specifically, after dividing the first and second distance regions as described above, a third Bluetooth module (which can be a different Bluetooth module from the first and second Bluetooth modules mentioned above, or it can be either the first or second Bluetooth module; this embodiment does not specify a particular limitation) can be placed in different directional regions within the first distance region. This yields the Bluetooth signal strength received by multiple vehicle Bluetooth modules from the third Bluetooth module, resulting in multiple sets of training Bluetooth signal strengths (each set containing multiple training Bluetooth signal strengths). The directional regions and the first distance region corresponding to each set of training Bluetooth signal strengths are recorded. Then, the third Bluetooth module is placed in different directional regions within the second distance region, again yielding the Bluetooth signal strength received by multiple vehicle Bluetooth modules from the third Bluetooth module. This again yields multiple sets of training Bluetooth signal strengths (each set containing multiple training Bluetooth signal strengths), and the directional regions and the second distance region corresponding to each set of training Bluetooth signal strengths are recorded. Finally, a pre-built neural network model is trained using all the training data obtained above to obtain the region localization model.

[0126] Therefore, in this embodiment of the application, a pre-trained regional positioning model can be invoked to determine the directional and distance regions where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signal strengths.

[0127] In one possible implementation, the process of determining the directional region and distance region of the first Bluetooth module based on the relative strength of multiple Bluetooth signal strengths in this embodiment may include: determining the directional region of the first Bluetooth module based on the relative strength of multiple Bluetooth signal strengths; obtaining a difference threshold for matching the directional region of the first Bluetooth module as a second target threshold; dividing multiple vehicle Bluetooth modules into a first group and a second group, wherein the maximum distance between the vehicle Bluetooth module in the first group and the first Bluetooth module is less than the minimum distance between the vehicle Bluetooth module in the second group and the first Bluetooth module; determining a third value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module, determining a fourth value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module, and calculating the difference between the third value and the fourth value as a target difference; comparing the target difference with the second target threshold, and determining the distance region of the first Bluetooth module based on the comparison result.

[0128] Specifically, as mentioned above, since multiple vehicle Bluetooth modules are installed in different locations within the vehicle, the Bluetooth signal strength of each vehicle Bluetooth module is blocked by different in-vehicle devices, resulting in different degrees of Bluetooth signal strength blockage. Therefore, when the first Bluetooth module is located at different angles (i.e., different directional areas) within the vehicle, the relative strength of the multiple Bluetooth signals is also different. Based on this, the embodiments of this application can determine the directional area where the first Bluetooth module is located based on the relative strength of the multiple Bluetooth signals.

[0129] Optionally, "determining the directional region where the first Bluetooth module is located based on the relative strengths of multiple Bluetooth signal strengths" includes: determining the largest number of Bluetooth signal strengths among the multiple Bluetooth signal strengths, and determining the directional region where the first Bluetooth module is located based on the directional regions where the vehicle Bluetooth modules receiving these Bluetooth signal strengths are located. For example, if a vehicle Bluetooth module is installed at the front left, left side, rear left, front right, right side, and rear right of the vehicle, and the Bluetooth signal strengths received by these six vehicle Bluetooth modules from the first Bluetooth module are 40dB, 45dB, 50dB, 30dB, 35dB, and 45dB respectively, then it can be determined that the Bluetooth signal strength received by the vehicle Bluetooth modules at the front left, rear left, and rear right is relatively large, and the Bluetooth signal strength received by the vehicle Bluetooth module at the rear left is the largest. Therefore, the first Bluetooth module is determined to be located in the rear left region.

[0130] Optionally, when dividing the first distance region and the second distance region in the preceding description, this application can store the threshold values ​​matched by each preset directional region and the corresponding preset directional regions. In this embodiment, after determining the directional region where the first Bluetooth module is located, the threshold value matched by the directional region where the first Bluetooth module is located can be obtained further based on the stored information. For ease of subsequent description, the obtained threshold value is defined as the second target threshold value.

[0131] Similar to the previous method of dividing the vehicle Bluetooth modules into two groups when defining the first and second distance regions, this embodiment also requires dividing multiple vehicle Bluetooth modules into a first group and a second group. The maximum distance between a vehicle Bluetooth module in the first group and the first Bluetooth module is less than the minimum distance between a vehicle Bluetooth module in the second group and the first Bluetooth module. For example, if multiple vehicle Bluetooth modules are designated as vehicle Bluetooth modules 1-6, and their distances from the first Bluetooth module are 7 meters, 8 meters, 9 meters, 10 meters, 11 meters, and 12 meters respectively, then vehicle Bluetooth modules 1-3 are assigned to the first group, and vehicle Bluetooth modules 4-6 are assigned to the second group.

[0132] Similar to calculating the first and second values ​​when dividing the first and second distance regions as described above, this embodiment needs to determine the third value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module, and determine the fourth value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module.

[0133] Optionally, the process of "determining a third value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module, and determining a fourth value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module" may include: obtaining a first weight of the vehicle Bluetooth module in the first group, calculating a third value based on the first weight and the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module; obtaining a second weight of the vehicle Bluetooth module in the second group, and calculating a fourth value based on the second weight and the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module.

[0134] For example, the first group includes vehicle Bluetooth modules 1 to 3, with corresponding first weights of 0.5, 0.2 and 0.3 respectively, and the Bluetooth signal strengths received by vehicle Bluetooth modules 1 to 3 from the first Bluetooth module are 50dB, 55dB and 60dB respectively. Then the third value can be: 50×0.5+55×0.2+60×0.3=54 (dB).

[0135] Optionally, the process of determining the first weight and the second weight may include: determining the weight corresponding to each vehicle Bluetooth module based on the directional region where the first Bluetooth module is located, so as to obtain the first weight and the second weight; wherein, the closer the vehicle Bluetooth module is to the directional region where the first Bluetooth module is located, the greater the corresponding weight, and the farther away the vehicle Bluetooth module is from the directional region where the first Bluetooth module is located, the smaller the corresponding weight.

[0136] Optionally, if the process of "determining the directional and distance regions of the first Bluetooth module based on the relative strength of multiple Bluetooth signal strengths" is implemented by a regional positioning model, then the first weight and the second weight mentioned above are parameters within the regional positioning model, and the first weight and the second weight are values ​​obtained by training based on the training data mentioned above.

[0137] It should be noted that the calculation methods for the first weight, second weight, Bluetooth signal strength, and third and fourth values ​​listed above are merely examples and do not imply any other meaning.

[0138] After obtaining the third and fourth values, the difference between them can be calculated as the target difference. This target difference is then compared with a second target threshold to determine the distance region where the first Bluetooth module is located. Specifically, the process of "comparing the target difference with the second target threshold and determining the distance region where the first Bluetooth module is located based on the comparison result" can include: comparing the target difference with the second target threshold; if the target difference is greater than the second target threshold, the first Bluetooth module is determined to be located in a first distance region; if the target difference is less than or equal to the second target threshold, the first Bluetooth module is determined to be located in a second distance region.

[0139] This embodiment locates the first Bluetooth module based on the relative strength of multiple Bluetooth signal strengths, avoiding the impact of obstruction or environmental interference on Bluetooth signal strength and achieving accurate positioning. By setting matching difference thresholds for each directional region, the distance from each point on the target dividing line to the vehicle is the same. This ensures that regardless of the first Bluetooth module's position on the vehicle, the actual distance for unlocking and locking the vehicle is the same, improving the user experience. Furthermore, this application relies on joint positioning based on the divided regions and signal strength, effectively enhancing the stability of positioning.

[0140] The above describes a Bluetooth positioning method provided by an embodiment of this application. The following describes an apparatus for performing the above Bluetooth positioning method.

[0141] Please see Figure 6 , Figure 6 This is a schematic diagram of a Bluetooth positioning device provided in an embodiment of this application. Figure 6 As shown, the device may include:

[0142] The signal acquisition module 601 is used to acquire the Bluetooth signal strengths received by the first Bluetooth module by the multiple vehicle Bluetooth modules respectively, and use them as multiple Bluetooth signal strengths.

[0143] The user positioning module 602 is used to determine the directional region and distance region where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signal strengths. The distance region is one of a first distance region and a second distance region. The first distance region is the region that unlocks the vehicle, and the second distance region is the region that locks the vehicle. The first distance region and the second distance region are two regions divided by a target dividing line. The target dividing line is determined by setting the second Bluetooth module in each preset directional region based on the Bluetooth signal strength of the second Bluetooth module received by multiple vehicle Bluetooth modules and the threshold values ​​that match each preset directional region. The threshold values ​​that match each preset directional region ensure that all points on the target dividing line are at the same distance from the vehicle.

[0144] In one possible implementation, when the second Bluetooth module is located at any position in the first distance region, the difference between the first value and the second value is greater than the first target threshold, and when the second Bluetooth module is located at any position in the second distance region, the difference between the first value and the second value is less than or equal to the first target threshold.

[0145] The first value is determined by the Bluetooth signal strength received by the second Bluetooth module from the vehicle Bluetooth modules closest to it among the multiple vehicle Bluetooth modules. The second value is determined by the Bluetooth signal strength received by the second Bluetooth module from the vehicle Bluetooth modules furthest from it among the multiple vehicle Bluetooth modules. The first target threshold refers to the threshold for matching in the directional region where the second Bluetooth module is located.

[0146] In one possible implementation, the process by which the user positioning module determines the directional and distance regions where the first Bluetooth module is located based on the relative strengths of multiple Bluetooth signal strengths may include:

[0147] The pre-trained region localization model is invoked to determine the directional and distance regions where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signal strengths. The region localization model is trained using multiple training Bluetooth signal strengths that are labeled with directional and distance regions as training data.

[0148] In one possible implementation, the process by which the user positioning module determines the directional and distance regions where the first Bluetooth module is located based on the relative strengths of multiple Bluetooth signal strengths may include:

[0149] The directional region where the first Bluetooth module is located is determined based on the relative strength of multiple Bluetooth signal strengths.

[0150] Obtain the difference threshold of the direction region where the first Bluetooth module is located, and use it as the second target threshold;

[0151] Multiple vehicle Bluetooth modules are divided into a first group and a second group, wherein the maximum distance between the vehicle Bluetooth module in the first group and the first Bluetooth module is less than the minimum distance between the vehicle Bluetooth module in the second group and the first Bluetooth module.

[0152] Based on the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module, a third value is determined. Based on the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module, a fourth value is determined. The difference between the third value and the fourth value is calculated as the target difference.

[0153] The target difference is compared with the second target threshold, and the distance area where the first Bluetooth module is located is determined based on the comparison result.

[0154] In one possible implementation, the process of the user positioning module determining a third value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module, and determining a fourth value based on the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module, may include:

[0155] Obtain the first weight of the vehicle Bluetooth module in the first group, and calculate the third value based on the first weight and the Bluetooth signal strength received by the vehicle Bluetooth module from the first Bluetooth module in the first group;

[0156] Obtain the second weight of the vehicle Bluetooth module in the second group, and calculate the fourth value based on the second weight and the Bluetooth signal strength received by the vehicle Bluetooth module from the first Bluetooth module in the second group.

[0157] In one possible implementation, the process by which the user positioning module compares the target difference with a second target threshold and determines the distance region where the first Bluetooth module is located based on the comparison result may include: comparing the target difference with the second target threshold; if the target difference is greater than the second target threshold, then determining that the first Bluetooth module is located in a first distance region; if the target difference is less than or equal to the second target threshold, then determining that the first Bluetooth module is located in a second distance region.

[0158] In one possible implementation, the aforementioned directional areas may include: the interior area of ​​the vehicle, the area directly in front of the vehicle, the area directly behind the vehicle, the area directly to the left of the vehicle, the area directly to the right of the vehicle, the area to the left front of the vehicle, the area to the left rear of the vehicle, the area to the right front of the vehicle, and the area to the right rear of the vehicle.

[0159] In one possible implementation, the Bluetooth positioning device provided in this application embodiment may further include an unlocking / locking control module.

[0160] The unlocking / locking control module is used to send an unlocking command to the vehicle to unlock the vehicle if the first Bluetooth module is in the first distance range, and to send a locking command to the vehicle to lock the vehicle if the first Bluetooth module is in the second distance range.

[0161] In one possible implementation, the Bluetooth positioning device provided in this application embodiment may further include a threshold adjustment module.

[0162] The threshold adjustment module is used to adjust the threshold values ​​of each preset directional region before the user positioning module determines the directional region and distance region where the first Bluetooth module is located based on the relative strength of multiple Bluetooth signal strengths. This ensures that all points on the target dividing line are at the same distance from the vehicle and meet the distance requirements for unlocking and locking the vehicle.

[0163] This application also provides an electronic device in its embodiments. (See reference...) Figure 7 The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0164] like Figure 7 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. When the electronic device is powered on, the RAM 703 also stores various programs and data required for the operation of the electronic device. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0165] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, memory cards, hard drives, etc.; and communication devices 709. Communication device 709 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0166] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the Bluetooth positioning methods provided in this application.

[0167] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the Bluetooth positioning methods provided in this application.

[0168] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0169] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0170] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0171] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A Bluetooth positioning method, characterized in that, include: The Bluetooth signal strengths received by multiple vehicle Bluetooth modules from the first Bluetooth module are obtained and used as multiple Bluetooth signal strengths. Based on the relative strength of the multiple Bluetooth signal strengths, the directional region and distance region where the first Bluetooth module is located are determined. The distance region is one of a first distance region and a second distance region. The first distance region is the region for unlocking the vehicle, and the second distance region is the region for locking the vehicle. The first distance region and the second distance region are two regions divided by a target dividing line. The target dividing line is determined by setting the second Bluetooth module in each preset directional region, based on the Bluetooth signal strength of the second Bluetooth module received by the multiple vehicle Bluetooth modules respectively, and the threshold values ​​that match each preset directional region. The threshold values ​​that match each preset directional region ensure that all points on the target dividing line are at the same distance from the vehicle.

2. The Bluetooth positioning method according to claim 1, characterized in that, When the second Bluetooth module is located at any position in the first distance region, the difference between the first value and the second value is greater than the first target threshold. When the second Bluetooth module is located at any position in the second distance region, the difference between the first value and the second value is less than or equal to the first target threshold. Wherein, the first value is determined by the Bluetooth signal strength received by the second Bluetooth module from the plurality of vehicle Bluetooth modules that are closest to the second Bluetooth module, the second value is determined by the Bluetooth signal strength received by the second Bluetooth module from the plurality of vehicle Bluetooth modules that are farthest from the second Bluetooth module, and the first target threshold refers to the threshold for matching in the directional region where the second Bluetooth module is located.

3. The Bluetooth positioning method according to claim 2, characterized in that, Determining the directional and distance regions of the first Bluetooth module based on the relative strengths of the plurality of Bluetooth signal strengths includes: The region positioning model is invoked to determine the directional region and distance region where the first Bluetooth module is located based on the relative strength of the multiple Bluetooth signal strengths. The region positioning model is trained using multiple training Bluetooth signal strengths that are labeled with directional and distance regions as training data.

4. The Bluetooth positioning method according to claim 2 or 3, characterized in that, Determining the directional and distance regions of the first Bluetooth module based on the relative strengths of the plurality of Bluetooth signal strengths includes: The directional region where the first Bluetooth module is located is determined based on the relative strength of the multiple Bluetooth signal strengths; Obtain the difference threshold of the direction region where the first Bluetooth module is located, and use it as the second target threshold; The plurality of vehicle Bluetooth modules are divided into a first group and a second group, wherein the maximum distance between the vehicle Bluetooth module in the first group and the first Bluetooth module is less than the minimum distance between the vehicle Bluetooth module in the second group and the first Bluetooth module. Based on the Bluetooth signal strength received by the vehicle Bluetooth module in the first group from the first Bluetooth module, a third value is determined; based on the Bluetooth signal strength received by the vehicle Bluetooth module in the second group from the first Bluetooth module, a fourth value is determined; and the difference between the third value and the fourth value is calculated as the target difference. The target difference is compared with the second target threshold, and the distance area where the first Bluetooth module is located is determined based on the comparison result.

5. The Bluetooth positioning method according to claim 4, characterized in that, The step of determining a third value based on the Bluetooth signal strength received by the vehicle Bluetooth module from the first Bluetooth module within the first group, and determining a fourth value based on the Bluetooth signal strength received by the vehicle Bluetooth module from the first Bluetooth module within the second group, includes: Obtain the first weight of the vehicle Bluetooth module in the first group, and calculate the third value based on the first weight and the Bluetooth signal strength received by the vehicle Bluetooth module from the first Bluetooth module in the first group; Obtain the second weight of the vehicle Bluetooth module in the second group, and calculate the fourth value based on the second weight and the Bluetooth signal strength received by the vehicle Bluetooth module from the first Bluetooth module in the second group.

6. The Bluetooth positioning method according to claim 4, characterized in that, The step of comparing the target difference with the second target threshold and determining the distance region where the first Bluetooth module is located based on the comparison result includes: The target difference is compared with the second target threshold. If the target difference is greater than the second target threshold, the first Bluetooth module is determined to be located in the first distance region. If the target difference is less than or equal to the second target threshold, the first Bluetooth module is determined to be located in the second distance region.

7. The Bluetooth positioning method according to claim 1, characterized in that, The directional areas include: the area inside the vehicle, the area directly in front of the vehicle, the area directly behind the vehicle, the area directly to the left of the vehicle, the area directly to the right of the vehicle, the area to the left front of the vehicle, the area to the left rear of the vehicle, the area to the right front of the vehicle, and the area to the right rear of the vehicle.

8. The Bluetooth positioning method according to claim 2, characterized in that, Also includes: If the first Bluetooth module is within the first distance range, an unlock command is sent to the vehicle to unlock the vehicle; If the first Bluetooth module is within the second distance range, a locking command is sent to the vehicle to lock the vehicle.

9. The Bluetooth positioning method according to claim 2, characterized in that, Before determining the directional and distance regions where the first Bluetooth module is located based on the relative strength of the plurality of Bluetooth signal strengths, the method further includes: Adjust the threshold values ​​of each preset directional region to match, so that all points on the target dividing line are at the same distance from the vehicle and meet the distance requirements for unlocking and locking the vehicle.

10. A Bluetooth positioning device, characterized in that, include: The signal acquisition module is used to acquire the Bluetooth signal strengths received by multiple vehicle Bluetooth modules from the first Bluetooth module, and use them as multiple Bluetooth signal strengths. The user positioning module is used to determine the directional region and distance region where the first Bluetooth module is located based on the relative strength of the plurality of Bluetooth signal strengths. The distance region is one of a first distance region and a second distance region. The first distance region is the region for unlocking the vehicle, and the second distance region is the region for locking the vehicle. The first distance region and the second distance region are two regions divided by a target dividing line. The target dividing line is determined by setting the second Bluetooth module in each preset directional region based on the Bluetooth signal strength of the second Bluetooth module received by the plurality of vehicle Bluetooth modules respectively, and the threshold values ​​that match each preset directional region respectively. The threshold values ​​that match each preset directional region respectively ensure that all points on the target dividing line are at the same distance from the vehicle.

11. A computer program product, characterized in that, It includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the Bluetooth positioning method as described in any one of claims 1 to 9.

12. An electronic device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program to enable the electronic device to implement the Bluetooth positioning method as described in any one of claims 1 to 9.

13. A computer storage medium, characterized in that, The storage medium carries one or more computer programs that, when executed by an electronic device, enable the electronic device to implement the Bluetooth positioning method as described in any one of claims 1 to 9.