A bluetooth hf device incoming call audio control system and method

By introducing a centralized audio control framework into Bluetooth HF devices, the UI module uniformly manages audio source control, solving the problems of complex multi-audio source control and poor user experience in existing technologies. This achieves simplified multi-audio source coordination and personalized ringtone playback, thus improving the user experience.

CN116614799BActive Publication Date: 2026-02-03SICHE TECH (CHONGQING) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310749093.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2026-02-03
Estimated Expiration
2043-06-25

AI Technical Summary

Technical Problem

Existing Bluetooth HF devices suffer from distributed control defects in audio control during incoming calls, resulting in complex multi-source control strategies, poor user experience, inability to achieve "audio and video in sync" and "do not disturb" functions, and lack of personalized ringtone settings.

Method used

A centralized audio control framework was designed, with the UI module managing all audio source controls. Combined with the HFP function module and audio path module, the UI module determines whether to force the in-band tone to be converted to the local ringtone based on the caller ID and user settings, thereby achieving multi-source coordination and personalized ringtone playback.

Benefits of technology

It achieves simplified multi-source control, supports "audio and video output simultaneously" and "do not disturb" functions, improves user experience, and has the ability to set personalized ringtones, while not affecting the construction and usage logic of existing AG devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116614799B_ABST
    Figure CN116614799B_ABST
Patent Text Reader

Abstract

The application belongs to the field of Bluetooth communication, and particularly relates to a control system and method for incoming audio of a Bluetooth HF device; the system comprises an AG device and an HF device, the HF device comprises a UI module, an HFP function module and an audio channel module connected with the UI module; the AG device is connected with the audio channel module through an SCO channel; the AG device is connected with the HFP function module through an ACL channel; the AG device is connected with the HFP function module through a CMD / event indication; the SCO channel carries voice audio data, the ACL channel carries signaling, and the CMD / event carries basic auxiliary information; the UI module controls opening and closing of the audio channel module, the HFP function module is used for controlling AT signaling related to the audio channel, and the audio channel module is used for processing audio data under the audio channel; the application can control audio of the HF device without affecting the existing AG device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of Bluetooth communication, specifically relating to a control system and method for incoming call audio of a Bluetooth HF device. Background Technology

[0002] Bluetooth is a technology that uses low-power radio waves to transmit data between various consumer electronics (C) devices. Bluetooth operates in the globally common 2.4 GHz ISM (Industrial, Scientific, and Medical) band and uses the IEEE 802.15 protocol. As an emerging short-range wireless communication technology, Bluetooth is strongly driving the development of low-data-rate wireless personal area networks (WLANs).

[0003] Bluetooth devices must pair within a certain range to connect. This pairing search is called a short-range ad hoc network (SNR), also known as a piconet, and can accommodate a maximum of eight devices. When Bluetooth devices successfully connect, there is only one master device, but multiple slave devices can be connected.

[0004] Bluetooth Hands-Free Profile (HFP) is one of the classic Bluetooth profiles. It allows Bluetooth devices to easily control telephones, such as answering, hanging up, rejecting calls, and voice dialing. HFP defines two roles: the audio gateway (AG) and the hands-free component (HF). The AG acts as the audio input / output gateway (especially for mobile phones). The HF serves as the remote audio input / output mechanism for the audio gateway and can provide several remote control functions.

[0005] When a call comes in, the Bluetooth device acting as the HF (High-Frequency) receiver outputs either a local ringtone or an in-band tone sent to the HF via a Synchronous Connection Oriented (SCO) channel by the AG (Aggregator). The type of ringtone output depends on the AG's capabilities. If the AG supports in-band tones, the incoming call ringtone is typically sent to the HF using the in-band tone; if the AG does not support in-band tones, the incoming call ringtone typically uses the HF's local ringtone. In other words, when a call comes in, the Bluetooth device acting as the HF receiver (hereinafter referred to as the HF device) cannot decide which method to use for ringing; instead, it is controlled by the Bluetooth device acting as the AG (hereinafter referred to as the AG device). This leads to the following shortcomings in the existing technology:

[0006] 1. In the audio framework of traditional HF devices, the HFP functional module controls the opening (opening the audio path within the HFP functional module: starting to send / receive audio data from the peer device via SCO) and closing (closing the audio path: ceasing to send / receive audio data from the peer device via SCO. Even if there is SCO input data, it is directly discarded); the UI module is responsible for opening and closing other related sound sources (such as alarm clock ringtones). Therefore, distributed control without a central control point leads to the complexity of multi-source control strategies (especially conflict handling strategies in cases of multi-source conflict: such as simultaneous occurrence of multiple sound sources including ringtones and alarm clock sounds) and redundancy in module interactions. On the other hand, distributed control makes it difficult for HF devices to achieve simultaneous audio and video output, i.e., consistency between the sound output of the ringtone and the display of the incoming call interface by the UI module (under in-band audio, after the AG device establishes the SCO path with the HF device, the HFP function module of the HF device will receive this information first, and it can directly control the opening of the audio path within the HFP function module to output the audio data of the ringtone; while the UI module needs to wait for the HFP function module to indicate the incoming call and number before it can display the incoming call interface; there is a time lag between the two).

[0007] 2. The UI module of the HF device is inconvenient to control the "Do Not Disturb" function. When "Do Not Disturb" is enabled, it is desirable for incoming calls to be silenced. However, "Do Not Disturb" information belongs to the application and is usually not known to the HFP function module. Therefore, in the incoming call process, if there is an internal tone, once the SCO is established, the HFP function module opens the audio path within the HF device, and the ringtone data is output through the audio path within the HF device. The UI module can only send a message to the HFP function module to disable the ringtone after receiving instructions from the HFP function module regarding the incoming call and number. Obviously, this does not provide a good user experience.

[0008] 3. It hinders the improvement of users' personalized experience. Users may want to set their own songs or recorded audio as ringtones, which can only be achieved by playing local ringtones. In this case, the audio transmitted by AG cannot be played. Summary of the Invention

[0009] Based on the problems existing in the prior art, this invention proposes a control system and method for incoming call audio in Bluetooth HF devices, in order to achieve the following objectives:

[0010] 1. To address the shortcomings of existing distributed control technologies, this invention designs a concise audio control framework. This framework unifies the control of all sound sources, with the UI module acting as the control center, instead of distributing the control of different sound sources among different modules (the HFP function module handles voice-related sound sources, and the UI module handles application-related sound sources).

[0011] 2. Based on this audio control framework, the UI module enters the caller ID / number reported by the HFP function module. After considering factors such as "Do Not Disturb" settings, it makes a comprehensive judgment and then opens the audio path within the HF device at an appropriate time to start playing the local ringtone / inner sound. This method facilitates multi-source audio control and enables functions such as "audio and video output simultaneously" and "Do Not Disturb."

[0012] 3. To address users' needs for personalized ringtones, this invention provides a strategy for forcibly converting in-band tones to local ringtones. The UI module of the HF device has a setting for "Whether to disable the in-band tone capability of the HF character." If set to "Yes," the HF device forcibly disables possible in-band tone types for incoming calls and plays local ringtones instead, thus satisfying the user's custom ringtone preferences.

[0013] In a first aspect of the invention, a control system for incoming call audio of a Bluetooth HF device is provided. The control system includes a first Bluetooth communication device and a second Bluetooth communication device. The first Bluetooth device and the second Bluetooth device support the Bluetooth Hands-Free Telephone Service (HFP) protocol. When the first Bluetooth device and the second Bluetooth device establish a Bluetooth connection, the first Bluetooth device is an Audio Gateway (AG) device, and the second Bluetooth device is a Hands-Free HF device. The HF device includes a UI module, an HFP function module, and an audio path module connected to the UI module. The AG device is connected to the audio path module via an SCO channel. The AG device is connected to the HFP function module via an ACL channel and a CMD / event indicator. The SCO channel carries voice audio data, and the ACL channel carries signaling. The CMD / event indicator carries basic auxiliary information. The UI module controls the opening and closing of the audio path module, and the HFP function module controls AT signaling related to the audio path. The audio path module processes the audio data under the audio path.

[0014] In a second aspect, the present invention also provides a method for controlling the incoming call audio of a Bluetooth HF device, the method comprising:

[0015] The UI module sends a command to the HFP function module to disable the in-phone tone of the HFP function module. The command to disable the in-phone tone of the HF device refers to whether to disable the in-phone tone audio playback of the HF device when the incoming call rings in the in-phone tone mode.

[0016] In response to the command to disable the in-band audio of the HF device, the HFP function module locally sets whether to disable the in-band audio of the HF device;

[0017] The HFP function module receives a first AT command from the AG device, which indicates whether the AG will provide in-line audio for incoming calls.

[0018] The HFP function module receives a second AT command from the AG device, which indicates that the ringing phase has begun and there is currently an incoming call.

[0019] The HFP function module determines whether to force the in-band tone to be converted to a local ringtone based on the first AT command, the second AT command, and the command to turn off the in-band tone of the HF device.

[0020] The HFP functional module sends the incoming call ringtone type to the UI module, which is used by the UI module to decide whether to play the local ringtone or the built-in sound.

[0021] The HFP functional module receives a third AT command from the AG device, the third AT command indicating the incoming call number;

[0022] The HFP functional module sends the caller's number to the UI module;

[0023] If the incoming call ringtone is a local ringtone,

[0024] The UI module displays the incoming call screen and plays the local ringtone;

[0025] The HFP functional module receives a fourth AT command from the AG device, which indicates the end of the ringing phase and the start of the voice phase.

[0026] The UI module displays the call interface, stops playing local ringtones, and opens the audio path within the HF device to play the call audio.

[0027] If the incoming call ringtone has an internal tone,

[0028] The UI module displays the incoming call screen, opens the audio path within the HF device, and plays the audio with its built-in audio.

[0029] The HFP functional module receives a fourth AT command from the AG device, which indicates the end of the ringing phase and the start of the voice phase.

[0030] The UI module displays the call interface, stops playing the audio with background music, and plays the call audio.

[0031] The beneficial effects of this invention are:

[0032] 1. The control system of the present invention has a centralized local audio control framework, which makes audio control of multiple audio sources more convenient and simple, and at the same time supports the UI module's "audio and video output simultaneously" and "do not disturb" functions that are closely related to user perception.

[0033] 2. The control system and method of the present invention enable HF devices, which can only passively accept the ringtone selection results of AG devices, to also have a certain ability to "select ringtone type", and thus achieve the ability to play personalized ringtones on this basis.

[0034] 3. The control system and method of this invention do not affect the construction and usage logic of existing AG equipment; this invention only controls the HF equipment. Therefore, it does not introduce modifications to the AG equipment, making it easier for engineering implementation. Attached Figure Description

[0035] Figure 1 This is a structural diagram of a control system for incoming call audio of a Bluetooth HF device according to an embodiment of the present invention;

[0036] Figure 2 This is a structural diagram of a control system for incoming call audio of a Bluetooth HF device according to a preferred embodiment of the present invention;

[0037] Figure 3 This is a flowchart of a method for controlling the incoming call audio of a Bluetooth HF device according to an embodiment of the present invention;

[0038] Figure 4 This is a flowchart of a method for controlling the incoming call audio of a Bluetooth HF device according to another embodiment of the present invention. Detailed Implementation

[0039] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0040] The Bluetooth Special Interest Group (SIG) specifies different protocols or service profiles for communication between Bluetooth devices. Common protocols include the Advanced Audio Distribution Profile (A2DP) and HFP. Among them, the Bluetooth hands-free phone service (HFP) protocol is mainly used for voice transmission between Bluetooth devices. For example, it allows Bluetooth devices to control mobile phone calls, such as answering, hanging up, rejecting calls, and voice dialing.

[0041] The HFP protocol defines two roles: audio gateway (AG) and hands-free component (HF).

[0042] As an audio input / output gateway, i.e., the origin of a call, the AG is responsible for monitoring incoming calls over the network, notifying the other end (HF) of the call status, and establishing standard synchronous connection oriented (SCO) or enhanced SCO streaming voice connections. In this embodiment, the device acting as the AG is also referred to as a gateway device.

[0043] The HF device, acting as a remote audio input / output device for the audio gateway (i.e., the receiving end of a call), is responsible for receiving call instructions sent by the AG, accepting SCO stream establishment, and providing several remote control functions (such as answering, hanging up, rejecting calls, and voice dialing). In this embodiment, the HF device is also referred to as a hands-free device.

[0044] Devices that support the HFP protocol generally have fixed roles. For example, mobile phones are fixed as gateway devices, and Bluetooth devices (such as smartwatches, smart glasses, Bluetooth headsets, etc.) are fixed as hands-free devices.

[0045] Based on the above scenarios, in some embodiments of the present invention, such as Figure 1 As shown, the present invention discloses a control system for incoming call audio of a Bluetooth HF device, comprising a first Bluetooth communication device and a second Bluetooth communication device. The first and second Bluetooth devices support the Bluetooth Hands-Free Telephone Service (HFP) protocol. When the first and second Bluetooth devices establish a Bluetooth connection, the first Bluetooth device is an Audio Gateway (AG) device, and the second Bluetooth device is a Hands-Free HF device. The HF device includes a UI module, an HFP function module, and an audio path module connected to the UI module. The AG device is connected to the audio path module via an SCO channel. The AG device is connected to the HFP function module via an ACL channel and a CMD / event instruction. The SCO channel carries voice audio data, and the ACL channel carries signaling. The CMD / event carries basic auxiliary information. The UI module controls the opening and closing of the audio path module, and the HFP function module controls the AT signaling related to the audio path. The audio path module processes the audio data under the audio path.

[0046] In some preferred embodiments of the present invention, such as Figure 2As shown, this invention discloses a control system for incoming call audio of a Bluetooth HF device, comprising a first Bluetooth communication device and a second Bluetooth communication device. The first and second Bluetooth devices support the Bluetooth Hands-Free Telephone Service (HFP) protocol. When the first and second Bluetooth devices establish a Bluetooth connection, the first Bluetooth device acts as an Audio Gateway (AG) device, and the second Bluetooth device acts as a Hands-Free HF device. The HF device includes a UI module and an application function module, an HFP function module, and an audio path module connected to the UI module. The AG device connects to the audio path module via an SCO channel; the AG device connects to the HFP function module via an ACL channel; and the AG device connects to the application function module via a CMD / event indicator. The SCO channel carries voice audio data, and the ACL channel carries signaling. The CMD / event indicator carries basic auxiliary information. The UI module controls the opening and closing of the audio path module, and the HFP function module controls AT signaling related to the audio path. The audio path module processes the audio data under the audio path. The application function module is responsible for instructing the UI module on application-related audio output information.

[0047] In some embodiments of the present invention, in order to achieve a more secure communication connection between the first Bluetooth communication device and the second Bluetooth communication device, the present invention also employs a matching connection algorithm for secure connection; specifically, it may include the following process:

[0048] 1) The first Bluetooth communication device requests the trajectory information of the second Bluetooth communication device within a certain time period, and the second Bluetooth communication device is able to normally return non-empty information;

[0049] 2) The feature information within the Bluetooth communication range fed back by the second Bluetooth communication device has corresponding parameters that can completely match the information locally recorded by the first Bluetooth communication device.

[0050] 3) The occurrence of special events recorded by the first Bluetooth communication device and the second Bluetooth communication device and the recorded information can be completely matched, and the timestamp deviation of the special events does not exceed the preset threshold.

[0051] The CMD / event indication includes a control interface for the Bluetooth chip provided by the Protocol module (Host Controller Interface, HCI) at the lowest level of the Bluetooth protocol stack. It belongs to the basic command API and data API (the lowest level module for data transmission and reception). It includes HCI command and HCI event. HCI command is a command sent by the Bluetooth protocol stack to the Bluetooth chip to control the chip's behavior. HCI event is an event reported by the Bluetooth chip to the Bluetooth protocol stack. In this invention, the AG device and the HFP functional module transmit basic auxiliary information through the CMD / event indication.

[0052] In this embodiment of the invention, the UI module serves as the central module, responsible for opening and closing the audio paths of all audio sources within the HF device. It is connected to the HFP functional module, the application functional module, and the audio path module within the HF device via an interface.

[0053] In this embodiment of the invention, the HFP functional module is responsible for voice-related signaling indication. It indicates to the UI the different stages of an incoming call, as well as the type of ringtone. Within the HF device, the HFP functional module only interfaces with the UI. Simultaneously, the HFP functional module connects to the AG device interface via the ACL path.

[0054] In this embodiment of the invention, the application function module is responsible for implementing various application functions. It instructs the UI on application-related audio output information (such as alarm clock sounds), etc. The application function module only interfaces with the UI module.

[0055] In this embodiment of the invention, the audio path module within the HF device is divided into uplink and downlink. It is responsible for audio data processing (audio data sampling, quantization, encoding, mixing, etc.) within the HF device's audio path. Within the HF device, it is controlled by the UI module and only connects to the UI module interface. Simultaneously, it connects to the AG device interface via the SCO path.

[0056] This invention allows for settings within the UI module of the HF device: "Whether to disable the in-band tone capability of the HF role." If set to "Yes," the HF device forcibly disables possible in-band tone ringtones and plays a local ringtone instead. If set to "No," the HF device receives either the SCO's in-band tone or activates a local ringtone based on the ringtone type configured in the AG device. This achieves a controllable design for in-band and local ringtones. This setting is valid within one power-on cycle (multiple changes are allowed, with the last setting taking effect).

[0057] In an embodiment of the present invention, a method for controlling the incoming call audio of a Bluetooth HF device is provided, the method comprising:

[0058] The UI module sends a command to the HFP function module to disable the in-phone tone of the HFP function module. The command to disable the in-phone tone of the HF device refers to whether to disable the in-phone tone audio playback of the HF device when the incoming call rings in the in-phone tone mode.

[0059] In response to the command to disable the in-band audio of the HF device, the HFP function module locally sets whether to disable the in-band audio of the HF device;

[0060] The HFP function module receives a first AT command from the AG device, which indicates whether the AG will provide in-line audio for incoming calls.

[0061] The HFP function module receives a second AT command from the AG device, which indicates that the ringing phase has begun and there is currently an incoming call.

[0062] It is understood that, in this embodiment of the invention, the end of the ringing phase signifies the start of the voice phase. From a signaling perspective, when the HF device receives the second AT command from the AG device, it indicates the end of the ringing phase and the start of the voice phase. From an audio playback perspective: if the ringtone is a local ringtone, then when switching to call voice, the local ringtone playback needs to be turned off and the call voice playback needs to begin; if the ringtone is an internal tone, then the ringtone type from the AG device needs to be played through the audio path within the HF device, which also indicates the end of the ringing phase and the start of the voice phase.

[0063] The HFP function module determines whether to force the in-band tone to be converted to a local ringtone based on the first AT command, the second AT command, and the command to turn off the in-band tone of the HF device.

[0064] The decision-making method of the HFP functional module includes the HFP functional module deciding whether to forcibly convert the in-band tone to the local ringtone based on the first AT command, the second AT command, and the command to turn off the in-band tone of the HF device. If the first AT command indicates that it is an in-band tone, the second AT command indicates that there is an incoming call, and the command to turn off the in-band tone of the HF device indicates that it is yes, then the in-band tone is forcibly converted to the local ringtone; otherwise, the in-band tone is not forcibly converted to the local ringtone.

[0065] It is understandable that the second AT command only applies to incoming calls, not outgoing calls. Therefore, the decision on whether to forcibly convert the in-band tone to a local ringtone is mainly determined by a combination of two commands: the first AT command (incoming call ringtone type) and the command to disable the in-band tone of the HF device (whether to forcibly convert the ringtone type). In practice:

[0066] If the incoming call has a background tone and you don't force it to switch, then play it normally as it has a background tone.

[0067] If the incoming call has an internal tone, and you force transfer it, then SCO is established but the voice channel is not opened, and the local ringtone will be played.

[0068] If the incoming call is a local ringtone, there is no option to force a replay; the local ringtone will be played directly.

[0069] The HFP function module sends the incoming call ringtone type to the UI module (if there is an instruction to force conversion of the ringtone type, the converted incoming call ringtone type is sent), which is used by the UI module to decide whether to play the local ringtone or the internal sound;

[0070] The HFP functional module receives a third AT command from the AG device, the third AT command indicating the incoming call number;

[0071] The HFP functional module sends the caller's number to the UI module;

[0072] If the incoming call ringtone is a local ringtone, that is, the incoming call is a local ringtone or is forcibly converted to a local ringtone;

[0073] The UI module displays the incoming call screen and plays the local ringtone;

[0074] The HFP functional module receives a fourth AT command from the AG device, which indicates the end of the ringing phase and the start of the voice phase.

[0075] The UI module displays the call interface, stops playing local ringtones, and opens the audio path within the HF device to play the call audio.

[0076] If the incoming call ringtone is an in-line tone, that is, the incoming call is an in-line tone and has not been set to be forcibly switched;

[0077] The UI module displays the incoming call screen, opens the audio path within the HF device, and plays the audio with its built-in audio.

[0078] The HFP functional module receives a fourth AT command from the AG device, which indicates the end of the ringing phase and the start of the voice phase.

[0079] The UI module displays the call interface, stops playing the in-line audio, and plays the call audio. In a preferred embodiment of the invention, before opening the audio path within the HF device, the HF audio path module receives an event indication from the AG device, indicating that audio data has arrived. It then checks whether the audio path within the HF device is open; if not, it discards the audio data corresponding to the event indication.

[0080] Figure 3 This is a flowchart of a method for controlling the incoming call audio of a Bluetooth HF device according to an embodiment of the present invention, as shown below. Figure 3 As shown, the method, taking the disabling of the in-band sound function as an example, may specifically include:

[0081] Call flow for HF devices that only play local ringtones:

[0082] The UI module setting to disable the HFP function module's built-in audio command is set to "Yes", which means disabling the built-in audio capability of the HFP function module.

[0083] The HFP function module, based on the UI module settings, locally disables the in-band audio of the HF device; that is, it records the flag: changeLocal as TRUE locally, indicating that the in-band audio of the HF device is disabled.

[0084] The HFP function module receives the first AT command +BSIR:1 (indicator with internal tone) from the peer device (AG) based on the ACL;

[0085] The HFP function module receives the second AT command +CIEV (callsetup=1) from the other end based on the ACL, indicating that there is currently an incoming call and the ringing tone is with an inner tone.

[0086] The HFP function module combines the information from the two AT commands and the information set in the UI module (changeLocal is set to TRUE) to force the in-band tone to be converted to the local ringtone.

[0087] The HFP module instructs the UI module to enter the incoming call ringing stage, and the ringing tone type is the local ring tone (without internal tone);

[0088] An SCO path is established between the AG device and the HF device. The HFP function module receives the indication that the SCO path has been established through basic auxiliary information. However, since the HF function module no longer has the function of controlling the audio path within the device, it does not perform any operation.

[0089] Before data from the SCO channel is transmitted to the audio channel within the HF device, the SCO sends an event to the HF audio channel module (indicating that downlink audio data has arrived). Upon receiving this event, the HF audio module checks whether the voice channel within the HF device is open. If it finds that the channel is not open, the data is discarded.

[0090] The HFP function module receives the third AT command + CLIP from the other end based on ACL, obtains the incoming call number, and instructs the UI. At this time, the UI displays the incoming call screen and plays the local ringtone (if it is Do Not Disturb, the ringtone will not be played, only the screen will be displayed).

[0091] The HFP module receives the fourth AT command +CIEV (call=1) from the other end based on the ACL, indicating the end of the ringing phase and the start of the voice phase. The UI then displays the call interface, stops playing the ringing tone, opens the audio path within the HF device, and switches to playing the call audio from the SCO path.

[0092] Figure 4 This is a flowchart of a method for controlling the incoming call audio of a Bluetooth HF device according to another embodiment of the present invention, as shown below. Figure 4 As shown, the method, taking the function of not disabling internal sound as an example, includes:

[0093] HF devices support playing incoming call flow with built-in ringtones (but cannot play user-set local personalized ringtones in this case):

[0094] In the UI settings, the command to disable the HFP function module with internal sound is set to "No"; that is, the ability to enable the HFP function module with internal sound is enabled.

[0095] The HFP module enables in-band audio for the HF device locally based on the UI module settings; that is, it records the flag changeLocal as FALSE locally, indicating that in-band audio for the HF device is enabled.

[0096] The HFP function module receives the first AT command +BSIR:1 (indicating that it has an internal tone) from the peer based on the ACL;

[0097] The HFP function module receives the second AT command from the other end: +CIEV: (callsetup=1);

[0098] The HFP function module integrates the information from the above AT commands and the UI settings (changeLocal is set to FALSE) to prevent the built-in tone from being forcibly converted to the local ringtone.

[0099] The HFP function module instructs the UI module to enter the ringing stage and reports the ringing tone type as having an internal tone.

[0100] An SCO path is established between the AG device and the HF device. The HF function module receives the indication that the SCO path has been established through basic auxiliary information, but because the HF function module no longer has the function of controlling the audio path within the device, it does not perform any operation.

[0101] Before data from the SCO channel is transmitted to the HF device audio channel, the SCO sends an event to the HF audio channel module (indicating that downlink audio data has arrived). After receiving the event, the HF audio module checks whether the voice channel in the HF device is open. If it finds that it is not open, it discards the audio data.

[0102] Subsequently, the HFP function module receives the third AT command + CLIP from the other end, obtains the incoming call number, and instructs the UI. At this point, the UI checks that the SCO has also been established. On the one hand, it displays the incoming call screen, and on the other hand, it opens the audio path and plays the in-band ringtone on the SCO path (if it is Do Not Disturb, the volume of the SCO is set to 0, and only the screen is displayed).

[0103] When the HFP module receives the fourth AT command +CIEV (call=1) from the other end, it indicates the end of the ringing phase and the start of the voice phase. The UI then displays the call interface; at this point, the data on the SCO channel is voice data, not ringing data.

[0104] It is understood that the control system for incoming call audio of a Bluetooth HF device and the control method for incoming call audio of a Bluetooth HF device of the present invention belong to the same inventive concept, and their corresponding technical features can be referenced by each other. Therefore, the present invention will not elaborate on them one by one.

[0105] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include ROM, RAM, disk, or optical disk, etc.

[0106] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A control system for incoming call audio in a Bluetooth HF device, characterized in that, The control system includes a first Bluetooth communication device and a second Bluetooth communication device. The first and second Bluetooth devices support the Bluetooth Hands-Free Telephone Service (HFP) protocol. When the first and second Bluetooth devices establish a Bluetooth connection, the first Bluetooth device is an Audio Gateway (AG) device, and the second Bluetooth device is a Hands-Free Component (HF) device. The HF device includes a UI module and an HFP function module and an audio path module connected to the UI module. The AG device is connected to the audio path module via an SCO channel. The AG device is connected to the HFP function module via an ACL channel and a CMD / event indicator. The SCO channel carries voice audio data, and the ACL channel carries signaling. The CMD / event indicator carries basic auxiliary information. The UI module controls the opening and closing of the audio path module, and the HFP function module controls AT signaling related to the audio path. The audio path module processes audio data under the audio path. The HF device also includes an application function module connected to the UI module, which is responsible for instructing the UI module on application-related audio output information.

2. A method for controlling the incoming call audio of a Bluetooth HF device, characterized in that, The method includes: The UI module sends a command to the HFP function module to disable the in-phone tone of the HFP function module. The command to disable the in-phone tone of the HF device refers to whether to disable the in-phone tone audio playback of the HF device when the incoming call rings in the in-phone tone mode. In response to the command to disable the in-band audio of the HF device, the HFP function module locally sets whether to disable the in-band audio of the HF device; The HFP function module receives a first AT command from the AG device, which indicates whether the AG will provide in-line audio for incoming calls. The HFP function module receives a second AT command from the AG device, which indicates that the ringing phase has begun and there is currently an incoming call. The HFP function module determines whether to force the in-band tone to be converted to a local ringtone based on the first AT command, the second AT command, and the command to turn off the in-band tone of the HF device. The HFP functional module sends the incoming call ringtone type to the UI module, which is used by the UI module to decide whether to play the local ringtone or the built-in sound. The HFP functional module receives a third AT command from the AG device, the third AT command indicating the incoming call number; The HFP functional module sends the caller's number to the UI module; If the incoming call ringtone is a local ringtone, The UI module displays the incoming call screen and plays the local ringtone; The HFP functional module receives a fourth AT command from the AG device, which indicates the end of the ringing phase and the start of the voice phase. The UI module displays the call interface, stops playing local ringtones, and opens the audio path within the HF device to play the call audio. If the incoming call ringtone has an internal tone, The UI module displays the incoming call screen, opens the audio path within the HF device, and plays the audio with its built-in audio. The HFP functional module receives a fourth AT command from the AG device, which indicates the end of the ringing phase and the start of the voice phase. The UI module displays the call interface, stops playing the audio with background music, and plays the call audio.

3. The method for controlling the incoming call audio of a Bluetooth HF device according to claim 2, characterized in that, The option to disable the in-band tone of the HF device locally is effective within one power-on cycle.

4. The method for controlling the incoming call audio of a Bluetooth HF device according to claim 2, characterized in that, The HFP function module determines whether to forcibly convert the in-band tone to a local ringtone based on the first AT command, the second AT command, and the command to turn off the in-band tone of the HF device. If the first AT command indicates that the in-band tone is active, the second AT command indicates that there is an incoming call, and the command to turn off the in-band tone of the HF device is active, then the in-band tone is forcibly converted to a local ringtone; otherwise, the in-band tone is not forcibly converted to a local ringtone.

5. The method for controlling the incoming call audio of a Bluetooth HF device according to claim 2, characterized in that, Before opening the audio path within the HF device, the HF audio path module receives an event indication from the AG device, indicating that audio data has arrived. It then checks whether the audio path within the HF device is open. If it is not open, the audio data corresponding to the event indication is discarded.

Citation Information

Patent Citations

  • Ringtone control method and system, storage medium and terminal

    CN115550885A