CN113691678B - Call control method, electronic device, computer readable storage medium and chip system - Google Patents

Call control method, electronic device, computer readable storage medium and chip system Download PDF

Info

Publication number
CN113691678B
CN113691678B CN202110797271.4A CN202110797271A CN113691678B CN 113691678 B CN113691678 B CN 113691678B CN 202110797271 A CN202110797271 A CN 202110797271A CN 113691678 B CN113691678 B CN 113691678B
Authority
CN
China
Prior art keywords
electronic device
vehicle
equipment
electronic
bluetooth
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
Application number
CN202110797271.4A
Other languages
Chinese (zh)
Other versions
CN113691678A (en
Inventor
刘秀华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110797271.4A priority Critical patent/CN113691678B/en
Publication of CN113691678A publication Critical patent/CN113691678A/en
Priority to PCT/CN2022/091195 priority patent/WO2023284378A1/en
Application granted granted Critical
Publication of CN113691678B publication Critical patent/CN113691678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Abstract

A call control method and electronic equipment relate to the technical field of electronic equipment and can guarantee that a user can answer complete voice content. The specific scheme comprises the following steps: the electronic device may obtain a first device identifier, where the first device identifier is an identifier of the vehicle-mounted device. Thereafter, the electronic device receives the incoming call. Then, the electronic device can receive a first operation of the user, wherein the first operation is used for triggering answering of the incoming call. Responding to the first operation, if the plurality of preset vehicle-mounted device identifications comprise a first device identification, the electronic device plays the voice content through the electronic device or a first Bluetooth device, and the first Bluetooth device is a Bluetooth device which is connected with the electronic device. If the plurality of preset vehicle-mounted equipment identifications do not include the first equipment identification, the electronic equipment adds the first equipment identification to the blacklist according to the time consumed by releasing the synchronous connection between the electronic equipment and the vehicle-mounted equipment.

Description

Call control method, electronic device, computer readable storage medium and chip system
Technical Field
The embodiment of the application relates to the technical field of electronic equipment, in particular to a call control method and electronic equipment.
Background
With the development of electronic technology, vehicle-mounted devices are installed in most vehicles, and the vehicle-mounted devices can establish a bluetooth (bluetooth) connection with electronic devices (such as mobile phones, tablet computers or smart watches). After the vehicle-mounted device and the electronic device establish the Bluetooth connection, the vehicle-mounted device can output audio data played in the electronic device, and the audio data cannot be output in the electronic device. For example, take the case that a mobile phone receives an incoming call. In response to a call answering operation by a user on the mobile phone, the mobile phone may transmit voice data to the in-vehicle device through a Synchronous Connection Ordered (SCO) link, and play voice content by the in-vehicle device. However, when the vehicle-mounted device plays the voice content, the voice content is played outside in a hands-free mode, and privacy of the user may be revealed.
In the current technical scheme, in order to avoid revealing privacy of a user, under the condition that the user triggers to answer an incoming call through a mobile phone, the mobile phone transmits voice data to the vehicle-mounted equipment through the SCO. Thereafter, the onboard device may disconnect the SCO connection. After the SCO connection of the vehicle-mounted equipment is disconnected, the mobile phone can play voice content.
However, it takes a certain time for the in-vehicle device to disconnect from the cellular phone. In the process of disconnecting the vehicle-mounted equipment and the mobile phone, the vehicle-mounted equipment and the mobile phone cannot play the voice content. This may cause the user to miss part of the speech content, which may affect the user experience.
Disclosure of Invention
The application provides a call control method and electronic equipment, which can ensure that a user can answer complete voice content and improve the use experience of the user.
In a first aspect, the present application provides a method for controlling a call, which is applied to an electronic device. The electronic equipment stores a blacklist, the blacklist comprises a plurality of preset vehicle-mounted equipment identifications, and the preset vehicle-mounted equipment identifications are identifications which do not support the vehicle-mounted equipment for voice transmission under the condition that a user triggers to answer an incoming call through the electronic equipment.
According to the method, the electronic equipment and the vehicle-mounted equipment are connected through Bluetooth, the electronic equipment can obtain the first equipment identification, and the first equipment identification is the identification of the vehicle-mounted equipment. And then, the electronic equipment receives the incoming call, plays the incoming call ringtone to remind the user of the incoming call, and sends an incoming call instruction to the vehicle-mounted equipment. Then, the electronic device can receive a first operation of the user, wherein the first operation is used for triggering answering of the incoming call. Responding to the first operation, if the plurality of preset vehicle-mounted device identifications comprise a first device identification, the electronic device plays the voice content through the electronic device or a first Bluetooth device, and the first Bluetooth device is a Bluetooth device which is connected with the electronic device.
It can be understood that, if the electronic device determines that the first device identifier is in the blacklist, it may be determined that the in-vehicle device does not support voice transmission in a case where the user triggers to answer the incoming call through the electronic device. Therefore, the electronic equipment can directly play the voice content through the electronic equipment or the first Bluetooth equipment. Therefore, the situation that the voice content is not played by the vehicle-mounted equipment and the electronic equipment can be avoided, the situation that a user can answer the complete voice content is guaranteed, and the use experience of the user is improved.
If the plurality of preset vehicle-mounted equipment identifications do not include the first equipment identification, the electronic equipment adds the first equipment identification to the blacklist according to the time consumed by releasing the synchronous connection between the electronic equipment and the vehicle-mounted equipment.
It can be appreciated that the electronic device adds the first device identification to the blacklist based on a length of time it takes to release the synchronization connection. Therefore, when the electronic equipment is connected with the vehicle-mounted equipment again, whether the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer the incoming call through the electronic equipment can be determined according to the list. Therefore, the situation that the vehicle-mounted equipment and the electronic equipment do not play the voice content is avoided, the situation that a user can answer the complete voice content is guaranteed, and the use experience of the user is improved.
With reference to the first aspect, in a possible design manner, the electronic device may record a first time and a second time, where the first time is a time when the electronic device receives the first operation, and the second time is a time when the electronic device releases the synchronous connection for the first time after receiving the first operation. The electronic device may calculate a difference between the first time and the second time to obtain a first target difference. And if the first target difference value is smaller than the preset time threshold value, the electronic equipment establishes synchronous connection with the vehicle-mounted equipment again, and records third time, wherein the third time is the time for establishing synchronous connection for the second time after the electronic equipment receives the first operation. After that, the electronic device may release the synchronous connection with the in-vehicle device, and record a fourth time when the electronic device releases the synchronous connection for the second time after receiving the first operation. Then, the electronic device may calculate a difference between the third time and the fourth time to obtain a second target difference. And if the second target difference value is smaller than the preset time threshold value, the electronic equipment adds the first equipment identifier to the blacklist.
It should be noted that the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, or the vehicle-mounted device is abnormal, which may cause the synchronous connection to be released. Therefore, in order to determine that the vehicle-mounted device releases the synchronous connection due to the fact that voice transmission is not supported when the user triggers to answer the incoming call through the electronic device, the electronic device may set a preset time threshold. In general, the time duration consumed for releasing the synchronous connection due to the occurrence of the abnormality of the vehicle-mounted device is longer than the time duration consumed for releasing the synchronous connection due to the fact that the vehicle-mounted device does not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic device.
It can be understood that the first target difference and the second target difference are both smaller than the preset time threshold, which indicates that the time period consumed for releasing the synchronous connection is shorter. Therefore, the synchronous connection is released only when the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, namely the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment. And the time consumed by releasing the synchronous connection is compared twice, so that whether the vehicle-mounted equipment supports voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment can be more accurately determined, and the accuracy of the blacklist is further improved.
With reference to the first aspect, in another possible design, the electronic device plays the voice content through the electronic device or the first bluetooth device.
It can be understood that after the electronic device releases the synchronous connection with the vehicle-mounted device, the electronic device can play the voice content through the electronic device or the first bluetooth device. Therefore, the user can be ensured to listen to the voice content.
With reference to the first aspect, in another possible design manner, if the first target difference is greater than the preset time threshold, the electronic device plays the voice content through the electronic device or the first bluetooth device.
It will be appreciated that the first target difference value is greater than the predetermined time threshold, indicating that it takes a longer time to release the synchronization connection. Therefore, the method can determine that the synchronous connection is not released by voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment. The electronic equipment can play the voice content through the electronic equipment or the first Bluetooth equipment, and therefore the user can be guaranteed to answer the voice content.
In another possible design, in combination with the first aspect, the electronic device supports ring tone synchronization. The electronic equipment establishes synchronous connection with the vehicle-mounted equipment. The electronic equipment transmits the incoming call ringtone to the vehicle-mounted equipment through synchronous connection, and instructs the vehicle-mounted equipment to play the incoming ringtone to remind the user of the incoming call. Then, the electronic device releases the synchronous connection with the in-vehicle device.
With reference to the first aspect, in another possible design, the electronic device does not support ring synchronization. The electronic equipment establishes synchronous connection with the vehicle-mounted equipment. After that, the electronic apparatus releases the synchronous connection with the in-vehicle apparatus.
With reference to the first aspect, in another possible design manner, if an identifier that is the same as the first device identifier exists in the plurality of preset vehicle-mounted device identifiers, and the time duration for maintaining the synchronous connection between the electronic device and the vehicle-mounted device is longer than a preset time duration, the electronic device deletes the first device identifier from the blacklist.
It can be understood that if the synchronous connection is not released between the electronic device and the vehicle-mounted device within the preset time after the electronic device receives the first operation, it indicates that the vehicle-mounted device supports voice transmission in the case that the user answers the incoming call by triggering the electronic device. Thus, the electronic device may delete the first device identification from the blacklist.
With reference to the first aspect, in another possible design, the electronic device establishes bluetooth connections with a plurality of bluetooth devices, where the plurality of bluetooth devices includes an in-vehicle device and other bluetooth devices except the in-vehicle device. The electronic equipment can play the voice content through the first Bluetooth equipment, and the first Bluetooth equipment is any one of other Bluetooth equipment.
It can be understood that, under the condition that the electronic device is connected with other bluetooth devices except the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic device, the electronic device can play voice contents through the first bluetooth device. Therefore, the method and the device can ensure that the user can answer complete voice content, and the user does not need to hold the electronic equipment for communication, so that the use experience of the user is improved.
In combination with the first aspect, in another possible design manner, if the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, the electronic device may display a first prompt message for prompting that the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device.
It can be understood that the electronic device displays the first prompt message, so that the user can know the reason why the voice content is not played by the vehicle-mounted device. Therefore, the confusion of the user in the using process can be reduced, and the using experience of the user is improved.
In a second aspect, the present application provides a method for controlling a call, which is applied to an electronic device.
According to the method, the electronic equipment and the vehicle-mounted equipment are connected through Bluetooth. The electronic equipment can receive a Bluetooth support function (BRSF) message from the vehicle-mounted equipment, wherein the BRSF message comprises first indication information, and the first indication information is used for indicating whether the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer an incoming call through the electronic equipment. And then, the electronic equipment receives the incoming call, plays the incoming call ringtone to remind the user of the incoming call, and sends an incoming call instruction to the vehicle-mounted equipment. Then, the electronic device can receive a first operation of the user, wherein the first operation is used for triggering answering of the incoming call. Responding to the first operation, if the first indication information indicates that the vehicle-mounted equipment supports voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, the electronic equipment plays voice content through the vehicle-mounted equipment. If the first indication information indicates that the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the electronic device can play voice contents through the electronic device or a first Bluetooth device, and the first Bluetooth device is a Bluetooth device connected with the electronic device.
It can be understood that, after receiving the BRSF message, the electronic device can determine whether the in-vehicle device supports voice transmission in a case where the user triggers answering of the incoming call through the electronic device. If the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the electronic device or the first Bluetooth device can directly play voice content. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and improve the use experience of the user. If the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer the incoming call through the electronic equipment, the vehicle-mounted equipment can directly play voice content. Therefore, the user can be guaranteed to hear the complete voice content, and the use experience of the user is improved.
With reference to the second aspect, in one possible design manner, the first indication information includes: a first value or a second value; the first value is used for indicating that the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer the incoming call through the electronic equipment, and the second value is used for indicating that the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment.
In combination with the second aspect, in another possible design manner, the electronic device supports incoming call ringtone synchronization, where the incoming ringtone synchronization is a function of synchronizing an incoming ringtone from the electronic device to the vehicle-mounted device. The electronic device may send a synchronization request message to the in-vehicle device, where the synchronization request message is used to request establishment of a synchronous connection between the electronic device and the in-vehicle device. The electronic device may receive a synchronization response message from the in-vehicle device, the synchronization response message indicating that a synchronization connection has been established. And then, the electronic equipment can transmit the incoming call ringtone to the vehicle-mounted equipment through synchronous connection and instruct the vehicle-mounted equipment to play the incoming ringtone to remind the user of the incoming call.
With reference to the second aspect, in another possible design manner, the electronic device may send the voice data to the vehicle-mounted device through synchronous connection, and instruct the vehicle-mounted device to play the voice content corresponding to the voice data.
With reference to the second aspect, in another possible design manner, the electronic device may send a release request message to the vehicle-mounted device, where the release request message is used to instruct to release the synchronous connection. The electronic equipment receives a release response message from the vehicle-mounted equipment, wherein the release response message is used for indicating that the synchronous connection is released.
In combination with the second aspect, in another possible design, the electronic device does not support ring synchronization. The electronic equipment sends a synchronization request message to the vehicle-mounted equipment, wherein the synchronization request message is used for requesting to establish synchronous connection between the electronic equipment and the vehicle-mounted equipment. The electronic equipment receives a synchronization response message from the vehicle-mounted equipment, wherein the synchronization response message is used for indicating that the synchronization connection is established.
In a third aspect, the present application provides an electronic device comprising: a memory, a display screen, and one or more processors, the memory, display screen, and the processors coupled; the memory is for storing computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the one or more processors described above, cause the electronic device to perform the method as described in the first aspect and any possible design thereof.
In a fourth aspect, the present application provides a chip system, which is applied to an electronic device. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is configured to receive a signal from a memory of the electronic device and to transmit the signal to the processor, the signal including computer instructions stored in the memory. When executed by a processor, the computer instructions cause an electronic device to perform the method according to the first aspect and any of its possible designs.
In a fifth aspect, the present application provides a computer-readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the first aspect and any one of its possible designs.
In a sixth aspect, the present application provides a computer program product for causing a computer to perform the method according to the first aspect and any one of its possible designs when the computer program product runs on the computer.
It should be understood that, for the beneficial effects that can be achieved by the method of the second aspect, the electronic device of the third aspect and any possible design manner thereof, the chip system of the fourth aspect, the computer-readable storage medium of the fifth aspect, and the computer program product of the sixth aspect, reference may be made to the beneficial effects of the first aspect and any possible design manner thereof, and details of the beneficial effects are not repeated herein.
Drawings
Fig. 1 is a schematic diagram of an example of a display interface provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a hardware structure of an on-board device according to an embodiment of the present application;
fig. 4 is a flowchart of a call control method according to an embodiment of the present application;
fig. 5 is a flowchart of another call control method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an example of another display interface provided by an embodiment of the present application;
fig. 7 is a flowchart of another call control method according to an embodiment of the present application;
fig. 8 is a flowchart of another call control method according to an embodiment of the present application;
fig. 9 is a flowchart of another call control method according to an embodiment of the present application;
fig. 10 is a flowchart of another call control method according to an embodiment of the present application;
fig. 11 is a flowchart of another call control method according to an embodiment of the present application;
fig. 12 is a flowchart of another call control method according to an embodiment of the present application;
fig. 13 is a flowchart of another call control method according to an embodiment of the present application;
fig. 14 is a flowchart of another call control method according to an embodiment of the present application;
FIG. 15 is a schematic diagram of an example of another display interface provided by an embodiment of the present application;
fig. 16 is a schematic structural component diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The character "/" in this application generally indicates that the former and latter associated objects are in an "or" relationship. For example, A/B may be understood as A or B.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "e.g.," is intended to present concepts in a concrete fashion.
In order to facilitate understanding of the technical solutions of the present application, prior to describing the call control method in the embodiments of the present application in detail, a description of a conventional technology is provided.
With the development of electronic technology, most vehicles are equipped with vehicle-mounted equipment, and the vehicle-mounted equipment can be wirelessly connected with the electronic equipment through Bluetooth. After the vehicle-mounted device and the electronic device establish the Bluetooth connection, the vehicle-mounted device can output audio data played in the electronic device, and the audio data cannot be output in the electronic device. However, when the vehicle-mounted device plays the voice content, the voice content is played in a hands-free mode, and privacy of the user may be leaked.
In the conventional technology, in a case where the vehicle-mounted device establishes a bluetooth connection with the electronic device, the electronic device may synchronize a voice content to the vehicle-mounted device in response to a phone answering operation performed by a user on the electronic device. Illustratively, as shown in fig. 1 (a), after the electronic device receives an incoming call, an incoming call interface 101 may be displayed, and the incoming call interface 101 may include an answer button 103. In response to an operation (the operation may be clicking, long-pressing, sliding, etc., for example, the operation is operation a) of the user on the listen button 103, the electronic device may synchronize voice data to the in-vehicle device through the SCO. The in-vehicle apparatus may display the call interface 102 shown in (b) in fig. 1. If the vehicle-mounted equipment does not support playing of the voice content, the vehicle-mounted equipment can release SCO connection, namely, SCO connection established between the vehicle-mounted equipment and the electronic equipment is actively disconnected. Specifically, after the vehicle-mounted device receives the voice data from the electronic device, if the vehicle-mounted device does not support playing of the voice content, the vehicle-mounted device may send a disconnection request to the electronic device, where the disconnection request is used to instruct to disconnect the SCO connection with the electronic device. After that, the electronic device receives the disconnection request, and may send a disconnection message to the vehicle-mounted device, where the disconnection message is used to indicate that the SCO connection between the electronic device and the vehicle-mounted device has been successfully disconnected. Furthermore, the vehicle-mounted device releases the SCO connection when the vehicle-mounted device is abnormal. Therefore, the electronic device may re-establish the SCO connection with the vehicle-mounted device to ensure that data can be synchronized between the electronic device and the vehicle-mounted device. As such, the onboard device may release the SCO connection multiple times. After the SCO connection is released by the vehicle-mounted equipment once or for multiple times, the electronic equipment does not synchronize voice data to the vehicle-mounted equipment, and the electronic equipment can play voice content.
However, during the process that the vehicle-mounted device releases the SCO connection (or the process that the electronic device reestablishes the SCO connection), the electronic device still synchronizes the voice data to the vehicle-mounted device. In addition, in the process that the vehicle-mounted device releases the SCO connection (or the process that the electronic device reestablishes the SCO connection), both the electronic device and the vehicle-mounted device cannot play the voice content. This may cause the user to miss part of the speech content, which may affect the user experience.
Therefore, the embodiment of the application provides a call control method. The method can be applied to the situation that the electronic equipment answers the incoming call when the electronic equipment and the vehicle-mounted equipment establish the Bluetooth connection. In the method, in response to the answering operation of the user on the electronic equipment, the electronic equipment can determine whether the vehicle-mounted equipment supports voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment. If the vehicle-mounted device supports voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the electronic device can determine that the vehicle-mounted device plays the voice content. Therefore, after the electronic equipment triggers to answer the incoming call, the vehicle-mounted equipment can directly play the voice content. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and improve the use experience of the user. Moreover, the user does not need to communicate through the electronic equipment, so that the communication of the user is more convenient.
If the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, the electronic equipment can determine that the voice content is played by the electronic equipment. That is to say, after the electronic device triggers to answer the incoming call, the electronic device does not synchronize the voice data with the vehicle-mounted device, and the electronic device can directly play the voice content. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and improve the use experience of the user.
For example, the electronic device in the embodiment of the present application may be a tablet computer, a mobile phone, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR), a Virtual Reality (VR) device, and the like, and the embodiment of the present application does not particularly limit the specific form of the electronic device.
The execution main body of the method for controlling the call provided by the application can be a control device of the call, and the execution device can be the electronic equipment shown in fig. 2. Meanwhile, the execution device may also be a Central Processing Unit (CPU) of the electronic device, or a control module for controlling a call in the electronic device. In the embodiment of the present application, a method for controlling a call executed by an electronic device is taken as an example, and a method for controlling a call provided in the embodiment of the present application is described.
Referring to fig. 2, the electronic device provided in the present application is described herein by taking the electronic device as the mobile phone 200 shown in fig. 2 as an example. Therein, the cell phone 200 shown in fig. 2 is only one example of an electronic device, and the cell phone 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
As shown in fig. 2, the handset 200 may include: the mobile communication device includes a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, and a Subscriber Identity Module (SIM) card interface 295.
The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be the neural center and command center of the cell phone 200. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not constitute a limitation to the structure of the mobile phone 200. In other embodiments, the mobile phone 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. The charging management module 240 may also supply power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 may also be disposed in the same device.
The wireless communication function of the mobile phone 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like. In some embodiments, antenna 1 of handset 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that handset 200 may communicate with networks and other devices via wireless communication techniques. For example, in the embodiment of the present application, the mobile phone 200 may transmit the voice data to the vehicle-mounted device through a wireless communication technology.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied to the handset 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.
The mobile communication module 250 can also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide solutions for wireless communication applied to the mobile phone 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity, wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. For example, in the embodiment of the present application, the mobile phone 200 may access a Wi-Fi network through the wireless communication module 260.
The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
The mobile phone 200 implements display functions through the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, coupled to a display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel. For example, in the embodiment of the present application, the display screen 294 may be used to display an incoming call interface, a call interface, and the like.
The mobile phone 200 may implement a shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or video. In some embodiments, handset 200 may include 1 or N cameras 293, N being a positive integer greater than 1.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the mobile phone 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including instructions. The processor 210 executes various functional applications and data processing of the cellular phone 200 by executing instructions stored in the internal memory 221. For example, in the present embodiment, the processor 210 may execute instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.
The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The data storage area may store data (such as audio data, a phone book, etc.) created during use of the mobile phone 200, and the like. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The mobile phone 200 can implement an audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, and the application processor. Such as music playing, recording, etc.
The keys 290 include a power-on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be touch keys. The motor 291 may generate a vibration cue. The motor 291 can be used for both incoming call vibration prompting and touch vibration feedback. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the mobile phone 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The handset 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc.
Although not shown in fig. 2, the mobile phone 200 may also be a flash, a micro-projector, a Near Field Communication (NFC) device, etc., and will not be described herein.
It is to be understood that the structure illustrated in the present embodiment does not specifically limit the mobile phone 200. In other embodiments, cell phone 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Please refer to fig. 3, which is a schematic diagram of a hardware structure of an in-vehicle device according to an embodiment of the present application. As shown in fig. 3, the in-vehicle apparatus 300 may include: a processor 310, a memory 320, a sensor 330, a wireless communication module 340, a receiver 350, and a microphone 360.
The memory 320 may be used to store application program codes, such as application program codes for enabling the in-vehicle device 300 to perform pairing connection with the electronic device (such as the mobile phone 200). The processor 310 may control and execute the application program codes to realize the functions of the in-vehicle device 300 in the embodiment of the present application.
The memory 320 may further store a bluetooth address for uniquely identifying the vehicle-mounted device, and the memory 320 may further store connection data of an electronic device that has been successfully paired with the vehicle-mounted device before. For example, the connection data may be a bluetooth address of the electronic device successfully paired with the in-vehicle device. Based on the connection data, the in-vehicle device can be automatically paired with the electronic device without configuring a connection therebetween, such as performing validity verification or the like. The bluetooth address may be a Media Access Control (MAC) address.
The sensor 330 may include a touch sensor for detecting a touch operation of a user. In some embodiments, the vehicle-mounted device may further include a fingerprint sensor for detecting a fingerprint of the user, identifying an identity of the user, and the like. In other embodiments, the vehicle-mounted device may further include an ambient light sensor, and some parameters, such as volume, may be adaptively adjusted according to the perceived brightness of the ambient light.
The wireless communication module 340 is configured to support short-range data exchange between the in-vehicle device 300 and various electronic devices, such as the mobile phone 200. In some embodiments, the wireless communication module 340 may be a bluetooth transceiver or a Radio Frequency (RF) circuit. The vehicle-mounted device 300 can establish a wireless connection with the mobile phone 200 through the bluetooth transceiver to realize short-distance data exchange between the two.
At least one receiver 350, which may also be referred to as a "headset," may be used to convert the electrical audio signals into sound signals and play them. For example, when the in-vehicle apparatus 300 functions as the audio output apparatus of the above-described cellular phone 200, the receiver 350 may convert the received audio electric signal into a sound signal and play it.
At least one microphone 360, which may also be referred to as a "microphone," is used to convert sound signals into electrical audio signals. For example, when the in-vehicle device 300 is used as the audio input device of the mobile phone 200, the microphone 360 may collect the voice signal of the user and convert the voice signal into an audio electrical signal during the process of speaking (such as a call or a voice message). The audio electrical signal is the audio data in the embodiment of the present application. In some embodiments, the microphone 360 may be a feed-forward microphone.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the in-vehicle apparatus 300. It may have more or fewer components than shown in fig. 3, may combine two or more components, or may have a different configuration of components. For example, the in-vehicle device 300 may further include a display screen (which may display an application icon, a call interface, and the like). The various components shown in fig. 3 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
The methods in the following embodiments may be implemented in both the electronic apparatus and the in-vehicle apparatus having the above-described hardware structures.
An embodiment of the present application provides a method for controlling a call, and as shown in fig. 4, the method for controlling a call may include S401 to S406.
S401, the electronic equipment acquires first indication information.
The first indication information is used for indicating whether the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer the incoming call through the electronic equipment. The embodiment of the present application does not limit the transmission manner. For example, the electronic device may perform voice transmission with the in-vehicle device through the SCO. For another example, the electronic device may use an Extended Synchronous Connection Organized (ESCO) for voice transmission with the in-vehicle device.
It should be noted that, the triggering of answering the incoming call by the user through the electronic device means that, when the electronic device receives the incoming call, the electronic device receives an incoming call answering operation of the user, and the incoming call answering operation is used for triggering answering the incoming call. Illustratively, as shown in fig. 1 (a), when the electronic device receives an incoming call, the electronic device may receive an operation of the answer button 103 by the user. That is, the scenario in fig. 1 (a) is that the user triggers to answer the incoming call through the electronic device.
It should be noted that the vehicle-mounted device receives the operation of answering the incoming call of the user, and the user is not considered to be triggered to answer the incoming call through the electronic device.
In the embodiment of the application, the electronic device can acquire the first indication information in the process of establishing the Bluetooth connection between the electronic device and the vehicle-mounted device.
In one possible implementation manner, the first indication information is stored in the vehicle-mounted device. In the process of establishing the bluetooth connection between the electronic device and the vehicle-mounted device, the vehicle-mounted device may send the first indication information to the electronic device. Thereafter, the electronic device may receive the first indication information from the electronic device.
As shown in FIG. 5, S401 may include S501-S502.
S501, the vehicle-mounted device can send a Bluetooth support function message to the electronic device.
Wherein, the first Bluetooth Supported Features (BRSF) message carries the first indication information. The BRSF message is used to indicate the functional characteristics that the in-vehicle device can support. For example, the functional characteristics that the in-vehicle device can support may include: the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer an incoming call through the electronic equipment, supports three-party conversation and the like.
In one possible implementation manner, during the process of establishing the bluetooth connection between the electronic device and the vehicle-mounted device, the vehicle-mounted device may send a BRSF message to the electronic device. For example, during a process (e.g., service Level Connection (SLC)) in which the electronic device establishes a bluetooth Hands-Free Profile (HFP) Connection with the in-vehicle device, the in-vehicle device may send a first BRSF command (i.e., a BRSF message) to the electronic device, where the first BRSF command carries first indication information in a BitMap format. For example, the first BRSF command may be "AT + BRSF = < HF supported feeds >".
In one possible design, the first indication information may occupy at least one bit in the BitMap. For example, the first indication information may occupy one bit in the BitMap (i.e., the first indication information is 1 bit). For another example, the first indication information may occupy three bits in the BitMap (i.e., the first indication information is 3 bits). The following description is given of an embodiment of the present application by taking an example in which the first indication information occupies one bit in the BitMap. Under the condition that the first indication information occupies one bit in the BitMap, the first indication information can be located in any one bit in reserved bits of the BitMap, and the reserved bits of the BitMap are used for indicating unoccupied bits. That is to say, the bit occupied by the first indication information is not limited in the embodiment of the present application. Illustratively, suppose the reserved bits of the BitMap include the 13 th bit in the BitMap through the 32 th bit in the BitMap. The first indication information may be located at the 13 th bit in the BitMap. The first indication information may also be located at the 15 th bit in the BitMap. The first indication information may also be located at the 30 th bit in the BitMap.
S502, the electronic device receives the Bluetooth support function message from the vehicle-mounted device.
Optionally, the electronic device receives the BRSF message from the vehicle-mounted device, and may send a first response message to the vehicle-mounted device. The first response message is used for indicating that the electronic equipment successfully receives the BRSF message. Optionally, the electronic device may send a BRSF command to the vehicle-mounted device, where the BRSF command is used to indicate functions that the electronic device can support. For example, the functional features that an electronic device is capable of supporting may include: the electronic equipment supports incoming call ringing, the electronic equipment supports three-party call and the like.
S402, the electronic equipment receives an incoming call.
In some embodiments, the electronic device receives an incoming call, and may play an incoming call ring to alert the incoming call (e.g., (a) of fig. 1).
S403, the electronic equipment receives a first operation of the user.
The first operation is used for triggering answering of the incoming call. The first operation is an operation acting on the electronic device (operation a shown in (a) in fig. 1). The embodiment of the present application does not limit the first operation. For example, the first operation may be a sliding operation. For another example, the first operation may be a click operation. For another example, the first operation may be a long press operation.
In the embodiment of the application, after the electronic device receives the incoming call, the user can input the first operation to the electronic device. The electronic device may receive a first operation by a user.
S404, responding to the first operation, the electronic equipment determines whether the vehicle-mounted equipment supports voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment or not according to the first indication information.
In some embodiments, if the electronic device determines that the in-vehicle device supports voice transmission in a case where the user triggers answering of an incoming call through the electronic device, the electronic device may perform S405.
In some embodiments, if the electronic device determines that the in-vehicle device does not support voice transmission in a case where the user triggers answering of an incoming call through the electronic device, the electronic device may perform S406.
S405, the electronic equipment determines that the voice content is played through the vehicle-mounted equipment.
In the embodiment of the application, if the electronic device determines that the vehicle-mounted device supports voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the electronic device can determine to play the voice content through the vehicle-mounted device.
In some embodiments, after the electronic device determines that the voice content is played through the in-vehicle device, the electronic device may perform voice transmission with the in-vehicle device through the SCO or the ESCO. After that, the in-vehicle device may play the voice content. The voice content is used to indicate voice data transmitted by the electronic device.
It can be understood that, if the vehicle-mounted device supports voice transmission in the case that the user triggers to answer the incoming call through the electronic device, after the electronic device transmits the voice data to the vehicle-mounted device, the vehicle-mounted device does not disconnect the connection (such as the SCO connection) with the mobile phone, but can directly play the voice content. Therefore, the user can be guaranteed to hear the complete voice content, and the use experience of the user is improved.
Moreover, when a user makes a call through the electronic device, the user may need to hold the electronic device. And when the user calls through the vehicle-mounted equipment, the user does not need to hold the vehicle-mounted equipment. Therefore, the user can talk more conveniently.
S406, the electronic device determines to play the voice content through the electronic device or the first Bluetooth device.
The first Bluetooth device is other Bluetooth devices except the vehicle-mounted device in the plurality of Bluetooth devices which establish Bluetooth connection with the electronic device. The at least one bluetooth device includes an in-vehicle device. The embodiment of the application does not limit other Bluetooth devices except the vehicle-mounted device. For example, the bluetooth device may be a bluetooth speaker, a bluetooth bracelet, or a bluetooth headset.
In some embodiments, the electronic device may establish a bluetooth connection with a plurality of bluetooth devices. The plurality of Bluetooth devices include the in-vehicle device and other Bluetooth devices other than the in-vehicle device. If the electronic device determines that the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the electronic device can determine the first Bluetooth device from other Bluetooth devices. Thereafter, the electronic device may determine to play the voice content through the first bluetooth device. Alternatively, the electronic device may determine to play the voice content through the electronic device.
It can be understood that, under the condition that the electronic device is connected with other bluetooth devices except the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic device, the electronic device can play voice content through the first bluetooth device. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and the user does not need to hold the electronic equipment for conversation, so that the use experience of the user is improved.
It should be noted that, the first bluetooth device is not limited in this embodiment of the application.
In one possible design, the first bluetooth device may be any one of the other bluetooth devices. Illustratively, suppose that other bluetooth devices include bluetooth speakers, bluetooth bracelets, and bluetooth headsets. The first bluetooth device may be a bluetooth sound; or, the first bluetooth device may be a bluetooth bracelet; alternatively, the first bluetooth device may be a bluetooth headset.
In another possible design, the first bluetooth device may be a bluetooth device that uses the highest frequency among other bluetooth devices. The use frequency of the Bluetooth device is used for indicating the frequency of the electronic device for establishing Bluetooth connection with the Bluetooth device. The use frequency is not limited in the embodiments of the present application. For example, the usage frequency may be the number of times the electronic device establishes a bluetooth connection with a bluetooth device per day. As another example, the usage frequency may be the number of times a bluetooth connection is established between the electronic device and the bluetooth device every week. Specifically, the electronic device may store the usage frequency of the bluetooth device that has established the bluetooth connection with the electronic device, and the relationship between the identifier of the bluetooth device and the usage frequency of the bluetooth device. Wherein, the identification of the Bluetooth device is used for identifying the Bluetooth device. The embodiment of the present application does not limit the identifier of the bluetooth device. For example, the identity of the bluetooth device may be a Media Access Control (MAC) address of the bluetooth device. As another example, the identity of the Bluetooth device may be a device identity (device ID) of the Bluetooth device.
Illustratively, as shown in table 1, the relationship between the identity of the bluetooth device and the frequency of use of the bluetooth device is shown.
TABLE 1
Identification of Bluetooth device Frequency of use of bluetooth devices
Identification A 7
Identification B 2
Identification C 5
That is, the bluetooth device identified as the identifier a has a use frequency of 7, the bluetooth device identified as the identifier B has a use frequency of 2, and the bluetooth device identified as the identifier C has a use frequency of 5.
The electronic device may obtain the identity of other bluetooth devices that establish a bluetooth connection with the electronic device. Then, the electronic device may determine the usage frequency of each of the other bluetooth devices according to the identifiers of the other bluetooth devices and the relationship between the identifiers of the bluetooth devices and the usage frequency of the bluetooth devices. The electronic device may then determine a first bluetooth device based on the frequency of use of each bluetooth device.
Optionally, the use frequency may also be a use time length, a use frequency, and the like, which is not limited in the embodiment of the present application. For the way that the electronic device determines the first bluetooth device according to the use duration or the use times, reference may be made to the foregoing embodiment, which is not described herein again.
It is understood that the first bluetooth device is a bluetooth device that uses the highest frequency among other bluetooth devices. That is, the electronic device may play the voice content through the bluetooth device that uses the highest frequency. Therefore, the incoming call can be answered according to the using habits of the user, and the using experience of the user is improved.
In another possible design, the first bluetooth device may be a bluetooth device that establishes a bluetooth connection with the electronic device before the electronic device establishes a bluetooth connection with the in-vehicle device. For example, it is assumed that the electronic device establishes a bluetooth connection with the bluetooth headset before the electronic device establishes a bluetooth connection with the in-vehicle device. The first bluetooth device may be a bluetooth headset.
In another possible design, the first bluetooth device is a bluetooth device with the highest priority among other bluetooth devices. Specifically, the priority of the plurality of types of devices is stored in the electronic device. The priority of the equipment is used for representing the probability of revealing the voice content when the Bluetooth equipment plays the voice content of the electronic equipment. The higher the priority of the device is, the lower the probability of leaking the voice content when the bluetooth device plays the voice content of the electronic device is. The lower the priority of the device, the greater the probability of revealing the voice content when the bluetooth device plays the voice content of the electronic device.
Illustratively, the plurality of devices includes: a headset-type device, a wearable-type device, and a sound-type device. The priority of the headset type device is higher than the priority of the wearable type device, and the priority of the wearable type device is higher than the priority of the audible type device. The electronic device may obtain a device type for each of the other bluetooth devices. The electronic device may then determine the priority of each of the other bluetooth devices based on the device types of the other bluetooth devices and the priorities of the multiple devices. The electronic device may then determine the first bluetooth device based on the priority of each bluetooth device. For example, if the electronic device establishes a bluetooth connection with a bluetooth headset, a bluetooth watch, or a bluetooth sound, the electronic device may determine that the first bluetooth device is a bluetooth headset. If the electronic device establishes a bluetooth connection with the bluetooth watch and the bluetooth sound, the electronic device may determine that the first bluetooth device is the bluetooth watch.
It is understood that the first bluetooth device is the highest priority bluetooth device among the other bluetooth devices. That is, the electronic device may play the voice content through the bluetooth device that reveals the lowest probability of the voice content. Therefore, the probability of revealing the privacy of the user can be reduced, the safety of voice communication is improved, and the use experience of the user is improved.
In some embodiments, the electronic device establishes a bluetooth connection with the in-vehicle device and does not establish a bluetooth connection with other bluetooth devices. If the electronic equipment determines that the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, the electronic equipment can determine to play the voice content through the electronic equipment.
It can be understood that if the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the electronic device can directly play the voice content. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and improve the use experience of the user.
It should be noted that, in the case that the electronic device and the in-vehicle device establish the bluetooth connection, if the in-vehicle device does not play the voice content, but the electronic device or the bluetooth device plays the voice content, the user may be confused.
In some embodiments, if the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, after the electronic device determines that the voice content is played through the electronic device or the first bluetooth device, the electronic device may display a first prompt message for prompting that the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device.
For example, after the electronic device determines that the voice content is played through the electronic device or the first bluetooth device, the electronic device may display a prompt message 601 as shown in fig. 6, where the prompt message 601 may be a "reminder," and the current vehicle-mounted device does not support the triggering of answering an incoming call on the mobile phone side, and then answers the voice call. Optionally, the prompt message 601 may also be used to indicate the device currently playing the voice content. For example, if the electronic device plays voice content through a Bluetooth headset, the prompting message 601 may also include "note that the device currently engaged in a voice call is a Bluetooth headset! ".
In addition, the display mode of the first prompting message is not limited in the embodiment of the present application. For example, the electronic device may display the first prompting message via a notification message. For another example, the electronic device can display a first prompting message at the notification bar. For another example, the electronic device can display the first prompting message in a pop-up box.
It can be understood that the electronic device displays the first prompt message, so that the user can know the reason why the voice content is not played by the vehicle-mounted device. Therefore, the confusion of the user in the using process can be reduced, and the using experience of the user is improved.
In some embodiments, the first indication may be a first value or a second value. The first numerical value is used for indicating that the vehicle-mounted equipment supports voice transmission under the condition that a user triggers to answer the incoming call through the electronic equipment, and the second numerical value is used for indicating that the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment. For example, if the first indication information is information corresponding to an "AG answer" bit in the BitMap, the "AG answer" bit may be a first value or a second value. The first numerical value and the second numerical value are not limited in the embodiments of the present application. For example, the first value may be 1 and the second value may be 0. For another example, the first value may be 0 and the second value may be 1.
It should be noted that, in the embodiment of the present application, the electronic device may establish a synchronous connection with the in-vehicle device. The synchronous connection is used for transmitting voice data between the electronic equipment and the vehicle-mounted equipment. That is to say, the voice content played by the vehicle-mounted device is the voice content sent by the electronic device to the vehicle-mounted device through the synchronous connection. The embodiment of the present application does not limit the synchronous connection. For example, the synchronous connection may be an SCO connection. Also for example, the synchronization connection may be an ESCO connection. The synchronous connection may also be another connection for synchronizing voice data, for example.
It should be noted that, in the embodiment of the present application, the timing when the electronic device establishes the synchronous connection with the vehicle-mounted device is related to whether the electronic device supports incoming call ringtone synchronization, where the incoming ringtone synchronization is a function of synchronizing an incoming ringtone from the electronic device to the vehicle-mounted device. If the electronic device supports the incoming call ringtone synchronization, the electronic device can establish the synchronous connection with the vehicle-mounted device after the electronic device receives the incoming call. If the electronic equipment does not support incoming call ringtone synchronization, the electronic equipment cannot establish synchronous connection with the vehicle-mounted equipment after receiving an incoming call. Optionally, if the electronic device does not support ring synchronization, the electronic device may establish a synchronous connection with the vehicle-mounted device after the electronic device receives the first operation (that is, the user triggers to answer the call through the electronic device).
In an embodiment of the present application, the electronic device may determine whether the electronic device supports ring tone synchronization according to second indication information, where the second indication information is used to indicate whether the electronic device supports ring tone synchronization. Specifically, the electronic device may obtain the second indication information. For example, the second indication information may be an "in-band ring tone capability" bit in the BitMap format. If the "in-band ring tone capability" bit in the BitMapBitMap format is 0 (i.e., the second indication information is 0), the electronic device determines that the electronic device does not support ring synchronization. If the in-band ring tone bit in the BitMap format is 1 (i.e., the second indication information is 1), the electronic device determines that the electronic device supports ring tone synchronization.
The method of the embodiment of the present application is described below by taking an example in which an electronic device supports ring synchronization. As shown in fig. 7, after S502, the call control method may include S701-S712.
S701, when the electronic equipment receives an incoming call, the electronic equipment sends an incoming call instruction to the vehicle-mounted equipment.
The incoming call instruction is used for indicating the electronic equipment to receive an incoming call.
For example, when the electronic device receives an incoming call, the electronic device may send a first CIEV command (i.e., an incoming call instruction) to the in-vehicle device, where the first CIEV command includes incoming call indication information indicating that the electronic device receives the incoming call. For example, the incoming call indication information may be "callsetup =1".
In the embodiment of the application, when the electronic device receives an incoming call, the electronic device may send an incoming call instruction to the vehicle-mounted device. After that, the in-vehicle device may receive an incoming call instruction from the electronic device. Optionally, after the in-vehicle device receives the incoming call instruction from the electronic device, the in-vehicle device may display an incoming call reminding interface. The vehicle-mounted equipment can receive the incoming call answering operation acted on the incoming call reminding interface by the user so as to trigger the incoming call answering.
In some embodiments, in response to the electronic device receiving an incoming call, the electronic device may determine whether the electronic device supports ring tone synchronization. Optionally, in the process of establishing the bluetooth connection between the electronic device and the vehicle-mounted device, the electronic device may determine whether the electronic device supports ring synchronization. If the electronic device supports ring synchronization, the electronic device may perform S702.
It should be noted that, the way for the electronic device to determine whether the electronic device supports incoming call ringtone synchronization may refer to the method for the electronic device to determine whether the electronic device supports incoming call ringtone synchronization in the foregoing embodiment, which is not described herein again.
S702, the electronic equipment sends a synchronization request message to the vehicle-mounted equipment.
Wherein the synchronization request message is used for requesting to establish a synchronization connection. For example, the synchronization request message may be an LMP _ SCO _ LINK _ REQ message or an LMP _ eSCO _ LINK _ REQ message.
In the embodiment of the application, if the electronic device supports ring synchronization, after receiving an incoming call, the electronic device may send a synchronization request message to the vehicle-mounted device.
And S703, the vehicle-mounted equipment sends a synchronization response message to the electronic equipment.
Wherein the synchronization response message is used to indicate that the synchronization connection has been successfully established. Illustratively, the synchronization response message may be an LMP _ ACCEPT message or an LMP _ ACCEPT _ EXT message.
In the embodiment of the application, the vehicle-mounted device receives the synchronization request message from the electronic device, and can send the synchronization response message to the electronic device. Thereafter, the electronic device may receive a synchronization response message from the in-vehicle device. That is, the synchronous connection has been successfully established between the electronic apparatus and the in-vehicle apparatus.
It should be noted that, in the embodiment of the present application, a process of establishing a synchronous connection between an electronic device and an in-vehicle device is not limited. For example, after the in-vehicle device receives the incoming call instruction, if the electronic device supports ring synchronization, the in-vehicle device may send a synchronization request message to the electronic device. After that, the electronic device may send a synchronization response message to the in-vehicle device.
In some embodiments, after the electronic device receives an incoming call, the electronic device may play an incoming ringtone. After the synchronous connection between the electronic equipment and the vehicle-mounted equipment is successfully established, the electronic equipment can transmit the incoming call ringtone to the vehicle-mounted equipment through the synchronous connection, and instruct the vehicle-mounted equipment to play the incoming ringtone to remind the user of the incoming call. And then, the vehicle-mounted equipment can play the incoming call ringtone. Illustratively, if the synchronous connection is an SCO connection, the electronic device may transmit the ring tone data to the in-vehicle device through the SCO.
S704, the electronic equipment receives a first operation of the user.
In some embodiments, in response to the first operation, the electronic device can send an answering instruction to the vehicle-mounted device, wherein the answering instruction is used for indicating that the incoming call is answered. For example, in response to the first operation, the electronic device may send a second CIEV command (i.e., an answer instruction) to the in-vehicle device, where the CIEV command includes answer indication information indicating that the incoming call has been answered. For example, the hearing indication information may be "call =1".
S705, responding to the first operation, the electronic equipment determines whether the first indication information is a first numerical value.
In some embodiments, if the first indication information is the first value, the electronic device may perform S706-S708. That is, if the in-vehicle device supports voice transmission in a case where the user triggers answering of an incoming call through the electronic device, the electronic device may perform S706-S708.
In some embodiments, if the first indication information is the second numerical value, the electronic device may perform S709 or S710-S712. That is, if the in-vehicle device supports voice transmission in a case where the user triggers to answer the incoming call through the electronic device, the electronic device may perform S709; alternatively, if the in-vehicle device supports voice transmission in a case where the user triggers answering of an incoming call through the electronic device, the electronic device may perform S710-S712.
S706, the electronic equipment determines that the voice content is played through the vehicle-mounted equipment.
In this embodiment of the application, if the first indication information is the first numerical value, the electronic device determines to play the voice content through the vehicle-mounted device. That is, if the in-vehicle device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, the electronic device may determine to play the voice content through the in-vehicle device.
And S707, the electronic equipment sends the voice data to the vehicle-mounted equipment.
In the embodiment of the application, the electronic device determines that the voice content is played through the vehicle-mounted device, and sends the voice data to the vehicle-mounted device through synchronous connection to instruct the vehicle-mounted device to play the voice content corresponding to the voice data. For example, the electronic device may transmit voice data to the in-vehicle device through the SCO.
It can be understood that, since the electronic device supports ring tone synchronization, the electronic device can establish a synchronous connection with the in-vehicle device after receiving an incoming call. Therefore, in S707, when the electronic apparatus transmits the voice data to the in-vehicle apparatus, the electronic apparatus does not need to establish a synchronous connection.
And S708, the vehicle-mounted equipment receives the voice data from the electronic equipment and plays the voice content.
It can be understood that, if the vehicle-mounted device supports voice transmission in a situation where the user triggers to answer the incoming call through the electronic device, after the electronic device transmits the voice data to the vehicle-mounted device, the vehicle-mounted device may directly play the voice content without disconnecting the synchronous connection (such as the SCO connection) with the electronic device. Therefore, the user can be guaranteed to hear the complete voice content, and the use experience of the user is improved.
Moreover, when a user makes a call through the electronic device, the user may need to hold the electronic device. And when the user calls through the vehicle-mounted equipment, the user does not need to hold the vehicle-mounted equipment. Therefore, the user can talk more conveniently.
And S709, the electronic equipment determines to play the voice content through the electronic equipment.
In this embodiment of the application, if the first indication information is the second numerical value, the electronic device determines to play the voice content through the electronic device.
In some embodiments, after the electronic device determines that the voice content is played through the electronic device, the electronic device may not disconnect the synchronous connection with the in-vehicle device. Specifically, if the first indication information is the second numerical value, the electronic device may switch the sound channel to the electronic device, and keep a synchronous connection, such as an SCO connection, between the electronic device and the vehicle-mounted device. That is, the electronic device can maintain a synchronous connection with the in-vehicle device while playing the voice content.
It should be noted that, when the electronic device plays the voice content, synchronous connection is not needed to transmit the voice data. If the electronic device still establishes a synchronous connection with the in-vehicle device, the power consumption of the electronic device may be increased.
In some embodiments, after the electronic device determines that the voice content is played through the electronic device, the electronic device may release the synchronous connection with the in-vehicle device, that is, the electronic device may disconnect the synchronous connection with the in-vehicle device.
As shown in fig. 8, after the electronic device determines to play the voice content through the electronic device, i.e., S709, the control method of the call may further include S801-S802.
S801, the electronic equipment sends a release request message to the vehicle-mounted equipment.
Wherein the release request message is used for indicating the release of the synchronous connection. For example, the release request message may be an LMP _ REMOVE _ SCO _ LINK _ REQ message or an LMP _ REMOVE _ eSCO _ LINK _ REQ message.
S802, the vehicle-mounted equipment sends a release response message to the electronic equipment.
Wherein the release response message is used for indicating that the synchronous connection is successfully released. For example, the release response message may be an LMP _ ACCEPT message or an LMP _ ACCEPT _ EXT message.
In the embodiment of the application, the vehicle-mounted device receives the release request message from the electronic device, and can send a release response message to the electronic device. Thereafter, the electronic device may receive a release response message from the in-vehicle device.
It can be understood that the electronic device releases the synchronous connection with the in-vehicle device, and the power consumption of the electronic device can be reduced. Therefore, the service life of the electronic equipment can be prolonged, and the use experience of a user is improved.
S710, the electronic equipment determines that the voice content is played through the first Bluetooth equipment.
In this embodiment of the application, if the first indication information is the second numerical value and the electronic device establishes bluetooth connection with other bluetooth devices except the vehicle-mounted device, the electronic device determines to play the voice content through the first bluetooth device. Wherein the other Bluetooth devices include the first Bluetooth device.
It should be noted that, the first bluetooth device is not limited in this embodiment of the application. For the description of the first bluetooth device and the manner in which the electronic device determines the first bluetooth device, reference may be made to the description in the foregoing embodiments, which are not repeated herein.
In some embodiments, after the electronic device determines that the first bluetooth device plays the voice content, the electronic device may release the synchronous connection with the in-vehicle device. That is, after the electronic device performs S710, the electronic device may perform S801 and the in-vehicle device may perform S802.
And S711, the electronic equipment sends a synchronization request message to the first Bluetooth equipment.
And S712, the first Bluetooth device sends a synchronous response message to the electronic device.
In this embodiment, the first bluetooth device may send a synchronization response message to the electronic device when receiving the synchronization request message from the electronic device. That is, the electronic device may transmit voice data to the first bluetooth device through the synchronous connection.
It can be understood that, under the condition that the electronic device is connected with other bluetooth devices except the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic device, the electronic device can play voice content through the first bluetooth device. Therefore, the method and the device can ensure that the user can answer complete voice content, and the user does not need to hold the electronic equipment for communication, so that the use experience of the user is improved.
In other embodiments, the in-vehicle device may not support ring tone synchronization. If the electronic device does not support incoming call ringtone synchronization, after the electronic device receives an incoming call, the electronic device and the vehicle-mounted device do not execute S702 and S703, that is, the electronic device does not establish synchronous connection with the vehicle-mounted device.
The method of the embodiment of the present application is described below by taking an example that the electronic device does not support incoming ringtone synchronization. As shown in fig. 9, after S502, the control method of the call may include S901-S910.
S901, when the electronic equipment receives an incoming call, the electronic equipment sends an incoming call instruction to the vehicle-mounted equipment.
It should be noted that, for the description of sending the incoming call instruction to the vehicle-mounted device by the electronic device, reference may be made to the description of S701 in the foregoing embodiment, which is not described herein again.
In some embodiments, in response to the electronic device receiving an incoming call, the electronic device may determine whether the electronic device supports ring tone synchronization. Optionally, in the process of establishing the bluetooth connection between the electronic device and the vehicle-mounted device, the electronic device may determine whether the electronic device supports ring synchronization. If the electronic device does not support ring synchronization, the electronic device does not execute S702 and S703 after receiving the incoming call, that is, the electronic device does not establish a synchronous connection with the vehicle-mounted device after receiving the incoming call.
It should be noted that, after the electronic device receives the incoming call, the electronic device may play a ring tone. And after the vehicle-mounted device receives the incoming call instruction from the electronic device, the vehicle-mounted device can play the incoming call ringtone. The incoming call ringtone played by the vehicle-mounted equipment is the incoming call ringtone set by the vehicle-mounted equipment. The incoming call ringtone played by the vehicle-mounted device may be the same as the incoming call ringtone played by the electronic device, or the incoming call ringtone played by the vehicle-mounted device may be different from the incoming call ringtone played by the electronic device.
S902, the electronic equipment receives a first operation of a user.
It should be noted that, for the description of the electronic device receiving the first operation of the user, reference may be made to the description of S704 in the foregoing embodiment, which is not described herein again.
S903, responding to the first operation, the electronic equipment determines whether the first indication information is a first numerical value.
In some embodiments, if the first indication information is the first numerical value, the electronic device may perform S904-S906. That is, if the in-vehicle device supports voice transmission in a case where the user triggers answering of an incoming call through the electronic device, the electronic device may perform S904-S906.
In some embodiments, if the first indication information is the second value, the electronic device may perform S907 or S908-S910. That is, if the in-vehicle device supports voice transmission in a case where the user triggers to answer the incoming call through the electronic device, the electronic device may perform S907; alternatively, if the in-vehicle device supports voice transmission in a case where the user triggers answering of the incoming call through the electronic device, the electronic device may perform S908-S910.
And S904, the electronic equipment determines to play the voice content through the vehicle-mounted equipment.
In this application embodiment, if the first indication information is a first numerical value, the electronic device determines to play the voice content through the vehicle-mounted device. That is, if the in-vehicle device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, the electronic device may determine to play the voice content through the in-vehicle device.
S905, the electronic equipment sends a synchronization request message to the vehicle-mounted equipment.
Wherein the synchronization request message is used for requesting to establish a synchronization connection.
In this embodiment of the application, the electronic device does not support ring synchronization, and after the electronic device receives the first operation of the user, if the first indication information is the first numerical value, the electronic device may send a synchronization request message to the vehicle-mounted device.
It can be understood that, in the case that the electronic device does not support ring synchronization, the electronic device does not establish a synchronous connection with the in-vehicle device when receiving an incoming call. Therefore, after the electronic device determines that the voice content is played through the vehicle-mounted device, a synchronous connection with the vehicle-mounted device needs to be established. In this manner, voice data can be transmitted to the in-vehicle apparatus through the synchronous connection.
And S906, the vehicle-mounted equipment sends a synchronization response message to the electronic equipment.
In the embodiment of the application, the vehicle-mounted device receives the synchronization request message from the electronic device, and can send the synchronization response message to the electronic device. That is, the synchronous connection has been successfully established between the electronic apparatus and the in-vehicle apparatus.
It should be noted that, in the embodiment of the present application, a process of establishing a synchronous connection between an electronic device and an in-vehicle device is not limited. For example, after the in-vehicle device receives the incoming call instruction, if the electronic device supports ring synchronization, the in-vehicle device may send a synchronization request message to the electronic device. After that, the electronic device may transmit a synchronization response message to the in-vehicle device.
In the embodiment of the application, the electronic device receives the synchronization response message from the vehicle-mounted device, and can send the voice data to the vehicle-mounted device through the synchronization connection. For example, the electronic device may transmit voice data to the in-vehicle device through the SCO. The vehicle-mounted equipment receives the voice data from the electronic equipment and can play the voice content.
It can be understood that, if the vehicle-mounted device supports voice transmission under the condition that the user triggers to answer the call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device does not release synchronous connection (such as SCO connection) with the mobile phone, but can directly play voice content. Therefore, the user can be guaranteed to hear the complete voice content, and the use experience of the user is improved.
Moreover, when a user makes a call through the electronic device, the user may need to hold the electronic device. And when the user calls through the vehicle-mounted equipment, the user does not need to hold the vehicle-mounted equipment. Therefore, the user can talk more conveniently.
And S907, the electronic equipment determines to play the voice content through the electronic equipment.
In this embodiment of the application, the electronic device does not support ring synchronization, and if the first indication information is the second value, the electronic device does not execute steps S905 to S906. That is to say, the electronic device does not support ring synchronization, and the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, and the electronic device does not establish synchronous connection with the vehicle-mounted device.
It can be understood that, if the vehicle-mounted device supports voice transmission in a situation where the user triggers to answer the incoming call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device may not release the connection (such as the SCO connection) with the mobile phone, but may directly play the voice content. Therefore, the user can be guaranteed to hear the complete voice content, and the use experience of the user is improved.
In addition, in the embodiment of the application, the electronic equipment cannot establish synchronous connection with the vehicle-mounted equipment. Therefore, the power consumption of the electronic equipment can be reduced, and the service life of the electronic equipment is prolonged.
S908, the electronic device determines to play the voice content through the first Bluetooth device.
In this embodiment of the application, if the first indication information is the second numerical value and the electronic device establishes bluetooth connection with other bluetooth devices except the vehicle-mounted device, the electronic device determines to play the voice content through the first bluetooth device.
S909, the electronic device sends a synchronization request message to the first bluetooth device.
S910, the first Bluetooth device sends a synchronization response message to the electronic device.
It should be noted that, for the descriptions of the processes of S908 to S910, reference may be made to descriptions of S710 to S712 in the foregoing embodiments, and details are not described here.
It can be understood that, under the condition that the electronic device is connected with other bluetooth devices except the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic device, the electronic device can play voice content through the first bluetooth device. Therefore, the method and the device can ensure that the user can answer complete voice content, and the user does not need to hold the electronic equipment for communication, so that the use experience of the user is improved.
In some embodiments, if the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, the vehicle-mounted device may refuse to establish the synchronous connection. Specifically, if the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, after the vehicle-mounted device receives the synchronization request message from the electronic device, the vehicle-mounted device may send a response rejection message to the electronic device, where the response rejection message is used to indicate that the synchronization connection is not successfully established. Optionally, the electronic device may determine to play the voice content through the electronic device or the first bluetooth device when receiving the response rejection message from the vehicle-mounted device.
It can be understood that synchronous connection is not established between the vehicle-mounted device and the electronic device, and the electronic device does not perform voice transmission to the vehicle-mounted device, but the electronic device or the first bluetooth device plays voice content. Therefore, the method can avoid the omission of the voice content of the user and improve the use experience of the user.
In other embodiments, the electronic device may determine whether to play the voice content through the in-vehicle device according to the blacklist. The electronic equipment stores a blacklist, the blacklist comprises a plurality of preset vehicle-mounted equipment identifications, and the preset vehicle-mounted equipment identifications are identifications which do not support the vehicle-mounted equipment for voice transmission under the condition that a user triggers to answer an incoming call through the electronic equipment. That is to say, the vehicle-mounted device corresponding to each preset vehicle-mounted device identifier in the preset vehicle-mounted device identifiers in the blacklist does not support voice transmission when the user triggers to answer the incoming call through the electronic device.
It should be noted that the in-vehicle device identifier is used to identify the in-vehicle device. The embodiment of the application does not limit the identification of the vehicle-mounted equipment. For example, the vehicle-mounted device identification may be a MAC address of the vehicle-mounted device. For another example, the vehicle-mounted device identifier may be a device ID of the vehicle-mounted device.
It should be noted that, in the embodiment of the present application, the electronic device may store the blacklist in the manner (a) and the manner (b). The mode (a) is that the electronic device can store a blacklist in advance, and the mode (b) is that the electronic device determines the blacklist according to the time consumed for releasing the synchronous connection between the electronic device and the vehicle-mounted device and stores the blacklist.
In some embodiments, the electronic device may maintain the blacklist by way of (a), i.e., the electronic device may store the blacklist in advance. Specifically, the electronic device may store a plurality of preset vehicle-mounted device identifiers input by a developer when the electronic device leaves a factory. The method for acquiring the preset vehicle-mounted equipment identifier by the developer is not limited in the embodiment of the application. For example, the developer may determine, through a test (e.g., manner (b)), an in-vehicle device that does not support voice transmission in a case where the user triggers to answer an incoming call through the electronic device, and acquire an identifier of the in-vehicle device. For another example, the developer may determine that the vehicle-mounted device that does not support voice transmission when the user triggers to answer the incoming call through the electronic device by acquiring the device information (e.g., the first indication information) of each vehicle-mounted device, and acquire the identifier of the vehicle-mounted device.
In some embodiments, the electronic device may store the blacklist in the manner (b), that is, the electronic device determines the blacklist according to a time period consumed for releasing the synchronous connection between the electronic device and the vehicle-mounted device, and stores the blacklist.
The following describes a method for controlling a call provided by the embodiment of the present application, taking an example that an electronic device supports ring tone synchronization. As shown in fig. 10, the call control method may include S1001-S1011.
S1001, when the electronic equipment receives an incoming call, the electronic equipment sends an incoming call instruction to the vehicle-mounted equipment.
It should be noted that, for the introduction that the electronic device sends the incoming call instruction to the vehicle-mounted device when the electronic device receives an incoming call, reference may be made to the description in S701, which is not described herein again.
In some embodiments, in response to the electronic device receiving an incoming call, the electronic device may determine whether the electronic device supports ring tone synchronization. Optionally, in the process of establishing the bluetooth connection between the electronic device and the vehicle-mounted device, the electronic device may determine whether the electronic device supports ring synchronization. If the electronic device supports ring tone synchronization, the electronic device may perform S1002.
S1002, the electronic equipment sends a synchronization request message to the vehicle-mounted equipment.
It should be noted that, for the description that the electronic device sends the synchronization request message to the vehicle-mounted device, reference may be made to the description in S702, and details are not described here.
S1003, the vehicle-mounted device sends a synchronization response message to the electronic device.
It should be noted that, for the description that the in-vehicle device sends the synchronization response message to the electronic device, reference may be made to the description in S703, which is not described herein again.
S1004, the electronic equipment receives a first operation of a user.
It should be noted that, for the description of the electronic device receiving the first operation of the user, reference may be made to the description in S704, which is not described herein again.
In some embodiments, in response to a first operation of the user, the electronic device may send the voice data to the vehicle-mounted device through the synchronous connection and instruct the vehicle-mounted device to play voice content corresponding to the voice data. If the vehicle-mounted device supports voice transmission under the condition that a user triggers to answer an incoming call through the electronic device, the vehicle-mounted device can play voice content. And, the electronic apparatus does not perform S1005-S1011. If the in-vehicle device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, the electronic device performs S1005-S1011.
S1005, the electronic equipment records the first time.
The first time is the time when the electronic equipment receives the first operation. That is, the first time is used to record the time that triggers answering the incoming call. Illustratively, if the electronic device receives the user's operation at 09.
And S1006, releasing synchronous connection between the electronic equipment and the vehicle-mounted equipment.
In some embodiments, if the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, the electronic device and the vehicle-mounted device may release the synchronous connection. Specifically, the in-vehicle device receives voice data from the electronic device, and may send a release request message to the electronic device. The electronic device may receive the release request message from the in-vehicle device and transmit a release response message to the in-vehicle device.
And S1007, the electronic device records the second time.
And the second time is the time for releasing the synchronous connection for the first time after the electronic equipment receives the first operation. That is, the second time is a time when the release response message is transmitted for the first time after the electronic device receives the first operation. Exemplarily, if the time for releasing the SCO connection for the first time after the electronic device receives the first operation is 09.
S1008, the electronic device calculates a difference value between the first time and the second time to obtain a first target difference value.
Wherein the first target difference value is used for indicating the time length consumed for releasing the synchronous connection for the first time after receiving the first operation.
Exemplarily, if the first time is 09. That is, it takes 40 milliseconds to release the synchronization connection between the electronic apparatus and the in-vehicle apparatus.
S1009, the electronic device determines whether the first target difference is smaller than a preset time threshold.
It should be noted that the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device, or the vehicle-mounted device is abnormal, which may cause the synchronous connection to be released. Therefore, in order to determine that the vehicle-mounted device releases the synchronous connection due to the fact that voice transmission is not supported when the user triggers to answer the incoming call through the electronic device, the electronic device may set a preset time threshold. In general, the time duration consumed for releasing the synchronous connection due to the occurrence of the abnormality of the vehicle-mounted device is longer than the time duration consumed for releasing the synchronous connection due to the fact that the vehicle-mounted device does not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic device.
It should be noted that, in the embodiment of the present application, the preset time threshold is not limited. For example, the preset time threshold may be 100 milliseconds. For another example, the preset time threshold may be 110 milliseconds. For another example, the preset time threshold may be 90 milliseconds. Typically, the predetermined time threshold may be 100 milliseconds.
In some embodiments, if the first target difference is smaller than the preset time threshold, the electronic device may execute S1010. If the first target difference is greater than the preset time threshold, the electronic device may execute S1011.
S1010, the electronic equipment adds the first equipment identification to a blacklist.
The first device identification is an identification of the vehicle-mounted device which is connected with the electronic device in a Bluetooth mode.
In some embodiments, the electronic device may obtain the first device identification before the electronic device adds the first device identification to the blacklist. The embodiment of the application does not limit the way for the electronic device to obtain the first device identifier. For example, the electronic device may acquire the MAC address of the in-vehicle device during the process of establishing a bluetooth connection with the in-vehicle device.
In this embodiment of the application, if the first target difference is smaller than the preset time threshold, the electronic device may add the first device identifier to a blacklist. For example, if the first target difference is 40 ms and the preset time threshold is 100 ms, the electronic device may add the first device identifier to the blacklist.
It will be appreciated that the first target difference value is less than the predetermined time threshold, indicating that it takes a relatively short period of time to release the synchronisation connection. Therefore, the synchronous connection is released only when the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, namely the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment.
S1011, the electronic device does not add the first device identification to the blacklist.
In this embodiment of the application, if the first target difference is greater than the preset time threshold, the electronic device does not add the first device identifier to the blacklist. For example, if the first target difference is 200 ms and the predetermined time threshold is 100 ms, the electronic device does not add the first device identifier to the blacklist.
It will be appreciated that the first target difference value is greater than the predetermined time threshold, indicating that it takes a longer time to release the synchronization connection. Therefore, the method can determine that the synchronous connection is not released by voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment.
It should be noted that, only by the time length consumed for releasing the synchronous connection once, it is determined that the releasing of the synchronous connection is caused by that the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, and may not be accurate.
In some embodiments, to improve accuracy, the electronic device may determine whether to add the first device identification to the blacklist based again on a length of time it takes to release the synchronization connection.
As shown in fig. 11, after S1009, the call control method may further include S1101-S1106.
It should be noted that, in this embodiment of the application, if the first target difference is smaller than the preset time threshold, the electronic device may execute S1101.
S1101, synchronous connection is established between the electronic equipment and the vehicle-mounted equipment.
In the embodiment of the application, the electronic device can establish synchronous connection with the vehicle-mounted device again. Specifically, the electronic device may send a synchronization request message to the in-vehicle device. The vehicle-mounted equipment receives the synchronization request message from the electronic equipment and sends a synchronization response message to the electronic equipment.
In the embodiment of the application, after the synchronous connection is established again between the electronic equipment and the vehicle-mounted equipment, the electronic equipment can send voice data to the vehicle-mounted equipment.
And S1102, the electronic equipment records the third time.
And the third time is the time for establishing the synchronous connection for the second time after the electronic equipment receives the first operation. Optionally, the third time may be a time when the electronic device receives the synchronization response message for the second time after receiving the first operation. Exemplarily, if the time when the electronic device establishes the SCO connection with the vehicle-mounted device for the second time after the electronic device receives the first operation is 09.
S1103, synchronous connection is released between the electronic equipment and the vehicle-mounted equipment.
In the embodiment of the application, if the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the synchronous connection between the electronic device and the vehicle-mounted device can be released. Specifically, the in-vehicle device receives voice data from the electronic device, and may send a release request message to the electronic device. The electronic device may receive the release request message from the in-vehicle device and transmit a release response message to the in-vehicle device.
And S1104, the electronic equipment records the fourth time.
And the fourth time is the time for releasing the synchronous connection for the second time after the electronic equipment receives the first operation. Optionally, the fourth time may be a time when the electronic device transmits the release response message for the second time after receiving the first operation.
S1105, the electronic device calculates a difference between the third time and the fourth time to obtain a second target difference.
And the second target difference value is used for indicating the time length consumed for releasing the synchronous connection for the second time after receiving the first operation.
S1106, the electronic device determines whether the second target difference is smaller than a preset time threshold.
In some embodiments, if the second target difference is smaller than the preset time threshold, the electronic device may execute S1010. That is to say, if the duration consumed by releasing the synchronous connection twice between the electronic device and the vehicle-mounted device is less than the preset time threshold, the electronic device may add the first device identifier to the blacklist.
If the second target difference is greater than the preset time threshold, the electronic device may perform S1011. That is to say, if the duration consumed by the second time of releasing the synchronous connection between the electronic device and the vehicle-mounted device is greater than the preset time threshold, the electronic device does not add the first device identifier to the blacklist.
It can be understood that the electronic device can more accurately determine whether the vehicle-mounted device supports voice transmission under the condition that the user triggers to answer the call through the electronic device by releasing the time consumed by the synchronous connection for many times, so that the accuracy of the blacklist is improved.
The following describes a method for controlling a call provided by the embodiment of the present application, by taking an example that an electronic device does not support incoming ringtone synchronization. As shown in fig. 12, the call control method may include S1201-S1216.
And S1201, when the electronic equipment receives the incoming call, the electronic equipment sends an incoming call instruction to the vehicle-mounted equipment.
It should be noted that, for the introduction that the electronic device sends the incoming call instruction to the vehicle-mounted device when the electronic device receives an incoming call, reference may be made to the description in S701, which is not described herein again.
In some embodiments, in response to the electronic device receiving an incoming call, the electronic device may determine whether the electronic device supports ring tone synchronization. Optionally, in the process of establishing the bluetooth connection between the electronic device and the vehicle-mounted device, the electronic device may determine whether the electronic device supports ring synchronization. If the electronic device does not support ring synchronization, S1002 and S1003 are not executed.
S1202, the electronic equipment receives a first operation of a user.
It should be noted that, for the description of the electronic device receiving the first operation of the user, reference may be made to the description in S704, which is not described herein again.
S1203, the electronic equipment records the first time.
It should be noted that, for the description of the electronic device recording the first time, reference may be made to the description in S1005, and details are not described here.
And S1204, establishing synchronous connection between the electronic equipment and the vehicle-mounted equipment.
It should be noted that, for the description of establishing the synchronous connection between the electronic device and the vehicle-mounted device, reference may be made to the description in S702 and S703, which is not described herein again.
In the embodiment of the application, in response to the first operation, the electronic device may establish a synchronous connection with the in-vehicle device. Wherein, the time when the electronic device receives the first operation of the user is the same or nearly the same as the time when the synchronous connection is established between the electronic device and the vehicle-mounted device (i.e. the time difference is small). That is, the first time may also be a time when a synchronous connection is established between the electronic apparatus and the in-vehicle apparatus.
In some embodiments, a synchronous connection is established between the electronic device and the vehicle-mounted device, and the electronic device can transmit the synchronous connection to the vehicle-mounted device
And S1205, synchronous connection is released between the electronic equipment and the vehicle-mounted equipment.
In the embodiment of the application, if the vehicle-mounted device does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic device, the synchronous connection between the electronic device and the vehicle-mounted device can be released. Specifically, the in-vehicle device receives voice data from the electronic device, and may send a release request message to the electronic device. The electronic device may receive the release request message from the in-vehicle device and transmit a release response message to the in-vehicle device.
And S1206, the electronic equipment records the second time.
It should be noted that, for the description of the electronic device recording the second time, reference may be made to the description in S1007, and details are not described here.
S1207, the electronic device calculates a difference between the first time and the second time to obtain a first target difference.
It should be noted that, for the introduction that the electronic device calculates the difference between the first time and the second time to obtain the first target difference, reference may be made to the description in S1008, which is not described herein again.
S1208, the electronic device determines whether the first target difference is smaller than a preset time threshold.
It should be noted that, for the description that the electronic device determines whether the first target difference is smaller than the preset time threshold, reference may be made to the description in S1009, which is not described herein again.
In some embodiments, if the first target difference is smaller than the preset time threshold, the electronic device may execute S1215. If the first target difference is greater than the preset time threshold, the electronic device may execute S1216.
In other embodiments, if the first target difference is smaller than the predetermined time threshold, the electronic device may perform S1209-S1215. If the first target difference is greater than the preset time threshold, the electronic device may execute S1216.
S1209, synchronous connection is established between the electronic equipment and the vehicle-mounted equipment.
It should be noted that, for the description of establishing the synchronous connection between the electronic device and the vehicle-mounted device, reference may be made to the description in S1101, and details are not described here.
S1210, the electronic equipment records the third time.
It should be noted that, for the description of the electronic device recording the third time, reference may be made to the description in S1102, which is not described herein again.
And S1211, releasing synchronous connection between the electronic equipment and the vehicle-mounted equipment.
It should be noted that, for the description of releasing the synchronous connection between the electronic device and the vehicle-mounted device, reference may be made to the description in S1103, and details are not described here.
And S1212, the electronic equipment records the fourth time.
It should be noted that, for the description of the electronic device recording the fourth time, reference may be made to the description in S1104, and details are not described here.
S1213, the electronic device calculates a difference between the third time and the fourth time to obtain a second target difference.
It should be noted that, for the electronic device calculating the difference between the third time and the fourth time to obtain the description of the second target difference, reference may be made to the description in S1105, which is not repeated herein.
S1214, the electronic equipment determines whether the second target difference value is smaller than a preset time threshold value.
In some embodiments, if the second target difference is smaller than the preset time threshold, the electronic device may execute S1215. That is, if the time taken for releasing the synchronization connection twice between the electronic device and the in-vehicle device is less than the preset time threshold, the electronic device may execute S1215.
If the second target difference is greater than the preset time threshold, the electronic device may execute S1216. That is, if the time duration taken for releasing the synchronous connection between the electronic device and the vehicle-mounted device for the second time is greater than the preset time threshold, the electronic device may execute S1216.
S1215, the electronic device adds the first device identification to the blacklist.
It should be noted that, for the description that the electronic device adds the first device identifier to the blacklist, reference may be made to the description in S1215, which is not described herein again.
It will be appreciated that the first target difference (or the first target difference and the second target difference) is less than the predetermined time threshold, indicating that it takes a relatively short period of time to release the synchronization connection. Therefore, the synchronous connection is released only when the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, namely the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment.
S1216, the electronic device does not add the first device identification to the blacklist.
It will be appreciated that the first target difference (or the first target difference and the second target difference) is greater than the predetermined time threshold, indicating that it takes a longer time to release the synchronization connection. Therefore, the method can determine that the synchronous connection is not released by voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment.
The method for controlling a phone call provided in the embodiment of the present application is described below by taking an example in which an electronic device supporting synchronization of incoming call ringtones determines whether to play a voice content through a vehicle-mounted device according to a blacklist. As shown in fig. 13, after S1005, the control method of the call may include S1301-S1302.
S1301, the electronic equipment determines whether the first equipment identification is in a blacklist.
For example, the electronic device may determine whether the same identifier as the first device identifier exists in a plurality of preset in-vehicle device identifiers.
In some embodiments, if the electronic device determines that the first device identifier is in the blacklist, the electronic device may perform S1302. That is, if the same identifier as the first device identifier exists in the plurality of preset in-vehicle device identifiers, the electronic device may execute S1302. If the electronic device determines that the first device identification is not in the blacklist, the electronic device may perform S1006-S1011 and S1302. That is, if the same identifier as the first device identifier does not exist in the plurality of preset in-vehicle device identifiers, the electronic device may execute S1006-S1011 and S1302.
In some embodiments, if the electronic device determines that the first device identifier is not in the blacklist and the synchronous connection between the electronic device and the vehicle-mounted device is not released, the electronic device may send the voice data to the vehicle-mounted device through the synchronous connection. The vehicle-mounted equipment can play voice content. That is, if the electronic device determines that the first device identifier is not in the blacklist and the synchronous connection between the electronic device and the in-vehicle device is not released, the electronic device does not execute S1006-S1011 and S1302.
S1302, the electronic device determines to play the voice content through the electronic device.
In the embodiment of the application, if the electronic device determines that the first device identifier is in the blacklist, it can be determined that the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device. The electronic device can determine to play the voice content through the electronic device. That is, if the electronic device determines that the first device identifier is in the blacklist, the electronic device may play the voice content.
It can be understood that if the electronic device determines that the first device identifier is in the blacklist, the electronic device may directly play the voice content. Therefore, the situation that the voice content is not played by the vehicle-mounted equipment and the electronic equipment can be avoided. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and improve the use experience of the user.
The following describes a control method of a call provided by the embodiment of the present application, by taking an example that an electronic device that does not support incoming call ringtone synchronization determines whether to play a voice content through a vehicle-mounted device according to a blacklist. As shown in fig. 14, after S1203, the control method of the call may include S1401-S1402.
S1401, the electronic device determines whether the first device identifier is in a blacklist.
In some embodiments, if the electronic device determines that the first device identification is in the blacklist, the electronic device may perform S1402. That is, if the same identifier as the first device identifier exists in the plurality of preset in-vehicle device identifiers, the electronic device may execute S1402. If the electronic device determines that the first device identification is not in the blacklist, the electronic device may perform S1204-S1216, followed by S1402. That is, if there is no identifier identical to the first device identifier in the plurality of preset in-vehicle device identifiers, the electronic device may execute S1204-S1216, and then execute S1402.
S1402, the electronic equipment plays the voice content.
In the embodiment of the application, if the electronic device determines that the first device identifier is in the blacklist, it can be determined that the vehicle-mounted device does not support voice transmission when the user triggers to answer the incoming call through the electronic device. The electronic device can determine to play the voice content through the electronic device.
In some embodiments, the electronic device may release the synchronization connection if the electronic device determines that the first device identification is in the blacklist. Specifically, for the description of releasing the synchronous connection of the electronic device, reference may be made to the description of releasing the synchronous connection between the electronic device and the vehicle-mounted device in the foregoing embodiment, which is not described herein again.
In other embodiments, the electronic device may not release the synchronization connection if the electronic device determines that the first device identification is on the blacklist.
It can be understood that if the electronic device determines that the first device identifier is in the blacklist, the electronic device may directly play the voice content. Therefore, the situation that the voice content is not played by the vehicle-mounted equipment and the electronic equipment can be avoided. Therefore, the method and the device can ensure that the user can listen to the complete voice content, and improve the use experience of the user.
In some embodiments, if the electronic device determines that the first device identifier is in the blacklist, the electronic device may play the voice content through the first bluetooth device. Specifically, for the method for playing the voice content by the electronic device through the first bluetooth device, reference may be made to the description of the electronic device playing the voice content through the first bluetooth device in the foregoing embodiment, which is not described herein again.
It can be understood that if the electronic device determines that the first device identifier is in the blacklist, the electronic device may play the voice content through the first bluetooth device. Therefore, the method and the device can ensure that the user can answer complete voice content, and the user does not need to hold the electronic equipment for communication, so that the use experience of the user is improved.
It should be noted that the in-vehicle device may continuously improve the supported functional characteristics, so that the in-vehicle device supports voice transmission when the user triggers to answer the incoming call through the electronic device. Therefore, if it may not be accurately determined whether the vehicle-mounted device supports voice transmission under the condition that the user triggers to answer the call through the electronic device only according to the blacklist, it may not be determined whether to play the voice content through the vehicle-mounted device.
In some embodiments, the electronic device may update the blacklist. And then, the electronic equipment can determine whether to play the voice content through the vehicle-mounted equipment according to the updated blacklist. The embodiment of the present application does not limit the manner in which the electronic device updates the blacklist.
In a possible implementation manner, the electronic device may delete all the preset vehicle-mounted device identifiers in the blacklist every time the electronic device is powered on, or every preset period (for example, one day, three days, or ten days). Thereafter, when the electronic device receives an incoming call, S1001 to S1302 (i.e., the flow shown in fig. 13) or S1201 to S1402 (i.e., the flow shown in fig. 14) described above is re-executed.
In another possible implementation manner, if the electronic device determines that the first device identifier is in the blacklist, the electronic device may not release the synchronous connection. If the synchronous connection between the electronic equipment and the vehicle-mounted equipment is not released within the preset time after the electronic equipment receives the first operation, the electronic equipment can delete the first equipment identifier from the blacklist. That is to say, if the time length for the electronic device to maintain the synchronous connection with the vehicle-mounted device after receiving the first operation is longer than the preset time length, the electronic device may delete the first device identifier from the blacklist.
It can be understood that if the synchronous connection is not released between the electronic device and the vehicle-mounted device within the preset time after the electronic device receives the first operation, it indicates that the vehicle-mounted device supports voice transmission in the case that the user answers the incoming call by triggering the electronic device. Thus, the electronic device may delete the first device identification from the blacklist.
Optionally, after the electronic device deletes the first device identifier from the blacklist, the electronic device may determine to play the voice content through the in-vehicle device.
It can be understood that the vehicle-mounted device supports voice transmission under the condition that a user triggers to answer an incoming call through the electronic device, and the electronic device can play voice contents through the vehicle-mounted device. Therefore, the method and the device can ensure that the user can answer complete voice content, and the user does not need to hold the electronic equipment for communication, so that the use experience of the user is improved.
In some embodiments, the electronic device can upload the blacklist to a server, which can receive and store the blacklist. The server may then synchronize the list with other electronic devices. Also, the electronic device may receive a blacklist from the server. The embodiment of the present application does not limit the server. For example, the server may be a cloud server. As another example, the server may be a physical server.
It can be understood that the blacklist can be obtained by other electronic devices by synchronizing the blacklist with the server. Therefore, the process that other electronic equipment executes the blacklist adding process can be reduced, and the efficiency of the electronic equipment is improved.
In some embodiments, the electronic device may also store a white list that stores the identification of the in-vehicle device that supports voice transmission in the event that the user triggers answering of an incoming call through the electronic device. The electronic equipment can determine whether to play the voice content through the vehicle-mounted equipment according to the white list. If the first device identifier exists in the white list, the electronic device may determine to play the voice content through the vehicle-mounted device. If the first device identifier does not exist in the white list, the electronic device may determine to play the voice content through the electronic device.
It should be noted that, if the vehicle-mounted device supports voice transmission when the user triggers to answer the incoming call through the electronic device, the electronic device determines that the voice content is played through the vehicle-mounted device, the voice content may be leaked, and the user experience is reduced.
In some embodiments, if the vehicle-mounted device supports voice transmission in a case where a user triggers to answer an incoming call through the electronic device, the vehicle-mounted device may determine whether to play a voice content through the vehicle-mounted device according to whether a target vehicle loaded with the vehicle-mounted device is in a driving state. Specifically, the in-vehicle apparatus may detect whether the target vehicle is traveling. If the target vehicle is not running, the vehicle-mounted device may release the synchronous connection, or the vehicle-mounted device may refuse to establish the synchronous connection. Thereafter, the electronic device can play the voice content. That is, if the target vehicle is in a stationary state (i.e., the target vehicle is not running), even if the in-vehicle device supports voice transmission in a situation where the user triggers to answer the incoming call through the electronic device, the electronic device still plays the voice content.
It should be noted that, the method for detecting whether the target vehicle is running by the vehicle-mounted device may refer to a method for detecting whether the vehicle is running in the conventional technology, which is not described herein again. Moreover, for the description that the vehicle-mounted device releases the synchronous connection and the vehicle-mounted device refuses to establish the synchronous connection, reference may be made to the description in the foregoing embodiment, which is not described herein again.
It can be understood that if the target vehicle is not in motion, the user answering the call through the electronic device will not affect the user driving the target vehicle. Moreover, the electronic equipment plays the voice content without playing the voice content. Therefore, the privacy of the call can be improved, and the use experience of the user is improved.
If the target vehicle is running, the vehicle-mounted equipment can play the voice content. That is, if the target vehicle is in a driving state (i.e., the target vehicle is driving), and the in-vehicle device supports voice transmission in a case where the user triggers to answer the incoming call through the electronic device, the in-vehicle device may play the voice content.
It can be understood that if the target vehicle is running, the vehicle-mounted device plays the voice content. Therefore, the method and the device can ensure that the user can answer complete voice content, and the user does not need to hold the electronic equipment for communication, so that the use experience of the user is improved.
In some embodiments, the electronic device may set whether to play the voice content through the in-vehicle device. The embodiment of the application does not limit the way of setting whether the electronic equipment plays the voice content through the vehicle-mounted equipment. For example, the electronic device may set whether to play the voice content through the in-vehicle device through the setting option. For example, as shown in fig. 15, the electronic device may display a settings interface 1501, the settings interface 1501 including an "in-vehicle device talk" option 1502, the "in-vehicle device talk" option 1502 being used to control whether voice content is played through the in-vehicle device. For example, the electronic device may set whether to play the voice content through the in-vehicle device when receiving the incoming call. For example, the electronic device is provided with a preset key, and the preset key is used for triggering answering of an incoming call through the vehicle-mounted device. That is, in response to a first operation applied to the preset key, the electronic device may determine to play the voice content through the in-vehicle device. For another example, if the first operation is a preset operation (e.g., a long-press operation or a double-click operation), the electronic device may determine to play the voice content through the in-vehicle device.
It can be understood that the electronic device sets whether to play the voice content through the vehicle-mounted device, and the voice content can be guaranteed to be played in a mode set by a user. Therefore, the use experience of the user can be improved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of electronic equipment. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those skilled in the art will readily appreciate that the steps of a method for controlling a call of the examples described in connection with the embodiments disclosed herein may be implemented in hardware or a combination of hardware and computer software. Whether a function is performed in hardware or software-driven hardware of an electronic device depends on the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the functional modules or the functional units may be divided according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Other embodiments of the present application provide an electronic device (e.g., a handset 200 as shown in fig. 2). The electronic device may include: a memory and one or more processors. The memory is coupled to the processor. The electronic device may further include a camera. Or, the electronic device may be externally connected with a camera. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform various functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the cellular phone 200 shown in fig. 2.
Embodiments of the present application also provide a chip system, as shown in fig. 16, which includes at least one processor 1601 and at least one interface circuit 1602. The processor 1601 and the interface circuit 1602 may be interconnected by a line. For example, the interface circuit 1602 may be used to receive signals from other devices (e.g., a memory of an electronic device). Also for example, the interface circuit 1602 may be used to send signals to other devices, such as the processor 1601. Illustratively, the interface circuit 1602 may read instructions stored in a memory and send the instructions to the processor 1601. The instructions, when executed by the processor 1601, may cause the electronic device (e.g., the cell phone 200 shown in fig. 2) to perform the steps of the above-described embodiments. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes computer instructions, and when the computer instructions are executed on the electronic device (such as the mobile phone 200 shown in fig. 2), the electronic device is caused to perform various functions or steps performed by the mobile phone in the foregoing method embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute each function or step executed by the mobile phone in the above method embodiments.
Through the description of the above embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, or portions of the technical solutions that substantially contribute to the prior art, or all or portions of the technical solutions may be embodied in the form of a software product, where the software product 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A call control method is characterized in that a blacklist is stored in electronic equipment, the blacklist comprises a plurality of preset vehicle-mounted equipment identifications, and the preset vehicle-mounted equipment identifications are identifications of the vehicle-mounted equipment which do not support voice transmission under the condition that a user triggers to answer an incoming call through the electronic equipment;
the method comprises the following steps:
the method comprises the steps that Bluetooth connection is established between electronic equipment and vehicle-mounted equipment, the electronic equipment acquires a first equipment identifier, and the first equipment identifier is the identifier of the vehicle-mounted equipment;
the electronic equipment receives an incoming call, plays an incoming call ringtone to remind the user of the incoming call, and sends an incoming call instruction to the vehicle-mounted equipment;
the electronic equipment receives a first operation of a user, wherein the first operation is used for triggering answering of the incoming call;
responding to the first operation, if the plurality of preset vehicle-mounted device identifications comprise the first device identification, the electronic device plays voice content through the electronic device or a first Bluetooth device, and the first Bluetooth device is a Bluetooth device which is connected with the electronic device;
if the plurality of preset vehicle-mounted equipment identifications do not include the first equipment identification, the electronic equipment adds the first equipment identification to the blacklist according to the fact that the time consumed for releasing the synchronous connection between the electronic equipment and the vehicle-mounted equipment twice is less than a preset time threshold.
2. The method of claim 1, wherein the adding, by the electronic device, the first device identifier to the blacklist according to a duration of time taken for releasing the synchronous connection between the electronic device and the vehicle-mounted device twice being less than a preset time threshold comprises:
the electronic equipment records a first time and a second time, wherein the first time is the time when the electronic equipment receives the first operation, and the second time is the time when the electronic equipment releases the synchronous connection for the first time after receiving the first operation;
the electronic equipment calculates the difference between the first time and the second time to obtain a first target difference;
if the first target difference value is smaller than the preset time threshold value, the electronic equipment establishes the synchronous connection with the vehicle-mounted equipment again, and records third time, wherein the third time is the time for establishing the synchronous connection for the second time after the electronic equipment receives the first operation;
the electronic equipment releases the synchronous connection with the vehicle-mounted equipment and records fourth time, wherein the fourth time is the time for releasing the synchronous connection for the second time after the electronic equipment receives the first operation;
the electronic equipment calculates a difference value between the third time and the fourth time to obtain a second target difference value;
and if the second target difference value is smaller than a preset time threshold value, the electronic equipment adds the first equipment identifier to the blacklist.
3. The method of claim 2, wherein after the electronic device releases the synchronous connection with the in-vehicle device, the method further comprises:
and the electronic equipment plays the voice content through the electronic equipment or the first Bluetooth equipment.
4. The method of claim 2, wherein after the electronic device calculates the difference between the first time and the second time to obtain a first target difference, the method further comprises:
and if the first target difference value is larger than a preset time threshold value, the electronic equipment plays the voice content through the electronic equipment or the first Bluetooth equipment.
5. The method of any of claims 2-4, wherein the electronic device supports ring synchronization, and wherein after the electronic device receives an incoming call, the method further comprises:
the electronic equipment establishes the synchronous connection with the vehicle-mounted equipment;
the electronic equipment transmits incoming call ringtone to the vehicle-mounted equipment through the synchronous connection, and instructs the vehicle-mounted equipment to play the incoming ringtone to remind the user of the incoming call;
after the electronic device receives the first operation of the user, the method further comprises:
the electronic device releases the synchronous connection with the vehicle-mounted device.
6. The method of any of claims 2-4, wherein the electronic device does not support incoming ringtone synchronization, and wherein after the electronic device receives a first operation by a user, the method further comprises:
the electronic equipment establishes the synchronous connection with the vehicle-mounted equipment;
the electronic equipment releases the synchronous connection with the vehicle-mounted equipment.
7. The method of any of claims 1-4, wherein after the electronic device receives a first operation by a user, the method further comprises:
and if the identifiers identical to the first device identifiers exist in the plurality of preset vehicle-mounted device identifiers and the time length of the synchronous connection between the electronic device and the vehicle-mounted device is longer than a preset time length, deleting the first device identifiers from the blacklist by the electronic device.
8. The method according to any one of claims 1-4, wherein the electronic device establishes Bluetooth connections with a plurality of Bluetooth devices, the plurality of Bluetooth devices including the vehicle-mounted device and other Bluetooth devices except the vehicle-mounted device;
the electronic device plays the voice content through the electronic device or the first bluetooth device, including:
the electronic equipment plays the voice content through the first Bluetooth equipment, and the first Bluetooth equipment is any one of the other Bluetooth equipment.
9. The method according to any one of claims 1-4, further comprising:
and if the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment, the electronic equipment displays a first prompt message, wherein the first prompt message is used for prompting that the vehicle-mounted equipment does not support voice transmission under the condition that the user triggers to answer the incoming call through the electronic equipment.
10. An electronic device, characterized in that the electronic device comprises: a memory, a display screen, and one or more processors; the memory, the display screen, and the processor are coupled, the memory for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-9.
11. A computer-readable storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-9.
12. A chip system, wherein the chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the interface circuit is to receive a signal from a memory of the electronic device and to send the signal to the processor, the signal comprising computer instructions stored in the memory; the electronic device performs the method of any of claims 1-9 when the processor executes the computer instructions.
CN202110797271.4A 2021-07-14 2021-07-14 Call control method, electronic device, computer readable storage medium and chip system Active CN113691678B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110797271.4A CN113691678B (en) 2021-07-14 2021-07-14 Call control method, electronic device, computer readable storage medium and chip system
PCT/CN2022/091195 WO2023284378A1 (en) 2021-07-14 2022-05-06 Call control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110797271.4A CN113691678B (en) 2021-07-14 2021-07-14 Call control method, electronic device, computer readable storage medium and chip system

Publications (2)

Publication Number Publication Date
CN113691678A CN113691678A (en) 2021-11-23
CN113691678B true CN113691678B (en) 2022-10-25

Family

ID=78577038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110797271.4A Active CN113691678B (en) 2021-07-14 2021-07-14 Call control method, electronic device, computer readable storage medium and chip system

Country Status (2)

Country Link
CN (1) CN113691678B (en)
WO (1) WO2023284378A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691678B (en) * 2021-07-14 2022-10-25 荣耀终端有限公司 Call control method, electronic device, computer readable storage medium and chip system
CN114979994B (en) * 2022-05-25 2024-01-30 北斗星通智联科技有限责任公司 Vehicle-mounted telephone privacy protection method, system and computer readable storage medium
CN114885317B (en) * 2022-07-08 2022-11-25 荣耀终端有限公司 Method for cooperative control between devices, communication system, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460984A (en) * 2019-08-16 2019-11-15 深圳市中擎创科技有限公司 More Bluetooth control methods, system, terminal and storage based on distributed storage
CN111629409A (en) * 2020-05-27 2020-09-04 维沃移动通信有限公司 Call control method and device and electronic equipment
JP2020161955A (en) * 2019-03-26 2020-10-01 株式会社ホンダアクセス Call incoming reporting system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8260369B2 (en) * 2009-10-09 2012-09-04 Honda Motor Co., Ltd. Vehicle hands-free communication apparatus and vehicle hands-free communication method
CN102545965A (en) * 2010-12-31 2012-07-04 上海博泰悦臻电子设备制造有限公司 Bluetooth-based mobile phone as well as cooperation processing method and system of vehicle-mounted device
US8744492B2 (en) * 2011-11-30 2014-06-03 Mitac International Corp. Method of responding to incoming calls and messages while driving
US9716762B2 (en) * 2014-03-31 2017-07-25 Ford Global Technologies Llc Remote vehicle connection status
CN105187655A (en) * 2015-09-18 2015-12-23 惠州Tcl移动通信有限公司 Mobile terminal being able to automatically answering calls, and call answering method
CN105911900A (en) * 2015-10-21 2016-08-31 乐卡汽车智能科技(北京)有限公司 Information processing system applied to vehicle-mounted system
CN106211361B (en) * 2016-08-01 2020-01-14 惠州Tcl移动通信有限公司 Mobile terminal Bluetooth compatible processing method and system
CN110087215B (en) * 2019-05-06 2022-05-13 北京百度网讯科技有限公司 Information broadcasting method and device based on Bluetooth connection, terminal and storage medium
CN112469009A (en) * 2019-09-06 2021-03-09 中兴通讯股份有限公司 Bluetooth data transmission method, device, terminal and storage medium
CN113691678B (en) * 2021-07-14 2022-10-25 荣耀终端有限公司 Call control method, electronic device, computer readable storage medium and chip system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020161955A (en) * 2019-03-26 2020-10-01 株式会社ホンダアクセス Call incoming reporting system
CN110460984A (en) * 2019-08-16 2019-11-15 深圳市中擎创科技有限公司 More Bluetooth control methods, system, terminal and storage based on distributed storage
CN111629409A (en) * 2020-05-27 2020-09-04 维沃移动通信有限公司 Call control method and device and electronic equipment

Also Published As

Publication number Publication date
CN113691678A (en) 2021-11-23
WO2023284378A1 (en) 2023-01-19

Similar Documents

Publication Publication Date Title
CN113691678B (en) Call control method, electronic device, computer readable storage medium and chip system
CN113613238B (en) SIM module management method and electronic equipment
WO2021008614A1 (en) Method for establishing communication connection and wearable device
US20080261529A1 (en) Personal area network systems and devices and methods for use thereof
US9883452B2 (en) Communication system for reducing the effects of radiation emitted from cellular phone antennas
CN110401767B (en) Information processing method and apparatus
CN113660650B (en) Method and related device for device reconnection
CN110225176B (en) Contact person recommendation method and electronic device
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
CN114079892A (en) Bluetooth communication method, wearable device and system
CN113923611A (en) Call forwarding system and related device
CN113873678A (en) Method and electronic equipment for transmitting data
CN111615090B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
CN113489844B (en) Volume gear adjusting method and electronic equipment
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
CN112789934B (en) Bluetooth service query method and electronic equipment
US9300778B2 (en) Bluetooth headset for mobile phone
CN115175159B (en) Bluetooth headset playing method and equipment
CN116054870B (en) Wireless communication circuit, bluetooth communication switching method and electronic equipment
CN105766003A (en) System and method for audio processing using arbitrary triggers
CN114916054A (en) Communication method, device and terminal equipment
WO2008130511A1 (en) Personal area network systems and devices and methods for use thereof
US11812507B2 (en) Wireless communication system that performs communication
CN113424485B (en) Indication information configuration and receiving method and device, user equipment, base station and 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