Call control method and terminal
09800704 · 2017-10-24
Assignee
Inventors
Cpc classification
H04W4/80
ELECTRICITY
H04B5/00
ELECTRICITY
International classification
H04W4/00
ELECTRICITY
H04B5/00
ELECTRICITY
Abstract
A Bluetooth-related call control method for mobile phones and a mobile terminal relate to the technical field of mobile communication terminals and Bluetooth. The terminal disclosed in the present document includes: a Bluetooth connection detection module, configured to detect a Bluetooth connection state between a headset and the terminal, and when the Bluetooth connection state between the headset and the terminal is a disconnected state and in a current call state a call is present, transmit a prompt tone play command to a play module; and the play module, configured to read and play externally a first preset audio file according to the prompt tone play command transmitted by the Bluetooth connection detection module, herein the first preset audio file stores a prompt tone indicating that the Bluetooth headset has been disconnected.
Claims
1. A terminal, comprising a Bluetooth connection detection module, a call module and a play module, wherein, the Bluetooth connection detection module is configured to detect a Bluetooth connection state between a Bluetooth headset and the terminal, query a current call state from the call module when detecting that the Bluetooth connection state between the Bluetooth headset and the terminal is a disconnected state, and transmit a prompt tone play command to the play module when the Bluetooth connection state between the Bluetooth headset and the terminal is the disconnected state and the current call state is that a call is present; the call module is configured to feed back the current call state to the Bluetooth connection detection module; and the play module is configured to read a first preset audio file and play externally the first preset audio file according to the prompt tone play command transmitted by the Bluetooth connection detection module, wherein the first preset audio file stores a prompt tone indicating that the Bluetooth headset has been disconnected; wherein, the play module is further configured to further read a second preset audio file and transmit the second preset audio file to an opposing side of the call via a voice channel when receiving the prompt tone play command transmitted by the Bluetooth connection detection module, wherein the second preset audio file is an audio file indicating that the Bluetooth headset has been disconnected.
2. The terminal according to claim 1, wherein the play module is configured to read a second preset audio file and transmit the second preset audio file to the opposing side of the call via a voice channel by the following method: reading the second preset audio file from a physical storage space of the terminal, outputting a corresponding byte stream in the second preset audio file encoded by a codec to the voice channel of the call module, and transmitting the byte stream to the opposing side of the call via a wireless air interface.
3. The terminal according to claim 2, wherein the Bluetooth connection detection module is configured to detect the Bluetooth connection state between the Bluetooth headset and the terminal by the following method: registering monitoring on a Bluetooth module of the terminal to detect the Bluetooth connection state between the Bluetooth headset and the terminal.
4. The terminal according to claim 1, wherein the play module is configured to read a first preset audio file and play externally the first preset audio file by the following method: reading the first preset audio file from a physical storage space of the terminal, and controlling the first preset audio file encoded by a codec to be externally played by a speaker.
5. The terminal according to claim 4, wherein the Bluetooth connection detection module is configured to detect the Bluetooth connection state between the Bluetooth headset and the terminal by the following method: registering monitoring on a Bluetooth module of the terminal to detect the Bluetooth connection state between the Bluetooth headset and the terminal.
6. The terminal according to claim 1, wherein the Bluetooth connection detection module is configured to detect the Bluetooth connection state between the Bluetooth headset and the terminal by the following method: registering monitoring on a Bluetooth module of the terminal to detect the Bluetooth connection state between the Bluetooth headset and the terminal.
7. A call control method, comprising: detecting, by a terminal, a Bluetooth connection state between a Bluetooth headset and the terminal, and when detecting that the Bluetooth connection state between the Bluetooth headset and the terminal is a disconnected state and the terminal determines that a call is currently present, playing externally, by the terminal, a first preset audio file, wherein the first preset audio file stores a prompt tone indicating that the Bluetooth headset has been disconnected; wherein when detecting that the Bluetooth connection state between the Bluetooth headset and the terminal is the disconnected state and the terminal determines that the call is currently present, the method further comprises: transmitting, by the terminal, a second preset audio file to an opposing side of the call via a voice channel, wherein the second preset audio file is an audio file indicating that the Bluetooth headset has been disconnected.
8. The method according to claim 7, wherein the step of transmitting, by the terminal, a second preset audio file to the opposing side of the call via a voice channel comprises: reading, by the terminal, the second preset audio file from a physical storage space of the terminal, outputting a corresponding byte stream in the second preset audio file encoded by a codec to the voice channel of a call module, and transmitting the byte stream to the opposing side of the call via a wireless air interface.
9. The method according to claim 8, wherein the step of detecting, by a terminal, a Bluetooth connection state between a Bluetooth headset and the terminal comprises: registering, by the terminal, monitoring on a Bluetooth module of the terminal to detect the Bluetooth connection state between the Bluetooth headset and the terminal.
10. The method according to claim 7, wherein the step of playing externally, by the terminal, a first preset audio file comprises: reading, by the terminal, the first preset audio file from a physical storage space of the terminal, and playing externally the first preset audio file encoded by a codec through a speaker.
11. The method according to claim 10, wherein the step of detecting, by a terminal, a Bluetooth connection state between a Bluetooth headset and the terminal comprises: registering, by the terminal, monitoring on a Bluetooth module of the terminal to detect the Bluetooth connection state between the Bluetooth headset and the terminal.
12. The method according to claim 7, wherein the step of detecting, by a terminal, a Bluetooth connection state between a Bluetooth headset and the terminal comprises: registering, by the terminal, monitoring on a Bluetooth module of the terminal to detect the Bluetooth connection state between the Bluetooth headset and the terminal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
PREFERRED EMBODIMENTS OF THE INVENTION
(3) The technical solutions according to the embodiments of the present document will be further described in detail below in conjunction with accompanying drawings. It should be illustrated that without any conflict, the embodiments of the present application and the features in the embodiments can be randomly combined with each other.
(4) Embodiment One
(5) In the embodiment of the present document, a Bluetooth connection state between a headset and a mobile phone may be detected during a call, and when a disconnection is detected, a user and the opposing side of the call may be prompted that the Bluetooth headset has been disconnected.
(6) The present embodiment provides a terminal, as shown in
(7) The Bluetooth connection detection module 101 is configured to detect a Bluetooth connection state between a headset and the terminal, query a current call state from the call module if a disconnection has been detected, and transmit a prompt tone play command to the play module if a call is present.
(8) Herein, the Bluetooth connection detection module 101 interacts with a Bluetooth module related to the mobile phone via an interface (as shown in
(9) The call module 102 is configured to feed back the current call state to the Bluetooth connection detection module.
(10) Herein, the above call module 102 further interacts with a wireless network side, and manages a call session of the terminal, including establishment and release of an air interface link, open and close of a voice channel, provision of a query for a call state to other modules of the mobile phone.
(11) The play module 103 is configured to read the first preset audio file and play externally the first preset audio file according to the prompt tone play command transmitted by the Bluetooth connection detection module 101. Herein the first preset audio file stores a prompt tone indicating that the Bluetooth headset has been disconnected.
(12) It can be seen that the above play module 103 externally plays the first preset audio file, which is primarily used to prompt the user that the Bluetooth headset used in the current call has been disconnected from the mobile phone, so that the user implements subsequent operations.
(13) On the basis of the above terminal, alternatively, when the play module 103 receives the prompt tone play command transmitted by the Bluetooth connection detection module 101, the play module 103 may further read the second preset audio file and transmit the second preset audio file to the opposing side of the call via the voice channel, herein the second preset audio file is an audio file indicating that the Bluetooth headset has been disconnected. That is, the play module 103 may further transmit a prompt tone indicating that the Bluetooth headset has been disconnected from the terminal to the opposing side of the call, to prompt the opposing side that the call may be influenced.
(14) Specifically, the Bluetooth connection detection module 101 calls an active query interface to acquire the current call state once receiving a notification of the disconnection from the Bluetooth module. If there is a call, the Bluetooth connection detection module 101 issues a Request (i.e., a prompt voice play command) to the play module 103. The play module 103 transmits a Response to the Bluetooth detection module after receiving the command. Then, the play module 103 reads a preset file 1, and externally plays the preset file 1 to prompt the user through a speaker after the preset file 1 is encoded and decoded by a codec. At the same time, a preset audio file 2 is read from a physical storage space of the mobile phone, the preset audio file 2 is encoded by a codec and then a corresponding byte stream is output to the voice channel of the call module 102, and then the byte stream is transmitted to the opposing side of the call via a wireless air interface.
(15) A specific implementation of the above process is shown in
(16) In step 201, a Bluetooth connection detection module registers monitoring on a Bluetooth module of a mobile phone.
(17) In step 202, after the Bluetooth connection is broken between the Bluetooth headset and the mobile phone, the Bluetooth module of the mobile phone notifies the state to the Bluetooth connection detection module.
(18) In step 203, the Bluetooth connection detection module queries a current call state, and if there is no call, the process turns to step 5209, and if there is a call, the process turns to step 204.
(19) In step 204, the Bluetooth connection detection module issues a Request to a occurrence of such case, and externally plays the first preset audio file through a speaker to the play module.
(20) In step 205, after receiving the Request, the play module transmits a Response to the Bluetooth connection module.
(21) In step 206, the play module reads a preset file 2 (i.e., the second preset audio file) from a physical storage area, and outputs a corresponding byte stream to a voice channel of the call module after the preset file 2 is encoded by a codec.
(22) In step 207, the call module transmits the byte stream in the voice channel via a wireless air interface link.
(23) In step 208, the play module reads a preset file 1 (i.e., the first preset audio file) from the physical storage area, and externally plays the preset file 1 through a speaker after the preset file 1 is encoded and decoded by the codec.
(24) In step 209, the process ends.
(25) Embodiment two
(26) The present embodiment provides a call control method. With this method, mainly in a case that a user is using a terminal to make a call through a Bluetooth headset, after there is a Bluetooth disconnection between the Bluetooth headset and the mobile phone due to some unexpected factors (for example power-off of the headset due to no power, a distance between the headset and the mobile phone exceeds a limit or the like), the terminal can detect occurrence of such case, and externally plays the first preset audio file through a speaker to the user, i.e., a prompt tone, “please note that the Bluetooth headset has been disconnected”. Alternatively, the second preset audio file may also be played to the opposing side of the call via a voice channel of the wireless network, herein the second preset audio file may have content of “the Bluetooth headset of the opposing side has been disconnected, please wait”.
(27) A call control method according to the present embodiment includes:
(28) a terminal detects a Bluetooth connection state between a headset and the terminal, and
(29) when detecting that the Bluetooth connection state between the headset and the terminal is a disconnected state and the terminal determines that a call is currently present, the terminal plays externally the first preset audio file, herein the first preset audio file stores a prompt tone indicating that the Bluetooth headset has been disconnected.
(30) Herein, the terminal may register monitoring on a Bluetooth module of the mobile phone to detect the Bluetooth connection state between the headset and the terminal.
(31) The process of playing externally, by the terminal, the first preset audio file includes: the terminal reads the first preset audio file from a physical storage space of the terminal, and plays externally the first preset audio file encoded by a codec through a speaker.
(32) Further, alternatively, when it is detected that the Bluetooth connection state between the headset and the terminal is disconnected and the terminal determines that a call is currently present, the second preset audio file is further transmitted to the opposing side of the call via a voice channel, to prompt the opposing side of the call that “the Bluetooth headset has been disconnected”. At this time, a file byte stream is read from a physical storage space of the mobile phone, and then is processed by a codec of the mobile phone. The solution relates to two preset audio files, herein, the first preset audio file is an audio file which is used to prompt the user that the Bluetooth connection of his/her own has been disconnected, and this file is processed by the codec and then is directly played by an externally-connected speaker; and the second preset audio file is played to the opposing side of the call, and the file is processed by the codec and then the encoded byte stream is transmitted to the voice channel.
(33) It can be seen from the above embodiments that with the technical solutions of the present application, after the terminal is disconnected from the Bluetooth headset, the terminal automatically externally plays a prompt voice such as “please note that the Bluetooth headset has been disconnected” or the like to the user through a speaker to prompt the user, and at the same time plays a preset record file (the record file may have content of “the Bluetooth headset of the opposing side has been disconnected, please wait”) to the opposing side via the voice channel of the wireless network to prompt the opposing side to wait for a moment. This not only prompts the user himself/herself, but also is beneficial to the opposing side of the call to know the current condition, thereby largely improving user experience.
(34) One ordinary skilled in the art can understand that all or a part of steps in the above method can be implemented by programs instructing related hardware, and the programs can be stored in a computer readable storage medium, such as a read-only memory, a disk or a CD-ROM, etc. Alternatively, all or a part of steps in the above embodiments can also be implemented by one or more integrated circuits. Accordingly, one or more modules/units in the above embodiments can be implemented in the form of hardware, or can also be implemented in the form of software functional module. The present application is not limited to any particular form of a combination of hardware and software.
(35) The above description is only the preferable embodiments of the present document, which is not used to limit the present document. All the modifications, equivalent substitutions, and improvements, etc. made within the essence and principle of the present document shall fall into the protection scope of the present document.
INDUSTRIAL APPLICABILITY
(36) With the technical solutions of the present application, the user is prompted when the terminal is disconnected from the Bluetooth headset in the process of a call, which is beneficial to the opposing side of the call to know the current condition in this way, thereby greatly improving user experience. Therefore, the present document has strong industrial applicability.