Vehicle-mounted bluetooth connection method, vehicle-mounted controller and storage medium

By automatically switching the communication mode of the vehicle's Bluetooth, the privacy leakage problem caused by the vehicle's Bluetooth only being able to connect to a mobile phone is solved, thus improving the user experience.

CN115866718BActive Publication Date: 2026-07-14BYD CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BYD CO LTD
Filing Date
2021-09-27
Publication Date
2026-07-14

Smart Images

  • Figure CN115866718B_ABST
    Figure CN115866718B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a vehicle-mounted Bluetooth connection method, a vehicle-mounted controller and a storage medium, comprising: obtaining a first communication mode of a Bluetooth device requesting connection, switching the communication mode of the vehicle-mounted Bluetooth to a second communication mode, and establishing the connection between the vehicle-mounted Bluetooth and the Bluetooth device, wherein either the first communication mode or the second communication mode is a Bluetooth earphone mode, and the other is a mobile phone mode matched with the Bluetooth earphone mode. The present application can realize the connection between the vehicle-mounted Bluetooth and the Bluetooth earphone, and solve the problem of user privacy leakage when the user uses the vehicle-mounted Bluetooth to answer the phone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communications, and more particularly to a vehicle Bluetooth connection method, vehicle controller, and storage medium. Background Technology

[0002] With the development of technology and the automotive industry, cars have become the main means of transportation for people to travel. While driving, users can play music from their mobile phones and make incoming calls via Bluetooth through the car audio system, thus enhancing the driving experience.

[0003] In related technologies, the car's Bluetooth can only connect to a mobile phone. As a result, when a call comes in, in order to avoid distracting the driver by answering the call on the mobile phone, the voice is amplified through the car's Bluetooth, which may leak the user's privacy. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a vehicle Bluetooth connection method, a vehicle controller, and a storage medium.

[0005] According to a first aspect of the present disclosure, a method for connecting via in-vehicle Bluetooth is provided, comprising:

[0006] Obtain the first communication mode of the Bluetooth device requesting connection;

[0007] The vehicle Bluetooth communication mode is switched to the second communication mode, and a connection is established between the vehicle Bluetooth and the Bluetooth device. Either the first communication mode or the second communication mode is a Bluetooth headset mode, and the other is a mobile phone mode that matches the Bluetooth headset mode.

[0008] In some embodiments of this application, the step of obtaining the first communication mode of the Bluetooth device requesting connection includes:

[0009] Obtain the device type of the Bluetooth device;

[0010] The first communication mode of the Bluetooth device is determined based on the device type.

[0011] In some embodiments of this application, obtaining the device type of the Bluetooth device includes:

[0012] Obtain the device ID of the Bluetooth device;

[0013] The device type is determined based on the device ID.

[0014] In other embodiments of this application, the step of obtaining the first communication mode of the Bluetooth device requesting connection includes:

[0015] A first communication mode of the Bluetooth device is determined based on the connection request, wherein the connection request carries the communication mode of the Bluetooth device.

[0016] In some embodiments of this application, the mobile phone mode includes at least one of A2DP SOUCRE, HFP SERVER, and AVRCP TG, and the Bluetooth headset mode includes at least one of A2DP SINK, HFP CLIENT, and AVRCP CT.

[0017] In some embodiments of this application, before switching the vehicle Bluetooth communication mode to the second communication mode, the method further includes:

[0018] Determine whether the communication mode of the vehicle Bluetooth is the second communication mode;

[0019] If so, skip the step of switching the vehicle Bluetooth communication mode to the second communication mode and establish a connection between the vehicle Bluetooth and the Bluetooth device.

[0020] In some embodiments of this application, the communication mode of the vehicle Bluetooth is preset to the Bluetooth headset mode.

[0021] In some embodiments of this application, the mobile phone mode of the vehicle Bluetooth is in a preloaded state.

[0022] According to a second aspect of the present disclosure, an in-vehicle controller is provided, including a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, the instruction, the program, the code set, or the instruction set being loaded and executed by the processor to implement the in-vehicle Bluetooth connection method as described in any of the first aspects.

[0023] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor, a mobile terminal is enabled to perform the in-vehicle Bluetooth connection method as described in any of the first aspects.

[0024] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: by receiving the communication mode of the Bluetooth device requesting connection, the Bluetooth headset mode and mobile phone mode of the vehicle Bluetooth can be automatically switched, which solves the drawback of the prior art that vehicle Bluetooth can only connect to mobile phones. By automatically switching modes to realize the connection between Bluetooth headset and vehicle Bluetooth, the user is prevented from amplifying incoming calls through vehicle Bluetooth while driving, which would leak user privacy.

[0025] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0026] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0027] Fig. 1 This is a flowchart illustrating a vehicle Bluetooth connection method according to an exemplary embodiment.

[0028] Fig. 2 This is a block diagram illustrating a specific application scenario of switching in-vehicle Bluetooth communication modes, according to an exemplary embodiment.

[0029] Fig. 3 This is a schematic diagram illustrating the structure of a computer system suitable for implementing an embodiment of the present application's vehicle controller, according to an exemplary embodiment. Detailed Implementation

[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0031] The terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those steps or modules that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such process, method, product, or device.

[0032] For ease of understanding and explanation, the following will use... Figs. 1 to 3 This application provides a detailed description of a vehicle Bluetooth connection method, vehicle controller, and storage medium provided in its embodiments.

[0033] Fig. 1 This is a flowchart illustrating a vehicle Bluetooth connection method according to an exemplary embodiment, including the following steps.

[0034] In step S101, the first communication mode of the Bluetooth device requesting connection is obtained.

[0035] Specifically, before a Bluetooth device can connect to the vehicle's Bluetooth system, its communication mode needs to be determined. Only by knowing the communication mode of the Bluetooth device to be connected can the current communication mode of the vehicle's Bluetooth system be determined.

[0036] In step S102, the communication mode of the vehicle Bluetooth is switched to the second communication mode, and a connection is established between the vehicle Bluetooth and the Bluetooth device. Either the first communication mode or the second communication mode is a Bluetooth headset mode, and the other is a mobile phone mode that matches the Bluetooth headset mode.

[0037] Specifically, upon obtaining the communication mode of a Bluetooth device, the system automatically switches the vehicle's Bluetooth communication mode based on the device's primary communication mode. That is, if the primary communication mode is Bluetooth headset mode, the vehicle's Bluetooth mode is switched to phone mode. Conversely, if the primary communication mode is phone mode, the vehicle's Bluetooth mode is switched to Bluetooth headset mode. Since Bluetooth devices connect using the same communication protocol, and different protocols are mutually exclusive, the switching process follows dynamic switching protocol specifications, including the dynamic initiation and switching of the BlueDroid protocol stack.

[0038] In one embodiment of this application, obtaining the first communication mode of the Bluetooth device requesting connection includes:

[0039] Obtain the device type of the Bluetooth device;

[0040] The first communication mode of the Bluetooth device is determined based on the device type.

[0041] Specifically, when pairing with a Bluetooth device, the type of the Bluetooth device requesting the connection is obtained. By determining the type of the Bluetooth device, the first communication mode of the Bluetooth device can be determined.

[0042] In a specific embodiment, when the Bluetooth device type is determined to be a mobile phone, then the first communication mode of the Bluetooth device is determined to be mobile phone mode. When the Bluetooth device type is determined to be a Bluetooth headset, then the first communication mode of the Bluetooth device is determined to be Bluetooth headset mode.

[0043] In one embodiment of this application, obtaining the device type of the Bluetooth device includes:

[0044] Obtain the device ID of the Bluetooth device;

[0045] The device type is determined based on the device ID.

[0046] Specifically, the vehicle's Bluetooth system has the ability to listen for events where new devices are found. Based on this function, the device ID of the Bluetooth device can be obtained, and thus the device type of the Bluetooth device can be determined.

[0047] In a specific embodiment, when the obtained device ID of the Bluetooth device is a mobile phone, then the first communication mode of the Bluetooth device is determined to be mobile phone mode. When the device ID of the Bluetooth device is determined to be a Bluetooth headset, then the first communication mode of the Bluetooth device is determined to be Bluetooth headset mode.

[0048] In another embodiment of this application, the step of obtaining the first communication mode of the Bluetooth device requesting connection includes:

[0049] A first communication mode of the Bluetooth device is determined based on the connection request, wherein the connection request carries the communication mode of the Bluetooth device.

[0050] Specifically, when a Bluetooth device requests to connect with the vehicle's Bluetooth system, it sends a connection request. This connection request contains the Bluetooth device's communication mode information. When the vehicle's Bluetooth system receives the Bluetooth device's connection request, it also receives the Bluetooth device's communication mode information.

[0051] In one embodiment of this application, the mobile phone mode includes at least one of A2DP SOUCRE, HFP SERVER, and AVRCPTG, and the Bluetooth headset mode includes at least one of A2DP SINK, HFP CLIENT, and AVRCP CT.

[0052] Specifically, in order to make in-vehicle Bluetooth compatible with more devices, the mobile phone mode and Bluetooth mode on in-vehicle Bluetooth must include at least one transmission protocol such as A2DP, AVRCP, and HFP, so as to be able to connect more Bluetooth devices to in-vehicle Bluetooth.

[0053] In one embodiment of this application, before switching the vehicle Bluetooth communication mode to the second communication mode, the method further includes:

[0054] Determine whether the communication mode of the vehicle Bluetooth is the second communication mode;

[0055] If so, skip the step of switching the vehicle Bluetooth communication mode to the second communication mode and establish a connection between the vehicle Bluetooth and the Bluetooth device.

[0056] Specifically, when the vehicle's Bluetooth communication mode is the second communication mode that matches the first communication mode of the Bluetooth device, it means that the vehicle's Bluetooth can connect to the Bluetooth device. At this time, there is no need to switch the vehicle's Bluetooth communication mode, and the connection between the vehicle's Bluetooth and the Bluetooth device can be established directly.

[0057] In a specific embodiment, when the first communication mode of the obtained Bluetooth device is mobile phone mode, it is determined whether the communication mode of the vehicle Bluetooth is Bluetooth headset mode. When it is determined that the vehicle Bluetooth is Bluetooth headset mode, the vehicle Bluetooth does not need to switch communication modes and directly connects to the Bluetooth device.

[0058] In one embodiment of this application, the communication mode of the vehicle Bluetooth is preset to the Bluetooth headset mode.

[0059] Specifically, since the car's Bluetooth is mostly used for car audio during use, the communication mode of the car's Bluetooth is preset to Bluetooth headset mode. When it is necessary to switch the communication mode, the communication mode is switched. After use, the communication mode of the car's Bluetooth is preset back to Bluetooth headset mode.

[0060] In one embodiment of this application, the mobile phone mode of the vehicle Bluetooth is in a preloaded state.

[0061] Specifically, in order to quickly switch the in-vehicle Bluetooth mode, the in-vehicle Bluetooth phone mode is in a pre-loading state. When it is necessary to switch to phone mode, it can quickly respond and switch. When the in-vehicle Bluetooth switches back to Bluetooth headset mode, the in-vehicle Bluetooth phone mode is back in the pre-loading state.

[0062] To further illustrate the technical concept of this invention, specific application scenarios are now discussed, such as... Fig. 2 The diagram shown illustrates a specific application scenario for switching in-vehicle Bluetooth communication modes, thus explaining the technical solution of this invention.

[0063] Example 1,

[0064] The first step is for the car's Bluetooth system to receive connection requests sent by the mobile phone.

[0065] The second step is to determine whether the device requesting connection is a mobile phone by listening for events that find new devices, and thus determine whether the communication mode is mobile phone mode, or by identifying the communication mode carried in the mobile phone connection request.

[0066] Thirdly, since the car's Bluetooth communication mode is preset to Bluetooth headset mode, a direct connection can be established. When the phone is transmitting music, the car's Bluetooth receives the music transmitted by the phone via A2DP Sink through A2DP Sock. When the phone is transmitting voice calls, the car's Bluetooth receives the voice calls transmitted by the phone via HFP CLIENT through HFP SERVER.

[0067] Example 2,

[0068] The first step is for the car's Bluetooth system to receive a connection request from the Bluetooth headset.

[0069] The second step is to determine whether the device requesting connection is a Bluetooth headset by listening for events that find new devices, thereby determining that the communication mode is Bluetooth headset mode, or by identifying the communication mode carried in the Bluetooth headset connection request.

[0070] Thirdly, since the vehicle's Bluetooth communication mode is preset to Bluetooth headset mode, a dynamic switching system is used to switch the communication mode to mobile phone mode during connection. This switching process follows relevant dynamic switching protocol specifications, including the dynamic startup and switching of the BlueDroid protocol stack. When the vehicle's Bluetooth is transmitting music, it sends the music signal to the Bluetooth headset via the A2DP socket, and the headset receives the signal via the A2DP sensor. When the vehicle's Bluetooth is transmitting voice calls, it sends the voice call signal to the headset via the HFP server, and the headset receives the signal via the HFP client.

[0071] The following is for reference. Fig. 3 This application provides a computer device. Fig. 3 A schematic diagram of a computer system suitable for implementing an embodiment of this application is shown. It includes a processor and a memory interconnected. The memory stores a computer program comprising program instructions. The processor is configured to invoke the program instructions to execute the following steps: acquiring a first communication mode of a Bluetooth device requesting connection; switching the communication mode of the vehicle Bluetooth to a second communication mode and establishing a connection between the vehicle Bluetooth and the Bluetooth device. Either the first or second communication mode is a Bluetooth headset mode, and the other is a mobile phone mode matching the Bluetooth headset mode.

[0072] In this embodiment, the processor is a processing device capable of performing logical operations, such as a central processing unit (CPU), field-programmable array (FPGA), digital signal processor (DSP), microcontroller (MCU), application-specific logic circuit (ASIC), graphics processing unit (GPU), or other devices with data processing and / or program execution capabilities. It is readily understood that the processor is typically communicatively connected to memory, where any combination of one or more computer program products is stored. The memory can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, erasable programmable read-only memory (EPROM), USB memory, flash memory, etc. One or more computer instructions can be stored in the memory, and the processor can execute these computer instructions to implement related analysis functions. Various applications and various data, such as various data used and / or generated by applications, can also be stored in the computer-readable storage medium.

[0073] In the embodiments of this application, each module can be implemented by the processor executing relevant computer instructions. For example, the image processing module can be implemented by the processor executing instructions for image transformation algorithms, the machine learning module can be implemented by the processor executing instructions for machine learning algorithms, and the neural network can be implemented by the processor executing instructions for neural network algorithms.

[0074] In the embodiments of this application, each module can run on the same processor or on multiple processors; each module can run on a processor of the same architecture, such as all running on x86 architecture processors, or it can run on processors of different architectures, such as the image processing module running on an x86 architecture CPU and the machine learning module running on a GPU. Each module can be packaged in a computer product, such as each module being packaged in a computer software and running on a computer (server), or each module or part of it can be packaged in different computer products, such as the image processing module being packaged in a computer software and running on a computer (server), and the machine learning modules being packaged in separate computer software and running on another or more computers (servers); the computing platform when each module executes can be local computing, cloud computing, or a hybrid computing consisting of local computing and cloud computing.

[0075] like Fig. 3As shown, the computer system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 302 or programs loaded from storage section 308 into random access memory (RAM) 303. RAM 303 also stores various programs and data required for the system's operating instructions. CPU 301, ROM 302, and RAM 303 are interconnected via bus 304. Input / output (I / O) interface 305 is also connected to bus 304.

[0076] The following components are connected to I / O interface 305: an input section 306 including a keyboard, mouse, etc.; an output section 307 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, modem, etc. The communication section 309 performs communication processing via a network such as the Internet. Drive 310 is also connected to I / O interface 305 as needed. Removable media 311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 310 as needed so that computer programs read from them can be installed into storage section 308 as needed.

[0077] This application also provides a non-transitory computer-readable storage medium, which, when executed by a processor of a mobile terminal, enables the mobile terminal to perform the following steps: acquiring a first communication mode of a Bluetooth device requesting connection; switching the communication mode of the vehicle Bluetooth to a second communication mode, and establishing a connection between the vehicle Bluetooth and the Bluetooth device, wherein either the first communication mode or the second communication mode is a Bluetooth headset mode, and the other is a mobile phone mode that matches the Bluetooth headset mode.

[0078] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof. Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0079] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method for connecting via in-vehicle Bluetooth, characterized in that, include: Obtain the first communication mode of the Bluetooth device requesting connection; The vehicle Bluetooth communication mode is switched to a second communication mode, following relevant switching protocol specifications. These specifications include dynamic startup switching of the BlueDroid framework service protocol stack and the establishment of a connection between the vehicle Bluetooth and the Bluetooth device. Either the first or second communication mode is a Bluetooth headset mode, and the other is a phone mode compatible with the Bluetooth headset mode. The vehicle Bluetooth communication mode is preset to the Bluetooth headset mode. When a communication mode switch is needed, it is performed. After use, the vehicle Bluetooth communication mode is reset to the Bluetooth headset mode. The phone mode in the vehicle Bluetooth is in a preloaded state. When the vehicle Bluetooth reverts to the Bluetooth headset mode, the phone mode is also reset to the preloaded state. The phone mode includes at least one of A2DP SOUCRE, HFP SERVER, and AVRCP TG, and the Bluetooth headset mode includes at least one of A2DP SINK, HFP CLIENT, and AVRCP CT. The first communication mode for acquiring the Bluetooth device requesting connection includes: Obtain the device type of the Bluetooth device; The first communication mode of the Bluetooth device is determined based on the device type; when the device type is a mobile phone, the first communication mode is determined to be mobile phone mode; when the device type is a Bluetooth headset, the first communication mode is determined to be Bluetooth headset mode. Before switching the vehicle Bluetooth communication mode to the second communication mode, the method further includes: Determine whether the communication mode of the vehicle Bluetooth is a second communication mode that matches the first communication mode of the Bluetooth device; If so, skip the step of switching the vehicle Bluetooth communication mode to the second communication mode and establish a connection between the vehicle Bluetooth and the Bluetooth device.

2. The vehicle Bluetooth connection method according to claim 1, characterized in that, Obtaining the device type of the Bluetooth device includes: Obtain the device ID of the Bluetooth device; The device type is determined based on the device ID.

3. The in-vehicle Bluetooth connection method according to claim 1, characterized in that, The first communication mode for acquiring the Bluetooth device requesting connection includes: A first communication mode of the Bluetooth device is determined based on the connection request, wherein the connection request carries the communication mode of the Bluetooth device.

4. A vehicle-mounted controller, characterized in that, The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the instruction, program, code set, or instruction set is loaded and executed by the processor to implement the in-vehicle Bluetooth connection method as described in any one of claims 1-3.

5. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor, the mobile terminal is able to perform the in-vehicle Bluetooth connection method as described in any one of claims 1-3.