Bluetooth connection method and device, electronic equipment and storage medium

By starting the Bluetooth automatic connection service in the on-board system, identifying and connecting paired devices, monitoring and adjusting the connection strategy according to the scenario, the problem of unstable connection in complex scenarios is solved, and a higher connection success rate and system performance is achieved.

CN119545580APending Publication Date: 2025-02-28ECARX (HUBEI) TECHCO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411227199.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

It is difficult for existing vehicle-mounted systems to achieve stable and reliable Bluetooth connection in complex scenarios, affecting the user experience.

Method used

By starting the Bluetooth automatic connection service when the car machine is started, you can identify paired electronic devices, read dynamic configuration files, monitor the connection scenario, and establish a Bluetooth connection according to the corresponding connection strategy of the scene.

Benefits of technology

Make full use of dynamic configuration files and adopt targeted connection strategies according to different connection scenarios to ensure connection stability in each scenario, improve connection success rate, take into account system performance, and provide users with a stable and reliable Bluetooth connection experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545580A_ABST
    Figure CN119545580A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a Bluetooth connection method and device, electronic equipment and a storage medium, and the method comprises the steps: starting a Bluetooth automatic connection service of a vehicle-mounted terminal under the condition that the vehicle-mounted terminal is started, and recognizing the electronic equipment paired with the vehicle-mounted terminal through the Bluetooth automatic connection service; reading a dynamic configuration file from the electronic equipment, wherein the dynamic configuration file comprises equipment identification information and Bluetooth attribute information; in the process of establishing connection with the electronic equipment through the dynamic configuration file, monitoring a connection scene; and establishing a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet technology, and in particular, relates to a Bluetooth connection method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of in-vehicle infotainment systems, in-vehicle Bluetooth connection has become one of the essential functions in in-vehicle systems. In-vehicle Bluetooth connection is mainly used to realize data transmission and interaction between the in-vehicle system and mobile terminal devices such as mobile phones and tablets, such as playing music, making calls, navigation, etc.

[0003] In actual use, the in-vehicle system needs to be able to automatically detect and connect to the mobile devices that the user has paired before to improve the user experience and reduce manual operation steps. Currently, the in-vehicle system usually adopts the following two main automatic connection strategies:

[0004] Infinite retry connection strategy, the vehicle system will continue to try to connect to the device that the user has paired before until it is successfully connected. This strategy can maximize the connection success rate, but it may also lead to continuous consumption of system resources and affect overall performance.

[0005] The time-limited retry connection strategy means that the vehicle system will try to connect to the device that the user has paired with before within a specified time, and stop the connection attempt when the time is up. This strategy can avoid occupying system resources for a long time, but if the connection cannot be completed within the specified time, the goal of automatic connection cannot be achieved in the end.

[0006] At present, it is impossible to achieve stable and reliable connection of the vehicle system in various complex scenarios, which affects the user experience. Summary of the invention

[0007] The embodiments of the present application provide a Bluetooth connection method, device, equipment and storage medium, which can solve the problem that the current vehicle-mounted system cannot maintain a stable and reliable connection in various complex scenarios.

[0008] In a first aspect, an embodiment of the present application provides a Bluetooth connection method, the method comprising:

[0009] When the vehicle computer is started, the Bluetooth automatic connection service of the vehicle computer is started, and the electronic device paired with the vehicle computer is identified through the Bluetooth automatic connection service;

[0010] Reading a dynamic configuration file from the electronic device, the dynamic configuration file including: device identification information and Bluetooth attribute information;

[0011] Monitoring connection scenarios during the process of establishing a connection with an electronic device through a dynamic profile;

[0012] Establish a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scenario.

[0013] In a second aspect, an embodiment of the present application provides a Bluetooth connection device, the Bluetooth connection device comprising:

[0014] A Bluetooth automatic connection service startup module is used to start the Bluetooth automatic connection service of the vehicle computer when the vehicle computer is started, and identify the electronic device that has been paired with the vehicle computer through the Bluetooth automatic connection service;

[0015] A Bluetooth automatic connection service reading module is used to read a dynamic configuration file from an electronic device, wherein the dynamic configuration file includes: device identification information and Bluetooth attribute information;

[0016] A Bluetooth automatic connection service monitoring module is used to monitor the connection scenario during the process of establishing a connection with an electronic device through a dynamic configuration file;

[0017] The Bluetooth automatic connection service connection module is used to establish a Bluetooth connection with an electronic device through a connection strategy corresponding to a connection scenario.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the method in the first aspect or any possible implementation of the first aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method in the first aspect or any possible implementation of the first aspect is implemented.

[0020] In the embodiment of the present application, when the vehicle computer is started, the Bluetooth automatic connection service of the vehicle computer is started, and the electronic device that has been paired with the vehicle computer is identified through the Bluetooth automatic connection service; a dynamic configuration file is read from the electronic device, and the dynamic configuration file includes: device identification information and Bluetooth attribute information; in the process of establishing a connection with the electronic device through the dynamic configuration file, the connection scenario is monitored; and a Bluetooth connection is established with the electronic device through a connection strategy corresponding to the connection scenario. In this way, the dynamic configuration file can be fully utilized, and targeted connection strategies can be adopted according to different connection scenarios to ensure the stability of the connection in each scenario, while improving the connection success rate and taking into account the system performance, providing users with a more stable and reliable Bluetooth connection experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 is a flow chart of a Bluetooth connection method provided by an embodiment of the present application;

[0023] Figure 2 is a flow chart of another Bluetooth connection method provided by an embodiment of the present application;

[0024] Figure 3 is a schematic diagram of the structure of a Bluetooth connection device provided in an embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0027] It should 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 statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0028] The following is a brief introduction to the technical terms involved in this application.

[0029] A2DP (Advanced Audio Distribution Profile) audio / multimedia transmission protocol:

[0030] This protocol is used to transmit high-quality audio data, such as music, video, etc., between the vehicle system and the mobile device. Supporting the A2DP protocol can realize the audio / video transmission and playback functions between the vehicle system and the mobile device.

[0031] HFP (Hands-Free Profile) hands-free call protocol:

[0032] This protocol is used to implement hands-free calling functions between the vehicle system and the mobile device, such as answering / making calls, voice control, etc. Supporting the HFP protocol allows the driver to talk safely while driving.

[0033] PBAP (Phone Book Access Profile) address book management protocol:

[0034] This protocol is used to implement the address book synchronization function between the vehicle system and the mobile device, such as viewing contacts, call logs, etc. Supporting the PBAP protocol enables the driver to directly access the address book information on the mobile device through the vehicle system.

[0035] In addition to the basic Bluetooth connection function, the in-vehicle infotainment system usually needs to support the above-mentioned common Bluetooth transmission protocols. The support of these Bluetooth transmission protocols enables the in-vehicle infotainment system to have more in-depth and extensive information interaction with mobile devices, providing users with a more intelligent and rich experience.

[0036] The Bluetooth connection method provided in the embodiment of the present application can be applied to at least the following application scenarios, which are described below.

[0037] Figure 1 It is a flowchart of a Bluetooth connection method provided in an embodiment of the present application.

[0038] like Figure 1 As shown, the Bluetooth connection method may include steps 110 to 130, and the method is applied to a Bluetooth connection device, as shown below:

[0039] Step 110, when the vehicle computer is started, start the Bluetooth automatic connection service of the vehicle computer, and identify the electronic device that has been paired with the vehicle computer through the Bluetooth automatic connection service;

[0040] Step 120, reading a dynamic configuration file from the electronic device, the dynamic configuration file including: device identification information and Bluetooth attribute information;

[0041] Step 130, in the process of establishing a connection with the electronic device through the dynamic configuration file, monitoring the connection scenario;

[0042] Step 140, establish a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scenario. In an embodiment of the present application, by starting the Bluetooth automatic connection service of the vehicle computer when the vehicle computer is started, the Bluetooth automatic connection service is used to identify the electronic device that has been paired with the vehicle computer; read a dynamic configuration file from the electronic device, the dynamic configuration file includes: device identification information and Bluetooth attribute information; in the process of establishing a connection with the electronic device through the dynamic configuration file, monitor the connection scenario; establish a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scenario. In this way, it is possible to make full use of the dynamic configuration file, adopt targeted connection strategies according to different connection scenarios, ensure the stability of the connection in each scenario, take into account system performance while improving the connection success rate, and provide users with a more stable and reliable Bluetooth connection experience.

[0043] The contents of step 110 to step 140 are described below respectively:

[0044] This involves step 110 .

[0045] When the vehicle computer is started, the Bluetooth automatic connection service of the vehicle computer is started, and the electronic device paired with the vehicle computer is identified through the Bluetooth automatic connection service.

[0046] Bluetooth automatic connection service, also known as core service, has the following main features:

[0047] Dynamic adaptation: core services can quickly and efficiently adjust functions and parameters dynamically through configuration files, without large-scale modifications to applications. When there is a need for change, only the configuration file needs to be updated.

[0048] No-sense application, Bluetooth automatic connection runs as a background service, which is unaware of the application. Users can enjoy the automatic connection function without directly operating Bluetooth.

[0049] Dynamically read configuration. The core service can read the configuration parameters of the project device. When the user pairs the Bluetooth device, it will perform corresponding processing based on these dynamic configurations.

[0050] Scenario processing: For different scenarios, such as staying away from the car computer, turning on and off Bluetooth, restarting the car computer, etc., the core services have corresponding processing strategies.

[0051] To improve user experience, the core service will display relevant interface information to users during the connection process to improve the user's interactive experience.

[0052] Optimize connection strategies. Core services optimize current connection strategies, such as unlimited connection attempts and time-limited connections, to improve stable connection rates.

[0053] As a flexible and efficient background service, the core service provides applications with seamless and intelligent Bluetooth automatic connection functions through dynamic configuration files, and can continuously optimize the user experience.

[0054] This involves step 120 .

[0055] A dynamic configuration file is read from the electronic device, where the dynamic configuration file includes: device identification information and Bluetooth attribute information.

[0056] Device identification information, such as device name, MAC address, etc.

[0057] Bluetooth attribute information, such as supported Bluetooth profiles, connection status, etc.

[0058] Specifically, the Bluetooth attribute information may include: A2DP audio, A2DP multimedia, electronic device channel phone, PBAP contacts and PBAP call records, etc.

[0059] This involves step 130 .

[0060] During the process of establishing a connection with an electronic device through a dynamic profile, the connection scenario is monitored.

[0061] The connection scenarios mentioned above may include:

[0062] The distance between the electronic device and the vehicle is greater than the preset distance;

[0063] The Bluetooth status is switched from off to on;

[0064] The initial connection scenario when the electronic device is first put into the car;

[0065] The car computer restarts;

[0066] Reconnection scenarios when re-entering a vehicle after an electronic device is disconnected;

[0067] Scenarios where electronic devices move around in a car, causing signal strength changes;

[0068] Scenarios where electronic devices run out of power or enter standby mode.

[0069] This involves step 140 .

[0070] Establish a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scenario.

[0071] For the first connection scenario, a connection request is initiated immediately after reading the device information.

[0072] For reconnection scenarios, the system automatically tries to reconnect within 2 minutes and prompts the user if the connection fails.

[0073] For signal strength changes, monitor the connection quality in real time, adjust the transmit power if the quality decreases, and reconnect if necessary;

[0074] In the case of power exhaustion or standby, the device will automatically reconnect after it returns to normal.

[0075] like Figure 2 As shown, in a possible embodiment, step 140 includes:

[0076] Step 210, when the connection scenario is when the distance between the electronic device and the vehicle is greater than a preset distance, determining the connection strategy to be detecting the user's screen operation behavior;

[0077] Step 220: Establish a Bluetooth connection with the electronic device according to the detected user screen operation behavior within the first preset time period.

[0078] If the user is detected to have screen operation within the first preset time period, the reconnection operation is immediately performed to establish a Bluetooth connection with the electronic device; if no screen operation of the user is detected within the first preset time period, the reconnection operation is stopped and the next attempt is made when the user operates.

[0079] Exemplarily, the first preset time period may be 5 minutes.

[0080] In addition, the user voice input instruction can also be detected, and a Bluetooth connection can be established with the electronic device according to the detected user voice input instruction. The user voice input instruction is similar to the instruction content of the user's screen operation behavior.

[0081] Therefore, when the distance between the electronic device and the vehicle computer is greater than the preset threshold, the system will adopt a connection strategy to detect the user's screen operation behavior. Within the first preset time period, if the user is detected to have screen operation, the reconnection operation will be performed immediately to establish a Bluetooth connection with the electronic device; if no user operation is detected within this time, the reconnection will be suspended and wait for the next user operation to try again. This can not only improve the initiative of the connection, but also reduce unnecessary reconnection attempts, and improve the overall efficiency of the system.

[0082] In a possible embodiment, step 220 includes:

[0083] If the user is detected operating the screen within the first preset time period, a reconnection operation is performed;

[0084] If no user screen operation is detected within the first preset time period, the reconnection operation is stopped.

[0085] For example, if the user is detected to have screen operation within 5 minutes, the reconnection operation is immediately performed to establish a Bluetooth connection with the electronic device;

[0086] If no screen operation by the user is detected within 5 minutes, the reconnection operation will be stopped and the next attempt will be made when the user operates again.

[0087] Therefore, when the distance between the electronic device and the vehicle computer is greater than the preset threshold, the system will adopt a connection strategy to detect the user's screen operation behavior. Within the first preset time period, if the user is detected to have screen operation, the reconnection operation will be performed immediately; if no user operation is detected within this time, the reconnection will be suspended and wait for the next user operation to try again. This can not only improve the initiative of the connection, but also reduce unnecessary reconnection attempts, and improve the overall efficiency of the system.

[0088] In a possible embodiment, within the second time period, if the electronic device and the vehicle computer do not establish a Bluetooth connection, a first prompt message is output, where the first prompt message is used to indicate that the electronic device is not within the Bluetooth connection range;

[0089] When receiving an input of a connection option in the first prompt information from the user, continue to perform the reconnection operation;

[0090] When receiving a cancel option input from the user for the first prompt information, the reconnection operation is stopped.

[0091] Exemplarily, the second preset time period may be 2 minutes.

[0092] Check whether a Bluetooth connection has been established with the electronic device within a second preset time period; if a Bluetooth connection cannot be established with the electronic device within the second preset time period, output a first prompt message to prompt the user that the electronic device is not within the Bluetooth connection range; if a Bluetooth connection has been established with the electronic device within the second preset time period, skip this step.

[0093] When receiving the user input of the connection option of the first prompt information, continue to perform the reconnection operation and try to re-establish the Bluetooth connection. When receiving the user input of the cancel option of the first prompt information, stop performing the reconnection operation and wait for the next user operation.

[0094] Therefore, if a Bluetooth connection with the electronic device cannot be established within the second preset time period, a prompt message is output to allow the user to choose whether to continue the connection. If the user chooses to continue, the system will continue to perform the reconnection operation; if the user chooses to cancel, the system will stop the reconnection and wait for the next user operation. This can improve the initiative of the connection and reasonably control the reconnection behavior according to the user's wishes, thereby improving the overall user experience of the system.

[0095] In a possible embodiment, when the number of reconnection failures is greater than a preset number, a second prompt message is output, and the second prompt message is used to prompt the user to keep the electronic device near the vehicle computer.

[0096] If the number of reconnection failures is greater than a preset number, a second prompt message is output to prompt the user to keep the electronic device near the vehicle computer.

[0097] Exemplarily, the preset number of times is 3 times.

[0098] This can guide users to take appropriate measures to ensure that the electronic device is within the connection range of the vehicle computer in the event of a connection failure, ultimately achieving a stable Bluetooth connection.

[0099] In a possible embodiment, step 140 includes:

[0100] When the connection scenario is that the Bluetooth state is switched from an off state to an on state, determining the connection strategy to automatically connect to the previously paired electronic device;

[0101] Performs an operation to automatically connect to a previously paired electronic device.

[0102] Continuously monitor the Bluetooth connection status. Once it detects that it has switched from the off state to the on state, it will enter the automatic connection process. Get the list of previously paired devices: Find and obtain the list of previously paired electronic devices in the vehicle system. Then, automatically connect to the previously paired device.

[0103] You can try to connect each electronic device in the list in turn, and if a device is successfully connected, a prompt message will be output. If all devices cannot be automatically connected successfully, a prompt message will be output, requiring the user to manually select the device to connect.

[0104] Therefore, when the Bluetooth status is switched from off to on, it automatically tries to connect to the electronic devices that have been paired with the vehicle system before, improving the user experience. If all automatic connections fail, the user is prompted to manually select the device to be connected.

[0105] In a possible embodiment, step 140 includes:

[0106] When the connection scenario is vehicle restart, the connection strategy is determined to be automatically connected to the previously paired electronic device;

[0107] Performs an operation to automatically connect to a previously paired electronic device.

[0108] Continuously monitor the startup status of the vehicle system. Once the vehicle computer is detected to be restarted, it will enter the automatic connection process. Get the list of previously paired devices, that is, retrieve and obtain the list of previously paired electronic devices in the vehicle system.

[0109] Then, the previously paired device is automatically connected, and each electronic device in the list is tried in turn. If a device is successfully connected, a prompt message is output to inform the user that the connection is successful. If all devices cannot be automatically connected successfully, a prompt message is output, requiring the user to manually select the device to connect.

[0110] Therefore, when the car computer restarts, it can automatically try to connect to the previously paired electronic devices, improving the user experience and reducing the number of manual operations. If all automatic connections fail, the user will be prompted to manually select the device to connect.

[0111] In the embodiment of the present application, when the vehicle computer is started, the Bluetooth automatic connection service of the vehicle computer is started, and the electronic device that has been paired with the vehicle computer is identified through the Bluetooth automatic connection service; a dynamic configuration file is read from the electronic device, and the dynamic configuration file includes: device identification information and Bluetooth attribute information; in the process of establishing a connection with the electronic device through the dynamic configuration file, the connection scenario is monitored; and a Bluetooth connection is established with the electronic device through a connection strategy corresponding to the connection scenario. In this way, the dynamic configuration file can be fully utilized, and targeted connection strategies can be adopted according to different connection scenarios to ensure the stability of the connection in each scenario, while improving the connection success rate and taking into account the system performance, providing users with a more stable and reliable Bluetooth connection experience.

[0112] Based on the above Figure 1 The Bluetooth connection method shown in the embodiment of the present application also provides a Bluetooth connection device, such as Figure 3 As shown, the Bluetooth connection device 300 may include:

[0113] The Bluetooth automatic connection service starting module 310 is used to start the Bluetooth automatic connection service of the vehicle computer when the vehicle computer is started, and identify the electronic device that has been paired with the vehicle computer through the Bluetooth automatic connection service;

[0114] The Bluetooth automatic connection service reading module 320 is used to read a dynamic configuration file from an electronic device, where the dynamic configuration file includes: device identification information and Bluetooth attribute information;

[0115] A Bluetooth automatic connection service monitoring module 330 is used to monitor the connection scenario during the process of establishing a connection with the electronic device through a dynamic configuration file;

[0116] The Bluetooth automatic connection service connection module 340 is used to establish a Bluetooth connection with an electronic device through a connection strategy corresponding to a connection scenario.

[0117] In a possible embodiment, the Bluetooth automatic connection service connection module 340 is specifically used to:

[0118] In the case where the connection scenario is when the distance between the electronic device and the vehicle computer is greater than a preset distance, determining the connection strategy is to detect the user's screen operation behavior;

[0119] During a first preset time period, a Bluetooth connection is established with the electronic device based on the detected screen operation behavior of the user.

[0120] In a possible embodiment, the Bluetooth automatic connection service connection module 340 is specifically used to:

[0121] If the user is detected operating the screen within the first preset time period, a reconnection operation is performed;

[0122] If no user screen operation is detected within the first preset time period, the reconnection operation is stopped.

[0123] In a possible embodiment, the Bluetooth connection device 300 may further include:

[0124] A first output module, configured to output first prompt information if no Bluetooth connection is established between the electronic device and the vehicle computer within a second time period, wherein the first prompt information is used to indicate that the electronic device is not within a Bluetooth connection range;

[0125] an execution module, configured to continue to execute the reconnection operation when receiving a user input of a connection option in the first prompt information;

[0126] The execution module is further configured to stop executing the reconnection operation when receiving a user input of a cancel option for the first prompt information.

[0127] In a possible embodiment, the Bluetooth connection device 300 may further include:

[0128] The second output module outputs a second prompt message when the number of reconnection failures is greater than a preset number, and the second prompt message is used to prompt the user to keep the electronic device near the vehicle computer.

[0129] In a possible embodiment, the Bluetooth automatic connection service connection module 340 is specifically used to:

[0130] When the connection scenario is that the Bluetooth state is switched from an off state to an on state, determining the connection strategy to automatically connect to the previously paired electronic device;

[0131] Performs an operation to automatically connect to a previously paired electronic device.

[0132] In a possible embodiment, the Bluetooth automatic connection service connection module 340 is specifically used to:

[0133] When the connection scenario is vehicle restart, the connection strategy is determined to be automatically connected to the previously paired electronic device;

[0134] Performs an operation to automatically connect to a previously paired electronic device.

[0135] In the embodiment of the present application, when the vehicle computer is started, the Bluetooth automatic connection service of the vehicle computer is started, and the electronic device that has been paired with the vehicle computer is identified through the Bluetooth automatic connection service; a dynamic configuration file is read from the electronic device, and the dynamic configuration file includes: device identification information and Bluetooth attribute information; in the process of establishing a connection with the electronic device through the dynamic configuration file, the connection scenario is monitored; and a Bluetooth connection is established with the electronic device through a connection strategy corresponding to the connection scenario. In this way, the dynamic configuration file can be fully utilized, and targeted connection strategies can be adopted according to different connection scenarios to ensure the stability of the connection in each scenario, while improving the connection success rate and taking into account the system performance, providing users with a more stable and reliable Bluetooth connection experience.

[0136] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0137] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0138] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0139] The memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 402 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 402 is a non-volatile solid-state memory. In a specific embodiment, the memory 402 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0140] The processor 401 implements any one of the Bluetooth connection methods in the embodiments shown in the figure by reading and executing the computer program instructions stored in the memory 402.

[0141] In one example, the electronic device may further include a communication interface 404 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 404 are connected via a bus 410 and communicate with each other.

[0142] The communication interface 404 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0143] Bus 410 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0144] The electronic device can execute the Bluetooth connection method in the embodiment of the present application, thereby realizing the combination Figure 1-Figure 2 Describes the Bluetooth connection method.

[0145] In addition, in combination with the Bluetooth connection method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium to implement. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the Figure 1-Figure 2 Bluetooth connection method.

[0146] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0147] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0148] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0149] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A Bluetooth connection method, characterized in that: The method comprises: When the vehicle computer is started, the Bluetooth automatic connection service of the vehicle computer is started, and the electronic device paired with the vehicle computer is identified through the Bluetooth automatic connection service; Reading a dynamic configuration file from the electronic device, the dynamic configuration file including: device identification information and Bluetooth attribute information; Monitoring connection scenarios during the process of establishing a connection with an electronic device through a dynamic profile; Establish a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scenario.

2. The method according to claim 1, characterized in that Establish a Bluetooth connection with the electronic device through a connection strategy corresponding to the connection scenario, including: In the case where the connection scenario is when the distance between the electronic device and the vehicle computer is greater than a preset distance, determining the connection strategy is to detect the user's screen operation behavior; During a first preset time period, a Bluetooth connection is established with the electronic device based on the detected screen operation behavior of the user.

3. The method according to claim 2, characterized in that The step of establishing a Bluetooth connection with the electronic device according to the detected user screen operation behavior during the first time period includes: If the user is detected operating the screen within the first preset time period, a reconnection operation is performed; If no user screen operation is detected within the first preset time period, the reconnection operation is stopped.

4. The method according to claim 2, characterized in that: The method further comprises: In the second time period, if the electronic device and the vehicle computer do not establish a Bluetooth connection, a first prompt message is output, where the first prompt message is used to indicate that the electronic device is not within the Bluetooth connection range; When receiving an input of a connection option in the first prompt information from the user, continue to perform the reconnection operation; When receiving a cancel option input from the user for the first prompt information, the reconnection operation is stopped.

5. The method according to claim 2, characterized in that: The method further comprises: When the number of reconnection failures is greater than a preset number, a second prompt message is output, and the second prompt message is used to prompt the user to keep the electronic device near the vehicle computer.

6. The method according to claim 1, characterized in that The establishing of a Bluetooth connection with the electronic device by using a connection strategy corresponding to the connection scenario includes: When the connection scenario is that the Bluetooth state is switched from an off state to an on state, determining the connection strategy to automatically connect to the previously paired electronic device; Performs an operation to automatically connect to a previously paired electronic device.

7. The method according to claim 1, characterized in that The establishing of a Bluetooth connection with the electronic device by using a connection strategy corresponding to the connection scenario includes: When the connection scenario is vehicle restart, the connection strategy is determined to be automatically connected to the previously paired electronic device; Performs an operation to automatically connect to a previously paired electronic device.

8. A Bluetooth connection device, characterized in that: The Bluetooth connection device comprises: A Bluetooth automatic connection service startup module is used to start the Bluetooth automatic connection service of the vehicle computer when the vehicle computer is started, and identify the electronic device that has been paired with the vehicle computer through the Bluetooth automatic connection service; A Bluetooth automatic connection service reading module is used to read a dynamic configuration file from an electronic device, wherein the dynamic configuration file includes: device identification information and Bluetooth attribute information; A Bluetooth automatic connection service monitoring module is used to monitor the connection scenario during the process of establishing a connection with an electronic device through a dynamic configuration file; The Bluetooth automatic connection service connection module is used to establish a Bluetooth connection with an electronic device through a connection strategy corresponding to a connection scenario.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the Bluetooth connection method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the Bluetooth connection method according to any one of claims 1 to 7 is implemented.