Bluetooth connection method, Bluetooth connection system, vehicle machine and vehicle

By managing Bluetooth hands-free connections in the car machine and disabling or unblocking the connection according to the call status, the problems of multi-party calls and three-party calls are solved, and the experience of Bluetooth phones in the car machine is optimized.

CN119402844APending Publication Date: 2025-02-07HUBEI QIGUANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411508494.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the car system, it is difficult to ensure the normal connection of the mobile phone in the case of multi-party calls, and the situation of three-party calls is complicated, which can easily lead to users' misoperation and misunderstandings.

Method used

By implementing the management of Bluetooth hands-free connection in the car machine, responding to the Bluetooth hands-free call status, disabling Bluetooth hands-free connections in non-calls, avoiding three-party calls, and unlocking the connection after the call is over.

Benefits of technology

It effectively avoids the situation of three-party calls, optimizes the experience of Bluetooth phones in the car, and ensures that the device can re-establish the HFP connection normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402844A_ABST
    Figure CN119402844A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth connection method, a Bluetooth connection system, a vehicle machine and a vehicle. The method is applied to an in-vehicle infotainment device, the in-vehicle infotainment device establishes a first Bluetooth hands-free connection with a first device, establishes a second Bluetooth hands-free connection with a second device, and comprises the following steps: in response to the in-vehicle infotainment device and the first device transmitting a Bluetooth hands-free call through the first Bluetooth hands-free connection, disabling the second Bluetooth hands-free connection; receiving a second Bluetooth hands-free connection initiated to a second device, and obtaining a Bluetooth hands-free call state of the vehicle machine; and in response to the state of being in the call, refusing to initiate the second Bluetooth hands-free connection to the second device and continuously forbidding the second Bluetooth hands-free connection, or in response to the state of being in the non-call, releasing the second Bluetooth hands-free connection and initiating the second Bluetooth hands-free connection to the second device. Therefore, by judging the real-time call state and the Bluetooth hands-free connection forbidden state, the problem that the device cannot be connected with the vehicle machine due to the fact that forbidden state cannot be cancelled is solved while three-party call is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to a Bluetooth connection method applied to a vehicle computer, and a corresponding Bluetooth connection system, a vehicle computer and a vehicle. Background Art

[0002] Car computer, also known as car infotainment system, in-vehicle infotainment system or in-vehicle multimedia system, is a device integrated inside the car that provides various information and entertainment services. Car computer has many functions, including but not limited to: navigation, audio and video playback, car-handling interconnection, vehicle information display, and voice equipment and control. The popularity and development of car computer makes driving and riding a car a kind of enjoyment and experience.

[0003] The car computer provides the function of connecting with the mobile phone to realize screen projection, application flow, call answering, etc. The car-car interconnection can be carried out through Bluetooth and other methods. Some car computers can allow two or more mobile phones to be connected at the same time. It is difficult to ensure the normal connection of the mobile phone when there is a multi-party call. Summary of the invention

[0004] According to a first aspect of the present disclosure, a Bluetooth connection method is proposed, which is applied to a vehicle computer, wherein the vehicle computer and a first device establish a first Bluetooth hands-free connection, and the vehicle computer and the second device establish a second Bluetooth hands-free connection, including: in response to the vehicle computer and the first device transmitting a Bluetooth hands-free call through the first Bluetooth hands-free connection, disabling the second Bluetooth hands-free connection; receiving a second Bluetooth hands-free connection initiated to the second device, and obtaining the Bluetooth hands-free call status of the vehicle computer; and in response to the Bluetooth hands-free call status being in a call, refusing to initiate the second Bluetooth hands-free connection to the second device and continuously disabling the second Bluetooth hands-free connection, or, in response to the Bluetooth hands-free call status being not in a call, unblocking the second Bluetooth hands-free connection and initiating the second Bluetooth hands-free connection to the second device.

[0005] Optionally, the method also includes: receiving a third Bluetooth hands-free connection initiated to a third device, obtaining the Bluetooth hands-free call status of the vehicle computer, wherein the third Bluetooth hands-free connection of the third device is not disabled; and in response to the Bluetooth hands-free call status being a call in progress, refusing to initiate the third Bluetooth hands-free connection to the third device, or, in response to the Bluetooth hands-free call status being not a call in progress, initiating the third Bluetooth hands-free connection to the third device.

[0006] Optionally, the method also includes: when the Bluetooth hands-free call status is in a call, receiving a turning-off operation of a Bluetooth switch, and ending the Bluetooth hands-free call transmitted between the vehicle computer and the first device via the first Bluetooth hands-free connection; receiving a turning-on operation of a Bluetooth switch and an operation of initiating a Bluetooth hands-free connection to the second device; in response to the vehicle computer's Bluetooth application querying that the second Bluetooth hands-free connection is in a disabled state, the Bluetooth application queries the current Bluetooth hands-free call status; and in response to the current Bluetooth hands-free call status being not in a call, unblocking the second Bluetooth hands-free connection and initiating the second Bluetooth hands-free connection to the second device.

[0007] Optionally, the Bluetooth hands-free call status is recorded in a content provider by the call process, and the Bluetooth application of the vehicle computer retrieves the Bluetooth hands-free call status from the content provider, and the content provider is established by the call process.

[0008] Optionally, disabling the second Bluetooth hands-free connection includes: recording the Bluetooth address of the second device in a database of the Bluetooth protocol stack, and unlocking the second Bluetooth hands-free connection includes: deleting the disabled state record of the second device from the database of the Bluetooth protocol stack.

[0009] Optionally, in response to the Bluetooth hands-free call status being in call, after refusing to initiate the second Bluetooth hands-free connection to the second device and continuously disabling the second Bluetooth hands-free connection, the method further includes: giving a prompt that the second device cannot connect to dual Bluetooth.

[0010] According to a second aspect of the present disclosure, a Bluetooth connection system is proposed, including a vehicle computer, a first device and a second device, wherein the vehicle computer and the first device establish a first Bluetooth hands-free connection, and the vehicle computer and the second device establish a second Bluetooth hands-free connection, and the vehicle computer is configured to: in response to the vehicle computer and the first device transmitting a Bluetooth hands-free call through the first Bluetooth hands-free connection, disable the second Bluetooth hands-free connection; receive a second Bluetooth hands-free connection initiated to the second device, and obtain the Bluetooth hands-free call status of the vehicle computer; and in response to the Bluetooth hands-free call status being in call, refuse to initiate the second Bluetooth hands-free connection to the second device and continuously disable the second Bluetooth hands-free connection, or, in response to the Bluetooth hands-free call status being not in call, unlock the second Bluetooth hands-free connection and initiate the second Bluetooth hands-free connection to the second device.

[0011] According to a third aspect of the present disclosure, a vehicle computer is provided, comprising a processor and a memory, wherein the processor is used to execute the method described in the first aspect.

[0012] According to a fourth aspect of the present disclosure, a vehicle is proposed, comprising the vehicle computer as described in the third aspect.

[0013] According to a fifth aspect of the present disclosure, a non-transitory machine-readable storage medium is proposed, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method based on the first aspect.

[0014] According to a sixth aspect of the present disclosure, a computer program product is proposed, comprising an executable code. When the executable code is executed by a processor of an electronic device, the processor is caused to execute a method as described in any of the solutions in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0016] Figure 1 A motor vehicle including a vehicle computer 100 that can be used for vehicle-handheld interconnection is schematically shown.

[0017] Figure 2 The structure block diagram of the vehicle computer 100 is shown.

[0018] Figure 3 An example of a human-machine interaction interface provided between the driver and the co-pilot is shown.

[0019] Figure 4 An example of the display content of the human-computer interaction interface when dual Bluetooth connections are not in a call state is shown.

[0020] Figure 5 An example of the display content of the human-computer interaction interface when dual Bluetooth is disabled in a call state is shown.

[0021] Figure 6 A schematic flowchart of a Bluetooth connection method according to an embodiment of the present disclosure is shown.

[0022] Figure 7 An example of the internal operation of the system involved in the Bluetooth connection solution according to an embodiment of the present disclosure is shown.

[0023] Figure 8 An example of Bluetooth connection according to an embodiment of the present disclosure is shown.

[0024] Fig. 9 An example of Bluetooth connection according to an embodiment of the present disclosure is shown.

[0025] Fig.10 An example of Bluetooth connection according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0026] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0027] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] The car computer has the function of car-hand interconnection realized by Bluetooth and other means. Through car-hand interconnection, the driver and / or passengers can realize functions such as answering calls, mobile phone screen projection, application flow, etc. on the car computer. Figure 1 A motor vehicle including a vehicle computer 100 that can be used for vehicle-handheld interconnection is schematically shown. Figure 2 A schematic structural block diagram of the vehicle computer 100 is shown.

[0029] like Figure 1 and Figure 2 As shown, the vehicle computer 100 (also referred to as an "in-vehicle control system" 100 or an "in-vehicle entertainment information system" 100) may include an audio input device 10, a controller 20, and an audio output device 30. The controller 20 may include a control device 21 and a storage device 22. The vehicle computer 100 may also include a human-machine interaction interface (HMI) 40 and / or a communication interface 50. The human-machine interaction interface 40 is communicatively connected to the controller 20. For example, the human-machine interaction interface 40 is communicatively connected to the controller 20 via an in-vehicle bus (as follows). In addition, the vehicle control system may exchange information with external devices via the communication interface 50. The communication interface 50 may have short-range and / or long-range communication capabilities. In short-range communication, the Bluetooth module or WiFi module of the communication interface 50 may be connected to an external device such as a mobile phone through Bluetooth / WiFi (such as Figure 1As shown in the figure, the vehicle computer can simultaneously connect two or more mobile phones through a Bluetooth module), or can also establish short-range wireless transmission through technologies such as Near Field Communication (NFC) and Ultra Wide Band (UWB). In addition, although not shown in the figure, when performing remote communication, the cellular module of the communication interface 50 can also communicate with external devices such as cloud servers.

[0030] The audio input device 10 can be used to collect sounds in the vehicle, for example, it can be used to receive (capture) voice signals of people in the vehicle. The audio input device 10 can be implemented as a microphone / microphone array arranged inside the vehicle, or it can be implemented as multiple microphones / microphone arrays arranged at different positions in the vehicle. That is, the audio input device 10 can collect sounds (especially voices) in the vehicle and provide them to the controller 20. At this time, the audio input device 10 can also be regarded as a voice input device.

[0031] The audio output device 30 is used to output audio, and can be implemented as a speaker arranged inside or outside the vehicle, or as multiple speakers arranged at different positions in the vehicle. The audio output device 30 can receive audio from the controller 20 and play it. For example, when the driver or passenger interacts with the vehicle computer by voice, the audio output device 30 can be used to play voice feedback generated locally or in the cloud, and can therefore be regarded as a voice interaction device.

[0032] The controller 20 can be implemented with the aid of the vehicle's electronic control unit (ECU) or with the aid of the vehicle's domain controller, such as a central domain controller (a controller integrating multiple functional domain controllers), a cockpit domain controller or an autonomous driving domain controller.

[0033] The control device 21 can realize the Bluetooth connection scheme of the embodiment of the present application as will be described later. The control device 21 can be realized in the mode of hardware or software or software and hardware combination. For the part realized by hardware, it can be realized in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), data signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, electronic units designed to perform their functions, or their combinations. For the part realized by software, it can be realized by means of microcodes, program codes or code segments, and they can also be stored in machine-readable storage media such as storage components.

[0034] The storage device 22 may be implemented as a vehicle memory. The storage device 22 may store algorithms, programs or codes executed by the control device during processing and various data generated.

[0035] The human-computer interaction interface 40 is used to implement human-computer interaction. Figure 3 An example of a human-computer interaction interface provided between the main and co-pilot is shown. The illustrated human-computer interaction interface 40 includes not only a mechanical button 401, but also a large-sized vehicle-mounted screen 402, and the screen 402 may be a touch screen to receive touch instructions from people in the vehicle. In some vehicles, the human-computer interaction interface 40 may include only a touch screen (that is, the functions of conventional physical buttons are integrated into the interactive page of the touch screen). In addition to the human-computer interaction interface 40 between the main and co-pilot, some vehicles may also include a second or even a third vehicle-mounted screen provided in the rear space (e.g., the second row space or the third row space). The vehicle-mounted screen, especially the touch screen, can be regarded as an implementation of the human-computer interaction interface 40, and may also be referred to as a human-computer interaction interface.

[0036] When implementing the hand-car interconnection function, the communication interface 50 is used to establish a communication connection with the mobile phone under the control of the controller 20, and the audio input device 10, the audio output device 30 and the HMI 40 play different roles in implementing different functions of the hand-car interconnection. When playing audio, the user can determine the audio to be played through the mobile phone screen or the car screen (or directly interact with the car computer by voice), and play it through the audio output device 30. When making a Bluetooth hands-free call, for example, when receiving an incoming call, the call signal received by the mobile phone is transmitted to the car computer by Bluetooth, and the ringing sound is output by the audio output device 30 under the control of the controller 20 and displayed on the car screen of the HMI 40. The user can answer the call by operating on the mobile phone or on the car computer, and the call is realized through the sound collection of the audio input device 10 and the sound output of the audio output device 30.

[0037] According to the Bluetooth HFP protocol, Bluetooth audio devices can be divided into two categories: Audio Gateway (AG) devices and Hands-Free (HF) devices. For example, the car machine is an audio gateway device and the mobile phone is a hands-free device. Based on the Bluetooth HFP protocol, a Bluetooth audio device can control the call of the other Bluetooth audio device, for example, the car machine controls the answering, hanging up, rejection, voice dialing, etc. of a smartphone call.

[0038] The implementation of the Bluetooth communication function requires the establishment of an HFP (Hands-free Profile, Bluetooth hands-free protocol, also known as Bluetooth phone protocol) connection between the mobile phone and the vehicle. When the mobile phone receives a call service, based on the HFP connection, a Synchronous Connection Oriented (SCO) or an Extended Synchronous Connection Oriented (ESCO) link is established between the mobile phone and the vehicle as an audio data transmission channel, thereby using the vehicle to handle the service call. After the service call is over, the SCO link or ESCO link will be disconnected between the vehicle and the mobile phone, but the HFP connection between the two will still be maintained to handle subsequent call services.

[0039] In another example, other non-call audio services, such as music services or ringback tone services before call services, can be transmitted between the mobile phone and the car through the Bluetooth audio transmission model protocol (Advanced Audio Distribution Profile, A2DP). When non-call audio services need to be transmitted, an asynchronous connection-oriented link (Asynchronous connection less, ACL) will be established between the mobile phone and the car to transmit non-call audio services.

[0040] Some car computer systems can only connect to one mobile phone. In this case, when a second mobile phone wants to connect the car and the handset (for example, when making a Bluetooth hands-free call), it is necessary to disconnect the Bluetooth HFP connection of the first mobile phone first, and then pair the Bluetooth of the second mobile phone to establish an HFP connection. This operation is time-consuming and unfriendly. Some car computer systems allow two mobile phones to be connected at the same time, but this will result in a three-party call (for example, two currently connected mobile phones call in at the same time; while one mobile phone is talking, another mobile phone is called in or out, etc.). The handling of three-party calls leads to complex operations on the car computer side and is prone to user misunderstandings and misoperations.

[0041] To deal with this situation, a possible solution is to disconnect and disable the HFP connection of one phone while the other phone is on a call, and un-disable it after the call ends.

[0042] Disabling the HFP connection of a device can be achieved by recording the Bluetooth address of the device in the database through the Bluetooth protocol stack. At this time, if the user initiates an HFP connection to the device (disabled device) through the car computer or the device actively initiates an HFP connection to the car computer, the car computer's Bluetooth protocol stack will block the connection based on the disabled Bluetooth address recorded in the database. In this way, it can be prevented that during a Bluetooth hands-free call on a mobile phone, a user manually connects to another mobile phone's disabled Bluetooth, thereby causing a three-party call. For ease of understanding, Figure 4 An example of the content displayed on the human-computer interaction interface when dual Bluetooth connections are not in a call state is shown. Figure 5 An example of the content displayed on the human-computer interaction interface when dual Bluetooth is disabled in a call state is shown.

[0043] like Figure 4 As shown, a Bluetooth connection module 410 is displayed on the right side of the human-computer interaction interface 400. At this time, the Bluetooth switch 411 is in the on state, and the two mobile phones currently connected by Bluetooth, namely, mobile phone 1 and mobile phone 2, are displayed in the paired device section. The phone icon 413 and the musical note icon 414 on the back side of mobile phone 1 are both in a lit state, which means that in the current Bluetooth connection between mobile phone 1 and the car machine, the Bluetooth hands-free connection (corresponding to the HFP connection) and the Bluetooth audio connection (for example, the Bluetooth A2DP connection) are both in an enabled state. The phone icon 415 on the back side of mobile phone 2 is in a lit state, and the musical note icon 416 is in an unlit state, which means that in the current Bluetooth connection between mobile phone 2 and the car machine, the Bluetooth hands-free connection (corresponding to the HFP connection) is in an enabled state, and the Bluetooth audio connection (for example, the Bluetooth A2DP connection) is in an unenabled state. In the Bluetooth protocol, A2DP and HFP are independent of each other, and the disconnection of the HFP connection does not affect the audio transmission and vice versa. The paired device section also includes a lighted "Edit" button 412, which can be selected to manually edit the connection status of mobile phone 1 and mobile phone 2. For example, the user can choose to light up the musical note icon 416 of mobile phone 2 and dim the musical note icon 414 of mobile phone 1. Figure 4 In the illustrated case, mobile phone 1 and mobile phone 2 both maintain a Bluetooth hands-free connection with the vehicle computer and are in a non-call state, that is, no SCO link or ESCO link is established.

[0044] Then, for example Figure 4 2 minutes after the status shown, mobile phone 1 receives an incoming call. Figure 5As shown, the call box 520 on the left side of the human-machine interaction interface 400 shows that the vehicle is making a Bluetooth hands-free call, that is, it is in a call state. In the Bluetooth connection module 410 on the right side, the Bluetooth switch 411 is still turned on, and the two mobile phones currently connected to Bluetooth, namely, mobile phone 1 and mobile phone 2, are still displayed under paired devices. The difference is that the lighting state of the phone icon 415 on the back side of mobile phone 2 has changed to Figure 5 The unlit state shown. This means that the vehicle system has disabled the HFP connection of mobile phone 2 while mobile phone 1 is on a call.

[0045] If Bluetooth is not abnormally turned off during the call, the vehicle system can cancel the disabling of the mobile phone HFP connection after the call ends. At this time, the phone icon 415 on the back of the mobile phone 2 will be re-lit, and the vehicle re-enters the dual Bluetooth HFP connection mode. However, if Bluetooth is abnormally turned off during the call (for example, the user manually turns off the Bluetooth switch 411 during the call), the disabled state of the mobile phone 2 will be recorded in the database of the Bluetooth protocol stack when Bluetooth is turned on, and the disabled state of the mobile phone 2 cannot be canceled by turning off Bluetooth, which will cause the vehicle to no longer be able to connect to the mobile phone 2 through HFP, and even if the vehicle is restarted, it cannot be restored.

[0046] To this end, the present disclosure proposes a Bluetooth connection method for a vehicle computer, which is used to avoid the problem that the device cannot establish an HFP connection with the vehicle computer again because the Bluetooth is turned off during the HFP connection disabling period and the disabling cannot be cancelled. Specifically, the method can first query the current Bluetooth hands-free call status of the vehicle computer when the vehicle computer Bluetooth is connected to the device, and cancel the current connection if it is in the call state, and can also give a prompt such as "dual Bluetooth cannot be connected during Bluetooth call"; otherwise, it can query whether the Bluetooth HFP connection of the device is disabled, and if it is disabled, cancel the disabled state of the Bluetooth HFP connection, and continue the Bluetooth HFP connection.

[0047] Figure 6 A schematic flow chart of a Bluetooth connection method according to an embodiment of the present disclosure is shown. The method is applied to a vehicle computer and is applicable to a situation where the vehicle computer disables the Bluetooth hands-free connection of another device when one device is on a call during dual Bluetooth connections. Here, the dual Bluetooth connection may be that the vehicle computer establishes a first Bluetooth hands-free connection with a first device and establishes a second Bluetooth hands-free connection with a second device.

[0048] In one example, the first device may be Figure 4 and Figure 5 The second device may be a mobile phone 1 shown in FIG. Figure 4 and Figure 5 The mobile phone 2 shown in FIG. 1 , the first Bluetooth hands-free connection corresponds to the Bluetooth hands-free connection between the mobile phone 1 and the vehicle computer (ie, Figure 4The second Bluetooth hands-free connection corresponds to the Bluetooth hands-free connection between the mobile phone 2 and the vehicle computer (ie, Figure 4 415) in the lit state shown.

[0049] In step S601, in response to the vehicle and the first device transmitting a Bluetooth hands-free call via the first Bluetooth hands-free connection, the second Bluetooth hands-free connection is disabled. For example, when the mobile phone 1 receives an incoming call or makes an outgoing call and generates a call as shown in the call box 520, the HFP connection of the mobile phone 2 is disabled, corresponding to Figure 5 A dimmed phone icon 415 is shown.

[0050] In step S602, a second Bluetooth hands-free connection initiated to the second device is received, and the Bluetooth hands-free call status of the vehicle computer is obtained. At this time, the second Bluetooth hands-free connection initiated by the vehicle computer to the second device can be a connection actively initiated by the vehicle computer end, or can be initiated by a manual operation of the user on the vehicle computer end. Regardless of who initiates the connection, it is necessary to first determine the call status before determining whether to connect.

[0051] In step S603, in response to the Bluetooth hands-free call status being in a call, the second Bluetooth hands-free connection to the second device is refused and the second Bluetooth hands-free connection is continuously disabled, or, in response to the Bluetooth hands-free call status being not in a call, the second Bluetooth hands-free connection is unlocked and the second Bluetooth hands-free connection is initiated to the second device. Thus, while avoiding the occurrence of a three-party call, the problem of the second device being unable to establish a Bluetooth hands-free connection after the first device ends the call due to the failure to cancel the Bluetooth hands-free connection disablement of the second device is prevented.

[0052] In one embodiment, if the Bluetooth hands-free call state is in a call (at this time, the call is being made via the first Bluetooth hands-free connection) and the Bluetooth is not abnormally turned off (for example, the user does not manually turn off the Bluetooth switch 411 during the Bluetooth hands-free call of the first device), then when the Bluetooth hands-free call state changes to not in a call (at this time, the call via the first Bluetooth hands-free connection ends, for example, when the call of mobile phone 1 ends), the vehicle terminal can actively unlock the second Bluetooth hands-free connection and initiate the second Bluetooth hands-free connection to the second device. Subsequently, the Bluetooth hands-free connection of mobile phone 2 is restored, and the phone icon 415 becomes bright again.

[0053] In one embodiment, for example, user 1 Figure 4When the mobile phone 1 is in the Bluetooth hands-free call state (i.e., when the call is made via the first Bluetooth hands-free connection), if the user 2 clicks the edit button 412 at this time and tries to restore the second Bluetooth hands-free connection in the settings page (i.e., tries to make the phone icon 415 light up again), then because the current Bluetooth hands-free call state is in progress, the car machine will refuse to initiate the second Bluetooth hands-free connection to the mobile phone 2 and continue to disable the second Bluetooth hands-free connection. At this time, in order to avoid the confusion of the user 2, the car machine can give a prompt that the second device cannot connect to the dual Bluetooth. For example, the prompt "Cannot connect to the dual Bluetooth during the Bluetooth call" can be displayed on the human-computer interaction interface 400 in the form of a pop-up box (i.e., in the form of a "toast" prompt).

[0054] In another embodiment, if the Bluetooth connection is abnormally closed (for example, the user manually turns off the Bluetooth switch 411 during the Bluetooth hands-free call of the first device) during the Bluetooth hands-free call state (at this time, the call is being made via the first Bluetooth hands-free connection), the Bluetooth connection method disclosed in the present invention can ensure that the device with disabled Bluetooth hands-free connection can subsequently restore the Bluetooth hands-free connection. At this time, the Bluetooth connection method disclosed in the present invention may also include: when the Bluetooth hands-free call state is in the call, receiving a Bluetooth switch closing operation (the closing operation may be, for example, an operation of the user manually turning off the Bluetooth switch 411 during the Bluetooth hands-free call of the first device, and the operation will end the call between the vehicle and the first device through the first Bluetooth hands-free connection); receiving a Bluetooth switch opening operation (for example, an operation of the user manually turning on the Bluetooth switch 411 later) and initiating a Bluetooth hands-free connection to the second device; in response to the Bluetooth application of the vehicle machine querying that the second Bluetooth hands-free connection is in a disabled state, the Bluetooth application queries the current Bluetooth hands-free call state; and in response to the current Bluetooth hands-free call state being not in the call, unblocking the second Bluetooth hands-free connection and initiating the second Bluetooth hands-free connection to the second device.

[0055] For example, if the user manually turns off the Bluetooth switch 411 during a call on mobile phone 1, the Bluetooth connections between mobile phone 1 and mobile phone 2 and the vehicle computer will be disconnected at the same time. At this time, the Bluetooth hands-free call of mobile phone 1 will end (but for example, it can be switched to a regular mobile phone call, but the call at this time is on mobile phone 1 and has nothing to do with the vehicle computer), while the Bluetooth hands-free connection of mobile phone 2 will be continuously disabled. At this time, if the user manually turns on the Bluetooth switch 411 again and tries to connect to mobile phone 2, the vehicle computer will query that the second Bluetooth hands-free connection of mobile phone 2 is in a disabled state. Subsequently, whether mobile phone 2 is connected depends on the current Bluetooth hands-free call state. If the current Bluetooth hands-free call state is in a call (for example, mobile phone 1 is reconnected and is still in a Bluetooth hands-free call; or it is connected to another mobile phone and is in a Bluetooth hands-free call), the vehicle computer can refuse to initiate a second Bluetooth hands-free connection to mobile phone 2 and continuously disable the second Bluetooth hands-free connection. If the current Bluetooth hands-free call state is not in a call, the vehicle computer can unblock the second Bluetooth hands-free connection and initiate a second Bluetooth hands-free connection to mobile phone 2.

[0056] Therefore, the Bluetooth connection method disclosed in the present invention can avoid the problem that the device cannot establish an HFP connection with the vehicle computer again because the Bluetooth is turned off during the HFP connection disabling period and the disabling cannot be canceled by querying the current Bluetooth hands-free calling status of the vehicle computer when the vehicle computer Bluetooth is connected to the device, querying whether the Bluetooth of the device is disabled and canceling the disabling when necessary.

[0057] Furthermore, the Bluetooth connection method disclosed herein may also involve connection to a device for which the Bluetooth hands-free connection is not disabled. In this case, the Bluetooth connection method disclosed herein may further include: receiving a third Bluetooth hands-free connection initiated to a third device, acquiring the Bluetooth hands-free call status of the vehicle computer, wherein the third Bluetooth hands-free connection of the third device is not disabled; and in response to the Bluetooth hands-free call status being in a call, refusing to initiate the third Bluetooth hands-free connection to the third device, or, in response to the Bluetooth hands-free call status being not in a call, initiating the third Bluetooth hands-free connection to the third device.

[0058] In one example, the third device may correspond to mobile phone 3, and the third Bluetooth hands-free connection may correspond to the Bluetooth hands-free connection of mobile phone 3 to the vehicle computer. Specifically, mobile phone 3 may try to connect to the vehicle computer. Since the Bluetooth hands-free connection of mobile phone 3 is not disabled, the vehicle computer may directly query the Bluetooth hands-free call status of the vehicle computer after receiving the connection request. If the Bluetooth hands-free call status of the vehicle computer is in a call at this time (for example, mobile phone 1 is making a Bluetooth call), the vehicle computer refuses to initiate a Bluetooth hands-free connection to mobile phone 3 (and may give a prompt such as "dual Bluetooth cannot be connected during a Bluetooth call"). If the Bluetooth hands-free call status of the vehicle computer is not in a call at this time, the vehicle computer may initiate a Bluetooth hands-free connection to mobile phone 3.

[0059] In one embodiment, a ContentProvider can be established to record the Bluetooth hands-free call status. The Bluetooth hands-free call status can then be obtained from the ContentProvider that records the Bluetooth hands-free call status. ContentProvider is a mechanism for implementing inter-process communication in the Android system. It provides a unified interface that allows an application's data set to be accessed and shared by other applications. Specifically, a ContentProvider can be established by the car computer's call process to record the current call status; the car computer's Bluetooth application can retrieve the Bluetooth hands-free call status from the ContentProvider, and based on the call status recorded in the ContentProvider, determine whether the Bluetooth hands-free call status is in a call or not in a call, and then proceed with the subsequent operation of whether to make a Bluetooth hands-free connection or reject the Bluetooth hands-free connection.

[0060] Alternatively or additionally, the Bluetooth hands-free connection of the device may be disabled by recording the Bluetooth address of the device in a database of the Bluetooth protocol stack. Unblocking the Bluetooth hands-free connection of the device may be achieved by deleting the disabled state record of the device from the database of the Bluetooth protocol stack (Bluetooth). For example, the second Bluetooth hands-free connection may be disabled by recording the Bluetooth address of the second device in the database of the Bluetooth protocol stack, and the second Bluetooth hands-free connection may be unblocked by deleting the disabled state record of the second device from the database of the Bluetooth protocol stack.

[0061] Figure 7 An example of the internal operation of the system involved in the Bluetooth connection solution according to an embodiment of the present disclosure is shown. Figure 7 In the example, Telecom (Bluetooth Phone APP) can be used to manage Bluetooth hands-free calls and can be seen as a specific implementation of the call process. Settings (Bluetooth Settings APP) can be used to set up Bluetooth connections and can be seen as a specific implementation of the Bluetooth application. Both Telecom and Settings can interact with the Bluetooth protocol stack, which can interact with the underlying HAL layer (Hardware Abstraction Layer).

[0062] As shown in the figure, if one of the devices (for example, the first device) needs to make a Bluetooth hands-free call when the car is connected to dual Bluetooth, Telecom can establish a ContentProvider to record the current call status when the call is established, and disable the Bluetooth hands-free connection of the device by recording the Bluetooth address of the other device (for example, the second device) in the database of the Bluetooth protocol stack, thereby prohibiting the implementation of the dual Bluetooth HFP connection function during the call. When a device (for example, a disabled second device or a non-disabled third device) needs to make a Bluetooth HFP connection with the car, Settings can query the current call status through ContentProvider. If the record of ContentProvider indicates that the call is in progress, refuse to initiate a Bluetooth HFP connection to the second device or refuse to receive a Bluetooth HFP connection initiated by the second device. However, if the record of ContentProvider indicates that the call is not in progress, Settings can determine whether the device requesting the connection is disabled for Bluetooth hands-free connection by querying the record in the Bluetooth protocol stack database, and cancel the Bluetooth disabled state of the device when necessary.

[0063] It should be noted that the above examples in this article use mobile phones as the first device and the second device to describe the method of the present disclosure. However, those skilled in the art can know without any creative work that the Bluetooth interaction between electronic devices with calling functions such as smart watches, smart glasses or other electronic devices that may have calling functions and the vehicle computer can be derived from the exemplary description of the present disclosure.

[0064] For ease of understanding, the following will be combined with the attached Figure 8-10 Different examples of applying the Bluetooth connection method disclosed in the present invention are described.

[0065] Figure 8 An example of performing a Bluetooth connection according to an embodiment of the present disclosure is shown. In this example, an operation performed when a Bluetooth connection is abnormally closed during a call in which dual Bluetooth HFP connections are prohibited is described.

[0066] Specific as Figure 8 As shown, in step 1, Telecom records the real-time call status and creates a ContentProvider for Settings to query the real-time call status.

[0067] In step 2, the user connects dual Bluetooth and starts a call (for example, the user of mobile phone 1). In order to avoid three-party calling, Telecom disables the dual Bluetooth HFP connection, that is, calls the interface of the Bluetooth protocol stack to disable the other Bluetooth HFP (for example, disables the HFP of mobile phone 2), and the Bluetooth protocol stack records the disabled state in the database.

[0068] In step 3, the user manually turns off the Bluetooth switch during the Bluetooth hands-free call, and the Bluetooth hands-free call is forced to end. Since the Bluetooth of the car computer is in a disabled state after the Bluetooth switch is turned off, the car computer cannot use all Bluetooth functions and the connection with the mobile phone will be disconnected. Therefore, the HFP service of the Bluetooth protocol stack APP is turned off. At this time, the disabled Bluetooth cannot be canceled because the HFP service is turned off.

[0069] In step 4, the Bluetooth switch is manually turned on again. After turning on the Bluetooth switch, the user manually clicks to connect the disabled Bluetooth through Settings (for example, manually performing the Bluetooth hands-free connection of the mobile phone 2).

[0070] In step 5, Settings calls the interface of the Bluetooth protocol stack to query the database of the Bluetooth protocol stack to find that the Bluetooth is disabled.

[0071] In step 6, Settings queries the ContentProvider established by Telecom to find that the current state is not a call, so the interface of the Bluetooth protocol stack is called to cancel the disabled state of the Bluetooth. For example, the disabled state of the Bluetooth can be canceled by deleting the disabled state record in the database.

[0072] Then, in step 7, Settings initiates a Bluetooth connection, and the Bluetooth HFP is successfully connected (ie, the Bluetooth hands-free connection of the mobile phone 2 is restored).

[0073] Fig. 9 An example of performing a Bluetooth connection according to an embodiment of the present disclosure is shown. In this example, an operation performed when the Bluetooth connection is not abnormally closed during a call in which dual Bluetooth HFP connections are prohibited is described.

[0074] In step 1, Telecom records the real-time call status and creates a ContentProvider for Settings to query the real-time call status.

[0075] In step 2, the user connects dual Bluetooth and starts a call (for example, the user of mobile phone 1). In order to avoid three-party calling, Telecom disables the dual Bluetooth HFP connection, that is, calls the interface of the Bluetooth protocol stack to disable the other Bluetooth HFP (for example, disables the HFP of mobile phone 2), and the Bluetooth protocol stack records the disabled state in the database.

[0076] In step 3, the user manually clicks on the connection through Settings to disable Bluetooth (for example, the user Figure 5 Click the "Edit" button to manually connect the mobile phone 2).

[0077] In step 4, Settings calls the interface of the Bluetooth protocol stack to query the database of the Bluetooth protocol stack to find that the Bluetooth of the mobile phone is disabled, and queries the current call status through the ContentProvider established by Telecom.

[0078] In step 5, if the user is currently in a call state, because the Bluetooth is disabled and cannot be connected, Settings pops up a Toast to prompt the user that "dual Bluetooth cannot be connected during a Bluetooth call."

[0079] In step 6, if the current state is not a call, the interface of the Bluetooth protocol stack is called to cancel the disabled state of the Bluetooth. Accordingly, in step 7, Settings initiates a Bluetooth connection, and the Bluetooth HFP of the mobile phone 2 is successfully connected.

[0080] Fig.10 An example of performing Bluetooth connection according to an embodiment of the present disclosure is shown. In this example, a situation where a new device performs Bluetooth HFP connection after dual Bluetooth HFP connection is prohibited during a call is described.

[0081] In step 1, Telecom records the real-time call status and creates a ContentProvider for Settings to query the real-time call status.

[0082] In step 2, the user connects dual Bluetooth and starts a call (for example, the user of mobile phone 1). In order to avoid three-party calling, Telecom disables the dual Bluetooth HFP connection, that is, calls the interface of the Bluetooth protocol stack to disable the other Bluetooth HFP (for example, disables the HFP of mobile phone 2), and the Bluetooth protocol stack records the disabled state in the database.

[0083] In step 3, the user manually clicks through Settings to connect a third Bluetooth that has not been connected before (for example, the user manually connects mobile phone 3).

[0084] In step 4, Settings calls the interface of the Bluetooth protocol stack to query the database of the Bluetooth protocol stack to find that the Bluetooth of the mobile phone is not disabled, and queries the current call status through the ContentProvider established by Telecom.

[0085] In step 5, if the user is currently in a call, Settings will cancel the current connection to avoid a three-way call, and pop up a Toast to remind the user that "dual Bluetooth cannot be connected during a Bluetooth call."

[0086] In step 6, if the current state is not a call, the Bluetooth connection continues, and the Bluetooth HFP of the mobile phone 3 is successfully connected.

[0087] Therefore, the Bluetooth connection method disclosed in the present invention uses Settings to query the ContentProvider established by Telecom to avoid the three-party call problem that may be caused by restoring the disabled HFP connection. Specifically, if the user connects Bluetooth through Settings in the Bluetooth hands-free call state, Settings can query through ContentProvider that the current call state is in progress, and thus block the Bluetooth connection, thereby avoiding the three-party call caused by this operation. At the same time, a Toast pop-up box can be used to give a prompt that "dual Bluetooth cannot be connected during Bluetooth call" to avoid user misunderstanding.

[0088] The present disclosure may also be implemented as a Bluetooth connection system, including a vehicle computer, a first device and a second device, for example Figure 1 The vehicle computer and two Bluetooth-connected mobile phones are shown. The vehicle computer establishes a first Bluetooth hands-free connection with the first device, and the vehicle computer establishes a second Bluetooth hands-free connection with the second device. Further, the vehicle computer is configured to: in response to the vehicle computer and the first device transmitting a Bluetooth hands-free call through the first Bluetooth hands-free connection, disable the second Bluetooth hands-free connection; receive a second Bluetooth hands-free connection initiated to the second device, and obtain the Bluetooth hands-free call status of the vehicle computer; and in response to the Bluetooth hands-free call status being in a call, refuse to initiate the second Bluetooth hands-free connection to the second device and continue to disable the second Bluetooth hands-free connection, or, in response to the Bluetooth hands-free call status being not in a call, unlock the second Bluetooth hands-free connection and initiate the second Bluetooth hands-free connection to the second device.

[0089] The present disclosure may also be implemented as a vehicle computer, including a processor and a memory, wherein the processor is used to execute the Bluetooth connection method of the present disclosure.

[0090] The present disclosure may also be implemented as a vehicle, including the vehicle computer as described above.

[0091] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.

[0092] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.

[0093] The Bluetooth connection method disclosed in the present invention establishes a content provider through Telecom to record the current call status. When the user connects to Bluetooth through Settings, the content provider is queried to determine whether the current call status is in progress. If the call status is in progress, the current connection is canceled (and a Toast can be optionally popped up to prompt the user that "dual Bluetooth cannot be connected during a Bluetooth call" to avoid user misunderstanding); otherwise, the current Bluetooth is checked to see if it is disabled. If it is disabled, the Bluetooth HFP disabled state is canceled, and then the Bluetooth connection is continued. In this way, the problem that the device cannot establish an HFP connection with the vehicle computer again because the Bluetooth is turned off during the HFP connection disabled period and the disabled state cannot be canceled is solved, and the user experience of the Bluetooth phone of the vehicle computer is optimized.

[0094] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0095] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0096] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A Bluetooth connection method, applied to a vehicle computer, wherein the vehicle computer and a first device establish a first Bluetooth hands-free connection, and the vehicle computer and a second device establish a second Bluetooth hands-free connection, comprising: In response to the vehicle computer and the first device transmitting a Bluetooth hands-free call through the first Bluetooth hands-free connection, disabling the second Bluetooth hands-free connection; Receiving a second Bluetooth hands-free connection initiated to the second device, and obtaining the Bluetooth hands-free call status of the vehicle computer; and In response to the Bluetooth hands-free call status being in a call, refusing to initiate the second Bluetooth hands-free connection to the second device and continuously disabling the second Bluetooth hands-free connection; or, in response to the Bluetooth hands-free call status being not in a call, unlocking the second Bluetooth hands-free connection and initiating the second Bluetooth hands-free connection to the second device.

2. The method according to claim 1, further comprising: Receiving a third Bluetooth hands-free connection initiated to a third device, and acquiring the Bluetooth hands-free call status of the vehicle computer, wherein the third Bluetooth hands-free connection of the third device is not disabled; In response to the Bluetooth hands-free call status being in a call, refusing to initiate the third Bluetooth hands-free connection to the third device; or, in response to the Bluetooth hands-free call status being not in a call, initiating the third Bluetooth hands-free connection to the third device.

3. The method according to claim 1, further comprising: When the Bluetooth hands-free call state is in call, receiving a Bluetooth switch off operation, and ending the Bluetooth hands-free call transmitted between the vehicle computer and the first device through the first Bluetooth hands-free connection; receiving an operation of turning on a Bluetooth switch and an operation of initiating a Bluetooth hands-free connection to the second device; In response to the Bluetooth application of the vehicle computer querying that the second Bluetooth hands-free connection is in a disabled state, the Bluetooth application queries a current Bluetooth hands-free call state; In response to the current Bluetooth hands-free call state being not in a call, the second Bluetooth hands-free connection is unlocked and the second Bluetooth hands-free connection is initiated to the second device.

4. The method according to claim 1, wherein: The Bluetooth hands-free call status is recorded in a content provider by the call process, and the Bluetooth application of the vehicle computer retrieves the Bluetooth hands-free call status from the content provider, and the content provider is established by the call process.

5. The method according to claim 1, wherein: Disabling the second Bluetooth hands-free connection includes: recording the Bluetooth address of the second device in a database of the Bluetooth protocol stack, and Unbanning the second Bluetooth hands-free connection includes: deleting a disabled state record of the second device from a database of a Bluetooth protocol stack.

6. The method according to claim 1, wherein: After refusing to initiate the second Bluetooth hands-free connection to the second device and continuously disabling the second Bluetooth hands-free connection in response to the Bluetooth hands-free call status being in call, the method further includes: A prompt is given that the second device cannot connect to dual Bluetooth.

7. A Bluetooth connection system, comprising a vehicle computer, a first device and a second device, wherein the vehicle computer and the first device establish a first Bluetooth hands-free connection, and the vehicle computer and the second device establish a second Bluetooth hands-free connection, and the vehicle computer is configured as follows: In response to the vehicle computer and the first device transmitting a Bluetooth hands-free call through the first Bluetooth hands-free connection, disabling the second Bluetooth hands-free connection; Receiving a second Bluetooth hands-free connection initiated to the second device, and obtaining the Bluetooth hands-free call status of the vehicle computer; and In response to the Bluetooth hands-free call status being in a call, refusing to initiate the second Bluetooth hands-free connection to the second device and continuously disabling the second Bluetooth hands-free connection; or, in response to the Bluetooth hands-free call status being not in a call, unlocking the second Bluetooth hands-free connection and initiating the second Bluetooth hands-free connection to the second device.

8. A vehicle computer, comprising a processor and a memory, wherein: The processor is configured to execute the method according to any one of claims 1 to 6.

9. A vehicle, comprising the vehicle computer as claimed in claim 8.

10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute a method according to any one of claims 1 to 6.

11. A computer program product, comprising executable codes, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 6.