CN111818503B - Voice communication method, system, chip, electronic equipment and storage medium - Google Patents
Voice communication method, system, chip, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111818503B CN111818503B CN202010935271.1A CN202010935271A CN111818503B CN 111818503 B CN111818503 B CN 111818503B CN 202010935271 A CN202010935271 A CN 202010935271A CN 111818503 B CN111818503 B CN 111818503B
- Authority
- CN
- China
- Prior art keywords
- terminal
- instruction
- request
- voice call
- data connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 114
- 230000006854 communication Effects 0.000 title claims abstract description 27
- 238000004891 communication Methods 0.000 title claims abstract description 25
- 230000001360 synchronised effect Effects 0.000 claims abstract description 206
- 230000008569 process Effects 0.000 claims abstract description 31
- 230000004044 response Effects 0.000 claims description 50
- 238000004590 computer program Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000002349 favourable effect Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention relates to the technical field of communication, and discloses a voice call method, a system, a chip, electronic equipment and a storage medium. In the present invention, the voice call method includes: in the process of transmitting a voice call data packet with a first terminal, if a voice call request instruction of a second terminal is received and an instruction for representing the voice call allowing to access the second terminal is received, sending a request for disconnecting synchronous data connection to the first terminal; after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal, so that the load of data communication of a Bluetooth chip can be reduced and the power consumption of the Bluetooth chip is reduced in the scene of incoming calls of a plurality of terminals.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a voice call method, a voice call system, a voice call chip, electronic equipment and a storage medium.
Background
With the application of the wireless bluetooth headset becoming more and more extensive, the use scene also becomes more and more diversified, and users often have the demand that the headset is connected with a plurality of terminal devices, for example, a user has a plurality of mobile phones, vehicle-mounted bluetooth equipment, etc. Currently, in an application scenario in which a bluetooth headset is connected with multiple mobile phones, a synchronous data connection is established during a call of one mobile phone, and a call is made to another mobile phone.
However, the inventors found that at least the following problems exist in the related art: under the scene of multiple terminal incoming calls, multiple synchronous data connections are established at the earphone end, so that the data communication load of the earphone end and the power consumption of the earphone end are increased.
Disclosure of Invention
An object of embodiments of the present invention is to provide a voice communication method, system, chip, electronic device, and storage medium, which can reduce data communication load of a bluetooth chip and power consumption of the bluetooth chip in a scenario of incoming calls from multiple terminals.
In order to solve the above technical problem, an embodiment of the present invention provides a voice call method, which is applied to a bluetooth chip, and includes: in the process of transmitting a voice call data packet with a first terminal, if a voice call request instruction of a second terminal is received and an instruction for representing the voice call allowing to access the second terminal is received, sending a request for disconnecting synchronous data connection to the first terminal; and after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal.
The embodiment of the invention also provides a voice communication method, which is applied to a first chip and comprises the following steps: after receiving a request of disconnecting synchronous data connection sent by a third terminal when a first preset condition is met, stopping transmitting a voice call data packet to the third terminal; wherein the first preset condition comprises: in the process that the third terminal transmits the voice call data packet with the first chip, the third terminal receives a voice call request instruction of the second terminal and receives an instruction used for representing the voice call which is allowed to be accessed to the second terminal.
The embodiment of the invention also provides a voice call method, which is applied to a second chip and comprises the following steps: in the process that a third terminal transmits a voice call data packet with a first terminal, the second chip sends a voice call request instruction to the third terminal; after the third terminal receives an instruction for representing that the voice call allowing to access the second chip is allowed, the third terminal sends a request for disconnecting the synchronous data connection to the first terminal; after the third terminal sends a request for disconnecting the synchronous data connection to the first terminal, the second chip sends a request for establishing the synchronous data connection to the third terminal; and transmitting the voice call data packet to the third terminal.
An embodiment of the present invention further provides a voice call system, including: the Bluetooth device comprises a Bluetooth chip, a first terminal and a second terminal;
the Bluetooth chip is used for sending a request for disconnecting synchronous data connection to the first terminal if a voice call request instruction of the second terminal and an instruction for representing voice call allowing to access the second terminal are received in the process of transmitting a voice call data packet with the first terminal; the first terminal is used for receiving and responding to the request for disconnecting the synchronous data connection, which is sent by the Bluetooth chip; the second terminal is used for sending the voice call request instruction to the Bluetooth chip after receiving an incoming call, and sending a request for establishing synchronous data connection to the Bluetooth chip after the Bluetooth chip sends a request for disconnecting the synchronous data connection to the first terminal; the Bluetooth chip is further configured to transmit a voice call data packet to the second terminal after receiving a request for establishing a synchronous data connection sent by the second terminal.
An embodiment of the present invention further provides a bluetooth chip, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the voice call method applied to the Bluetooth chip.
An embodiment of the present invention also provides a first chip, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the voice call method applied to the first chip.
An embodiment of the present invention also provides a second chip, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the voice call method applied to the second chip.
An embodiment of the present invention also provides an electronic device, including: if the electronic equipment is a third terminal, the electronic equipment comprises a Bluetooth chip; if the electronic equipment is a first terminal, the electronic equipment comprises a first chip; and if the electronic equipment is the second terminal, the electronic equipment comprises a second chip.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the voice call method described above.
Compared with the prior art, in the process of transmitting the voice call data packet with the first terminal, if the voice call request instruction of the second terminal is received and the instruction for representing the voice call allowing to access the second terminal is received, the method and the device send the request for disconnecting the synchronous data connection to the first terminal; and after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal. That is to say, in the process of transmitting the voice call data packet with the first terminal by the bluetooth chip, that is, in the process of answering the call of the first terminal by the user through the bluetooth chip, if the second terminal makes a call, the second terminal sends a voice call request instruction to the bluetooth chip, and the bluetooth chip receives the voice call request instruction and receives an instruction for representing the voice call allowed to access the second terminal, sends a request for disconnecting the synchronous data connection to the first terminal, so as to disconnect the synchronous data connection established between the first terminal and the bluetooth chip. Then, after receiving a request for establishing synchronous data connection sent by a second terminal, transmitting a voice call data packet to the second terminal, namely after the synchronous data connection established between the first terminals is disconnected by the Bluetooth chip, establishing synchronous data connection with the second terminal based on the request for establishing synchronous data connection sent by the second terminal, so that a user can answer the call of the second terminal through the Bluetooth chip. Therefore, under the scene that the Bluetooth chip faces the incoming call access of a plurality of terminals, a plurality of synchronous data connections do not need to be established on the Bluetooth chip side, the load of data communication of the Bluetooth chip is reduced, the power consumption of the Bluetooth chip is reduced, the synchronous data connection established between the first terminal and the Bluetooth chip is disconnected, and only the fact that the voice call data packet cannot be transmitted currently between the first terminal and the Bluetooth chip is indicated, namely, the user cannot answer the voice call of the first terminal through the Bluetooth chip currently, the user does not mean to hang up the telephone of the first terminal, and the normal call of the user cannot be influenced to a certain extent.
In addition, before the sending the request for disconnecting the synchronous data connection to the first terminal, the method further includes: and if the request for establishing the synchronous data connection sent by the second terminal is received, the request for establishing the synchronous data connection sent by the second terminal is not responded within a preset time length, or information for refusing to establish the synchronous data connection is sent to the second terminal. That is to say, before the synchronous data connection established between the first terminal and the bluetooth chip is not disconnected, even if the bluetooth chip receives the synchronous data connection establishment request of the second terminal, the synchronous data connection with the second terminal is not established, so that the bluetooth chip is ensured to establish the synchronous data connection with only one terminal, and the power consumption of the bluetooth chip is favorably reduced. And the bluetooth chip refuses to establish synchronous data connection with the second terminal, and only indicates that the voice call data packet cannot be transmitted between the second terminal and the bluetooth chip currently, i.e. the user cannot answer the voice call of the second terminal through the bluetooth chip currently, the normal answering of the second terminal is not influenced, and the second terminal can ring normally.
In addition, before the sending the request for disconnecting the synchronous data connection to the first terminal, the method further includes: sending a first instruction to the first terminal; the first instruction is used for indicating the first terminal to switch a call state from a receiving state to a holding state; receiving first response information of the first terminal to the first instruction; the first response information is used for representing that the current call state of the first terminal is a hold state, so that the call state of the first terminal can be conveniently restored to an answer state according to actual needs, and call experience is improved. By sending the first instruction to the first terminal to instruct the first terminal to switch the call state from the answering state to the holding state, the first terminal is facilitated to switch the call state from the answering state to the holding state under the instruction of the first instruction. And receiving first response information from the first terminal, wherein the first response information is used for representing that the current call state of the first terminal is the hold state, so that the Bluetooth chip can clearly know the current actual call state of the first terminal, the first terminal is ensured to successfully respond to the first instruction, and the smooth completion of call state switching is ensured.
In addition, after the transmitting the voice call data packet to the second terminal, the method further includes: if an instruction for representing the end of the call of a second terminal is received, sending a request for disconnecting the synchronous data connection to the second terminal; after the request for disconnecting the synchronous data connection is sent to the second terminal, if the request for establishing the synchronous data connection sent by the first terminal is received, sending a second instruction to the first terminal; the second instruction is used for indicating the first terminal to switch the call state from the holding state to the answering state; receiving second response information of the first terminal to the second instruction; the second response information is used for representing that the current call state of the first terminal is a listening state. That is to say, after the conversation at the second terminal, the synchronous data connection between bluetooth chip disconnection and the second terminal, the bluetooth chip reestablishes the synchronous data connection between with the first terminal, keep the bluetooth chip to establish synchronous data connection with a terminal at present promptly, switch over the conversation state at first terminal into the state of answering again, be favorable to when the consumption at the bluetooth chip, convenience of customers continues to answer the conversation at first terminal through the bluetooth chip, resume the conversation at first terminal promptly through the bluetooth chip, be favorable to improving user's use and experience.
In addition, the Bluetooth chip is arranged in a third terminal, and the third terminal is a wireless Bluetooth headset. That is to say, in the process that the user uses the wireless bluetooth headset to answer the call of the first terminal, if the second terminal makes a call, the second terminal sends a voice call request instruction to the wireless bluetooth headset, the wireless bluetooth headset receives the voice call request instruction and receives an instruction for representing that the voice call allowed to be accessed to the second terminal is determined that the user wants to answer the call of the second terminal, the wireless bluetooth headset disconnects the synchronous data connection established with the first terminal, and establishes the synchronous data connection with the second terminal so as to access the call of the second terminal. Therefore, under the scene that the wireless Bluetooth headset faces incoming calls of a plurality of terminals, a plurality of synchronous data connections do not need to be established on the side of the wireless Bluetooth headset, the load of data communication of the wireless Bluetooth headset is reduced, the power consumption of the wireless Bluetooth headset is reduced, the synchronous data connection established between the first terminal and the wireless Bluetooth headset is disconnected, the call of the first terminal is not hung up, only the fact that the voice call data packet cannot be transmitted between the first terminal and the wireless Bluetooth headset currently is indicated, namely, the user cannot answer the voice call of the first terminal through the wireless Bluetooth headset currently, and the normal call of the user cannot be influenced to a certain extent.
In addition, the synchronous data connection is: the extended synchronization is data connection oriented eSCO. Consider that one eSCO connection can occupy one ACL link alone. In the prior art, in the process of a call, if a second terminal makes a call, an eSCO connection (which may also be referred to as an eSCO link) is established between a bluetooth chip and each of the first terminal and the second terminal, that is, two eSCO connections exist and two ACL links are occupied. The address space in the Bluetooth chip is limited, the ACL link and the eSCO link occupy the limited address space in the Bluetooth chip, the number of the address spaces occupied by the eSCO link in the limited address space is large, the address space allowing the ACL link to be established is relatively reduced, namely, the number of the ACL links which can be established is reduced, and the ACL links are the basis for data communication between the terminal and the Bluetooth chip, so that the number of the terminals which can be connected by the Bluetooth chip is influenced. Compared with the prior art, the method and the device for establishing the ACL link can save the eSCO link, namely, the occupied address space can be saved, the saved address space can be used for establishing more ACL links, namely, more terminals are allowed to establish the ACL link with the Bluetooth chip, so that the Bluetooth chip can perform data communication with more terminals based on the establishment of the ACL link, namely, the number of the terminals which can be connected with the Bluetooth chip can be increased to a certain extent.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flowchart of a voice call method according to a first embodiment of the present invention;
fig. 2 is a schematic view of a wireless bluetooth headset according to a first embodiment of the present invention, after accessing a call of a mobile phone a, a mobile phone B also comes to a call;
fig. 3 is a schematic diagram of the first embodiment of the present invention, wherein the SCO connection between the mobile phone a and the wireless bluetooth headset is disconnected, and the SCO connection between the mobile phone B and the wireless bluetooth headset is established;
fig. 4 is a flowchart of a voice call method according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of the mobile phone a resuming the call after the phone of the mobile phone B is disconnected according to the second embodiment of the present invention;
fig. 6 is a schematic diagram of interaction between a mobile phone a, a mobile phone B and a wireless bluetooth headset according to a second embodiment of the present invention;
fig. 7 is a flowchart of a voice call method according to a third embodiment of the present invention;
fig. 8 is a flowchart of a voice call method according to a fourth embodiment of the present invention;
fig. 9 is a schematic diagram of a voice call system in a fifth embodiment according to the present invention;
fig. 10 is a schematic structural diagram of a bluetooth chip according to a sixth embodiment of the present invention;
fig. 11 is a schematic structural diagram of a first chip according to a seventh embodiment of the present invention;
fig. 12 is a schematic structural diagram of a second chip according to an eighth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The inventors of the present application found that the reason why the load and power consumption of the data communication of the bluetooth headset increase in the related art is that: because several mobile phones are in call, several synchronous data connections are required to be established, the number of the synchronous data connections is increased, the load of data communication of the Bluetooth headset is increased, and the power consumption of the Bluetooth headset is increased due to the fact that the number of the established synchronous data connections is large. In order to solve the above technical problem, an embodiment of the present invention provides a voice call method.
The first embodiment of the present invention relates to a voice call method applied to a bluetooth chip that can be built in a third terminal, and for convenience of description, the third terminal can also be referred to as a wireless bluetooth device in this embodiment and the following embodiments. The wireless Bluetooth device can be a wireless Bluetooth earphone, a vehicle-mounted Bluetooth, a Bluetooth watch and the like. The application scenario of the present embodiment may be: the user has a plurality of terminals (such as a first terminal and a second terminal) connected with the wireless Bluetooth device in a pairing manner, and the first terminal and the second terminal can be Bluetooth devices capable of making calls, such as a mobile phone and a tablet personal computer. When a user uses the wireless bluetooth device to answer the call of the first terminal, the wireless bluetooth device receives a call access instruction of the second terminal, and the call access instruction may also be referred to as a voice call request instruction. For example, the wireless bluetooth device is exemplified by a wireless bluetooth headset, and the first terminal and the second terminal are exemplified by a mobile phone a and a mobile phone B, respectively. The application scenario of the present embodiment can be understood as follows: when the user answers the call of the mobile phone A by using the wireless Bluetooth headset, the mobile phone B also makes a call. In this embodiment, a processing method of the bluetooth chip in the above application scenario is mainly described. The following describes implementation details of the voice call method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary to implement the present embodiment.
For ease of understanding, the bluetooth protocol related to this embodiment will be briefly described first:
according to the Bluetooth protocol, communication data transmission is carried out between the wireless Bluetooth equipment and the terminal, namely when the wireless Bluetooth equipment is used for answering the call of the terminal, the wireless Bluetooth equipment and the terminal need to establish the following connection: asynchronous Connection-Oriented (ACL Connection for short), Connection for controlling telephone by wireless Bluetooth equipment (HFP Connection for short), and synchronous data Connection.
The ACL connection is a basic connection for data communication between the wireless bluetooth device and the terminal, and supports both symmetric connection and asymmetric connection. HFP connects and establishes based on ACL, and HFP connects the characteristic interaction that is used for realizing supporting between wireless bluetooth equipment and the terminal, state transmission, encoding mode negotiation etc. HFP connects the back of establishing for wireless bluetooth equipment can control the phone, if answer, hang up, refuse, voice dialing etc. is the settable mode that lets wireless bluetooth equipment get into high-fidelity conversation. In a specific implementation, after the wireless bluetooth device and the terminal are connected in a pairing manner, the ACL connection and the HFP connection between the wireless bluetooth device and the terminal are completed. The wireless Bluetooth device establishes ACL connection and HFP connection with the terminal, and is a basis for answering the phone of the terminal by using the wireless Bluetooth device.
The synchronous data connection is a connection established between the wireless bluetooth device and the terminal in the process of making or receiving a call, and is used for synchronizing the call voice data of the terminal between the wireless bluetooth device and the terminal. The Synchronous data Connection may be a Synchronous data Connection (SCO Connection for short) or an Extended Synchronous data Connection (eSCO Connection for short). The eSCO connection is a more advanced voice data connection relative to the SCO connection, and the eSCO connection supports retransmission.
In a specific implementation, the basis for establishing the eSCO connection or the SCO connection between the bluetooth chip in the wireless bluetooth device and the terminal is as follows: if the fact that both sides of the wireless Bluetooth device and the terminal support eSCO connection and SCO connection is determined according to the characteristics of the wireless Bluetooth device and the terminal, the Bluetooth chip in the wireless Bluetooth device and the terminal preferentially establish higher-level eSCO connection. And if the fact that one party which does not support eSCO connection exists between the wireless Bluetooth equipment and the terminal is determined according to the characteristics of the wireless Bluetooth equipment and the terminal, SCO connection is established between a Bluetooth chip in the wireless Bluetooth equipment and the terminal. It can be understood that after the bluetooth chip in the wireless bluetooth device is connected with the terminal in HFP, the characteristics of the two parties can be mutually obtained, so as to determine whether the two parties can establish eSCO connection or SCO connection.
As shown in fig. 1, the voice call method in this embodiment specifically includes:
step 101: in the process of transmitting the voice call data packet with the first terminal, if a voice call request instruction of the second terminal is received and an instruction for representing the voice call allowing to access the second terminal is received, a request for disconnecting the synchronous data connection is sent to the first terminal.
The voice communication request instruction is an instruction sent by the second terminal to a Bluetooth chip in the wireless Bluetooth device after receiving the incoming call.
It can be understood that, during the process of transmitting the voice call data packet with the first terminal, that is, the bluetooth chip accesses the call of the first terminal, the bluetooth chip indicates that the ACL connection, the HFP connection and the synchronous data connection have been established between the bluetooth chip and the first terminal. The bluetooth chip may receive a call access instruction of the second terminal, which indicates that the ACL connection and the HFP connection have been established but the synchronous data connection has not been established between the bluetooth chip and the second terminal. That is to say, the first terminal and the second terminal have both performed bluetooth pairing connection with the bluetooth chip, and the first terminal and the second terminal have established ACL connection and HFP connection with the bluetooth chip, respectively. Currently, the bluetooth chip is accessed to the first terminal for a call, which indicates that the bluetooth chip and the first terminal have established a synchronous data connection, and the bluetooth chip and the first terminal are synchronizing a voice call data packet in a voice call process.
In a specific implementation, after receiving an incoming call, the second terminal may send a call access instruction (also referred to as a voice call request instruction) to the bluetooth chip, where the call access instruction is used to notify the bluetooth chip of a message of the incoming call of the second terminal, so that the bluetooth chip can know a current state of the second terminal.
In one example, the call access command sent by the second terminal to the bluetooth chip may be a + CIEV (callsetup =1) command. The terminal phone event notification instruction (call indicator events reporting, abbreviated as + CIEV instruction) indicates that callsetup =1 is state information carried by the + CIEV instruction, and callsetup =1 indicates that a phone call is being dialed and is not answered currently in the state of the second terminal. After the bluetooth chip receives a + CIEV (callsetup =1) instruction sent by the second terminal, it can be known that the current state of the second terminal is that a call is being made and is not answered yet.
In one example, the manner in which the bluetooth chip receives the instruction (hereinafter, abbreviated as instruction 1) for characterizing the voice call allowed to access the second terminal may be as follows: the Bluetooth chip receives an instruction 1 sent by a controller in the wireless Bluetooth device, wherein the Bluetooth chip is connected with the controller. The controller prestores the priority of the first terminal and the priority of the second terminal, and if the priority of the second terminal is higher than the priority of the first terminal, the controller can determine that the call of the second terminal is allowed to be accessed, so that the instruction 1 is sent to the Bluetooth chip. The priority of the first terminal and the priority of the second terminal can be set according to actual needs. For example, if the telephone number of the first terminal of the user is a work telephone number specifically set for work, the first terminal may be considered as a terminal specifically used for receiving a work call. The telephone number of the second terminal of the user is a family telephone number which is specially used for family members, and the second terminal can be regarded as a terminal which is specially used for answering the telephone of the family members. The user can set the priority of a first terminal specially used for answering a working call and the priority of a second terminal specially used for answering a family member call according to actual needs, for example, the priority of the first terminal can be set to be higher than that of the second terminal on a working day, and the priority of the first terminal can be set to be lower than that of the second terminal on a rest day. It should be noted that, in this embodiment, only one way of setting the priority is provided, and in a specific implementation, the way of setting the priority of the first terminal and the second terminal is not limited to the above example.
In another example, the way for the bluetooth chip to receive the instruction 1 may be: the Bluetooth chip receives an instruction 1 sent by a touch control chip in the wireless Bluetooth device, wherein the Bluetooth chip is connected with the touch control chip. In a specific implementation, after receiving a call access instruction of the second terminal, the bluetooth chip may control the wireless bluetooth device to play a local ring to inform the user that the second terminal receives an incoming call, so that the user may know that a call is being dialed in by the second terminal in a process of answering the call of the first terminal by using the wireless bluetooth device. The local ring can be a ring pre-stored in the wireless Bluetooth device, and can be set by a user according to actual needs, usually a shorter ring, so that the effect of reminding the user that one phone is dialed in at the second terminal can be achieved, and the effect of answering the phone of the first terminal by the user can not be influenced. After hearing the local ring, the user may perform a preset first trigger operation on the wireless bluetooth device, and if the touch chip in the wireless bluetooth device detects the first trigger operation for representing a call allowed to access the second terminal, it may be determined that the call allowed to access the second terminal is allowed, so that the touch chip may send the instruction 1 to the bluetooth chip. The first trigger operation may be set according to actual needs, and this embodiment is not particularly limited to this. For example, the first trigger operation may be a single-click operation, a double-click operation, or the like for the wireless bluetooth device. In a specific implementation, if the bluetooth chip has a touch function, the bluetooth chip may determine to receive the instruction 1 when detecting the first trigger operation. That is, if the second terminal is not at the user's hand, the user may indicate that the call to the second terminal is allowed to be accessed by the first trigger operation of the wireless bluetooth device.
In another example, the way for the bluetooth chip to receive the instruction 1 may be: and the Bluetooth chip receives the instruction 1 sent by the second terminal. In a specific implementation, after receiving a call access instruction of the second terminal, the bluetooth chip may control the wireless bluetooth device to play a local ring to inform the user that the second terminal receives an incoming call, so that the user may know that a call is being dialed in by the second terminal in a process of answering the call of the first terminal by using the wireless bluetooth device. Thus, the user can operate the second terminal to answer the phone call of the second terminal. For example, the operation of the user on the second terminal may be to touch an answer key on the second terminal, and the second terminal sends the instruction 1 to the bluetooth chip after detecting that the answer key is touched.
It is understood that if the bluetooth chip receives the above instruction 1, it may be determined that the call of the second terminal is currently allowed to be accessed.
In a specific implementation, the bluetooth chip sends a request for disconnecting the synchronous data connection to the first terminal to disconnect the synchronous data connection between the first terminal and the bluetooth chip, which may also be referred to as releasing the synchronous data connection between the first terminal and the bluetooth chip. The synchronous data connection established between the first terminal and the bluetooth chip may be an SCO connection or an eSCO connection, and the specific establishment of the SCO connection or the eSCO connection depends on respective characteristics of the first terminal and the wireless bluetooth device. For example, it is determined that both the first terminal and the bluetooth chip support eSCO connection according to respective characteristics of the first terminal and the bluetooth chip, and the synchronization data established between the first terminal and the bluetooth chip may be eSCO connection; if it is determined that one of the first terminal and the bluetooth chip does not support the eSCO connection, the synchronization data established between the first terminal and the bluetooth chip may be an SCO connection.
In an example, before the bluetooth chip sends the request for disconnecting the synchronous data connection to the first terminal, if the bluetooth chip receives the request for establishing the synchronous data connection sent by the second terminal, the bluetooth chip does not respond to the request for establishing the synchronous data connection sent by the second terminal within a preset time period, or sends information for refusing to establish the synchronous data connection to the second terminal, that is, the bluetooth chip refuses to establish the synchronous data connection with the second terminal. That is to say, if the bluetooth chip receives the request for establishing the synchronous data connection of the second terminal after receiving the call access instruction of the second terminal, and the bluetooth chip determines that the synchronous data connection established with the first terminal is not disconnected, the bluetooth chip refuses to establish the synchronous data connection with the second terminal, so that the bluetooth chip is ensured to establish the synchronous data connection with only one terminal, and the power consumption of the wireless bluetooth device is reduced. In addition, the Bluetooth chip does not establish synchronous data connection with the second terminal, normal answering of the second terminal is not affected, and the second terminal can ring normally.
In a specific implementation, the manner for the bluetooth chip to refuse to establish the synchronous data connection with the second terminal may be: and after receiving the request for establishing the synchronous data connection sent by the second terminal, the Bluetooth chip does not respond to the request within the preset time length, or the Bluetooth chip sends information for refusing to establish the connection to the second terminal. The preset duration may be set according to actual needs, and this embodiment is not particularly limited thereto.
Step 102: and after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal.
In one example, the bluetooth chip may first send a third instruction to the second terminal; the third instruction is used for triggering the second terminal to send a request for establishing synchronous data connection to the Bluetooth chip; then, the bluetooth chip may receive a request for establishing a synchronous data connection sent by the second terminal, so that the establishment of the synchronous data connection between the second terminal and the bluetooth chip is completed. That is, if the second terminal receives the third instruction, the second terminal sends a request for establishing a synchronous data connection to the bluetooth chip to complete establishment of the synchronous data connection between the bluetooth chip and the second terminal, so that the bluetooth chip can access the voice call of the second terminal, thereby transmitting the voice call data packet to the second terminal.
In one example, the third instruction may be a third AT (attention) instruction, and the AT instruction may be applied to connection and communication between the terminal and the bluetooth chip. The AT command is a character string with an AT as the first and ending with a character, and in this embodiment, the third AT command may be represented as an AT + BCC command; wherein, BCC is Bluetooth coded Connection (BCC for short).
In an example, according to characteristics of the second terminal and the bluetooth chip, the second terminal and the bluetooth chip both determine that the synchronous data connection that can be established is an SCO connection, and then the bluetooth chip may send an AT + BCC instruction to the second terminal, and after receiving the AT + BCC instruction, the second terminal sends an SCO connection establishment request (i.e., a request for establishing an SCO connection) to the bluetooth chip, so that establishment of the SCO connection is completed between the second terminal and the bluetooth chip, and the bluetooth chip can transmit a voice call data packet to the second terminal, that is, the bluetooth chip and the second terminal synchronize a voice call data packet during a voice call. For example, after the second terminal of the user makes a call, and the bluetooth chip establishes the SCO connection with the second terminal, the bluetooth chip may package the collected voice information sent by the user in the call process into a voice call data packet, and then send the voice call data packet to the second terminal.
In another example, according to characteristics of the second terminal and the bluetooth chip, the second terminal and the bluetooth chip both determine that the established synchronous data connection is an eSCO connection, and then the bluetooth chip may send an AT + BCC instruction to the second terminal, and after receiving the AT + BCC instruction, the second terminal sends an eSCO connection establishment request (i.e., a request for establishing an eSCO connection) to the bluetooth chip, so that the establishment of the eSCO connection is completed between the second terminal and the bluetooth chip, and the bluetooth chip can transmit a voice call data packet to the second terminal, that is, the bluetooth chip and the second terminal can synchronize a voice call data packet during a voice call.
It will be appreciated that the bluetooth protocol provides that a request for establishing a synchronous data connection should be sent by the terminal receiving the incoming call to the bluetooth chip built into the wireless bluetooth device. In this embodiment, after the second terminal sends the request for establishing the synchronous data connection to the bluetooth chip for the first time, the bluetooth chip does not disconnect the synchronous data connection with the first terminal, and therefore the bluetooth chip refuses to establish the synchronous data connection with the second terminal. After the Bluetooth chip is disconnected from the synchronous data connection established with the first terminal, if the Bluetooth chip wants to establish the synchronous data connection with the second terminal, a third instruction is sent to the second terminal to trigger the second terminal to send a request for establishing the synchronous data connection to the Bluetooth chip, so that the Bluetooth chip receives the request for establishing the synchronous data connection sent by the second terminal for the second time, and the establishment of the synchronous data connection between the Bluetooth chip and the second terminal is completed. Namely, the embodiment of the invention can reduce the load of data communication of the wireless Bluetooth equipment and reduce the power consumption of the wireless Bluetooth equipment on the basis of following the existing Bluetooth protocol.
In a specific implementation, after receiving the request for establishing the synchronous data connection sent by the second terminal, and before transmitting the voice call data packet to the second terminal, the bluetooth chip may further include: the Bluetooth chip sends a fourth instruction to the second terminal; the fourth instruction is used for indicating the second terminal to answer the incoming call; the Bluetooth chip receives fourth response information of the second terminal to the fourth instruction; and the fourth response information is used for representing that the second terminal answers the incoming call. The fourth instruction is used for instructing the second terminal to answer the incoming call, and can also be understood as a fourth instruction for instructing the second terminal to transmit the voice call data packet to the bluetooth chip. The fourth response information is used for representing that the second terminal answers the incoming call, and can also be understood as that the fourth response information is used for representing that the second terminal transmits the voice call data packet to the bluetooth chip. The Bluetooth chip sends a fourth instruction to the second terminal to instruct the second terminal to answer the incoming call, so that a user does not need to pick up the second terminal and manually answers the incoming call of the second terminal. Even if the second terminal is not in front of the user, the user does not need to search for the second terminal, and the incoming call of the second terminal is answered manually, so that the method is more convenient for the user.
In an example, the fourth instruction may be a fourth AT instruction, and may specifically be represented as an AT + ATA instruction; wherein, answer the telephone (answer AT, abbreviated as ATA). The fourth response information may be expressed as: + CIEV (call =1, call =0), where call =0 indicates that the second terminal has received the incoming call, and there is no currently calling phone, and call =1 indicates that there is a current call, that is, a call of the second terminal.
For convenience of understanding, the first terminal, the second terminal, the bluetooth chip, and the synchronous data connection are respectively described by taking the bluetooth chip and the SCO connection in the mobile phone a, the mobile phone B, and the wireless bluetooth headset as examples. In addition, for convenience of description, the bluetooth chip in the wireless bluetooth headset is hereinafter referred to as a wireless bluetooth headset.
Referring to fig. 2, fig. 2 is a schematic view of a scenario that after the wireless bluetooth headset accesses to the call of the mobile phone a, the mobile phone B also comes to the call. The mobile phone A and the mobile phone B are connected with the wireless Bluetooth headset in a Bluetooth matching mode, and ACL connection and HFP connection are established. Since HFP connection is established based on ACL connection, ACL connection (HFP) in fig. 2 can be understood as establishing ACL connection and HFP connection based on ACL connection. The wireless bluetooth headset accesses the call of the mobile phone a, that is, the user is using the wireless bluetooth headset to answer the call of the mobile phone a, and an SCO connection is established between the mobile phone a and the wireless bluetooth headset. At this time, after the mobile phone B makes a call, if the mobile phone B sends an SCO connection establishment request to the wireless bluetooth headset, and the wireless bluetooth headset determines that the SCO connection with the mobile phone a is established at this time, the second SCO connection is not established, so that the wireless bluetooth headset can refuse to respond to the SCO connection establishment request from the mobile phone B. Further, referring to fig. 3, the SCO connection between the mobile phone a and the wireless bluetooth headset is disconnected, and then the SCO connection between the mobile phone B and the wireless bluetooth headset is established, so as to ensure that the wireless bluetooth headset is always connected with one mobile phone by one SCO.
The above examples in the present embodiment are only for convenience of understanding, and do not limit the technical aspects of the present invention.
Compared with the prior art, in the embodiment, in the process of transmitting the voice call data packet with the first terminal by the bluetooth chip, that is, in the process of answering the call of the first terminal by the user through the bluetooth chip, if the second terminal makes a call, the second terminal sends a voice call request instruction to the bluetooth chip, and the bluetooth chip receives the voice call request instruction and receives an instruction for representing the voice call allowing to access the second terminal, sends a request for disconnecting the synchronous data connection to the first terminal so as to disconnect the synchronous data connection established between the first terminal and the bluetooth chip. Then, after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal, namely after the synchronous data connection established between the first terminals is disconnected by the Bluetooth chip, establishing synchronous data connection with the second terminal based on the request for establishing synchronous data connection sent by the second terminal, so that a user can answer the call of the second terminal through the Bluetooth chip. Therefore, under the scene that the Bluetooth chip faces the incoming call access of a plurality of terminals, a plurality of synchronous data connections do not need to be established on the Bluetooth chip side, the load of data communication of the Bluetooth chip is reduced, the power consumption of the Bluetooth chip is reduced, the synchronous data connection established between the first terminal and the Bluetooth chip is disconnected, and only the fact that the voice call data packet cannot be transmitted currently between the first terminal and the Bluetooth chip is indicated, namely, the user cannot answer the voice call of the first terminal through the Bluetooth chip currently, the user does not mean to hang up the telephone of the first terminal, and the normal call of the user cannot be influenced to a certain extent.
Furthermore, when the isochronous data connection is an eSCO connection, it is contemplated that one eSCO connection will occupy one ACL link alone. In the prior art, in the process of a call, if a second terminal makes a call, the wireless bluetooth device establishes eSCO connection with both the first terminal and the second terminal, that is, there are two eSCO connections, and two ACL links are occupied, while the address space in the bluetooth chip is limited, both the ACL links and the eSCO links occupy the limited address space in the bluetooth chip, the number of the address spaces occupied by the eSCO links in the limited address space is large, the address space allowing the establishment of the ACL links is relatively reduced, that is, the number of the ACL links that can be established is reduced, and the ACL links are the basis for data communication between the terminal and the bluetooth chip, so the number of terminals that can be connected to the bluetooth chip is affected. Compared with the prior art, the method and the device for establishing the ACL link can save the eSCO link, namely, the occupied address space can be saved, the saved address space can be used for establishing more ACL links, namely, more terminals are allowed to establish the ACL link with the Bluetooth chip, so that the Bluetooth chip can perform data communication with more terminals based on the establishment of the ACL link, namely, the number of the terminals which can be connected with the Bluetooth chip can be increased to a certain extent.
A second embodiment of the present invention relates to a voice call method. The following describes implementation details of the voice call method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary to implement the present embodiment.
As shown in fig. 4, the voice call method in this embodiment specifically includes:
step 201: in the process of transmitting the voice call data packet with the first terminal, if a request for establishing synchronous data connection from the second terminal is received, the synchronous data connection with the second terminal is refused to be established.
If a request for establishing synchronous data connection from the second terminal is received, the second terminal receives an incoming call, and the second terminal sends a voice call request instruction to the bluetooth chip. In a specific implementation, the manner of rejecting establishment of the synchronous data connection with the second terminal may be: and after receiving the request for establishing the synchronous data connection sent by the second terminal, the Bluetooth chip does not respond to the request within the preset time length, or the Bluetooth chip sends information for refusing to establish the connection to the second terminal. The preset duration may be set according to actual needs, and this embodiment is not particularly limited thereto.
Step 202: and if an instruction for representing that the voice call of the second terminal is allowed to be accessed is received, switching the call state of the first terminal from the answering state to the holding state, and then disconnecting the synchronous data connection established between the first terminal and the Bluetooth chip.
If the specific implementation manner of the instruction for representing the voice call allowed to access the second terminal and the specific implementation manner of the synchronous data connection established between the first terminal and the bluetooth chip are substantially the same as those described in the first implementation manner, further description is omitted here for avoiding repetition. The following mainly explains the differences between the present embodiment and the first embodiment:
in this embodiment, before disconnecting the synchronous data connection established between the first terminal and the bluetooth chip, that is, before the first terminal sends a request for disconnecting the synchronous data connection, the method further includes: and switching the call state of the first terminal from the answering state to the holding state. That is to say, after the wireless bluetooth device accesses the call of the first terminal, if the call access instruction of the second terminal is received and the call of the second terminal is determined to be allowed to be accessed, the call state of the first terminal is switched from the answering state to the holding state, and then the synchronous data connection established between the first terminal and the bluetooth chip is disconnected, so that the call state of the first terminal can be restored to the answering state according to actual needs, and the call experience is improved.
In one example, the bluetooth chip may switch the call state of the first terminal from the listening state to the holding state as follows:
firstly, a Bluetooth chip sends a first instruction to a first terminal; the first instruction is used for indicating the first terminal to switch the call state from the answering state to the holding state. That is, after receiving the first instruction, the first terminal switches the current call state from the listening state to the holding state. In a specific implementation, the first instruction may be a first AT instruction, and may be specifically represented as an AT + CHLD =2 instruction; wherein, the telephone is hung up (CHLD). The AT + CHLD =2 instruction is used for instructing the terminal receiving the instruction to switch the current call state, and if the current call state of the terminal is the answering state, the terminal is switched to the holding state; and if the current call state is the hold state, switching to the answering state. In this step, since the current call state of the first terminal is the answer state, after receiving the AT + CHLD =2 instruction, the first terminal switches the current call state from the answer state to the hold state.
Then, the Bluetooth chip receives first response information of the first terminal to the first instruction; the first response information is used for representing that the current call state of the first terminal is a hold state. That is to say, after the first terminal switches the current call state from the answering state to the holding state, the current call state is fed back to the bluetooth chip, so that the bluetooth chip can determine that the first terminal has successfully completed the switching of the call state according to the first instruction. In a specific implementation, the first response information may be represented as: + CIEV (callold = 2); the callhold =2 is call state information carried by the + CIEV command, and callhold =2 indicates that the current call state of the first terminal is call hold, that is, a hold state.
Step 203: and after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal.
Step 203 is substantially the same as step 102 in the first embodiment, and is not repeated here to avoid repetition.
For convenience of understanding, referring to fig. 3, after accessing the call of the mobile phone a, if a call access instruction of the mobile phone B is received and it is determined that the call of the mobile phone B is allowed to be accessed, the call state of the mobile phone a is switched from the answering state to the holding state, then the SCO connection established between the mobile phone a and the wireless bluetooth headset is disconnected, and then the SCO connection established between the mobile phone B and the wireless bluetooth headset is established to access the call of the mobile phone B.
Step 204: and if an instruction for representing the end of the call of the second terminal is received, sending a request for disconnecting the synchronous data connection to the second terminal.
If an instruction for representing the end of the call of the second terminal is received, and a request for disconnecting the synchronous data connection is sent to the second terminal, the following steps may also be understood: and if the end of the call of the second terminal is detected, disconnecting the synchronous data connection between the second terminal and the Bluetooth chip.
In one example, the end of the call of the second terminal may be an active end. Active termination, can be understood as: the user actively hangs up the phone of the second terminal by using the wireless bluetooth device, for example, the user may execute a preset third trigger operation for representing the hanging up of the phone on the wireless bluetooth device, and after detecting the third trigger operation, the touch chip in the wireless bluetooth device may determine that the user wants to hang up the phone, so that the touch chip may send an instruction for representing the end of the call of the second terminal to the bluetooth chip. In a specific implementation, since the user does not directly operate the second terminal, the bluetooth chip may send a hang-up instruction to the second terminal to notify the second terminal to hang up the phone being answered. In a particular implementation, the hang-up instruction may be expressed as: an AT + CHUP command; wherein, CHUP is the call hang up (abbreviated as CHUP). In another example, active termination may also be understood as: the user actively touches the hang-up key on the second terminal, and the second terminal can send an instruction for representing the call end of the second terminal to the Bluetooth chip after detecting that the hang-up key is touched.
In another example, the end of the call of the second terminal may be a passive end. Passive termination, can be understood as: the calling party calling the second terminal actively hangs up the telephone, so that the called second terminal passively finishes the conversation, and the second terminal can send an instruction for representing the conversation finish of the second terminal to the Bluetooth chip after detecting that the telephone is passively hung up.
In a specific implementation, the bluetooth chip sends a request for disconnecting the synchronous data connection to the second terminal, so as to disconnect the synchronous data connection between the second terminal and the bluetooth chip.
Step 205: and after sending a request for disconnecting the synchronous data connection to the second terminal, if receiving the request for establishing the synchronous data connection sent by the first terminal, sending a second instruction to the first terminal.
The second instruction is used for indicating the first terminal to switch the call state from the holding state to the answering state;
in one example, after the bluetooth chip sends the request for disconnecting the synchronous data connection to the second terminal, it can be understood that the bluetooth chip disconnects the synchronous data connection with the second terminal. At this time, if the bluetooth chip detects that the call state of the first terminal is call hold, the first terminal may be triggered to send a request for establishing synchronous data connection to the bluetooth chip, so that the bluetooth chip may receive the request for establishing synchronous data connection sent by the first terminal, so that the bluetooth chip establishes synchronous data connection with the first terminal, and then sends a second instruction to the first terminal.
In an example, the way that the bluetooth chip detects that the call state of the first terminal is call hold may be: the first terminal and the bluetooth chip perform status transmission based on the established HFP connection, and the transmission status may include but is not limited to a call status of the first terminal, so that the bluetooth chip may know whether the call status of the first terminal is call hold.
In one example, the manner for the bluetooth chip to trigger the first terminal to send the request for establishing the synchronous data connection to the bluetooth chip may be: the bluetooth chip sends a third instruction to the first terminal, and the third instruction may trigger the first terminal to send a request for establishing a synchronous data connection to the bluetooth chip. Then, the bluetooth chip receives a request for establishing a synchronous data connection sent by the first terminal, so as to establish the synchronous data connection between the first terminal and the bluetooth chip. The third instruction may be a third AT instruction, the third AT instruction may be denoted as an AT + BCC instruction, and after receiving the AT + BCC instruction, the first terminal sends a request for establishing a synchronous data connection to the bluetooth chip, so as to establish the synchronous data connection between the bluetooth chip and the first terminal.
In one example, the bluetooth chip sends a second instruction to the first terminal to instruct the first terminal to switch the call state from the hold state to the listen state. That is, after receiving the second instruction, the first terminal switches the current call state from the hold state to the listen state. In a specific implementation, the second instruction may be a second AT instruction, and may specifically be denoted as an AT + CHLD =2 instruction. From the above description of the first instruction and the second instruction, it can be seen that the first instruction and the second instruction can be expressed as: AT + CHLD =2 instruction. The AT + CHLD =2 instruction is used for instructing the terminal receiving the instruction to switch the current call state, and if the current call state of the terminal is the answering state, the terminal is switched to the holding state; and if the current call state is the hold state, switching to the answering state. In this step, since the current call state of the first terminal is the hold state, the first terminal receives the AT + CHLD =2 instruction to switch the current call state from the hold state to the listen state.
Step 206: and receiving second response information of the first terminal to the second instruction.
The second response information is used for representing that the current call state of the first terminal is the answering state. That is to say, after the first terminal switches the current call state from the hold state to the answer state, the current call state is fed back to the bluetooth chip, so that the bluetooth chip can determine that the first terminal has successfully completed the switching of the call state according to the second instruction. In a specific implementation, the second response information may be represented as: + CIEV (callsetup = 0).
For convenience of understanding, the first terminal, the second terminal, the bluetooth chip, and the synchronous data connection are respectively described by taking the bluetooth chip and the SCO connection in the mobile phone a, the mobile phone B, and the wireless bluetooth headset as examples, and for convenience of description, the bluetooth chip in the wireless bluetooth headset is hereinafter referred to as a wireless bluetooth headset.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating that the mobile phone a resumes the call after the phone of the mobile phone B is disconnected. After the telephone of the mobile phone B is hung up, the wireless Bluetooth headset triggers the mobile phone B to be disconnected from the wireless Bluetooth headset, then SCO connection between the mobile phone A and the wireless Bluetooth headset is established, then the call state of the mobile phone A is switched to the answering state, and the call of the mobile phone A is recovered. That is to say, in the scenario of multi-connection and multi-phone access, the embodiment can ensure seamless switching of phones, and meanwhile, only one synchronous connection link is arranged at most at the wireless bluetooth headset end all the time, that is, only one synchronous data connection is established, thereby greatly reducing the link load when the phones are accessed.
In an example, to implement the voice call method in this embodiment, an interaction schematic diagram between a mobile phone a, a mobile phone B, and a wireless bluetooth headset (hereinafter referred to as a bluetooth headset) may refer to fig. 6:
step 301: the Bluetooth headset is connected with the mobile phone A through ACL connection and HFP connection.
Step 302: the Bluetooth headset and the mobile phone B are connected with the HFP through ACL connection.
Step 303: the mobile phone A accesses the telephone, establishes SCO connection with the Bluetooth headset (firstly accesses and then establishes SCO connection), and communicates.
Therefore, the mobile phone A and the Bluetooth headset are in a communication process.
Step 304: the mobile phone B accesses the telephone and sends a + CIEV (callsetup =1) instruction to the Bluetooth headset.
Wherein, the + CIEV (callsetup =1) command is sent to notify the bluetooth headset that the mobile phone B calls; the + CIEV (callsetup =1) command, that is, the call access command, is defined by the bluetooth protocol, and the notification means that the bluetooth headset is made aware of the state of the mobile phone. In this step, the notification means that the bluetooth headset knows that the mobile phone B is calling.
Step 305: handset B sends an SCO connection setup request to the bluetooth headset. The SCO connection establishment request may also be referred to as a request for establishing a SCO connection.
Step 306: the bluetooth headset refuses to establish an SCO connection with handset B.
It can be understood that refusing to respond to the SCO connection establishment request does not affect the normal answering and user experience of the mobile phone B, and at this time, the mobile phone B rings normally.
Step 307: the bluetooth headset plays a local ring to inform the user that another handset, i.e., handset B, has telephone access.
Step 308: it is determined whether the phone of handset B is allowed to be answered. If yes, go on to step 309; otherwise, the Bluetooth headset is directly hung up, and the Bluetooth headset sends an AT + CHUP command to the mobile phone B to indicate the mobile phone B to hang up.
Step 309: the bluetooth headset sends an AT + CHLD =2 instruction to the mobile phone a, instructing the mobile phone a to switch the call state from the answering state to the holding state, so as to hold the call of the mobile phone a.
Step 310: handset a replies an OK response to the bluetooth headset indicating that handset a received the AT + CHLD =2 instruction.
Step 311: handset a replies to the bluetooth headset with + CIEV (callold =2), indicating that the current call state of handset a is the hold state.
Step 312: and the Bluetooth headset sends an SCO connection disconnection request with the mobile phone A, and the SCO connection with the mobile phone A is disconnected. The SCO disconnection request may also be referred to as a request to disconnect the SCO connection.
Step 313: the Bluetooth headset sends an AT + BCC command to the mobile phone B, and the mobile phone B is triggered to initiate an SCO connection establishment request.
Step 314: the mobile phone B sends an OK response to the Bluetooth headset, which indicates that the AT + BCC instruction of the Bluetooth headset is received.
Step 315: handset B sends an SCO connection setup request to the bluetooth headset.
Step 316: the bluetooth headset determines to accept the SCO connection establishment request initiated by the handset B. Wherein, the bluetooth headset can send an accept SCO connection command to the mobile phone B, that is, accept the SCO connection command.
And the Bluetooth headset and the mobile phone B establish SCO connection.
Step 317: the Bluetooth headset sends an AT + ATA command to the mobile phone B to instruct the mobile phone B to answer the call.
Step 318: the mobile phone B replies an OK response, which indicates that the mobile phone B receives the AT + ATA instruction.
Step 319: the handset B transmits a + CIEV (call =1, callsetup =0) command to the bluetooth headset, and notifies the bluetooth headset of the current state of the handset B. In a specific implementation, the + CIEV (call =1) may be transmitted first, and then the + CIEV (callsetup =0) may be transmitted.
So far, the bluetooth headset and the mobile phone B are in a voice communication process.
Step 320: the Bluetooth headset actively or passively hangs up the phone of the mobile phone B (if the Bluetooth headset actively hangs up, an AT + CHUP command is sent to the mobile phone B, and the phone of the mobile phone B is hung up).
Step 321: the mobile phone B replies an OK response, which indicates that the mobile phone B receives the AT + CHUP command.
Step 322: the handset B sends a + CIEV (call =0) command to the bluetooth headset, informing the bluetooth headset that the voice call of the handset B has ended.
Step 323: the bluetooth headset sends an SCO connection disconnection request to the mobile phone B.
At this point, the connection of the bluetooth headset to the SCO of the mobile phone B is disconnected, that is, the connection of the mobile phone B and the SCO of the bluetooth headset is released.
Step 324: the bluetooth headset sends an AT + BCC command to the mobile phone a, triggering the mobile phone a to initiate an SCO connection establishment request.
Step 325: handset a sends an OK response to the bluetooth headset indicating that handset a received an AT + BCC command.
Step 326: handset a sends an SCO connection establishment request to the bluetooth headset.
Step 327: the bluetooth headset determines to accept the SCO connection establishment request initiated by the handset a. The bluetooth headset may send an accept SCO connection command to the mobile phone a, that is, accept the SCO connection command.
At this point, the mobile phone a and the bluetooth headset reestablish the SCO connection.
Step 328: the bluetooth headset sends an AT + CHLD =2 command to the mobile phone a, attempting to switch the call state of the mobile phone a to the listening state.
Step 329: the handset a transmits an OK response indicating that the AT + CHLD =2 command for switching the call state has been received.
Step 330: the mobile phone a transmits a + CIEV (callsetup =0) command to the bluetooth headset, and notifies the bluetooth headset of the current state of the mobile phone a.
And at this point, the Bluetooth headset is recovered to the conversation process with the mobile phone A.
The above examples in the present embodiment are only for convenience of understanding, and do not limit the technical aspects of the present invention.
Compared with the prior art, the method and the device facilitate the follow-up recovery of the call state of the first terminal to the answering state according to actual needs, and improve call experience. By sending the first instruction to the first terminal to instruct the first terminal to switch the call state from the answering state to the holding state, the first terminal is facilitated to switch the call state from the answering state to the holding state under the instruction of the first instruction. And receiving first response information from the first terminal, wherein the first response information is used for representing that the current call state of the first terminal is the hold state, so that the Bluetooth chip can clearly know the current actual call state of the first terminal, the first terminal is ensured to successfully respond to the first instruction, and the smooth completion of call state switching is ensured. And, after the conversation at the second terminal is ended, the synchronous data connection between bluetooth chip disconnection and the second terminal, the bluetooth chip reestablishes the synchronous data connection with between the first terminal, keep the bluetooth chip to establish synchronous data connection with a terminal at present promptly, switch into the conversation state of first terminal again and answer the state, be favorable to when the consumption at the bluetooth chip, convenience of customers continues to answer the conversation at first terminal through the bluetooth chip, resume the conversation at first terminal promptly through the bluetooth chip, be favorable to improving user's use and experience.
A third embodiment of the present invention relates to a voice call method applied to a first chip; the first chip may be embedded in the first terminal, and the first terminal may be a first mobile phone or other device having a function of making a call. The following describes implementation details of the voice call method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary to implement the present embodiment.
Fig. 7 may be referred to as a flowchart of the voice call method of the present embodiment, and the flowchart includes:
step 401: and receiving a request of disconnecting the synchronous data connection, which is sent by the third terminal when the first preset condition is met.
Wherein, the third terminal can be wireless bluetooth equipment, and wireless bluetooth equipment can be wireless bluetooth headset, bluetooth speaker, bluetooth wrist-watch etc.. For convenience of description, the third terminal may be represented by a wireless bluetooth device in the following.
The first preset condition includes: in the process that the third terminal transmits the voice call data packet with the first chip, the third terminal receives a voice call request instruction of the second terminal and receives an instruction used for representing voice call allowing to access the second terminal. The second terminal can be a second mobile phone or other equipment with the function of making a call.
In a specific implementation, after the first chip receives a request for disconnecting the synchronous data connection, which is sent by the wireless bluetooth device when the first preset condition is met, the synchronous data connection established between the first chip and the wireless bluetooth device is disconnected, or the synchronous data connection established between the first terminal with the first chip built therein and the wireless bluetooth device is disconnected.
In one example, the isochronous data connection is: the extended synchronization is data connection oriented eSCO.
Step 402: and stopping transmitting the voice call data packet to the third terminal.
That is, the first chip stops transmitting the voice call packet to the third terminal.
In one example, before receiving a request for disconnecting the synchronous data connection sent by the third terminal when the preset condition is met, the first chip further includes: the first chip receives a first instruction sent by the third terminal; the first instruction is used for indicating the first chip to switch the call state from the answering state to the holding state. Then, the first chip sends first response information to the first instruction to the third terminal; the first response information is used for representing that the current call state of the first chip is a hold state. The first terminal with the built-in first chip receives a first instruction sent by a third terminal; the first instruction is used for indicating a first terminal with a built-in first chip to switch a call state from an answering state to a holding state. Then, the first terminal with the built-in first chip sends first response information to the first instruction to the third terminal; the first response information is used for representing that the current call state of the first terminal with the built-in first chip is a hold state.
In one example, after sending the first response information to the first instruction to the third terminal, the first chip further includes:
sending a request for establishing synchronous data connection to a third terminal when a second preset condition is met; wherein the second preset condition comprises: the third terminal receives the instruction for representing the call end of the second terminal, and the third terminal sends a request for disconnecting the synchronous data connection to the second terminal. Then, the first chip receives a second instruction sent by the third terminal; the second instruction is used for indicating the first chip to switch the call state from the holding state to the answering state. Then, the first chip sends second response information to the second instruction to the third terminal; the second response information is used for representing that the current call state of the first chip is the answering state.
In one example, before the request for establishing the synchronous data connection, which is sent to the third terminal when the second preset condition is met, the method further includes: the first chip receives a third instruction sent by a third terminal; the third instruction is used for triggering the first chip to send a request for establishing synchronous data connection to the third terminal. The third instruction may be a third AT instruction, and in this embodiment, the third AT instruction may be represented as an AT + BCC instruction, where the AT + BCC instruction is used to trigger a party receiving the instruction to send a request for establishing a synchronous data connection, and in this example, the party receiving the AT + BCC instruction is the first chip.
It is to be noted that this embodiment is an example corresponding to the first and second embodiments, and the voice call method of this embodiment is applied to the first chip, and the voice call method of the first and second embodiments is applied to the bluetooth chip. This embodiment mode can be implemented in cooperation with the first and second embodiment modes. The related technical details and technical effects mentioned in the first and second embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can be applied to the first and second embodiments.
A fourth embodiment of the present invention relates to a voice call method applied to a second chip; the second chip can be arranged in a second terminal, and the second terminal can be a second mobile phone or other equipment with the function of making a call. The following describes implementation details of the voice call method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary to implement the present embodiment.
Fig. 8 may be referred to as a flowchart of the voice call method of the present embodiment, and the flowchart includes:
step 501: and in the process of transmitting the voice call data packet with the first terminal, the third terminal sends a voice call request instruction to the third terminal by the second chip.
Wherein, the third terminal can be wireless bluetooth equipment, and wireless bluetooth equipment can be wireless bluetooth headset, bluetooth speaker, bluetooth wrist-watch etc.. For convenience of description, the third terminal may be represented by a wireless bluetooth device in the following. And after the third terminal receives the instruction for representing the voice call which is allowed to be accessed to the second chip, the third terminal sends a request for disconnecting the synchronous data connection to the first terminal. It can also be understood that, when the wireless bluetooth device has accessed the call of the first terminal and is transmitting the voice call data packet with the first terminal, the wireless bluetooth device receives a voice call request instruction sent by a second terminal with a built-in second chip. The voice call request instruction may be an instruction sent from a second chip built in the second terminal to the third terminal when the second terminal receives the incoming call.
Step 502: and after the third terminal sends a request for disconnecting the synchronous data connection to the first terminal, the second chip sends a request for establishing the synchronous data connection to the third terminal.
That is, before the synchronous data connection between the second chip and the wireless bluetooth device is established, the synchronous data connection established between the first terminal and the wireless bluetooth device is disconnected.
In one example, before sending the request for establishing the synchronous data connection to the third terminal, the second chip further includes: receiving a third instruction sent by a third terminal; and the third instruction is used for triggering the second chip to send a synchronous data connection establishment request to the third terminal. In this embodiment, the third instruction may be a third AT instruction, where the third AT instruction may be denoted as an AT + BCC instruction, and the AT + BCC instruction is used to trigger a party receiving the instruction to send a request for establishing a synchronous data connection, and in this example, the party receiving the AT + BCC instruction is the second chip. The second chip, upon receiving the AT + BCC command, sends a request to the third terminal for establishing a synchronous data connection.
In one example, the isochronous data connection is: the extended synchronization is data connection oriented eSCO.
Step 503: and transmitting the voice call data packet to the third terminal.
That is, the second chip starts to transmit the voice call packet to the third terminal. It can be understood that the wireless bluetooth device accesses the voice call of the second terminal with the built-in second chip, and starts synchronizing the voice call data packet with the second terminal.
In one example, the second chip, after sending the request for establishing the synchronous data connection to the third terminal, before transmitting the voice call data packet to the third terminal, further includes: the second chip receives a fourth instruction sent by the third terminal; and the fourth instruction is used for indicating the second chip to transmit the voice call data packet to the third terminal. Then, the second chip sends fourth response information to the fourth instruction to the third terminal; and the fourth response information is used for representing that the second chip transmits the voice call data packet to the third terminal. The second terminal with the built-in second chip receives a fourth instruction sent by the wireless bluetooth device; the fourth instruction is used for indicating a second terminal which is internally provided with a second chip to answer the incoming call and start to transmit the voice call data packet to the wireless Bluetooth device. Then, a second terminal with a built-in second chip sends fourth response information to the fourth instruction to the wireless Bluetooth device; the fourth response information is used for representing that the second terminal with the built-in second chip answers the incoming call, namely the second terminal starts to transmit the voice call data packet to the wireless Bluetooth device.
It is to be understood that the present embodiment is an example corresponding to the first, second, and third embodiments, and the voice call method of the present embodiment is applied to the second chip, the voice call method of the first and second embodiments is applied to the bluetooth chip, and the voice call method of the third embodiment is applied to the first chip. This embodiment can be implemented in cooperation with the first, second, and third embodiments. The related technical details and technical effects mentioned in the first, second, and third embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first, second, and third embodiments.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to a voice call system, as shown in fig. 9, including: a bluetooth chip 601, a first terminal 602 and a second terminal 603;
the bluetooth chip 601 is configured to, in a process of transmitting a voice call data packet with the first terminal 602, send a request for disconnecting synchronous data connection to the first terminal 602 if a voice call request instruction of the second terminal 603 is received and an instruction for representing that a voice call allowed to access the second terminal 603 is received;
the first terminal 602 is configured to receive and respond to a request for disconnecting the synchronous data connection sent by the bluetooth chip 601;
the second terminal 603 is configured to send a voice call request instruction to the bluetooth chip 601 after receiving the incoming call, and send a request for establishing a synchronous data connection to the bluetooth chip 601 after the bluetooth chip 601 sends a request for disconnecting the synchronous data connection to the first terminal 602;
the bluetooth chip 601 is further configured to transmit a voice call data packet to the second terminal 603 after receiving the request for establishing the synchronous data connection sent by the second terminal 603.
It should be understood that this embodiment is a system example corresponding to the first to fourth embodiments, and the present embodiment can be implemented in cooperation with the first to fourth embodiments. The related technical details and technical effects mentioned in the first to fourth embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first to fourth embodiments.
A sixth embodiment of the present invention relates to a bluetooth chip, as shown in fig. 10, including at least one processor 701; and, a memory 702 communicatively coupled to the at least one processor 701; the memory 702 stores instructions executable by the at least one processor 701, and the instructions are executed by the at least one processor 701, so that the at least one processor 701 can execute the voice call method according to the first or second embodiment.
The memory 702 and the processor 701 are coupled by a bus, which may comprise any number of interconnecting buses and bridges that couple one or more of the various circuits of the processor 701 and the memory 702. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 701 is transmitted over a wireless medium through an antenna, which receives the data and transmits the data to the processor 701.
The processor 701 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 702 may be used for storing data used by the processor 701 in performing operations.
The seventh embodiment of the present invention relates to a first chip, as shown in fig. 11, including at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801; the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the voice call method according to the third embodiment.
The memory 802 and the processor 801 are coupled by a bus, which may include any number of interconnecting buses and bridges that couple one or more of the various circuits of the processor 801 and the memory 802 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 801 is transmitted over a wireless medium through an antenna, which receives the data and transmits the data to the processor 801.
The processor 801 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 802 may be used to store data used by processor 801 in performing operations.
An eighth embodiment of the present invention relates to a second chip, as shown in fig. 12, including at least one processor 901; and, memory 902 communicatively connected to at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the voice call method in the fourth embodiment.
The memory 902 and the processor 901 are coupled by a bus, which may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 901 and the memory 902. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 901 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 901.
The processor 901 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 902 may be used for storing data used by processor 901 in performing operations.
A ninth embodiment of the present invention relates to an electronic device, wherein if the electronic device is a third terminal, the electronic device includes a bluetooth chip as described in the sixth embodiment; if the electronic device is a first terminal, the electronic device includes the first chip according to the seventh embodiment; if the electronic device is the second terminal, the electronic device includes the second chip according to the eighth embodiment.
A tenth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (24)
1. A voice call method is applied to a Bluetooth chip and comprises the following steps:
in the process of transmitting a voice call data packet with a first terminal, if a voice call request instruction of a second terminal is received and an instruction for representing the voice call allowing to access the second terminal is received, sending a request for disconnecting synchronous data connection to the first terminal;
after receiving a request for establishing synchronous data connection sent by the second terminal, transmitting a voice call data packet to the second terminal;
wherein, before the sending the request for disconnecting the synchronous data connection to the first terminal, the method further comprises:
and if the request for establishing the synchronous data connection sent by the second terminal is received, the request for establishing the synchronous data connection sent by the second terminal is not responded within a preset time length, or information for refusing to establish the synchronous data connection is sent to the second terminal.
2. The voice call method according to claim 1, further comprising, before the sending the request for disconnecting the synchronous data connection to the first terminal:
sending a first instruction to the first terminal; the first instruction is used for indicating the first terminal to switch a call state from a receiving state to a holding state;
receiving first response information of the first terminal to the first instruction; the first response information is used for representing that the current call state of the first terminal is a hold state.
3. The voice call method according to claim 2, further comprising, after the transmitting the voice call packet to the second terminal:
if an instruction for representing the end of the call of a second terminal is received, sending a request for disconnecting the synchronous data connection to the second terminal;
after the request for disconnecting the synchronous data connection is sent to the second terminal, if the request for establishing the synchronous data connection sent by the first terminal is received, sending a second instruction to the first terminal; the second instruction is used for indicating the first terminal to switch the call state from the holding state to the answering state;
receiving second response information of the first terminal to the second instruction; the second response information is used for representing that the current call state of the first terminal is a listening state.
4. The voice call method according to claim 1, wherein before the receiving the request for establishing the synchronous data connection sent by the second terminal, the method further comprises:
sending a third instruction to the second terminal; the third instruction is used for triggering the second terminal to send a request for establishing synchronous data connection to the Bluetooth chip.
5. The voice call method according to claim 1, wherein before the transmitting the voice call packet to the second terminal after receiving the request for establishing the synchronous data connection sent by the second terminal, further comprising:
sending a fourth instruction to the second terminal; the fourth instruction is used for instructing the second terminal to transmit a voice call data packet to the Bluetooth chip;
receiving fourth response information of the second terminal to the fourth instruction; and the fourth response information is used for representing that the second terminal transmits a voice call data packet to the Bluetooth chip.
6. The voice communication method according to claim 1, wherein the bluetooth chip is embedded in a third terminal, and the third terminal is a wireless bluetooth headset.
7. The voice call method according to any one of claims 1 to 6, wherein the synchronous data connection is: the extended synchronization is data connection oriented eSCO.
8. A voice call method is applied to a first chip and comprises the following steps:
after receiving a request of disconnecting synchronous data connection sent by a third terminal when a first preset condition is met, stopping transmitting a voice call data packet to the third terminal;
wherein the first preset condition comprises: in the process that the third terminal transmits a voice call data packet with the first chip, the third terminal receives a voice call request instruction of the second terminal and receives an instruction used for representing voice call allowing to access the second terminal;
before the receiving of the request for disconnecting the synchronous data connection, which is sent by the third terminal when the first preset condition is met, the method further includes:
if the third terminal receives the request for establishing the synchronous data connection sent by the second terminal, the third terminal does not respond to the request for establishing the synchronous data connection sent by the second terminal within a preset time length, or the third terminal sends information for refusing to establish the synchronous data connection to the second terminal.
9. The voice call method according to claim 8, wherein before the receiving the request for disconnecting the synchronous data connection, which is sent by the third terminal when the preset condition is met, the method further comprises:
receiving a first instruction sent by the third terminal; the first instruction is used for indicating the first chip to switch the call state from the answering state to the holding state;
sending first response information to the first instruction to the third terminal; the first response information is used for representing that the current call state of the first chip is a hold state.
10. The voice call method according to claim 9, further comprising, after the sending of the first response information to the first instruction to the third terminal:
sending a request for establishing synchronous data connection to the third terminal when a second preset condition is met; wherein the second preset condition comprises: the third terminal receives an instruction for representing the end of the call of the second terminal, and sends a request for disconnecting the synchronous data connection to the second terminal;
receiving a second instruction sent by the third terminal; the second instruction is used for indicating the first chip to switch the call state from the holding state to the answering state;
sending second response information to the second instruction to the third terminal; the second response information is used for representing that the current call state of the first chip is a listening state.
11. The voice call method according to claim 10, wherein before the request for establishing a synchronous data connection, which is sent to the third terminal when the second preset condition is met, the method further comprises:
receiving a third instruction sent by the third terminal; the third instruction is used for triggering the first chip to send a request for establishing synchronous data connection to the third terminal.
12. The voice communication method according to claim 8, wherein the first chip is disposed in a first terminal, and the first terminal is a first mobile phone.
13. A voice call method according to any one of claims 8 to 12, characterised in that the synchronous data connection is: the extended synchronization is data connection oriented eSCO.
14. A voice call method is applied to a second chip and comprises the following steps:
in the process that a third terminal transmits a voice call data packet with a first terminal, the second chip sends a voice call request instruction to the third terminal; after the third terminal receives an instruction for representing that the voice call allowing to access the second chip is allowed, the third terminal sends a request for disconnecting the synchronous data connection to the first terminal;
after the third terminal sends a request for disconnecting the synchronous data connection to the first terminal, the second chip sends a request for establishing the synchronous data connection to the third terminal;
transmitting a voice call data packet to the third terminal;
after the second chip sends the voice call request instruction to the third terminal and before the third terminal sends the request for disconnecting the synchronous data connection to the first terminal, the method further includes:
if the second chip sends a request for establishing synchronous data connection to the third terminal, the second chip does not receive a response of the third terminal to the request for establishing synchronous data connection within a preset time length, or the second chip receives information for refusing to establish synchronous data connection sent by the third terminal.
15. The voice call method according to claim 14, further comprising, before the sending the request for establishing a synchronous data connection to the third terminal:
receiving a third instruction sent by the third terminal; the third instruction is used for triggering the second chip to send a synchronous data connection establishment request to the third terminal.
16. The voice call method according to claim 14, wherein after the sending the request for establishing the synchronous data connection to the third terminal, before the transmitting the voice call packet to the third terminal, further comprising:
receiving a fourth instruction sent by the third terminal; the fourth instruction is used for instructing the second chip to transmit a voice call data packet to the third terminal;
sending fourth response information to the fourth instruction to the third terminal; and the fourth response information is used for representing that the second chip transmits the voice call data packet to the third terminal.
17. The voice call method according to claim 14, wherein the second chip is embedded in a second terminal, and the second terminal is a second mobile phone.
18. A voice call method according to any of claims 14 to 17, characterised in that the synchronous data connection is: the extended synchronization is data connection oriented eSCO.
19. A voice call system, comprising: the Bluetooth device comprises a Bluetooth chip, a first terminal and a second terminal;
the Bluetooth chip is used for sending a request for disconnecting synchronous data connection to the first terminal if a voice call request instruction of the second terminal and an instruction for representing voice call allowing to access the second terminal are received in the process of transmitting a voice call data packet with the first terminal;
the first terminal is used for receiving and responding to the request for disconnecting the synchronous data connection, which is sent by the Bluetooth chip;
the second terminal is used for sending the voice call request instruction to the Bluetooth chip after receiving an incoming call, and sending a request for establishing synchronous data connection to the Bluetooth chip after the Bluetooth chip sends a request for disconnecting the synchronous data connection to the first terminal;
the Bluetooth chip is also used for transmitting a voice call data packet to the second terminal after receiving a request for establishing synchronous data connection sent by the second terminal;
the bluetooth chip is further configured to, before the request for disconnecting the synchronous data connection is sent to the first terminal, if the request for establishing the synchronous data connection sent by the second terminal is received, not respond to the request for establishing the synchronous data connection sent by the second terminal within a preset time period, or send information for rejecting establishment of the synchronous data connection to the second terminal.
20. A Bluetooth chip, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the voice call method of any one of claims 1 to 7.
21. A first chip, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the voice call method of any one of claims 8 to 13.
22. A second chip, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a voice call method as claimed in any one of claims 14 to 18.
23. An electronic device, comprising:
if the electronic device is a third terminal, the electronic device comprises the bluetooth chip of claim 20;
if the electronic device is a first terminal, the electronic device comprises the first chip of claim 21;
if the electronic device is a second terminal, the electronic device comprises the second chip of claim 22.
24. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the voice call method of any one of claims 1 to 7, or performs the voice call method of any one of claims 8 to 13, or performs the voice call method of any one of claims 14 to 18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010935271.1A CN111818503B (en) | 2020-09-08 | 2020-09-08 | Voice communication method, system, chip, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010935271.1A CN111818503B (en) | 2020-09-08 | 2020-09-08 | Voice communication method, system, chip, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111818503A CN111818503A (en) | 2020-10-23 |
CN111818503B true CN111818503B (en) | 2021-03-05 |
Family
ID=72860191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010935271.1A Active CN111818503B (en) | 2020-09-08 | 2020-09-08 | Voice communication method, system, chip, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111818503B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4387215A1 (en) * | 2022-12-13 | 2024-06-19 | Beijing Xiaomi Mobile Software Co., Ltd. | Call control method and apparatus, storage medium, and chip |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114554012B (en) * | 2020-11-18 | 2023-09-12 | 华为技术有限公司 | Incoming call answering method, electronic equipment and storage medium |
CN112399396B (en) * | 2021-01-19 | 2021-06-29 | 深圳市汇顶科技股份有限公司 | Bluetooth connection switching method, Bluetooth chip and Bluetooth device |
WO2022155797A1 (en) * | 2021-01-19 | 2022-07-28 | 深圳市汇顶科技股份有限公司 | Bluetooth connection switching method, bluetooth chip, and bluetooth device |
CN113329381B (en) * | 2021-04-28 | 2022-03-11 | 荣耀终端有限公司 | Method for establishing Bluetooth connection and electronic equipment |
CN115529381B (en) * | 2021-06-25 | 2024-03-01 | 博泰车联网科技(上海)股份有限公司 | Call processing method, device, system, electronic equipment and medium |
CN115865140A (en) * | 2021-09-24 | 2023-03-28 | Oppo广东移动通信有限公司 | Call control method and device, electronic equipment and computer readable storage medium |
CN115915037A (en) * | 2021-09-24 | 2023-04-04 | Oppo广东移动通信有限公司 | Call control method and device, electronic equipment and computer readable storage medium |
CN117652166A (en) * | 2022-05-24 | 2024-03-05 | 北京小米移动软件有限公司 | Bluetooth equipment control method, device, equipment and storage medium |
CN115190197B (en) * | 2022-09-13 | 2023-02-17 | 荣耀终端有限公司 | Bluetooth headset-based communication method and device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103716068A (en) * | 2013-12-17 | 2014-04-09 | 浙江省海洋开发研究院 | Mobile phone interactive management device and method on the basis of bluetooth |
CN105472773A (en) * | 2015-01-13 | 2016-04-06 | 深圳Tcl数字技术有限公司 | Method and host for communication of multiple Bluetooth devices |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9094091B2 (en) * | 2012-10-11 | 2015-07-28 | Htc Corporation | Method and apparatus for performing hands-free profile control, and associated computer program product |
-
2020
- 2020-09-08 CN CN202010935271.1A patent/CN111818503B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103716068A (en) * | 2013-12-17 | 2014-04-09 | 浙江省海洋开发研究院 | Mobile phone interactive management device and method on the basis of bluetooth |
CN105472773A (en) * | 2015-01-13 | 2016-04-06 | 深圳Tcl数字技术有限公司 | Method and host for communication of multiple Bluetooth devices |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4387215A1 (en) * | 2022-12-13 | 2024-06-19 | Beijing Xiaomi Mobile Software Co., Ltd. | Call control method and apparatus, storage medium, and chip |
Also Published As
Publication number | Publication date |
---|---|
CN111818503A (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111818503B (en) | Voice communication method, system, chip, electronic equipment and storage medium | |
KR102486257B1 (en) | Communication method for realising dual sim dual active, and terminal | |
CN108377482B (en) | Method, device, system and equipment for connecting terminal with Bluetooth equipment | |
WO2015131608A1 (en) | Communication processor, method of implementing volte, mobile terminal, data card | |
CN105101058A (en) | Method and equipment for realizing cooperative works of multiple Bluetooth headsets | |
CN103595871A (en) | Incoming call forwarding method and terminals | |
CN115190197B (en) | Bluetooth headset-based communication method and device and storage medium | |
CA2784651C (en) | Apparatus and method in a wireless device for reestablishing a call | |
CN113906773A (en) | Channel selection method and device of low-power-consumption Bluetooth device | |
CN104065832A (en) | Method and device for preventing mobile terminals from missing calls | |
CN112367648B (en) | Call management method, chip and audio output device | |
CN111182597B (en) | Processing method and device | |
CN111787496A (en) | Method and equipment for switching calls between mobile phones | |
JP4393345B2 (en) | Near field communication terminal | |
WO2023045784A1 (en) | Call control method and apparatus, and electronic device and computer-readable storage medium | |
US20230042997A1 (en) | Method for voice calling, system, chip, electronic device, and storage medium | |
US10368210B2 (en) | Service processing method, terminal device, and service roaming network | |
WO2012031469A1 (en) | Mobile terminal | |
WO2024087812A1 (en) | Call control method and device | |
CN111614384B (en) | Device with storage function, Bluetooth device and control method and system thereof | |
CN100583927C (en) | Method for communication terminal to select calls in call waiting | |
CN107948978B (en) | Mobile terminal and method for same | |
JP2009055210A (en) | Exchanging machine, exchanging method, and program | |
WO2012031470A1 (en) | Mobile terminal | |
JP2938021B1 (en) | Phone line switching method and apparatus by PHS and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |