Vehicle-mounted Bluetooth reconnection method and related device
By using positioning information to calculate the distance and decide whether to establish a connection when the vehicle reconnects Bluetooth with the mobile device, the problem of low Bluetooth resource occupation and reconnection success rate in the prior art is solved, and more efficient Bluetooth reconnection is achieved.
Patent Information
- Application Number
- CN202311377268.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2025-04-25
AI Technical Summary
The prior art is easy to occupy Bluetooth resources when the vehicle reconnects to the mobile device Bluetooth, and the reconnection success rate is low, especially because the vehicle cannot obtain the time returned by the mobile device in real time.
By monitoring the Bluetooth connection status of the mobile device and the vehicle, when disconnected, the positioning information of the vehicle and the mobile device is obtained, the distance between them is calculated, and whether to establish a Bluetooth connection is determined based on the distance threshold.
Reduce technical costs, avoid the use of Bluetooth resources, accurately confirm that the mobile device returns to the near vehicle, and improve the success rate of Bluetooth reconnection between the vehicle and the mobile device.
Smart Images

Figure CN119893740A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Bluetooth connection, and in particular to a vehicle-mounted Bluetooth reconnection method and related devices. Background Art
[0002] Using the Bluetooth of mobile electronic devices to connect to vehicles, such as using Bluetooth phone and Bluetooth music in the car, has become a familiar and accustomed operation for users. After the mobile electronic device and the vehicle Bluetooth connection is successful, if the mobile electronic device leaves the vehicle and then returns to the vehicle, it will automatically reconnect successfully without user operation. Due to the limitations of the Bluetooth protocol itself, the mobile electronic device cannot be notified through the Bluetooth protocol when it returns to the vicinity of the vehicle. Therefore, the current more mature solution for reconnection in the industry is that once the current mobile electronic device is found to be disconnected (the disconnection is not a scenario where it is manually disconnected from the vehicle), the vehicle will continue to actively initiate a connection request to the mobile electronic device within a power-on cycle. In order to ensure the success rate of the mobile electronic device returning to reconnect, most vehicles will continue to extend the request to initiate an active connection or initiate a connection intermittently to ensure the success rate of reconnection. However, this will cause the vehicle to continue to initiate the connection of the device, occupying Bluetooth resources. At the same time, since the vehicle cannot obtain the time when the mobile electronic device returns to the connectable range, there is a probability of reconnection failure.
[0003] Therefore, how to avoid Bluetooth resources from being occupied and improve the success rate of Bluetooth reconnection between vehicles and mobile devices is a technical problem that technicians in this field urgently need to solve. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a vehicle-mounted Bluetooth reconnection method and related devices to avoid Bluetooth resources being occupied and improve the success rate of Bluetooth reconnection between the vehicle and the mobile device.
[0005] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0006] A method for reconnecting a vehicle-mounted Bluetooth, the method comprising:
[0007] When it is detected that the Bluetooth connection between the mobile device and the vehicle is disconnected, the vehicle positioning information of the vehicle and the device positioning information of the mobile device are obtained;
[0008] Calculating the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information;
[0009] Whether to establish a Bluetooth connection between the vehicle and the mobile device is determined according to a magnitude relationship between the distance and a distance threshold.
[0010] In a possible implementation, the acquiring the vehicle positioning information of the vehicle and the device positioning information of the mobile device includes:
[0011] Query whether there is a Bluetooth binding between the mobile device and the vehicle;
[0012] When the mobile device is Bluetooth-bound with the vehicle, the step of acquiring the vehicle positioning information of the vehicle and the device positioning information of the mobile device is performed.
[0013] In a possible implementation, the method further includes:
[0014] When there is no Bluetooth binding between the mobile device and the vehicle, the acquisition of the vehicle positioning information of the vehicle and the device positioning information of the mobile device is stopped.
[0015] In a possible implementation, determining whether to establish a Bluetooth connection between the vehicle and the mobile device according to a magnitude relationship between the distance and a distance threshold includes:
[0016] When the distance is less than or equal to a distance threshold, a Bluetooth connection between the vehicle and the mobile device is established.
[0017] In a possible implementation, the method further includes:
[0018] When the distance is greater than the distance threshold, acquiring real-time vehicle positioning information of the vehicle as the vehicle positioning information, and acquiring real-time device positioning information of the mobile device as the device positioning information;
[0019] The step of calculating the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information and subsequent steps are performed.
[0020] A vehicle-mounted Bluetooth reconnection device, the device comprising:
[0021] A first acquisition unit, when monitoring that the Bluetooth of the mobile device is disconnected from the vehicle, is used to acquire the vehicle positioning information of the vehicle and the device positioning information of the mobile device;
[0022] A calculation unit, configured to calculate a distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information;
[0023] A determination unit is used to determine whether to establish a Bluetooth connection between the vehicle and the mobile device according to a relationship between the distance and a distance threshold.
[0024] In a possible implementation manner, the first acquiring unit includes:
[0025] A query unit, used to query whether there is a Bluetooth binding between the mobile device and the vehicle;
[0026] The first execution unit is used to execute the acquisition of the vehicle positioning information of the vehicle and the device positioning information of the mobile device when the mobile device is bound to the vehicle via Bluetooth.
[0027] In a possible implementation manner, the device further includes:
[0028] A discarding unit is used to discard the vehicle positioning information when there is no Bluetooth binding between the mobile device and the vehicle.
[0029] A mobile electronic device comprises: a memory, a processor, and a computer program stored in and executable on the memory, wherein when the processor executes the computer program, the above-mentioned vehicle-mounted Bluetooth reconnection method is implemented.
[0030] A computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the above-mentioned vehicle-mounted Bluetooth reconnection method.
[0031] Compared with the prior art, this application has the following beneficial effects:
[0032] The present application provides a vehicle-mounted Bluetooth reconnection method and related devices. Specifically, when executing the vehicle-mounted Bluetooth reconnection method provided in the embodiment of the present application, the vehicle positioning information of the vehicle and the device positioning information of the mobile device can be obtained first when the Bluetooth of the mobile device is detected to be disconnected from the vehicle. Next, the distance between the vehicle positioning information and the device positioning information is calculated. Finally, the vehicle is triggered to initiate a Bluetooth connection to the mobile device based on the distance. When the present application detects that the Bluetooth of the mobile device is disconnected from the vehicle, the distance between the mobile device and the vehicle is calculated to trigger the mobile device to actively initiate a Bluetooth connection with the vehicle, thereby reducing technical costs, avoiding the occupation of Bluetooth resources, and accurately confirming that the mobile device has returned to the vicinity of the vehicle, thereby improving the success rate of Bluetooth reconnection between the vehicle and the mobile device. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A schematic diagram of an exemplary application scenario provided for an embodiment of the present application;
[0035] Figure 2 A method flow chart of a method for reconnecting a vehicle-mounted Bluetooth provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of the structure of a vehicle-mounted Bluetooth reconnection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0039] In-car Bluetooth refers to a type of Bluetooth connection technology used for internal communication in a vehicle. Generally, in-car Bluetooth can support multiple connections and can be used to achieve data exchange and real-time communication between different devices. In-car Bluetooth is mainly used in three aspects: (1) Telephone communication: In-car Bluetooth can connect a mobile phone to the in-car system, thereby achieving hands-free calling in the car. Users only need to press the in-car control button or voice command button to use the phone function of the smartphone. At the same time, in-car Bluetooth can also read out text messages and other notifications and pass them on to passengers in the car. (2) Audio media playback: In-car Bluetooth can play audio media such as music, audiobooks, and map navigation voice prompts by connecting mobile devices (such as smartphones, tablets, etc.) to the in-car audio system. (3) Data exchange: In-car Bluetooth can also be used to achieve data exchange between in-car devices. For example, it can be used to transfer images and video files from a digital camera or other device to a car computer or other storage medium, or to transfer files from a car computer to a mobile device.
[0040] In order to ensure the success rate of Bluetooth reconnection when the mobile electronic device returns to the vicinity of the vehicle, most vehicles will continue to extend the request to initiate an active connection or initiate the connection intermittently to ensure the success rate of reconnection. However, this will cause the vehicle to continue to initiate the connection of the device, occupying Bluetooth resources. At the same time, since the vehicle cannot obtain the time when the mobile electronic device returns to the connectable range, there is a probability of reconnection failure.
[0041] In order to solve this problem, an embodiment of the present application provides a vehicle-mounted Bluetooth reconnection method and related devices, which first monitors the connection status of the Bluetooth of the mobile device with the vehicle, and after monitoring that the Bluetooth of the mobile device is disconnected from the vehicle, obtains the vehicle positioning information of the vehicle and the device positioning information of the mobile device. Calculate the distance between the vehicle positioning information and the device positioning information. Then, based on the relationship between the distance and the distance threshold, determine whether to establish a Bluetooth connection between the vehicle and the mobile device. After monitoring that the Bluetooth of the mobile device is disconnected from the vehicle, the present application triggers the mobile device and the vehicle to actively initiate a Bluetooth connection based on the relationship between the distance between the mobile device and the vehicle and the distance threshold, thereby reducing technical costs, avoiding the occupation of Bluetooth resources, and accurately confirming that the mobile device has returned to the vicinity of the vehicle, thereby improving the success rate of Bluetooth reconnection between the vehicle and the mobile device.
[0042] In order to facilitate understanding of the in-vehicle Bluetooth reconnection method provided in the embodiment of the present application, the following is combined with Figure 1 See the example scenario shown in the figure. Figure 1 , which is a framework diagram of an exemplary application scenario provided in an embodiment of the present application.
[0043] First, the mobile device monitors the Bluetooth connection status of the mobile device and the vehicle, and after monitoring that the Bluetooth of the mobile device is disconnected from the vehicle, the mobile device obtains the vehicle positioning information of the vehicle from the cloud server, and obtains its own device positioning information. The vehicle positioning information can be understood as the location information of the vehicle in the geographic space; the device positioning information can be understood as the location information of the mobile device (such as smart mobile electronic devices, tablet computers, etc.) in the geographic space. Then the mobile device needs to locate itself by using technologies such as the Global Positioning System (GPS), base station positioning (Cell Identity, Cell ID), Wi-Fi (Wireless Fidelity) positioning and Bluetooth positioning to obtain device positioning information; and calculate the distance between the vehicle and the mobile terminal based on the vehicle positioning information and the device positioning information. The distance is used to represent the relative distance between the mobile device and the vehicle in space. The mobile device can then determine whether to notify the vehicle to actively initiate a Bluetooth connection to the mobile device through the cloud server based on the relationship between the distance and the distance threshold (when the distance is less than or equal to the distance threshold, notify the cloud server that the mobile device returns to the distance threshold of the vehicle and establishes a Bluetooth connection between the vehicle and the mobile device; when the distance is greater than the distance threshold, reacquire the vehicle positioning information of the vehicle and the device positioning information of the mobile device), thereby reducing technical costs, avoiding the occupation of Bluetooth resources, accurately confirming that the mobile device has returned to the vicinity of the vehicle, and improving the success rate of Bluetooth reconnection between the vehicle and the mobile device.
[0044] Those skilled in the art will understand that Figure 1 The framework diagram shown is only an example in which the embodiments of the present application can be implemented. The scope of application of the embodiments of the present application is not limited by any aspect of the framework.
[0045] See also Figure 2 , which is a method flow chart of a method for reconnecting a vehicle-mounted Bluetooth provided in an embodiment of the present application, such as Figure 2 As shown, the vehicle-mounted Bluetooth reconnection method may include steps S201-S203:
[0046] S201: When it is detected that the Bluetooth of the mobile device is disconnected from the vehicle, the vehicle positioning information of the vehicle and the device positioning information of the mobile device are obtained.
[0047] When the mobile device detects that its Bluetooth is disconnected from the vehicle, the mobile device can obtain the vehicle positioning information of the vehicle from the cloud server and obtain its own device positioning information based on the positioning technology.
[0048] Among them, cloud server is a virtualized server based on cloud computing technology. It divides physical server resources into multiple virtual server instances to provide computing, storage, network and other resources on the cloud platform.
[0049] In order to achieve the reconnection of the vehicle's Bluetooth, firstly, the mobile device can monitor that the Bluetooth of the mobile device is disconnected from the vehicle, and then obtain the vehicle positioning information of the vehicle and the device positioning information of the mobile device.
[0050] In a possible implementation, the vehicle positioning information of a vehicle generally refers to the location information of the vehicle in geographic space. Such information may be obtained through a vehicle-mounted GPS or other vehicle-mounted navigation system and expressed in the form of longitude, latitude, altitude, and time. Specifically, the vehicle positioning information may include the longitude and latitude coordinates of the vehicle, and possible altitude information.
[0051] The vehicle positioning information of the vehicle is obtained through the vehicle positioning system. The following are some vehicle positioning technologies:
[0052] GPS: Like mobile devices, vehicle positioning systems use satellite signals to determine the vehicle's geographic location. GPS positioning is highly accurate and is suitable for locating vehicles in open areas.
[0053] GLONASS (Global Navigation Satellite System): GLONASS is Russia's global navigation satellite system, similar to GPS, and can also be used for vehicle positioning.
[0054] Beidou Navigation System: Beidou Navigation System is China's global satellite navigation system that can also provide positioning services for vehicles.
[0055] Base station positioning: The vehicle positioning system can communicate with base stations in the mobile communication network and use information such as signal strength and time difference between base stations to determine the location of the vehicle.
[0056] Inertial navigation: Vehicle positioning systems can use onboard sensors such as accelerometers, gyroscopes, etc., combined with kinematic algorithms to estimate the position and orientation of the vehicle. Inertial navigation is suitable for short-term positioning, but it will produce cumulative errors over time.
[0057] In-vehicle wireless communication network: Some vehicle positioning systems can utilize in-vehicle wireless communication networks, such as mobile networks, Internet of Vehicles, etc., to obtain vehicle location and related information by communicating with network infrastructure.
[0058] In one possible implementation, the device positioning information of a mobile device refers to the location information of the mobile device (such as a smart mobile electronic device, a tablet computer, etc.) in geographic space. This information is usually obtained using the built-in positioning technology of the mobile device (such as GPS, GLONASS, Wi-Fi positioning, base station positioning, etc.). The device positioning information is generally presented in the form of latitude and longitude coordinates, altitude and time, similar to vehicle positioning information. The specific location of the device can be determined through the positioning information of the mobile device.
[0059] The device location information of mobile devices is obtained through the built-in positioning technology of the mobile device. The following are some mobile device positioning technologies:
[0060] GPS: GPS is a satellite navigation system that determines the device's geographic location by receiving signals from satellites. GPS positioning is highly accurate and is suitable for outdoor environments and open areas.
[0061] Base station positioning: Mobile devices can communicate with base stations in the mobile communication network and use information such as signal strength and time difference between base stations to determine the approximate location of the device. The accuracy of base station positioning is relatively low and is suitable for urban and indoor environments.
[0062] Wi-Fi positioning: Mobile devices can scan the surrounding Wi-Fi signals and match them with the pre-collected Wi-Fi hotspot database to determine the location of the device. Wi-Fi positioning has higher accuracy than base station positioning and performs better in indoor environments.
[0063] Bluetooth positioning: A mobile device can determine the location of the device by scanning the surrounding Bluetooth signals and matching them with the pre-collected Bluetooth device location information. Bluetooth positioning is often used for indoor navigation and location tracking.
[0064] Other assisted positioning technologies: There are some other assisted positioning technologies, such as inertial navigation (using sensors such as accelerometers and gyroscopes), geomagnetic positioning (using changes in the earth's magnetic field to determine the location), etc.
[0065] Mobile devices usually combine multiple positioning technologies to obtain more accurate and reliable positioning information.
[0066] In a possible implementation, the acquiring the vehicle positioning information of the vehicle and the device positioning information of the mobile device includes A1-A2:
[0067] A1: Check whether there is Bluetooth binding between the mobile device and the vehicle.
[0068] There are two situations in which the Bluetooth connection between the mobile device and the vehicle is disconnected: one is that the distance between the mobile device and the vehicle exceeds the threshold, resulting in the disconnection of the Bluetooth connection between the mobile device and the vehicle; the other is that the Bluetooth connection between the mobile device and the vehicle is disconnected because the mobile device is manually unbound from the vehicle's Bluetooth. When the situation of "the Bluetooth connection between the mobile device and the vehicle is disconnected" occurs due to the manual unbinding of the mobile device from the vehicle's Bluetooth, it means that the person subjectively wants to disconnect the Bluetooth connection between the mobile device and the vehicle. In this case, there is no need to obtain the device location information of the mobile device. Because the mobile device has actively disconnected the Bluetooth connection with the vehicle, this indicates that the user does not want the mobile device to share data and communicate with the vehicle anymore, so there is no need to obtain the vehicle location information and the device location information of the mobile device. In this case, the system should respect the user's choice and stop obtaining the vehicle location information. Therefore, the mobile device also needs to query whether there is a Bluetooth binding between the mobile device and the vehicle.
[0069] A2: When the mobile device is bound to the vehicle via Bluetooth, the step of obtaining the vehicle positioning information of the vehicle and the device positioning information of the mobile device is performed.
[0070] Bluetooth binding establishes a trust relationship between the mobile device and the vehicle. Only when the two parties have established a trust relationship can data sharing and communication be carried out. In this way, unauthorized mobile devices can be prevented from querying the vehicle's location information, which poses a potential risk to the vehicle and user information. If the mobile device is not bound to the vehicle via Bluetooth, the request to query the vehicle's location information will be rejected, which can improve the security of the system.
[0071] Therefore, in order to increase the security of the system and prevent the unauthorized acquisition of the positioning information of the mobile device, the mobile device needs to verify whether the mobile device is associated with the vehicle by querying whether there is a Bluetooth binding between the mobile device and the vehicle, and when the mobile device and the vehicle are bound by Bluetooth, the mobile device obtains the device positioning information of the mobile device by using technologies such as the Global Positioning System (GPS), base station positioning (Cell ID), Wi-Fi positioning and Bluetooth positioning.
[0072] Among them, the vehicle positioning information obtained by the mobile device is provided by the cloud server, and the cloud server can directly obtain the vehicle positioning information of the vehicle through the vehicle positioning system.
[0073] In one possible implementation, to achieve Bluetooth binding between a mobile device and a vehicle, the following steps can be considered:
[0074] The vehicle and mobile device establish a Bluetooth connection: First, make sure both the vehicle and mobile device support the Bluetooth function and establish a Bluetooth connection between them. This can be done by searching and matching the vehicle device on the mobile device.
[0075] Authentication and confirmation of the bonding request: Once the Bluetooth connection is established, the vehicle and mobile device can exchange authentication information to ensure that both parties are legitimate and verify that the bonding operation is allowed. This can be achieved using digital certificates, key exchange, or other security mechanisms.
[0076] Create a binding relationship: After verification, the vehicle and mobile device can create a binding relationship as needed. The binding relationship can establish a trusted connection between the two for subsequent communication and data exchange.
[0077] Storing binding information: Once the binding relationship is successfully established, the relevant binding information can be stored on the vehicle and mobile device respectively. In this way, in the future connection process, both parties can use the stored binding information to automatically establish a connection without having to verify and confirm each time.
[0078] It should be noted that there are two different concepts and operations between Bluetooth binding and connection between mobile devices and vehicles:
[0079] Bluetooth binding: Bluetooth binding refers to pairing a mobile device with a vehicle so that they can recognize and trust each other. During the Bluetooth binding process, the mobile device and the vehicle will exchange some encryption keys or passwords to ensure the communication security between the two parties. Binding generally only needs to be performed during the initial pairing, and subsequent connections can directly use the established binding relationship.
[0080] Bluetooth connection: Bluetooth connection means that after the binding is completed, a Bluetooth communication link is established between the mobile device and the vehicle, which can transmit and interact data. When connected, the mobile device and the vehicle communicate through the Bluetooth protocol and can send and receive data to each other. The difference is mainly reflected in the operation object and operation purpose:
[0081] Bluetooth binding is to establish a trust relationship between the mobile device and the vehicle so that the subsequent connection process can be carried out faster and more securely. The Bluetooth connection is the actual communication connection based on the binding relationship, including data transmission and interaction.
[0082] In a possible implementation, the method further includes:
[0083] When there is no Bluetooth binding between the mobile device and the vehicle, the acquisition of the vehicle positioning information of the vehicle and the device positioning information of the mobile device is stopped.
[0084] When there is no Bluetooth binding between the mobile device and the vehicle, the mobile device stops obtaining the vehicle positioning information of the vehicle and the device positioning information of the mobile device, which can effectively protect user privacy, reduce the risk of data leakage, simplify system design, reduce resource consumption, and also meet legal compliance requirements.
[0085] S202: Calculate the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information.
[0086] After obtaining the vehicle positioning information of the vehicle, the mobile device also needs to obtain its own device positioning information and calculate the distance between itself and the vehicle by using technologies such as the Global Positioning System (GPS), base station positioning (Cell ID), Wi-Fi positioning and Bluetooth positioning.
[0087] In a possible implementation, the distance is used to represent the relative distance between the mobile device and the vehicle in space.
[0088] In a possible implementation, the distance between the device positioning information and the vehicle positioning information can be calculated using the distance calculation method in spatial geometry, among which the most commonly used method is to calculate the distance between two points. Assuming that the coordinates of the device positioning information are (x1, y1) and the coordinates of the vehicle positioning information are (x2, y2), the calculation can be performed according to the following steps:
[0089] Calculate the coordinate difference: Calculate the coordinate difference in the x direction and the y direction, that is, dx=x2-x1 and dy=y2-y1.
[0090] Calculate the sum of squares: Square the difference between dx and dy, that is, dx^2 and dy^2 respectively.
[0091] Calculate the square root of the sum of squares: Take the square root of the sum of the squares of dx^2 and dy^2, that is, sqrt(dx^2+dy^2), to get the distance.
[0092] After the above calculation, the distance value between the device positioning information and the vehicle positioning information can be obtained. This value can represent the spatial distance between the mobile device and the vehicle. It should be noted that when calculating the distance, it is necessary to calculate according to the specific coordinate system to ensure the accuracy of the result.
[0093] S203: Determine whether to establish a Bluetooth connection between the vehicle and the mobile device according to a relationship between the distance and a distance threshold.
[0094] After calculating the distance between the vehicle positioning information and the device positioning information, the mobile device can determine whether to notify the vehicle to actively initiate a Bluetooth connection to the mobile device through the cloud server based on the distance.
[0095] In a possible implementation, determining whether to establish a Bluetooth connection between the vehicle and the mobile device according to a magnitude relationship between the distance and a distance threshold includes:
[0096] When the distance is less than or equal to a distance threshold, a Bluetooth connection between the vehicle and the mobile device is established.
[0097] The mobile device determines whether to establish a Bluetooth connection between the vehicle and the mobile device based on the distance, and when the distance is less than or equal to the distance threshold, the mobile device informs the vehicle through the cloud service that it can establish a Bluetooth connection with the mobile device; or when the distance is less than or equal to the distance threshold, the mobile device actively initiates a Bluetooth connection with the vehicle. This can effectively save power, improve accuracy, enhance data security, achieve rapid response and reduce interference.
[0098] In a possible implementation, the distance threshold may be, but is not limited to, 10 meters. The present application does not impose any specific limitation on the distance threshold, and the user may adjust the distance threshold according to actual conditions.
[0099] In a possible implementation, the method further includes B1-B2:
[0100] B1: When the distance is greater than the distance threshold, real-time vehicle positioning information of the vehicle is obtained as the vehicle positioning information, and real-time device positioning information of the mobile device is obtained as the device positioning information.
[0101] When the distance is greater than the distance threshold, it means that the distance between the mobile device and the vehicle will cause the Bluetooth of the mobile device to fail to reconnect with the vehicle's Bluetooth. In this case, the mobile device needs to re-acquire the real-time vehicle positioning information of the vehicle as vehicle positioning information, and re-acquire the real-time device positioning information of the mobile device as device positioning information to recalculate the distance in preparation for Bluetooth reconnection.
[0102] B2: Execute the calculation based on the vehicle positioning information and the device positioning information to obtain the distance between the vehicle and the mobile device and the subsequent steps.
[0103] After obtaining the new vehicle positioning information and the new device positioning information, the mobile device can calculate the distance between itself and the vehicle based on the new positioning information, and determine whether to notify the vehicle to initiate a Bluetooth connection to the mobile device through the cloud service based on the distance.
[0104] By re-acquiring the real-time positioning information of vehicles and equipment, the latest location data can be obtained to achieve real-time monitoring of the location of vehicles and equipment. This can more accurately calculate the distance and timely reflect the actual distance between the vehicle and equipment.
[0105] Based on the contents of S201-S203, it can be known that, first, the vehicle positioning information of the vehicle and the device positioning information of the mobile device are obtained when the Bluetooth of the mobile device is detected to be disconnected from the vehicle. Next, the distance between the vehicle and the mobile device is calculated. Finally, it is determined whether to establish a Bluetooth connection between the vehicle and the mobile device based on the relationship between the distance and the distance threshold. After the present application detects that the Bluetooth of the mobile device is disconnected from the vehicle, the distance between the mobile device and the vehicle is calculated to trigger the mobile device to actively initiate a Bluetooth connection with the vehicle, thereby reducing technical costs, avoiding the occupation of Bluetooth resources, accurately confirming that the mobile device has returned to the vicinity of the vehicle, and improving the success rate of Bluetooth reconnection between the vehicle and the mobile device.
[0106] The above are some specific implementations of the in-vehicle Bluetooth reconnection method provided by the embodiment of the present application. Based on this, the present application also provides a corresponding in-vehicle Bluetooth reconnection device. The device provided by the embodiment of the present application will be introduced from the perspective of functional modularization.
[0107] See also Figure 3 , which is a schematic diagram of the structure of a vehicle-mounted Bluetooth reconnection device provided in an embodiment of the present application. Figure 3 As shown, the vehicle-mounted Bluetooth reconnection device includes:
[0108] The first acquisition unit 301 is used to acquire the vehicle positioning information of the vehicle and the device positioning information of the mobile device when monitoring that the Bluetooth of the mobile device is disconnected from the vehicle.
[0109] The calculation unit 302 is used to calculate the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information.
[0110] The determination unit 303 is configured to determine whether to establish a Bluetooth connection between the vehicle and the mobile device according to a relationship between the distance and a distance threshold.
[0111] In a possible implementation manner, the first acquiring unit includes:
[0112] The query unit is used to query whether there is a Bluetooth binding between the mobile device and the vehicle.
[0113] The first execution unit is used to execute the acquisition of the vehicle positioning information of the vehicle and the device positioning information of the mobile device when the mobile device is bound to the vehicle via Bluetooth.
[0114] In a possible implementation manner, the device further includes:
[0115] The blocking unit is used to prevent the first acquisition unit 301 from acquiring the vehicle positioning information of the vehicle and the device positioning information of the mobile device when there is no Bluetooth binding between the mobile device and the vehicle.
[0116] When there is no Bluetooth binding between the mobile device and the vehicle, stopping the vehicle positioning information of the vehicle and the device positioning information of the mobile device can effectively protect user privacy, reduce the risk of data leakage, simplify system design, reduce resource consumption, and also meet legal compliance requirements.
[0117] In a possible implementation manner, the determining unit is specifically configured to:
[0118] When the distance is less than or equal to a distance threshold, a Bluetooth connection between the vehicle and the mobile device is established.
[0119] In a possible implementation manner, the device further includes:
[0120] The second acquisition unit is configured to acquire the real-time vehicle positioning information of the vehicle as the vehicle positioning information, and acquire the real-time device positioning information of the mobile device as the device positioning information when the distance is greater than the distance threshold.
[0121] The second execution unit is used to execute the step of calculating the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information, and subsequent steps.
[0122] By re-acquiring the real-time positioning information of vehicles and equipment, the latest location data can be obtained to achieve real-time monitoring of the location of vehicles and equipment. This can more accurately calculate the distance and timely reflect the actual distance between the vehicle and equipment.
[0123] In addition, an embodiment of the present application also provides a reconnection device for in-vehicle Bluetooth, which includes a memory and a processor, wherein the memory is used to store programs or codes, and the processor is used to run the programs or codes stored in the memory to implement the above-mentioned in-vehicle Bluetooth reconnection method.
[0124] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the in-vehicle Bluetooth reconnection method as described above.
[0125] The embodiment of the present application provides a vehicle-mounted Bluetooth reconnection device. After the first acquisition unit 301 acquires the vehicle positioning information of the vehicle and the device positioning information of the mobile device when monitoring that the Bluetooth of the mobile device is disconnected from the vehicle, the calculation unit 302 calculates the distance between the vehicle positioning information and the device positioning information. The determination unit 303 determines whether to establish a Bluetooth connection between the vehicle and the mobile device based on the relationship between the distance and the distance threshold. When the present application monitors that the Bluetooth of the mobile device is disconnected from the vehicle, it triggers the mobile device and the vehicle to actively initiate a Bluetooth connection by calculating the distance between the mobile device and the vehicle, thereby reducing technical costs, avoiding the occupation of Bluetooth resources, and accurately confirming that the mobile device has returned to the vicinity of the vehicle, thereby improving the success rate of Bluetooth reconnection between the vehicle and the mobile device.
[0126] The above is a detailed introduction to a vehicle-mounted Bluetooth reconnection method and related devices provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0127] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0128] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0129] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0130] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may 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 conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for reconnecting a vehicle-mounted Bluetooth, characterized in that: The method comprises: When it is detected that the Bluetooth connection between the mobile device and the vehicle is disconnected, the vehicle positioning information of the vehicle and the device positioning information of the mobile device are obtained; Calculating the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information; Whether to establish a Bluetooth connection between the vehicle and the mobile device is determined according to a magnitude relationship between the distance and a distance threshold.
2. The method according to claim 1, characterized in that The acquiring the vehicle positioning information of the vehicle and the device positioning information of the mobile device includes: Query whether there is a Bluetooth binding between the mobile device and the vehicle; When the mobile device is Bluetooth-bound with the vehicle, the step of acquiring the vehicle positioning information of the vehicle and the device positioning information of the mobile device is performed.
3. The method according to claim 2, characterized in that The method further comprises: When there is no Bluetooth binding between the mobile device and the vehicle, the acquisition of the vehicle positioning information of the vehicle and the device positioning information of the mobile device is stopped.
4. The method according to claim 1, characterized in that: The determining whether to establish a Bluetooth connection between the vehicle and the mobile device according to the relationship between the distance and the distance threshold comprises: When the distance is less than or equal to a distance threshold, a Bluetooth connection between the vehicle and the mobile device is established.
5. The method according to claim 4, characterized in that The method further comprises: When the distance is greater than the distance threshold, acquiring real-time vehicle positioning information of the vehicle as the vehicle positioning information, and acquiring real-time device positioning information of the mobile device as the device positioning information; The step of calculating the distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information and subsequent steps are performed.
6. A vehicle-mounted Bluetooth reconnection device, characterized in that: The device comprises: A first acquisition unit, when monitoring that the Bluetooth of the mobile device is disconnected from the vehicle, is used to acquire the vehicle positioning information of the vehicle and the device positioning information of the mobile device; A calculation unit, configured to calculate a distance between the vehicle and the mobile device based on the vehicle positioning information and the device positioning information; A determination unit is used to determine whether to establish a Bluetooth connection between the vehicle and the mobile device according to a relationship between the distance and a distance threshold.
7. The device according to claim 6, characterized in that The first acquiring unit includes: A query unit, used to query whether there is a Bluetooth binding between the mobile device and the vehicle; The first execution unit is used to execute the acquisition of the vehicle positioning information of the vehicle and the device positioning information of the mobile device when the mobile device is bound to the vehicle via Bluetooth.
8. The device according to claim 7, characterized in that The device also includes: A discarding unit is used to discard the vehicle positioning information when there is no Bluetooth binding between the mobile device and the vehicle.
9. A mobile electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the memory, wherein when the processor executes the computer program, the in-vehicle Bluetooth reconnection method as described in any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on the terminal device, the terminal device executes the in-vehicle Bluetooth reconnection method according to any one of claims 1 to 5.