WO2023284378A1 - 一种通话的控制方法及电子设备 - Google Patents

一种通话的控制方法及电子设备 Download PDF

Info

Publication number
WO2023284378A1
WO2023284378A1 PCT/CN2022/091195 CN2022091195W WO2023284378A1 WO 2023284378 A1 WO2023284378 A1 WO 2023284378A1 CN 2022091195 W CN2022091195 W CN 2022091195W WO 2023284378 A1 WO2023284378 A1 WO 2023284378A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
vehicle
bluetooth
incoming call
mounted device
Prior art date
Application number
PCT/CN2022/091195
Other languages
English (en)
French (fr)
Inventor
刘秀华
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023284378A1 publication Critical patent/WO2023284378A1/zh

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

Definitions

  • the embodiments of the present application relate to the technical field of electronic equipment, and in particular, to a call control method and electronic equipment.
  • vehicle-mounted device which can establish a bluetooth (bluetooth) connection with an electronic device (such as a mobile phone, a tablet computer or a smart watch, etc.).
  • the vehicle-mounted device can output the audio data played in the electronic device, and the electronic device will not output the audio data.
  • the mobile phone can transmit voice data to the vehicle-mounted device through a synchronous connection oriented link (Synchronous Connection Oriented, SCO), and the vehicle-mounted device will play the voice content.
  • SCO synchronous connection oriented link
  • the mobile phone in order to avoid leaking the user's privacy, when the user triggers an incoming call through the mobile phone, the mobile phone transmits voice data to the vehicle-mounted device through the SCO. Afterwards, the onboard device can disconnect the SCO connection. After the vehicle equipment is disconnected from the SCO connection, the mobile phone can play voice content.
  • the in-vehicle device it takes time for the in-vehicle device to be disconnected from the mobile phone.
  • the vehicle-mounted device When the vehicle-mounted device is disconnected from the mobile phone, neither the vehicle-mounted device nor the mobile phone can play voice content. In this way, the user may miss part of the voice content, which affects the user experience.
  • the present application provides a call control method and electronic equipment, which can ensure that users can listen to complete voice content, and improve user experience.
  • the present application provides a call control method, which is applied to an electronic device.
  • a blacklist is stored in the electronic device, and the blacklist includes a plurality of preset in-vehicle device identifiers.
  • the preset in-vehicle device identifiers are identifiers of in-vehicle devices that do not support voice transmission when the user triggers an incoming call through the electronic device.
  • the electronic device establishes a bluetooth connection with the vehicle-mounted device, and the electronic device can acquire a first device identifier, where the first device identifier is the identifier of the vehicle-mounted device. Afterwards, the electronic device receives the incoming call, plays the ringtone of the incoming call to remind the incoming call, and sends an incoming call instruction to the vehicle-mounted device. Next, the electronic device may receive a first operation of the user, and the first operation is used to trigger answering an incoming call.
  • the electronic device plays the voice content through the electronic device or the first Bluetooth device, and the first Bluetooth device is a Bluetooth device that establishes a connection with the electronic device.
  • 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 an incoming call through the electronic device. In this way, the electronic device can directly play the voice content through the electronic device or the first bluetooth device. Furthermore, it is possible to prevent the in-vehicle device and the electronic device from not playing the voice content, which ensures that the user can listen to the complete voice content, and improves the user experience.
  • the electronic device adds the first device identifier to the blacklist according to the time it takes to release the synchronous connection between the electronic device and the in-vehicle device.
  • the electronic device adds the first device identifier to the blacklist according to the time it takes to release the synchronous connection.
  • the electronic device when the electronic device is connected to the vehicle-mounted device again, it can be determined according to the list whether the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device. Therefore, it is prevented that the vehicle-mounted device and the electronic device do not play the voice content, which ensures that the user can listen to the complete voice content, and improves the user experience.
  • the electronic device may record a first time and a second time, the first time is the time when the electronic device receives the first operation, and the second time is after the electronic device receives the first operation , the time when the synchronous connection is released for the first time. Between, the electronic device may calculate the difference between the first time and the second time to obtain the first target difference. If the first target difference is less than the preset time threshold, the electronic device establishes a synchronous connection with the vehicle-mounted device again, and records the third time. The third time is when the electronic device receives the first operation and establishes a synchronous connection for the second time. time.
  • the electronic device may release the synchronous connection with the in-vehicle device, and record a fourth time, where the fourth time is the time when the electronic device releases the synchronous connection for the second time after receiving the first operation. Then, the electronic device may calculate the difference between the third time and the fourth time to obtain the second target difference. If the second target difference is smaller than the preset time threshold, the electronic device adds the first device identifier to the blacklist.
  • the in-vehicle device does not support voice transmission when the user triggers an incoming call through an electronic device, or an abnormality occurs in the in-vehicle device, which may result in the release of the synchronous connection. Therefore, in order to determine that the in-vehicle device releases the synchronous connection because it does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device may set a preset time threshold. Usually, the time taken for the release of the synchronous connection due to an abnormality of the vehicle device is longer than the time taken for the release of the synchronous connection due to the fact that the vehicle device does not support voice transmission when the user triggers an incoming call through the electronic device.
  • both the first target difference value and the second target difference value are less than the preset time threshold, which means that it takes a short time to release the synchronous connection.
  • the in-vehicle device releases the synchronous connection because it does not support voice transmission when the user triggers an incoming call through an electronic device, that is, the in-vehicle device does not support voice transmission when the user triggers an incoming call through an electronic device.
  • the time taken to release the synchronous connection twice it can be more accurately determined whether the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, thereby improving the accuracy of the blacklist.
  • the electronic device plays the voice content through the electronic device or the first bluetooth device.
  • the electronic device can play the voice content through the electronic device or the first Bluetooth device. In this way, it can be guaranteed that the user can listen to the voice content.
  • the electronic device plays the voice content through the electronic device or the first Bluetooth device.
  • the first target difference is greater than the preset time threshold, indicating that it takes a long time to release the synchronous connection.
  • the in-vehicle device does not release the synchronous connection because it does not support voice transmission when the user triggers an incoming call through the electronic device.
  • the electronic device can play the voice content through the electronic device or the first bluetooth device to ensure that the user can listen to the voice content.
  • the electronic device supports ringtone synchronization for incoming calls.
  • the electronic device establishes a synchronous connection with the vehicle-mounted device.
  • the electronic device transmits the ringtone of the incoming call to the vehicle-mounted device through a synchronous connection, and instructs the vehicle-mounted device to play the ringtone of the incoming call to remind the incoming call.
  • the electronic device releases the synchronous connection with the on-vehicle device.
  • the electronic device does not support ringtone synchronization for incoming calls.
  • the electronic device establishes a synchronous connection with the vehicle-mounted device. Afterwards, the electronic device releases the synchronous connection with the on-vehicle device.
  • the electronic device in another possible design mode, if there is an identifier identical to the first device identifier among the plurality of preset vehicle-mounted device identifiers, and the duration of maintaining a synchronous connection between the electronic device and the vehicle-mounted device is longer than the preset If the time is set, the electronic device will delete the first device identifier from the blacklist.
  • the electronic device can delete the first device identifier from the blacklist.
  • the electronic device establishes a Bluetooth connection with multiple Bluetooth devices, and the multiple Bluetooth devices include vehicle-mounted devices and other Bluetooth devices except the vehicle-mounted device.
  • the electronic device can play voice content through the first bluetooth device, and the first bluetooth device is any bluetooth device among other bluetooth devices.
  • the electronic device when the electronic device establishes a connection with other Bluetooth devices other than the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device can pass the first Bluetooth The device plays audio content. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the electronic device may display a first prompt message, and the first prompt message is used to Note that the in-vehicle device does not support voice transmission when the user triggers an incoming call through an electronic device.
  • the display of the first prompt message by the electronic device can make the user understand the reason why the vehicle-mounted device does not play the voice content. In this way, the user's confusion in the use process can be reduced, and the user's use experience can be improved.
  • the present application provides a call control method, which is applied to an electronic device.
  • the electronic device establishes a bluetooth connection with the vehicle-mounted device.
  • the electronic device may receive a Bluetooth support function BRSF message from the vehicle-mounted device.
  • the BRSF message includes first indication information, and the first indication information is used to indicate whether the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device.
  • the electronic device receives the incoming call, plays the ringtone of the incoming call to remind the incoming call, and sends an incoming call instruction to the vehicle-mounted device.
  • the electronic device may receive a first operation of the user, and the first operation is used to trigger answering an incoming call.
  • the electronic device plays the voice content through the vehicle-mounted device. If the first instruction information indicates that the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device can play the voice content through the electronic device or the first Bluetooth device.
  • the first Bluetooth device is established with the electronic device. connected bluetooth device.
  • the electronic device After the electronic device receives the BRSF message, it can determine whether the vehicle-mounted device supports voice transmission when the user triggers the answering of the incoming call through the electronic device. If the vehicle-mounted device does not support voice transmission when the user triggers an answering call through the electronic device, the electronic device or the first bluetooth device can directly play the voice content. In this way, it can be guaranteed that the user can listen to the complete voice content, which improves the user experience. If the vehicle-mounted device supports voice transmission when the user triggers an incoming call through an electronic device, the vehicle-mounted device can directly play the voice content. In this way, it can be ensured that the user can hear the complete voice content, and the user experience is improved.
  • the first indication information includes: a first numerical value or a second numerical value; the first numerical value is used to indicate that the vehicle-mounted device supports voice calls when the user triggers an incoming call through an electronic device. transmission, the second value is used to indicate that the vehicle device does not support voice transmission when the user triggers the answering of the incoming call through the electronic device.
  • the electronic device supports ringtone synchronization for incoming calls
  • the ringtone synchronization for incoming calls is a function for the electronic device to synchronize the ringtones of incoming calls with the vehicle-mounted device.
  • the electronic device may send a synchronization request message to the vehicle device, where the synchronization request message is used to request establishment of a synchronization connection between the electronic device and the vehicle device.
  • the electronic device may receive a synchronization response message from the vehicle device, and the synchronization response message is used to indicate that a synchronization connection has been established.
  • the electronic device can transmit the ringtone of the incoming call to the vehicle-mounted device through a synchronous connection, and instruct the vehicle-mounted device to play the ringtone of the incoming call as a reminder of the incoming call.
  • the electronic device may send voice data to the vehicle-mounted device through a synchronous connection, and instruct the vehicle-mounted device to play the voice content corresponding to the voice data.
  • the electronic device may send a release request message to the vehicle device, where the release request message is used to indicate release of the synchronous connection.
  • the electronic device receives a release response message from the vehicle device, and the release response message is used to indicate that the synchronization connection has been released.
  • the electronic device does not support ringtone synchronization for incoming calls.
  • the electronic device sends a synchronization request message to the vehicle-mounted device, and the synchronization request message is used to request establishment of a synchronization connection between the electronic device and the vehicle-mounted device.
  • the electronic device receives a synchronization response message from the vehicle device, and the synchronization response message is used to indicate that a synchronization connection has been established.
  • the present application provides an electronic device, which includes: a memory, a display screen, and one or more processors, the above-mentioned memory, the display screen and the above-mentioned processor are coupled; the memory is used to store computer program codes, and the computer program The code includes computer instructions; when the computer instructions are executed by the above-mentioned one or more processors, the electronic device is made to execute the method described in the first aspect and any possible design manner thereof.
  • the present application provides a chip system, which is applied to an electronic device.
  • the system-on-a-chip includes one or more interface circuits and one or more processors.
  • the interface circuit and the processor are interconnected by wires.
  • the interface circuit is for receiving a signal from the memory of the electronic device and sending the signal to the processor, the signal including computer instructions stored in the memory.
  • the processor executes the computer instructions
  • the electronic device executes the method described in the first aspect and any possible design manner thereof.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the electronic device according to the first aspect and any one thereof.
  • the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the electronic device according to the first aspect and any one thereof.
  • One possible design approach is described.
  • the present application provides a computer program product, which, when running on a computer, causes the computer to execute the method described in the first aspect and any possible design manner thereof.
  • the method described in the second aspect provided above, the electronic device described in the third aspect and any possible design thereof, the chip system described in the fourth aspect, and the computer described in the fifth aspect may be
  • the beneficial effects achieved by the computer program product described in the sixth aspect can refer to the beneficial effects in the first aspect and any possible design manner thereof, and will not be repeated here.
  • FIG. 1 is a schematic diagram of an example of a display interface provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a hardware structure of a vehicle-mounted device provided by an embodiment of the present application.
  • FIG. 4 is a flow chart of a call control method provided by an embodiment of the present application.
  • FIG. 5 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of an example of another display interface provided by the embodiment of the present application.
  • FIG. 7 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 8 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 9 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 10 is a flow chart of another call control method provided in the embodiment of the present application.
  • FIG. 11 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 12 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 13 is a flow chart of another call control method provided by the embodiment of the present application.
  • FIG. 14 is a flow chart of another call control method provided in the embodiment of the present application.
  • Fig. 15 is a schematic diagram of an example of another display interface provided by the embodiment of the present application.
  • FIG. 16 is a schematic diagram of the structural composition of a chip system provided by an embodiment of the present application.
  • A/B can be understood as A or B.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality” means two or more.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design described herein as “exemplary” or “for example” is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words “exemplary” or “such as” is intended to present concepts in a specific manner.
  • the electronic device may synchronize voice content with the vehicle-mounted device in response to the user's action on the electronic device to answer the call.
  • the electronic device may display an incoming call interface 101 , and the incoming call interface 101 may include an answer button 103 .
  • the electronic device can synchronize voice data to the vehicle-mounted device through the SCO.
  • the in-vehicle device may display the call interface 102 shown in (b) of FIG. 1 .
  • the vehicle-mounted device may release the SCO connection, that is, actively disconnect the SCO connection established with the electronic device. Specifically, after the vehicle-mounted device receives voice data from the electronic device, if the vehicle-mounted device does not support playing voice content, the vehicle-mounted device can send a disconnection request to the electronic device, and the disconnection request is used to indicate disconnection with the electronic device. SCO connection between. Afterwards, upon receiving the disconnection request, the electronic device 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.
  • the electronic device may re-establish the SCO connection with the vehicle-mounted device, so as to ensure that data can be synchronized between the electronic device and the vehicle-mounted device.
  • the on-board device may release the SCO connection multiple times. After the vehicle-mounted device releases the SCO connection one or more times, the electronic device does not synchronize voice data to the vehicle-mounted device, and the electronic device can play voice content.
  • the electronic device will still synchronize voice data to the vehicle-mounted device. Moreover, during the process of the vehicle-mounted device releasing the SCO connection (or the process of the electronic device re-establishing the SCO connection), neither the electronic device nor the vehicle-mounted device can play the voice content. In this way, the user may miss part of the voice content, which affects the user experience.
  • an embodiment of the present application provides a call control method.
  • the method can be applied to when the electronic device establishes a bluetooth connection with the vehicle-mounted device, and the electronic device answers an incoming call.
  • the electronic device in response to the user's answering operation on the electronic device, the electronic device can determine whether the vehicle-mounted device supports voice transmission when the user triggers answering the call through the electronic device. If the vehicle-mounted device supports voice transmission when the user triggers the answering of an incoming call through the electronic device, the electronic device may determine that the vehicle-mounted device plays the voice content. In this way, after the electronic device is triggered to answer an incoming call, the vehicle-mounted device can directly play voice content. In this way, it can be guaranteed that the user can listen to the complete voice content, which improves the user experience. In addition, it is not necessary for the user to make a call through an electronic device, which makes the call more convenient for the user.
  • the electronic device may determine that the electronic device plays the voice content. That is to say, after the electronic device is triggered to answer an incoming call, the electronic device will not synchronize voice data to the vehicle-mounted device, and the electronic device can directly play the voice content. In this way, it can be guaranteed that the user can listen to the complete voice content, which improves the user experience.
  • the electronic device in the embodiment of the present application can be a tablet computer, a mobile phone, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular Telephones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR) ⁇ virtual reality (virtual reality, VR) equipment and other equipment, the embodiment of the present application does not specifically limit the specific form of the electronic equipment.
  • a call control method provided in the present application may be executed by a call control device, and the execution device may be the electronic device shown in FIG. 2 . Meanwhile, the executing device may also be a central processing unit (Central Processing Unit, CPU) of the electronic device, or a control module in the electronic device for controlling calls.
  • CPU Central Processing Unit
  • the method for controlling a call performed by an electronic device is taken as an example to describe the method for controlling a call provided by the embodiment of the present application.
  • this application takes the mobile phone 200 shown in FIG. 2 as an example to introduce the electronic device provided by this application.
  • the mobile phone 200 shown in FIG. 2 is only an example of an electronic device, and the mobile phone 200 may have more or fewer components than those shown in the figure, may combine two or more components, or may with different part configurations.
  • the various components shown in Figure 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.
  • mobile phone 200 can comprise: processor 210, external memory interface 220, internal memory 221, universal serial bus (universal serial bus, USB) interface 230, charging management module 240, power management module 241, battery 242 , antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, earphone jack 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293 , a display screen 294, and a subscriber identification module (subscriber identification module, SIM) card interface 295, etc.
  • SIM subscriber identification module
  • the above-mentioned sensor module 280 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • the processor 210 may include one or more processing units, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • graphics processing unit graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the handset 200 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is a cache memory.
  • the memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 200 .
  • the mobile phone 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 240 is configured to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger. While the charging management module 240 is charging the battery 242 , it can also supply power to the electronic device through the power management module 241 .
  • the power management module 241 is used for connecting the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives the input from the battery 242 and/or the charging management module 240 to provide power for the processor 210 , internal memory 221 , external memory, display screen 294 , camera 293 , and wireless communication module 260 .
  • the power management module 241 and the charging management module 240 can also be set in the same device.
  • the wireless communication function of the mobile phone 200 can be realized by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.
  • the antenna 1 of the mobile phone 200 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the mobile phone 200 can communicate with the network and other devices through wireless communication technology.
  • the mobile phone 200 may send the above-mentioned voice data to the vehicle-mounted device through a wireless communication technology.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in handset 200 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 200 .
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 250 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 250 may be set in the processor 210 .
  • at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be set in the same device.
  • the wireless communication module 260 can provide applications on the mobile phone 200 including wireless local area networks (wireless local area networks, WLAN) (such as (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation) Satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity, Wi-Fi
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity, Wi-Fi
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity, Wi-Fi
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • Wi-Fi wireless local area networks
  • BT wireless fidelity, Wi-Fi
  • BT global navigation satellite system
  • 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 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 260 can also receive the signal to be sent from the processor 210 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 to radiate out.
  • the mobile phone 200 realizes the display function through the GPU, the display screen 294, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. GPUs are 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 change display information.
  • the display screen 294 is used to display images, videos and the like.
  • the display screen 294 includes a display panel.
  • the display screen 294 may be used to display an incoming call interface, a call interface, and the like.
  • the mobile phone 200 can realize the shooting function through ISP, camera 293 , video codec, GPU, display screen 294 and application processor.
  • the ISP is used for processing the data fed back by the camera 293 .
  • Camera 293 is used to capture still images or video.
  • the mobile phone 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity 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. Such as saving music, video and other files in the external memory card.
  • the internal memory 221 may be used to store computer-executable program codes including instructions.
  • the processor 210 executes various functional applications and data processing of the mobile phone 200 by executing instructions stored in the internal memory 221 .
  • 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 stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 200 .
  • the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the mobile phone 200 can realize the 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 playback, recording, etc.
  • the keys 290 include a power key, a volume key and the like.
  • the key 290 may be a mechanical key. It can also be a touch button.
  • the motor 291 can generate a vibrating reminder.
  • the motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and also can be used to indicate messages, missed calls, notifications and so on.
  • the SIM card interface 295 is used for connecting a SIM card.
  • the SIM card can be inserted into the SIM card interface 295 or pulled out from the SIM card interface 295 to realize contact and separation with the mobile phone 200 .
  • the mobile phone 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 295 can support Nano SIM card, Micro SIM card, SIM card etc.
  • the mobile phone 200 may also be a flashlight, a micro projection device, a near field communication (Near Field Communication, NFC) device, etc., which will not be repeated here.
  • NFC Near Field Communication
  • the structure shown in this embodiment does not constitute a specific limitation on the mobile phone 200 .
  • the mobile phone 200 may include more or fewer components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the vehicle-mounted device 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 vehicle-mounted device 300 to perform a pairing connection with the above-mentioned electronic device (such as the mobile phone 200 ).
  • the processor 310 may control and execute the above application program codes, so as to implement the functions of the vehicle-mounted device 300 in the embodiment of the present application.
  • the memory 320 may also store a Bluetooth address for uniquely identifying the vehicle-mounted device.
  • the memory 320 may also store connection data of an electronic device that has been successfully paired with the vehicle-mounted device before.
  • the connection data may be the Bluetooth address of the electronic device successfully paired with the vehicle device.
  • the in-vehicle device can be automatically paired with the electronic device without having to configure the connection therebetween, such as performing legality verification.
  • the above bluetooth address may be a media access control (media access control, MAC) address.
  • the sensor 330 may include a touch sensor for detecting a user's touch operation.
  • the in-vehicle device may further include a fingerprint sensor for detecting the user's fingerprint, identifying the user's identity, and the like.
  • the vehicle-mounted device may also include an ambient light sensor, which can adaptively adjust some parameters, such as volume, according to the brightness of the perceived ambient light.
  • the wireless communication module 340 is used to support short-distance data exchange between the vehicle-mounted device 300 and various electronic devices, such as the above-mentioned mobile phone 200 .
  • the wireless communication module 340 may be a Bluetooth transceiver or a radio frequency (Radio Frequency, RF) circuit.
  • the vehicle-mounted device 300 can establish a wireless connection with the above-mentioned mobile phone 200 through the Bluetooth transceiver, so as to realize short-distance data exchange between the two.
  • At least one receiver 350 which may also be referred to as an "earpiece”, may be used to convert audio electrical signals into audio signals and play them back.
  • the receiver 350 can convert the received audio electrical signal into a sound signal and play it.
  • At least one microphone 360 which may also be referred to as “microphone”, “microphone”, is used to convert sound signals into audio electrical signals.
  • the microphone 360 can collect the user's voice signal and convert it into an audio electrical signal during the user's speaking (such as talking or sending a voice message).
  • the above audio electrical signal is the audio data in the embodiment of the present application.
  • the microphone 360 may be a feed-forward microphone.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the vehicle-mounted device 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.
  • the vehicle-mounted device 300 may also include components such as a display screen (which may display application icons and a call interface, etc.).
  • the various components shown in Figure 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.
  • An embodiment of the present application provides a method for controlling a call. As shown in FIG. 4 , the method for controlling a call may include S401-S406.
  • the electronic device acquires first indication information.
  • the first indication information is used to indicate whether the vehicle-mounted device supports voice transmission when the user triggers the answering of the incoming call through the electronic device.
  • the embodiment of the present application does not limit the manner of transmission.
  • electronic equipment can carry out voice transmission with vehicle equipment through SCO.
  • the electronic device can use an extended synchronous connection oriented link (Extended Synchronous Connection Oriented, ESCO) to perform voice transmission with the vehicle-mounted device.
  • ESCO Extended Synchronous Connection Oriented
  • the user triggering an incoming call through the electronic device means that when the electronic device receives an incoming call, the electronic device receives an incoming call answering operation from the user, and the incoming call answering operation is used to trigger answering the incoming call.
  • the electronic device may receive the user's operation on the answer button 103 . That is to say, the scene (a) in FIG. 1 is that the user triggers to answer the incoming call through the electronic device.
  • the in-vehicle device receives the user's call answering operation, which is not deemed to be triggered by the user to answer the call through the electronic device.
  • the electronic device may obtain the first indication information.
  • the vehicle-mounted device stores the first indication information.
  • the vehicle-mounted device may send the first indication information to the electronic device.
  • the electronic device may receive the first indication information from the electronic device.
  • S401 may include S501-S502.
  • the vehicle-mounted device may send a Bluetooth support function message to the electronic device.
  • the first Bluetooth Retrieve Supported Features (BRSF) message carries the first indication information.
  • the BRSF message is used to indicate the functional characteristics that the vehicle equipment can support.
  • the functional features that the vehicle-mounted device can support may include: the vehicle-mounted device supports voice transmission when the user triggers an incoming call through an electronic device, and the vehicle-mounted device supports three-way calling.
  • the vehicle-mounted device may send a BRSF message to the electronic device.
  • a Bluetooth Hands-Free Profile HFP
  • the vehicle-mounted device may send the first A BRSF command (that is, a BRSF message), the first BRSF command carries first indication information in BitMap format.
  • the first indication information may occupy at least one bit in the BitMap.
  • the first indication information may occupy one bit in the BitMap (that is, the first indication information is 1 bit).
  • the first indication information may occupy three bits in the BitMap (that is, the first indication information is 3 bits).
  • the first indication information occupies one bit in the BitMap as an example to introduce this embodiment of the present application.
  • the first indication information may be located in any bit in the reserved bits of the BitMap, and the reserved bits of the BitMap are used to indicate unoccupied bits. That is to say, the embodiment of the present application does not limit the bits occupied by the first indication information.
  • the reserved bits of the BitMap include the 13th bit in the BitMap to the 32nd bit in the BitMap.
  • the first indication information may be located at the 13th bit in the BitMap.
  • the first indication information may also be located at the 15th bit in the BitMap.
  • the first indication information may also be located at the 30th bit in the BitMap.
  • the electronic device receives a Bluetooth support function message from the vehicle-mounted device.
  • the electronic device may send a first response message to the vehicle device after receiving the BRSF message from the vehicle device.
  • the first response message is used to indicate that the electronic device has successfully received the BRSF message.
  • the electronic device may send a BRSF command to the vehicle device, where the BRSF command is used to indicate the functions that the electronic device can support.
  • the functional features that the electronic device can support may include: the electronic device supports ringtones for incoming calls, the electronic device supports three-way calls, and the like.
  • the electronic device receives an incoming call.
  • the electronic device when it receives an incoming call, it may play a ringtone for an incoming call reminder (eg (a) in FIG. 1 ).
  • the electronic device receives a first operation of the user.
  • the first operation is used to trigger answering an 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.
  • the first operation may be a sliding operation.
  • the first operation may be a click operation.
  • the first operation may be a long press operation.
  • the user may input a first operation to the electronic device.
  • the electronic device may receive a user's first operation.
  • the electronic device determines, according to the first indication information, whether the vehicle-mounted device supports voice transmission when the user triggers answering an incoming call through the electronic device.
  • the electronic device may perform S405.
  • the electronic device may perform S406.
  • the electronic device determines to play the voice content through the vehicle-mounted device.
  • the electronic device may determine to play the voice content through the vehicle-mounted device.
  • the electronic device may perform voice transmission with the vehicle device through SCO or ESCO. Afterwards, the in-vehicle device can play voice content.
  • the voice content is used to indicate the voice data transmitted by the electronic device.
  • the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device will not disconnect from the mobile phone (such as SCO connection ), instead, the voice content can be played directly. In this way, it can be ensured that the user can hear the complete voice content, and the user experience is improved.
  • the mobile phone such as SCO connection
  • the user may need to hold the electronic device. And the user does not need to hold the vehicle-mounted device when making a call through the vehicle-mounted device. In this way, the user can make the call more convenient.
  • the electronic device determines to play the voice content through the electronic device or the first Bluetooth device.
  • the first Bluetooth device is a Bluetooth device other than the vehicle-mounted device among the multiple Bluetooth devices establishing a Bluetooth connection with the electronic device.
  • the at least one Bluetooth device includes an in-vehicle device.
  • the embodiment of the present application does not limit other bluetooth devices except the vehicle-mounted device.
  • the bluetooth device may be a bluetooth stereo, a bluetooth bracelet, or a bluetooth headset.
  • the electronic device can establish Bluetooth connections with multiple Bluetooth devices.
  • the plurality of Bluetooth devices include in-vehicle devices and other Bluetooth devices except in-vehicle devices. If the electronic device determines that the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device may determine the first Bluetooth device from other Bluetooth devices. Afterwards, the electronic device may determine to play the voice content through the first bluetooth device. Optionally, the electronic device may determine to play the voice content through the electronic device.
  • the electronic device when the electronic device establishes a connection with other Bluetooth devices other than the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device can pass the first Bluetooth The device plays audio content. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the embodiment of the present application does not limit the first Bluetooth device.
  • the first Bluetooth device may be any Bluetooth device among other Bluetooth devices.
  • other bluetooth devices include bluetooth speakers, bluetooth bracelets and bluetooth earphones.
  • the first bluetooth device may be a bluetooth stereo; or, the first bluetooth device may be a bluetooth bracelet; or, the first bluetooth device may be a bluetooth headset.
  • the first Bluetooth device may be the most frequently used Bluetooth device among other Bluetooth devices.
  • the usage frequency of the Bluetooth device is used to indicate the frequency at which the electronic device establishes a Bluetooth connection with the Bluetooth device.
  • the embodiment of the present application does not limit the frequency of use.
  • the usage frequency may be the number of times the electronic device establishes a Bluetooth connection with the Bluetooth device every day.
  • the usage frequency may be the number of times a week that the electronic device establishes a Bluetooth connection with the Bluetooth device.
  • the electronic device may store the frequency of use of the Bluetooth device that has established a Bluetooth connection with the electronic device, and the relationship between the identifier of the Bluetooth device and the frequency of use of the Bluetooth device.
  • the identifier of the Bluetooth device is used to identify the Bluetooth device.
  • the embodiment of the present application does not limit the identification of the Bluetooth device.
  • the identifier of the Bluetooth device may be a Media Access Control (Media Access Control, MAC) address of the Bluetooth device.
  • the identifier of the Bluetooth device may be a device ID (device ID) of the Bluetooth device.
  • Table 1 it shows the relationship between the identifier of the Bluetooth device and the frequency of use of the Bluetooth device.
  • the usage frequency of the bluetooth device marked with the mark A is 7
  • the use frequency of the bluetooth device marked with the mark B is 2
  • the use frequency of the bluetooth device marked with the mark C is 5.
  • the electronic device can acquire the identifiers of other Bluetooth devices establishing a Bluetooth connection with the electronic device. Afterwards, the electronic device can determine the frequency of use of each Bluetooth device in the other Bluetooth devices according to the identifiers of other Bluetooth devices and the relationship between the identifiers of the Bluetooth devices and the frequency of use of the Bluetooth devices. Next, the electronic device may determine the first Bluetooth device according to the usage frequency of each Bluetooth device.
  • the above frequency of use may also be the duration of use and the number of times of use, etc., which are not limited in this embodiment of the present application.
  • the electronic device determines the first Bluetooth device according to the duration of use or the number of times of use reference may be made to the foregoing embodiments, and details are not described here.
  • the first Bluetooth device is the most frequently used Bluetooth device among other Bluetooth devices. That is to say, the electronic device can play voice content through the most frequently used Bluetooth device. In this way, incoming calls can be answered according to the usage habits of the user, which improves the user experience.
  • 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 vehicle-mounted device.
  • the electronic device if before the electronic device establishes the Bluetooth connection with the vehicle equipment, the electronic device establishes the Bluetooth connection with the Bluetooth headset. Then the first Bluetooth device may be a Bluetooth headset.
  • the first Bluetooth device is the Bluetooth device with the highest priority among other Bluetooth devices.
  • the priorities of various devices are stored in the electronic device.
  • the priority of the device is used to represent the probability of leaking the voice content when the Bluetooth device plays the voice content of the electronic device.
  • the higher the priority of the device the lower the probability of the Bluetooth device leaking the voice content when playing the voice content of the electronic device.
  • the lower the priority of the device the greater the probability that the Bluetooth device will leak the voice content when playing the voice content of the electronic device.
  • the multiple devices include: earphone-type devices, wearable-type devices, and audio-type devices.
  • the priority of the headset type device is higher than that of the wearable type device, and the priority of the wearable type device is higher than that of the audio type device.
  • the electronic device can obtain the device type of each bluetooth device among other bluetooth devices. Afterwards, the electronic device can determine the priority of each Bluetooth device in the other Bluetooth devices according to the device types of the other Bluetooth devices and the priorities of multiple devices. Then, the electronic device can determine the first Bluetooth device according to the priority of each Bluetooth device. Exemplarily, if a Bluetooth connection is established between the electronic device and a Bluetooth headset, a Bluetooth watch, or a Bluetooth speaker, the electronic device may determine that the first Bluetooth device is a Bluetooth headset. If a Bluetooth connection is established between the electronic device and the Bluetooth watch or the Bluetooth speaker, the electronic device can determine that the first Bluetooth device is a Bluetooth watch.
  • the first Bluetooth device is the Bluetooth device with the highest priority among other Bluetooth devices. That is to say, the electronic device can play the voice content through the Bluetooth device with the lowest probability of leaking the voice content. In this way, the probability of leaking user privacy can be reduced, the security of voice calls is improved, and the user experience is improved.
  • the electronic device establishes a Bluetooth connection with the vehicle-mounted device, and does not establish a Bluetooth connection with other Bluetooth devices. If the electronic device determines that the vehicle-mounted device does not support voice transmission when the user triggers an answering call through the electronic device, the electronic device may determine to play the voice content through the electronic device.
  • the vehicle-mounted device does not support voice transmission when the user triggers an answering call through the electronic device, the electronic device can directly play the voice content. In this way, it can be guaranteed that the user can listen to the complete voice content, which improves the user experience.
  • the electronic device when the electronic device establishes a Bluetooth connection with the vehicle-mounted device, if the vehicle-mounted device does not play the voice content, but the electronic device or the Bluetooth device plays the voice content, it may confuse the user.
  • the electronic device may display the first prompt message, the first prompt message is used to prompt that the vehicle-mounted device does not support voice transmission when the user triggers the answering of the incoming call through the electronic device.
  • the electronic device may display a prompt message 601 as shown in FIG.
  • the prompt message 601 can also be used to indicate the device currently playing the voice content.
  • the prompt message 601 may also include "Attention, the device currently conducting a voice call is a Bluetooth headset!”.
  • the embodiment of the present application does not limit the display manner of the first prompt message.
  • the electronic device may display the first prompt message through a notification message.
  • the electronic device may display the first prompt message on the notification bar.
  • the electronic device may display the first prompt message in a pop-up box.
  • the display of the first prompt message by the electronic device can make the user understand the reason why the vehicle-mounted device does not play the voice content. In this way, the user's confusion in the use process can be reduced, and the user's use experience can be improved.
  • the first indication information may be a first numerical value or a second numerical value.
  • the first value is used to indicate that the vehicle-mounted device supports voice transmission when the user triggers an incoming call through an electronic device
  • the second value is used to indicate that the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through an electronic device.
  • the first indication information is the information corresponding to the "AG answer" bit in the BitMap
  • the "AG answer" bit may be the first value or the second value.
  • the embodiment of the present application does not limit the first value and the second value.
  • the first value may be 1, and the second value may be 0.
  • the first value may be 0, and the second value may be 1.
  • the electronic device may establish a synchronous connection with the vehicle-mounted device.
  • the synchronous connection is used for transmitting voice data between the electronic device and the vehicle-mounted device. 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 a synchronous connection.
  • the embodiment of the present application does not limit the synchronous connection.
  • the synchronous connection may be a SCO connection.
  • the synchronous connection may be an ESCO connection.
  • the synchronous connection may also be another connection for synchronizing voice data.
  • the timing for the electronic device to establish a synchronous connection with the vehicle-mounted device is related to whether the electronic device supports ringtone synchronization for incoming calls. . If the electronic device supports ringtone synchronization for incoming calls, the electronic device can establish a synchronous connection with the vehicle-mounted device after the electronic device receives an incoming call. If the electronic device does not support ringtone synchronization for incoming calls, the electronic device will not establish a synchronous connection with the vehicle-mounted device after the electronic device receives an incoming call.
  • 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 the electronic device to answer the incoming call).
  • the electronic device may determine whether the electronic device supports ringtone synchronization for incoming calls according to the second indication information, where the second indication information is used to indicate whether the electronic device supports ringtone synchronization for incoming calls. Specifically, the electronic device may acquire the second indication information.
  • 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 (that is, the second indication information is 0), the electronic device determines that the electronic device does not support ring tone synchronization for incoming calls. If the "in-band ring tone capability" bit in the BitMap format is 1 (that is, the second indication information is 1), the electronic device determines that the electronic device supports ring tone synchronization for incoming calls.
  • the call control method may include S701-S712.
  • the electronic device When the electronic device receives an incoming call, the electronic device sends an incoming call instruction to the vehicle-mounted device.
  • the incoming call instruction is used to instruct the electronic device to receive an incoming call.
  • the electronic device may send a first CIEV command (that is, an incoming call instruction) to the vehicle-mounted device, the first CIEV command includes incoming call indication information, and the incoming call indication information is used to indicate that the electronic device receives call.
  • the electronic device when the electronic device receives an incoming call, the electronic device may send an incoming call instruction to the vehicle-mounted device. Afterwards, the vehicle-mounted device can receive an incoming call instruction from the electronic device. Optionally, after the vehicle-mounted device receives the incoming call instruction from the electronic device, the vehicle-mounted device may display an incoming call reminder interface. The in-vehicle device can receive the call answering operation performed by the user on the call reminder interface to trigger answering the call.
  • the electronic device in response to the electronic device receiving an incoming call, may determine whether the electronic device supports ringtone synchronization for incoming calls.
  • the electronic device may determine whether the electronic device supports ringtone synchronization for incoming calls. If the electronic device supports ringtone synchronization for incoming calls, the electronic device may execute S702.
  • the method for the electronic device to determine whether the electronic device supports ringtone synchronization for incoming calls may refer to the method for the electronic device to determine whether the electronic device supports ringtone synchronization for incoming calls in the above embodiment, and details are not described here.
  • the electronic device sends a synchronization request message to the vehicle-mounted device.
  • the synchronization request message is used for requesting establishment of a synchronization connection.
  • the synchronization request message may be an LMP_SCO_LINK_REQ message or an LMP_eSCO_LINK_REQ message.
  • the electronic device may send a synchronization request message to the vehicle-mounted device.
  • the in-vehicle device sends a synchronous response message to the electronic device.
  • the synchronization response message is used to indicate that the synchronization connection has been established successfully.
  • the synchronization response message may be an LMP_ACCEPT message or an LMP_ACCEPT_EXT message.
  • the on-vehicle device may send a synchronization response message to the electronic device after receiving the synchronization request message from the electronic device. Afterwards, the electronic device can receive the synchronization response message from the vehicle device. That is, a synchronous connection has been successfully established between the electronic device and the vehicle-mounted device.
  • the embodiment of the present application does not limit the process of establishing a synchronous connection between the electronic device and the vehicle-mounted device.
  • the vehicle-mounted device may send a synchronization request message to the electronic device. Afterwards, the electronic device may send a synchronization response message to the vehicle device.
  • the electronic device may play a ringtone for the incoming call.
  • the electronic device can transmit the ringtone of the incoming call to the vehicle-mounted device through the synchronous connection, and instruct the vehicle-mounted device to play the ringtone of the incoming call as an incoming call reminder.
  • the vehicle-mounted device can play the ringtone for the incoming call.
  • the synchronous connection is an SCO connection
  • the electronic device may send the ringtone data of the incoming call to the vehicle device through the SCO.
  • the electronic device receives a first operation of the user.
  • the electronic device in response to the first operation, may send an answering instruction to the vehicle-mounted device, where the answering instruction is used to indicate that the incoming call has been answered.
  • the electronic device in response to the first operation, may send a second CIEV command (ie answering instruction) to the vehicle-mounted device, where the CIEV command includes answering indication information, and the answering indication information is used to indicate that the incoming call has been answered.
  • the electronic device determines whether the first indication information is a first value.
  • the electronic device may execute S706-S708. That is to say, if the vehicle-mounted device supports voice transmission when the user triggers the answering of the incoming call through the electronic device, the electronic device can execute S706-S708.
  • the electronic device may execute S709 or S710-S712. That is to say, if the vehicle-mounted device supports voice transmission when the user triggers the answering of the call through the electronic device, the electronic device can execute S709; or, if the vehicle-mounted device supports voice transmission when the user triggers the answering of the call through the electronic device , the electronic device can execute S710-S712.
  • the electronic device determines to play the voice content through the vehicle-mounted device.
  • the electronic device determines to play the voice content through the vehicle-mounted device. That is to say, if the vehicle-mounted device does not support voice transmission when the user triggers to answer an incoming call through the electronic device, the electronic device can determine to play the voice content through the vehicle-mounted device.
  • the electronic device sends the voice data to the vehicle-mounted device.
  • the electronic device determines to play the voice content through the vehicle-mounted device, and may send voice data to the vehicle-mounted device through a synchronous connection to instruct the vehicle-mounted device to play the voice content corresponding to the voice data.
  • electronic equipment can send voice data to vehicle equipment through SCO.
  • the electronic device since the electronic device supports ringtone synchronization for incoming calls, the electronic device can establish a synchronous connection with the vehicle-mounted device after receiving an incoming call. Therefore, in S707, when the electronic device sends voice data to the vehicle-mounted device, the electronic device does not need to establish a synchronous connection.
  • the in-vehicle device receives the voice data from the electronic device, and plays the voice content.
  • the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device will not disconnect the synchronous connection with the electronic device (such as SCO connection), but can directly play voice content. In this way, it can be ensured that the user can hear the complete voice content, and the user experience is improved.
  • the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device will not disconnect the synchronous connection with the electronic device (such as SCO connection), but can directly play voice content. In this way, it can be ensured that the user can hear the complete voice content, and the user experience is improved.
  • the electronic device such as SCO connection
  • the user may need to hold the electronic device. And the user does not need to hold the vehicle-mounted device when making a call through the vehicle-mounted device. In this way, the user can make the call more convenient.
  • the electronic device determines to play the voice content through the electronic device.
  • the electronic device determines to play the voice content through the electronic device.
  • the electronic device may not disconnect the synchronous connection with the vehicle-mounted device. Specifically, if the first indication information is the second value, the electronic device can switch the sound channel to the electronic device, and keep the synchronous connection between the electronic device and the vehicle device, such as the SCO connection. That is to say, the electronic device can maintain a synchronous connection with the vehicle-mounted device while playing voice content.
  • the electronic device plays voice content, it does not need to be connected synchronously to transmit voice data. If the electronic device still establishes a synchronous connection with the vehicle equipment, the power consumption of the electronic device may be increased.
  • the electronic device may release the synchronous connection with the vehicle-mounted device, that is, the electronic device may disconnect the synchronous connection with the vehicle-mounted device.
  • the call control method may further include S801-S802.
  • the electronic device sends a release request message to the vehicle-mounted device.
  • the release request message is used to indicate to release the synchronous connection.
  • the release request message may be an LMP_REMOVE_SCO_LINK_REQ message or an LMP_REMOVE_eSCO_LINK_REQ message.
  • the in-vehicle device sends a release response message to the electronic device.
  • the release response message is used to indicate that the synchronous connection has been successfully released.
  • the release response message may be an LMP_ACCEPT message or an LMP_ACCEPT_EXT message.
  • the vehicle-mounted device may send a release response message to the electronic device after receiving the release request message from the electronic device. Afterwards, the electronic device may receive a release response message from the vehicle-mounted device.
  • the release of the synchronous connection between the electronic device and the vehicle-mounted device can reduce the power consumption of the electronic device. In this way, the use time of the electronic device can be increased, and the use experience of the user is improved.
  • the electronic device determines to play the voice content through the first Bluetooth device.
  • the electronic device determines to play the voice content through the first Bluetooth device.
  • other bluetooth devices include the first bluetooth device.
  • the embodiment of the present application does not limit the first Bluetooth device.
  • the specific 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 introduction in the foregoing embodiments, and details are not repeated here.
  • the electronic device may release the synchronous connection with the vehicle-mounted device. That is to say, after the electronic device executes S710, the electronic device may execute S801, and the vehicle-mounted device may execute S802.
  • the electronic device sends a synchronization request message to the first Bluetooth device.
  • the first Bluetooth device sends a synchronization response message to the electronic device.
  • the first Bluetooth device may send a synchronization response message to the electronic device after receiving the synchronization request message from the electronic device. That is to say, the electronic device can send voice data to the first Bluetooth device through the synchronous connection.
  • the electronic device when the electronic device establishes a connection with other Bluetooth devices other than the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device can pass the first Bluetooth The device plays audio content. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the in-vehicle device may not support ringtone synchronization for incoming calls. 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 will not execute S702 and S703, that is, the electronic device will not establish a synchronous connection with the vehicle-mounted device.
  • the call control method may include S901-S910.
  • the electronic device When the electronic device receives an incoming call, the electronic device sends an incoming call instruction to the vehicle-mounted device.
  • the electronic device in response to the electronic device receiving an incoming call, may determine whether the electronic device supports ringtone synchronization for incoming calls.
  • the electronic device may determine whether the electronic device supports ringtone synchronization for incoming calls. If the electronic device does not support incoming call ringtone synchronization, the electronic device will not execute S702 and S703 after the electronic device receives the incoming call, that is, the electronic device will not establish a synchronous connection with the vehicle-mounted device after the electronic device receives the incoming call.
  • the electronic device may play a ringtone for the incoming call.
  • the vehicle-mounted device can play the ringtone of the incoming call.
  • the incoming call ringtone played by the vehicle-mounted device is the incoming call ringtone set by the vehicle-mounted device.
  • the ringtone played by the vehicle-mounted device can be the same as the ringtone played by the electronic device, or the ringtone played by the vehicle-mounted device can be different from the ringtone played by the electronic device.
  • the electronic device receives a first operation of a user.
  • the electronic device determines whether the first indication information is a first value.
  • the electronic device may execute S904-S906. That is to say, if the in-vehicle device supports voice transmission when the user triggers the answering of the incoming call through the electronic device, the electronic device can execute S904-S906.
  • the electronic device may execute S907 or S908-S910. That is to say, if the vehicle-mounted device supports voice transmission when the user triggers the answering of the call through the electronic device, the electronic device can execute S907; or, if the vehicle-mounted device supports voice transmission when the user triggers the answering of the call through the electronic device , the electronic device may execute S908-S910.
  • the electronic device determines to play the voice content through the vehicle-mounted device.
  • the electronic device determines to play the voice content through the vehicle-mounted device. That is to say, if the vehicle-mounted device does not support voice transmission when the user triggers to answer an incoming call through the electronic device, the electronic device can determine to play the voice content through the vehicle-mounted device.
  • the electronic device sends a synchronization request message to the vehicle-mounted device.
  • the synchronization request message is used for requesting establishment of a synchronization connection.
  • the electronic device does not support ringtone synchronization for incoming calls. After the electronic device receives the user's first operation, if the first indication information is the first value, the electronic device may send a synchronization request message to the vehicle-mounted device.
  • the electronic device does not support ringtone synchronization for incoming calls, the electronic device does not establish a synchronous connection with the vehicle-mounted device when receiving an incoming call. Therefore, after the electronic device determines to play the voice content through the vehicle device, it needs to establish a synchronous connection with the vehicle device. In this way, voice data can be transmitted to the on-board device via a synchronous connection.
  • the in-vehicle device sends a synchronous response message to the electronic device.
  • the on-vehicle device may send a synchronization response message to the electronic device after receiving the synchronization request message from the electronic device. That is, a synchronous connection has been successfully established between the electronic device and the vehicle-mounted device.
  • the embodiment of the present application does not limit the process of establishing a synchronous connection between the electronic device and the vehicle-mounted device.
  • the vehicle-mounted device may send a synchronization request message to the electronic device. Afterwards, the electronic device may send a synchronization response message to the vehicle device.
  • the electronic device receives the synchronous response message from the vehicle-mounted device, and may send voice data to the vehicle-mounted device through the synchronous connection.
  • electronic equipment can send voice data to vehicle equipment through SCO.
  • the in-vehicle device receives the voice data from the electronic device and can play the voice content.
  • the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device will not release the synchronous connection with the mobile phone (such as SCO connection ), instead, the voice content can be played directly. In this way, it can be guaranteed that the user can hear the complete voice content, which improves the user experience.
  • the mobile phone such as SCO connection
  • the user may need to hold the electronic device. And the user does not need to hold the vehicle-mounted device when making a call through the vehicle-mounted device. In this way, the user can make the call more convenient.
  • the electronic device determines to play the voice content through the electronic device.
  • the electronic device does not support ringtone synchronization for incoming calls, and if the first indication information is the second value, the electronic device does not perform S905-S906. That is to say, the electronic device does not support ringtone synchronization for incoming calls, and the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, and the electronic device does not establish a synchronous connection with the vehicle-mounted device.
  • the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, after the electronic device transmits voice data to the vehicle-mounted device, the vehicle-mounted device will not release the connection with the mobile phone (such as SCO connection) , but the voice content can be played directly. In this way, it can be ensured that the user can hear the complete voice content, and the user experience is improved.
  • the mobile phone such as SCO connection
  • the electronic device will not establish a synchronous connection with the vehicle-mounted device. In this way, the power consumption of the electronic device can be reduced, and the service life of the electronic device can be increased.
  • the electronic device determines to play the voice content through the first Bluetooth device.
  • the electronic device determines to play the voice content through the first Bluetooth device.
  • the electronic device sends a synchronization request message to the first Bluetooth device.
  • the first Bluetooth device sends a synchronization response message to the electronic device.
  • the electronic device when the electronic device establishes a connection with other Bluetooth devices other than the vehicle-mounted device, if the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device can pass the first Bluetooth The device plays audio content. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the vehicle-mounted device may refuse to establish a synchronous connection. Specifically, if the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device, after the vehicle-mounted device receives the synchronization request message from the electronic device, the vehicle-mounted device can send a rejection response message to the electronic device, and the rejection response Message to indicate that a synchronous connection was not successfully established.
  • the electronic device may determine to play the voice content through the electronic device or the first Bluetooth device upon receiving the rejection response message from the vehicle-mounted device.
  • the electronic device will not perform voice transmission to the vehicle-mounted device, but the electronic device or the first Bluetooth device will play the voice content. In this way, it is possible to prevent the user from missing voice content, and improve user experience.
  • the electronic device may determine whether to play the voice content through the vehicle-mounted device according to the blacklist.
  • a blacklist is stored in the electronic device, and the blacklist includes a plurality of preset in-vehicle device identifiers.
  • the preset in-vehicle device identifiers are identifiers of in-vehicle devices that do not support voice transmission when the user triggers an incoming call through the electronic device. That is to say, the vehicle-mounted devices corresponding to each preset vehicle-mounted device ID in the blacklist do not support voice transmission when the user triggers an incoming call through an electronic device.
  • the vehicle-mounted device identifier is used to identify the vehicle-mounted device.
  • the embodiment of the present application does not limit the identification of the on-vehicle device.
  • the vehicle device identifier may be the MAC address of the vehicle device.
  • the vehicle-mounted device identifier may be a device ID of the vehicle-mounted device.
  • the electronic device may save the blacklist through the method (a) and the method (b).
  • method (a) is that the electronic device can pre-store the blacklist
  • method (b) is that the electronic device determines the blacklist according to the time it takes to release the synchronous connection between the electronic device and the vehicle-mounted device, and saves the blacklist.
  • the electronic device may save the blacklist through method (a), that is, the electronic device may store the blacklist in advance.
  • the electronic device may store a plurality of preset vehicle-mounted device identifiers input by a developer when leaving the factory.
  • the embodiment of the present application does not limit the method for the developer to acquire the preset identification of the vehicle equipment.
  • the developer may determine the vehicle-mounted device that does not support voice transmission when the user triggers an incoming call through the electronic device through a test (for example, method (b)), and obtain the identification of the vehicle-mounted device.
  • the developer may determine the vehicle-mounted device that does not support voice transmission when the user triggers an incoming call through an electronic device by obtaining the device information (such as the first indication information) of each vehicle-mounted device, and obtain the identification of the vehicle-mounted device.
  • the device information such as the first indication information
  • the electronic device may save the blacklist through method (b), that is, the electronic device determines the blacklist according to the time it takes to release the synchronous connection between the electronic device and the vehicle-mounted device, and saves the blacklist.
  • the call control method may include S1001-S1011.
  • the electronic device When the electronic device receives an incoming call, the electronic device sends an incoming call instruction to the vehicle-mounted device.
  • the electronic device in response to the electronic device receiving an incoming call, may determine whether the electronic device supports ringtone synchronization for incoming calls.
  • the electronic device may determine whether the electronic device supports ringtone synchronization for incoming calls. If the electronic device supports ringtone synchronization for incoming calls, the electronic device may execute S1002.
  • the electronic device sends a synchronization request message to the vehicle-mounted device.
  • the in-vehicle device sends a synchronous response message to the electronic device.
  • the electronic device receives a first operation of the user.
  • the electronic device in response to the user's first operation, may send voice data to the vehicle-mounted device through a 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 when the user triggers the answering of an incoming call through the electronic device, the vehicle-mounted device can play voice content. Also, the electronic device does not execute S1005-S1011. If the vehicle-mounted device does not support voice transmission when the user triggers an answering call through the electronic device, the electronic device executes S1005-S1011.
  • the electronic device records the first time.
  • the first time is the time when the electronic device receives the first operation. That is to say, the first time is used to record the time of triggering the answering of the incoming call. Exemplarily, if the electronic device receives the user's operation at 09:55:66, the first time is 09:55:66.
  • the synchronous connection between the electronic device and the vehicle-mounted device may be released.
  • the in-vehicle device may send a release request message to the electronic device after receiving the voice data from the electronic device.
  • the electronic device may receive the release request message from the vehicle-mounted device, and send a release response message to the vehicle-mounted device.
  • the electronic device records the second time.
  • the second time is the time when the electronic device releases the synchronous connection for the first time after receiving the first operation. That is to say, the second time is the time when the electronic device sends the release response message for the first time after receiving the first operation.
  • the time when the electronic device releases the SCO connection for the first time after receiving the first operation is 09:55:70, then the second time is 09:55:70.
  • the electronic device calculates a difference between the first time and the second time to obtain a first target difference.
  • the first target difference is used to indicate the length of time it takes to release the synchronous connection for the first time after receiving the first operation.
  • the first target difference is 0.04 seconds, that is, 40 milliseconds. That is to say, it takes 40 milliseconds to release the synchronous connection between the electronic device and the vehicle-mounted device.
  • the electronic device determines whether the first target difference is smaller than a preset time threshold.
  • the in-vehicle device does not support voice transmission when the user triggers an incoming call through an electronic device, or an abnormality occurs in the in-vehicle device, which may result in the release of the synchronous connection. Therefore, in order to determine that the in-vehicle device releases the synchronous connection because it does not support voice transmission when the user triggers an incoming call through the electronic device, the electronic device may set a preset time threshold. Usually, the time taken for the release of the synchronous connection due to an abnormality of the vehicle device is longer than the time taken for the release of the synchronous connection due to the fact that the vehicle device does not support voice transmission when the user triggers an incoming call through the electronic device.
  • the embodiment of the present application does not limit the preset time threshold.
  • the preset time threshold may be 100 milliseconds.
  • the preset time threshold may be 110 milliseconds.
  • the preset time threshold may be 90 milliseconds.
  • the preset time threshold may be 100 milliseconds.
  • the electronic device may execute S1010. If the first target difference is greater than the preset time threshold, the electronic device may execute S1011.
  • the electronic device adds the first device identifier to the blacklist.
  • the first device identifier is an identifier of a vehicle-mounted device that establishes a Bluetooth connection with the electronic device.
  • the electronic device may acquire the first device identifier before the electronic device adds the first device identifier to the blacklist.
  • the embodiment of the present application does not limit the manner in which the electronic device acquires the first device identifier.
  • the electronic device may obtain the MAC address of the vehicle device during the process of establishing a Bluetooth connection with the vehicle device.
  • the electronic device may add the first device identifier to the blacklist.
  • the electronic device may add the first device identifier to the blacklist.
  • the first target difference is less than the preset time threshold, indicating that it takes a relatively short time to release the synchronous connection.
  • the in-vehicle device releases the synchronous connection because it does not support voice transmission when the user triggers an incoming call through an electronic device, that is, the in-vehicle device does not support voice transmission when the user triggers an incoming call through an electronic device.
  • the electronic device does not add the first device identifier to the blacklist.
  • the electronic device 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.
  • the electronic device if the first target difference is 200 milliseconds and the preset time threshold is 100 milliseconds, the electronic device does not add the first device identifier to the blacklist.
  • the first target difference is greater than the preset time threshold, indicating that it takes a long time to release the synchronous connection. In this way, it can be determined that the in-vehicle device does not release the synchronous connection because it does not support voice transmission when the user triggers an incoming call through the electronic device.
  • the release of the synchronous connection is caused by the in-vehicle device not supporting voice transmission when the user triggers an incoming call through an electronic device based on the time it takes to release the synchronous connection once.
  • the electronic device may determine whether to add the first device identifier to the blacklist again according to the time it takes to release the synchronous connection.
  • the call control method may further include S1101-S1106.
  • the electronic device may execute S1101.
  • the electronic device may establish a synchronous connection with the vehicle-mounted device again. Specifically, the electronic device may send a synchronization request message to the vehicle-mounted device.
  • the in-vehicle device receives the synchronization request message from the electronic device, and sends a synchronization response message to the electronic device.
  • the electronic device may send voice data to the vehicle-mounted device.
  • the electronic device records the third time.
  • the third time is the time when the electronic device establishes the synchronization connection for the second time after receiving the first operation.
  • the third time may be the time when the electronic device receives the synchronization response message for the second time after receiving the first operation.
  • the time when the electronic device establishes the SCO connection with the vehicle-mounted device for the second time is 09:56:00, then the third time is 09:56:00.
  • the vehicle-mounted device may not support voice transmission when the user triggers an answering call through the electronic device
  • the synchronous connection between the electronic device and the vehicle-mounted device may be released.
  • the in-vehicle device may send a release request message to the electronic device after receiving the voice data from the electronic device.
  • the electronic device may receive the release request message from the vehicle-mounted device, and send a release response message to the vehicle-mounted device.
  • the electronic device records the fourth time.
  • the fourth time is the time when the electronic device releases the synchronization connection for the second time after receiving the first operation.
  • the fourth time may be the time when the electronic device sends the release response message for the second time after receiving the first operation.
  • the electronic device calculates a difference between the third time and the fourth time to obtain a second target difference.
  • the second target difference is used to indicate the length of time it takes to release the synchronous connection for the second time after receiving the first operation.
  • the electronic device determines whether the second target difference is smaller than a preset time threshold.
  • the electronic device may execute S1010. That is to say, if the duration of releasing the synchronous connection twice between the electronic device and the vehicle-mounted device is less than a preset time threshold, the electronic device may add the first device identifier to the blacklist.
  • the electronic device may execute S1011. That is to say, if the duration of releasing the synchronous connection between the electronic device and the in-vehicle device for the second time is greater than the preset time threshold, the electronic device will not add the first device identifier to the blacklist.
  • the electronic device can more accurately determine whether the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device through the time spent on releasing the synchronous connection multiple times, thereby improving the accuracy of the blacklist.
  • the call control method may include S1201-S1216.
  • the electronic device When the electronic device receives an incoming call, the electronic device sends an incoming call instruction to the vehicle-mounted device.
  • the electronic device in response to the electronic device receiving an incoming call, may determine whether the electronic device supports ringtone synchronization for incoming calls.
  • the electronic device may determine whether the electronic device supports ringtone synchronization for incoming calls. If the electronic device does not support ringtone synchronization for incoming calls, S1002 and S1003 are not executed.
  • the electronic device receives a first operation of the user.
  • the electronic device records the first time.
  • the electronic device in response to the first operation, may establish a synchronous connection with the vehicle-mounted device.
  • the time when the electronic device receives the user's first operation is the same or nearly the same (ie, the time difference is small) as the time when the synchronous connection is established between the electronic device and the vehicle-mounted device. That is to say, the first time may also be the time when a synchronous connection is established between the electronic device and the vehicle-mounted device.
  • a synchronous connection is established between the electronic device and the vehicle-mounted device, and the electronic device can communicate with the vehicle-mounted device
  • the vehicle-mounted device if the vehicle-mounted device does not support voice transmission when the user triggers an answering call through the electronic device, the synchronous connection between the electronic device and the vehicle-mounted device may be released. Specifically, the vehicle-mounted device receives voice data from the electronic device, and can send a release request message to the electronic device. The electronic device may receive the release request message from the vehicle-mounted device, and send a release response message to the vehicle-mounted device.
  • the electronic device records the second time.
  • the electronic device calculates a difference between the first time and the second time to obtain a first target difference.
  • the electronic device determines whether the first target difference is smaller than a 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.
  • the electronic device may execute S1209-S1215. If the first target difference is greater than the preset time threshold, the electronic device may execute S1216.
  • the electronic device records the third time.
  • the electronic device records the fourth time.
  • the electronic device calculates a difference between the third time and the fourth time to obtain a second target difference.
  • the electronic device determines whether the second target difference is smaller than a preset time threshold.
  • the electronic device may execute S1215. That is to say, if the duration of 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 execute S1215.
  • the electronic device may execute S1216. That is to say, if the duration of 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.
  • the electronic device adds the first device identifier to the blacklist.
  • the first target difference (or the first target difference and the second target difference) is less than the preset time threshold, indicating that the time spent on releasing the synchronous connection is relatively short.
  • the in-vehicle device releases the synchronous connection because it does not support voice transmission when the user triggers an incoming call through an electronic device, that is, the in-vehicle device does not support voice transmission when the user triggers an incoming call through an electronic device.
  • the electronic device does not add the first device identifier to the blacklist.
  • the first target difference (or the first target difference and the second target difference) is greater than the preset time threshold, indicating that it takes a long time to release the synchronous connection. In this way, it can be determined that the in-vehicle device does not release the synchronous connection because it does not support voice transmission when the user triggers an incoming call through the electronic device.
  • the call control method may include S1301-S1302.
  • the electronic device determines whether the first device identifier is in the blacklist.
  • the electronic device may determine whether there is an identifier identical to the first device identifier among the plurality of preset in-vehicle device identifiers.
  • the electronic device may execute S1302. That is to say, if there is an identifier identical to the first device identifier among the plurality of preset vehicle-mounted device identifiers, the electronic device may execute S1302. If the electronic device determines that the first device identifier is not in the blacklist, the electronic device may execute S1006-S1011 and S1302. That is to say, if there is no identifier identical to the first device identifier among the multiple preset vehicle-mounted device identifiers, the electronic device may execute S1006-S1011 and S1302.
  • the electronic device may send voice data to the vehicle-mounted device through the synchronous connection.
  • the in-vehicle device can play voice content. That is to say, 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 will not execute S1006-S1011 and S1302.
  • the electronic device determines to play the voice content through the electronic device.
  • the electronic device determines that the first device identifier is in the blacklist, it may be determined that the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device.
  • the electronic device can determine to play the voice content through the electronic device. That is to say, if the electronic device determines that the first device identifier is in the blacklist, the electronic device can play the voice content.
  • the electronic device may directly play the voice content. In this way, it can be avoided that neither the vehicle-mounted device nor the electronic device plays the voice content. In this way, it can be guaranteed that the user can listen to the complete voice content, which improves the user experience.
  • the call control method may include S1401-S1402.
  • the electronic device determines whether the first device identifier is in the blacklist.
  • the electronic device may execute S1402. That is to say, if there is an identifier identical to the first device identifier among the plurality of preset vehicle-mounted device identifiers, the electronic device may execute S1402. If the electronic device determines that the first device identifier is not in the blacklist, the electronic device may execute S1204-S1216, and then execute S1402. That is to say, if there is no identifier identical to the first device identifier among the multiple preset vehicle-mounted device identifiers, the electronic device may execute S1204-S1216, and then execute S1402.
  • the electronic device plays the voice content.
  • the electronic device determines that the first device identifier is in the blacklist, it may be determined that the vehicle-mounted device does not support voice transmission when the user triggers an incoming call through the electronic device.
  • the electronic device can determine to play the voice content through the electronic device.
  • the electronic device may release the synchronization connection.
  • the electronic device may release the synchronization connection.
  • the electronic device may not release the synchronization connection if the electronic device determines that the first device identifier is in the blacklist.
  • the electronic device may directly play the voice content. In this way, it can be avoided that neither the vehicle-mounted device nor the electronic device plays the voice content. In this way, it can be guaranteed that the user can listen to the complete voice content, which improves the user experience.
  • the electronic device may play the voice content through the first Bluetooth device.
  • the electronic device may play the voice content through the first Bluetooth device.
  • the method for the electronic device to play the voice content through the first Bluetooth device reference may be made to the introduction of the electronic device to play the voice content through the first Bluetooth device in the above embodiment, which will not be repeated here.
  • the electronic device may play the voice content through the first Bluetooth device. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the in-vehicle device may continuously improve the supported functions and features, so that the in-vehicle device supports voice transmission when the user triggers the answering of an incoming call through the electronic device. In this way, it may not be possible to accurately determine whether the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, and thus cannot determine whether to play voice content through the vehicle-mounted device only based on the above-mentioned blacklist.
  • the electronic device can update the blacklist. Afterwards, the electronic device can determine whether to play the voice content through the vehicle-mounted device according to the updated blacklist.
  • the embodiment of the present application does not limit the manner in which the electronic device updates the blacklist.
  • the electronic device can delete all preset vehicle-mounted device identifiers in the blacklist every time the electronic device is turned on, or at intervals of a preset period (for example, one day, three days, or ten days, etc.). .
  • a preset period for example, one day, three days, or ten days, etc.
  • the electronic device may not release the synchronization connection. If the synchronous connection between the electronic device and the vehicle-mounted device is not released within a preset period of time after the electronic device receives the first operation, the electronic device may delete the first device identifier from the blacklist. That is to say, if the electronic device maintains a synchronous connection with the vehicle-mounted device for longer than a preset time after receiving the first operation, the electronic device may delete the first device identifier from the blacklist.
  • the electronic device can delete the first device identifier from the blacklist.
  • the electronic device may determine to play the voice content through the vehicle-mounted device.
  • the vehicle-mounted device supports voice transmission when the user triggers to answer an incoming call through the electronic device, and the electronic device can play voice content through the vehicle-mounted device. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the electronic device can upload the blacklist to the server, and the server can receive and save the blacklist. Afterwards, the server can synchronize the list with other electronic devices. Moreover, the electronic device can also receive the blacklist from the server.
  • the embodiment of the present application does not limit the server.
  • the server can be a cloud server.
  • the server may be a physical server.
  • the electronic device may also save a white list, which stores identifiers of vehicle-mounted devices that support voice transmission when the user triggers the answering of an incoming call through the electronic device.
  • the electronic device can determine whether to play voice content through the vehicle-mounted device according to the white list. If the first device identifier exists in the white list, the electronic device can 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.
  • the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, and the electronic device determines to play the voice content through the vehicle-mounted device, the voice content may be leaked and the user experience will be reduced.
  • the vehicle-mounted device can determine whether to play the voice content through the vehicle-mounted device according to whether the target vehicle loaded with the vehicle-mounted device is in a driving state . Specifically, the vehicle-mounted device can detect whether the target vehicle is driving. If the target vehicle is not driving, the vehicle-mounted device may release the synchronization connection, or the vehicle-mounted device may refuse to establish the synchronization connection. Afterwards, the electronic device can play the voice content. That is to say, if the target vehicle is at a standstill (that is, the target vehicle is not driving), even if the vehicle-mounted device supports voice transmission when the user triggers an incoming call through the electronic device, the electronic device will still play the voice content.
  • the manner in which the on-vehicle device detects whether the target vehicle is driving can refer to the method for detecting whether the vehicle is driving in the conventional technology, which will not be repeated here.
  • the release of the synchronous connection by the vehicle-mounted device and the refusal of the establishment of the synchronous connection by the vehicle-mounted device reference may be made to the introduction in the foregoing embodiments, which will not be repeated here.
  • the target vehicle is not driving
  • the user's answering the call through the electronic device will not affect the user's driving of the target vehicle.
  • the electronic device does not play the voice content when playing the voice content. In this way, the privacy of the call can be improved, and the user experience is improved.
  • the on-board device can play voice content. That is to say, if the target vehicle is in a driving state (that is, the target vehicle is driving), and the vehicle-mounted device supports voice transmission when the user triggers an answering call through the electronic device, the vehicle-mounted device can play the voice content.
  • the vehicle-mounted device will play the voice content. In this way, not only can it be guaranteed that the user can listen to the complete voice content, but also the user does not need to hold the electronic device to make a call, which improves the user experience.
  • the electronic device can set whether to play voice content through the vehicle-mounted device.
  • the embodiment of the present application does not limit the manner in which the electronic device sets whether to play the voice content through the vehicle-mounted device.
  • the electronic device can set whether to play voice content through the vehicle-mounted device through setting options. For example, as shown in FIG. 15 , the electronic device may display a setting interface 1501, which includes a "vehicle device call" option 1502, and the "vehicle device call" option 1502 is used to control whether to play voice content through the car device.
  • the electronic device can set whether to play voice content through the vehicle-mounted device when receiving an incoming call.
  • a preset button is set in the electronic device, and the preset button is used to trigger the vehicle-mounted device to answer an incoming call. That is to say, in response to the first operation acting on the preset key, the electronic device may determine to play the voice content through the vehicle-mounted device. For another example, if the first operation is a preset operation (for example, a long-press operation or a double-tap operation), the electronic device may determine to play the voice content through the vehicle-mounted device.
  • the first operation is a preset operation (for example, a long-press operation or a double-tap operation)
  • the electronic device may determine to play the voice content through the vehicle-mounted device.
  • the electronic device sets whether to play the voice content through the vehicle-mounted device, which can ensure that the voice content is played in a manner set by the user. In this way, user experience can be improved.
  • the electronic device includes hardware structures and/or software modules corresponding to each function.
  • the steps of a call control method described in the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or by electronic equipment software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the embodiment of the present application can divide the call control device into functional modules or functional units according to the above method example, for example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one in a processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, or in the form of software function modules or functional units.
  • the division of modules or units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
  • the electronic device may include memory and one or more processors.
  • the memory is coupled to the processor.
  • the electronic device may also include a camera. Alternatively, the electronic device can be connected with an external camera.
  • the memory is used to store computer program code comprising computer instructions.
  • the processor executes the computer instructions, the electronic device can execute various functions or steps performed by the mobile phone in the above method embodiments.
  • the embodiment of the present application also provides a chip system, as shown in FIG. 16 , the chip system includes at least one processor 1601 and at least one interface circuit 1602 .
  • the processor 1601 and the interface circuit 1602 may be interconnected through wires.
  • interface circuit 1602 may be used to receive signals from other devices, such as memory of an electronic device.
  • the interface circuit 1602 may be used to send signals to other devices (such as the processor 1601).
  • the interface circuit 1602 can read instructions stored in the memory, and send the instructions to the processor 1601 .
  • the electronic device such as the mobile phone 200 shown in FIG. 2
  • the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium includes computer instructions.
  • the device executes various functions or steps executed by the mobile phone in the foregoing method embodiments.
  • the embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute each function or step performed by the mobile phone in the method embodiment above.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

一种通话的控制方法及电子设备,涉及电子设备技术领域,可以保障用户能够接听完整的语音内容。具体方案包括:电子设备可以获取第一设备标识,第一设备标识为车载设备的标识。之后,电子设备接收到来电。接着,电子设备可以接收用户的第一操作,第一操作用于触发接听来电。响应于第一操作,若多个预设车载设备标识中包括第一设备标识,电子设备则通过电子设备或者第一蓝牙设备播放语音内容,第一蓝牙设备为与电子设备建立连接的蓝牙设备。若多个预设车载设备标识中不包括第一设备标识,电子设备根据释放电子设备与车载设备之间的同步连接耗费的时长,将第一设备标识添加至黑名单。

Description

一种通话的控制方法及电子设备
本申请要求于2021年07月14日提交国家知识产权局、申请号为202110797271.4、发明名称为“一种通话的控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子设备技术领域,尤其涉及一种通话的控制方法及电子设备。
背景技术
随着电子技术的发展,大多数车辆中均安装有车载设备,该车载设备可以与电子设备(如手机、平板电脑或智能手表等)建立蓝牙(blue tooth)连接。在车载设备与电子设备建立蓝牙连接之后,车载设备可以输出电子设备中播放的音频数据,且电子设备中不会输出该音频数据。例如,以手机接收到来电为例。响应于用户作用于手机的接听电话操作,手机可以通过同步定向链接(Synchronous Connection Oriented,SCO)向车载设备传输语音数据,并由车载设备播放语音内容。但是,车载设备播放语音内容时,会通过免提方式外放,可能会泄露用户的隐私。
目前的技术方案中,为了避免泄露用户的隐私,在用户通过手机触发接听来电的情况下,手机通过SCO向车载设备传输语音数据。之后,车载设备可以断开SCO连接。在车载设备断开SCO连接之后,手机可以播放语音内容。
但是,车载设备与手机断开连接需要耗费一定时间。在车载设备与手机断开连接的过程中,车载设备与手机均无法播放语音内容。这样一来,可能导致用户漏掉部分语音内容,影响用户的使用体验。
发明内容
本申请提供一种通话的控制方法及电子设备,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。
第一方面,本申请提供一种通话的控制方法,应用于电子设备。该电子设备中保存有黑名单,黑名单包括多个预设车载设备标识,预设车载设备标识为不支持在用户通过电子设备触发接听来电的情况下进行语音传输的车载设备的标识。
该方法中,电子设备与车载设备建立蓝牙连接,电子设备可以获取第一设备标识,第一设备标识为车载设备的标识。之后,电子设备接收到来电,播放来电铃声进行来电提醒,并向车载设备发送来电指令。接着,电子设备可以接收用户的第一操作,第一操作用于触发接听来电。响应于第一操作,若多个预设车载设备标识中包括第一设备标识,电子设备则通过电子设备或者第一蓝牙设备播放语音内容,第一蓝牙设备为与电子设备建立连接的蓝牙设备。
可以理解的是,若电子设备确定第一设备标识在黑名单中,则可以确定车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。如此,电子设备可以直接通过电子设备或者第一蓝牙设备播放语音内容。进而可以避免车载设备和电子设备均未播放语音内容,保障了用户能够接听完整的语音内容,改善了用户的使用体 验。
若多个预设车载设备标识中不包括第一设备标识,电子设备根据释放电子设备与车载设备之间的同步连接耗费的时长,将第一设备标识添加至黑名单。
可以理解的是,电子设备根据释放同步连接耗费的时长,将第一设备标识添加至黑名单。如此,在电子设备再次与车载设备连接时,可以根据给名单确定车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输。从而避免车载设备和电子设备均未播放语音内容,保障了用户能够接听完整的语音内容,改善了用户的使用体验。
结合第一方面,在一种可能的设计方式中,电子设备可以记录第一时间和第二时间,第一时间为电子设备接收第一操作的时间,第二时间为电子设备接收第一操作之后,第一次释放同步连接的时间。之间,电子设备可以计算第一时间与第二时间之间的差值,得到第一目标差值。若第一目标差值小于预设时间阈值,电子设备再次建立与车载设备之间的同步连接,并记录第三时间,第三时间为电子设备接收第一操作之后,第二次建立同步连接的时间。之后,电子设备可以释放与车载设备之间的同步连接,并记录第四时间,第四时间为电子设备接收第一操作之后,第二次释放同步连接的时间。然后,电子设备可以计算第三时间与第四时间之间的差值,得到第二目标差值。若第二目标差值小于预设时间阈值,电子设备将第一设备标识添加至黑名单。
需要说明的是,车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,或者车载设备发生异常,均可以导致释放同步连接。因此,为了确定车载设备是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的,电子设备可以设定预设时间阈值。通常情况下,车载设备发生异常导致释放同步连接所耗费的时长,大于车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输导致释放同步连接所耗费的时长。
可以理解的是,第一目标差值和第二目标差值均小于预设时间阈值,说明释放同步连接耗费的时长较短。如此,可以确定车载设备是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的,即车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。并且,通过两次比较释放同步连接耗费的时长,能够更加准确地确定车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输,进而提高黑名单的准确性。
结合第一方面,在另一种可能的设计方式中,电子设备通过电子设备或者第一蓝牙设备播放语音内容。
可以理解的是,在电子设备释放与车载设备之间的同步连接之后,电子设备可以通过电子设备或者第一蓝牙设备播放语音内容。如此,可以保障用户能够接听语音内容。
结合第一方面,在另一种可能的设计方式中,若第一目标差值大于预设时间阈值,电子设备则通过电子设备或者第一蓝牙设备播放语音内容。
可以理解的是,第一目标差值大于预设时间阈值,说明释放同步连接耗费的时长较长。如此,可以确定车载设备不是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的。电子设备可以通过电子设备或者第一蓝牙设 备播放语音内容,保障用户能够接听语音内容。
结合第一方面,在另一种可能的设计方式中,电子设备支持来电铃声同步。电子设备建立与车载设备之间的同步连接。电子设备通过同步连接,向车载设备传输来电铃声,并指示车载设备播放来电铃声进行来电提醒。之后,电子设备释放与车载设备之间的同步连接。
结合第一方面,在另一种可能的设计方式中,电子设备不支持来电铃声同步。电子设备建立与车载设备之间的同步连接。之后,电子设备释放与车载设备之间的同步连接。
结合第一方面,在另一种可能的设计方式中,若多个预设车载设备标识中存在与第一设备标识相同的标识,且电子设备与车载设备之间的保持同步连接的时长大于预设时长,电子设备则从黑名单中删除第一设备标识。
可以理解的是,若在电子设备接收到第一操作之后的预设时长内,电子设备与车载设备之间未释放同步连接,则说明车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输。因此,电子设备可以将第一设备标识从黑名单中删除。
结合第一方面,在另一种可能的设计方式中,电子设备与多个蓝牙设备建立蓝牙连接,多个蓝牙设备包括车载设备和除车载设备以外的其他蓝牙设备。电子设备可以通过第一蓝牙设备播放语音内容,第一蓝牙设备为其他蓝牙设备中任一蓝牙设备。
可以理解的是,在电子设备与除车载设备以外的其他蓝牙设备建立连接的情况下,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以通过第一蓝牙设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
结合第一方面,在另一种可能的设计方式中,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以显示第一提示消息,第一提示消息用于提示车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
可以理解的是,电子设备显示第一提示消息,可以使用户了解车载设备不播放语音内容的原因。如此,可以减少用户在使用过程中的困惑,提升用户的使用体验。
第二方面,本申请提供一种通话的控制方法,应用于电子设备。
该方法中,电子设备与车载设备建立蓝牙连接。电子设备可以接收来自车载设备的蓝牙支持功能BRSF消息,BRSF消息包括第一指示信息,第一指示信息用于指示车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输。之后,电子设备接收到来电,播放来电铃声进行来电提醒,并向车载设备发送来电指令。接着,电子设备可以接收用户的第一操作,第一操作用于触发接听来电。响应于第一操作,若第一指示信息指示车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则通过车载设备播放语音内容。若第一指示信息指示车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以通过电子设备或者第一蓝牙设备播放语音内容,第一蓝牙设备为与电子设备建立连接的蓝牙设备。
可以理解的是,电子设备接收到BRSF消息之后,可以确定车载设备是否支持在 用户通过电子设备触发接听来电的情况下进行语音传输。若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备或者第一蓝牙设备可以直接播放语音内容。如此,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,车载设备可以直接播放语音内容。如此,可以保障用户能够听到完整的语音内容,改善了用户的使用体验。
结合第二方面,在一种可能的设计方式中,第一指示信息包括:第一数值或者第二数值;第一数值用于指示车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,第二数值用于指示车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
结合第二方面,在另一种可能的设计方式中,电子设备支持来电铃声同步,来电铃声同步为电子设备向车载设备同步来电铃声的功能。电子设备可以向车载设备发送同步请求消息,同步请求消息用于请求建立电子设备与车载设备之间的同步连接。电子设可以备接收来自车载设备的同步响应消息,同步响应消息用于指示已建立同步连接。之后,电子设备可以通过同步连接,向车载设备传输来的来电铃声,并指示车载设备播放来电铃声进行来电提醒。
结合第二方面,在另一种可能的设计方式中,电子设备可以通过同步连接,向车载设备发送语音数据,并指示车载设备播放语音数据对应的语音内容。
结合第二方面,在另一种可能的设计方式中,电子设备可以向车载设备发送释放请求消息,释放请求消息用于指示释放同步连接。电子设备接收来自车载设备的释放响应消息,释放响应消息用于指示已释放同步连接。
结合第二方面,在另一种可能的设计方式中,电子设备不支持来电铃声同步。电子设备向车载设备发送同步请求消息,同步请求消息用于请求建立电子设备与车载设备之间的同步连接。电子设备接收来自车载设备的同步响应消息,同步响应消息用于指示已建立同步连接。
第三方面,本申请提供一种电子设备,该电子设备包括:存储器、显示屏和一个或多个处理器,上述存储器、显示屏与上述处理器耦合;存储器用于存储计算机程序代码,计算机程序代码包括计算机指令;当计算机指令被上述一个或多个处理器执行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第四方面,本申请提供一种芯片系统,该芯片系统应用于电子设备。该芯片系统包括一个或多个接口电路和一个或多个处理器。该接口电路和处理器通过线路互联。该接口电路用于从电子设备的存储器接收信号,并向处理器发送该信号,该信号包括存储器中存储的计算机指令。当处理器执行所述计算机指令时,电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第五方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第六方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。
可以理解地,上述提供的第二方面所述的方法,第三方面及其任一种可能的设计方式所述的电子设备,第四方面所述的芯片系统,第五方面所述的计算机可读存储介质,第六方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种显示界面的实例示意图;
图2为本申请实施例提供的一种电子设备的硬件结构示意图;
图3为本申请实施例提供的一种车载设备的硬件结构示意图;
图4为本申请实施例提供的一种通话的控制方法流程图;
图5为本申请实施例提供的另一种通话的控制方法流程图;
图6为本申请实施例提供的另一种显示界面的实例示意图;
图7为本申请实施例提供的另一种通话的控制方法流程图;
图8为本申请实施例提供的另一种通话的控制方法流程图;
图9为本申请实施例提供的另一种通话的控制方法流程图;
图10为本申请实施例提供的另一种通话的控制方法流程图;
图11为本申请实施例提供的另一种通话的控制方法流程图;
图12为本申请实施例提供的另一种通话的控制方法流程图;
图13为本申请实施例提供的另一种通话的控制方法流程图;
图14为本申请实施例提供的另一种通话的控制方法流程图;
图15为本申请实施例提供的另一种显示界面的实例示意图;
图16为本申请实施例提供的一种芯片系统的结构组成示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
本申请中字符“/”,一般表示前后关联对象是一种“或者”的关系。例如,A/B可以理解为A或者B。
术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括其他没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。
另外,在本申请实施例中,“示例性的”、或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”、或 者“例如”等词旨在以具体方式呈现概念。
为了便于理解本申请的技术方案,在对本申请实施例的通话的控制方法进行详细介绍之前,先对对常规技术进行介绍。
随着电子技术的发展,大多数车辆中均安装有车载设备,该车载设备可以通过蓝牙与电子设备建立无线连接。在车载设备与电子设备建立蓝牙连接之后,车载设备可以输出电子设备中播放的音频数据,且电子设备中不会输出该音频数据。但是,车载设备播放语音内容时,会通过免提方式外放,可能会泄露用户的隐私。
常规技术中,在车载设备与电子设备建立蓝牙连接的情况下,响应于用户作用于电子设备的接听电话操作,电子设备可以向车载设备同步语音内容。示例性的,如图1中的(a)所示,电子设备接收到来电之后,可以显示来电界面101,该来电界面101可以包括接听按钮103。响应于用户作用于接听按钮103的操作(该操作可以为点击、长按、滑动等,例如该操作为操作A),电子设备可以通过SCO向车载设备同步语音数据。车载设备可以显示图1中的(b)所示的通话界面102。若车载设备不支持播放语音内容,车载设备可以释放SCO连接,即主动断开与电子设备之间建立的SCO连接。具体的,车载设备接收到来自电子设备的语音数据之后,若车载设备不支持播放语音内容,车载设备可以向电子设备发送断开连接请求,该断开连接请求用于指示断开与电子设备之间的SCO连接。之后,电子设备接收到断开连接请求,可以向车载设备发送断开连接消息,该断开连接消息用于指示已经成功断开电子设备与车载设备之间的SCO连接。并且,车载设备发生异常也会导致车载设备释放SCO连接。因此,电子设备可能会重新建立与车载设备之间的SCO连接,以保障电子设备与车载设备之间可以同步数据。这样一来,车载设备可能会多次释放SCO连接。在车载设备一次或者多次释放SCO连接之后,电子设备则不向车载设备同步语音数据,并且电子设备可以播放语音内容。
但是,在车载设备释放SCO连接的过程(或者电子设备重新建立SCO连接的过程)中,电子设备仍然会向车载设备同步语音数据。并且,在车载设备释放SCO连接的过程(或者电子设备重新建立SCO连接的过程)中,电子设备和车载设备均无法播放语音内容。这样一来,可能导致用户漏掉部分语音内容,影响用户的使用体验。
为此,本申请实施例提供一种通话的控制方法。该方法可以应用于电子设备与车载设备建立蓝牙连接时,电子设备接听来电。该方法中,响应于用户作用于电子设备的接听操作,电子设备可以确定车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输。若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以确定由车载设备播放语音内容。这样一来,在电子设备触发接听来电之后,车载设备可以直接播放语音内容。如此,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。并且,无需用户通过电子设备进行通话,使用户通话更加便利。
若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以确定由电子设备播放语音内容。也就是说,在电子设备触发接听来电之后,电子设备不会向车载设备同步语音数据,电子设备可以直接播放语音内容。这样一来,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。
示例性的,本申请实施例中的电子设备可以是平板电脑、手机、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等设备,本申请实施例对该电子设备的具体形态不作特殊限制。
本申请提供的一种通话的控制的方法的执行主体可以为通话的控制装置,该执行装置可以为图2所示的电子设备。同时,该执行装置还可以为该电子设备的中央处理器(Central Processing Unit,CPU),或者该电子设备中的用于控制通话的控制模块。本申请实施例中以电子设备执行通话的控制方法为例,说明本申请实施例提供的通话的控制方法。
请参考图2,本申请这里以电子设备为图2所示的手机200为例,对本申请提供的电子设备进行介绍。其中,图2所示的手机200仅仅是电子设备的一个范例,并且手机200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图2中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
如图2所示,手机200可以包括:处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。
其中,上述传感器模块280可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器和骨传导传感器等传感器。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是手机200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器 (universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机200的结构限定。在另一些实施例中,手机200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为电子设备供电。
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。在一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。
手机200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。在一些实施例中,手机200的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得手机200可以通过无线通信技术与网络以及其他设备通信。例如,本申请实施例中,手机200可以通过无线通信技术向车载设备发送上述语音数据。
天线1和天线2用于发射和接收电磁波信号。手机200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块250可以提供应用在手机200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。
移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。
无线通信模块260可以提供应用在手机200上的包括无线局域网(wireless local area networks,WLAN)(如(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。例如,本申请实施例中,手机200可以通过无线通信模块260接入Wi-Fi网络。
无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信 号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
手机200通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。该显示屏294包括显示面板。例如,本申请实施例中,显示屏294可以用于显示来电界面和通话界面等。
手机200可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。ISP用于处理摄像头293反馈的数据。摄像头293用于捕获静态图像或视频。在一些实施例中,手机200可以包括1个或N个摄像头293,N为大于1的正整数。
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行手机200的各种功能应用以及数据处理。例如,在本申请实施例中,处理器210可以通过执行存储在内部存储器221中的指令,内部存储器221可以包括存储程序区和存储数据区。
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
手机200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和手机200的接触和分离。手机200可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。
尽管图2未示出,手机200还可以闪光灯、微型投影装置、近场通信(Near Field Communication,NFC)装置等,在此不再赘述。
可以理解的是,本实施例示意的结构并不构成对手机200的具体限定。在另一些实施例中,手机200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
请参考图3,为本申请实施例提供的车载设备的硬件结构示意图。如图3所示,车载设备300可以包括:处理器310、存储器320、传感器330、无线通信模块340、受话器350以及麦克风360。
其中,存储器320可以用于存储应用程序代码,如用于使得车载设备300与上述电子设备(如手机200)进行配对连接的应用程序代码。处理器310可以控制执行上述应用程序代码,以实现本申请实施例中车载设备300的功能。
存储器320中还可以存储有用于唯一标识该车载设备的蓝牙地址另外,该存储器320中还可以存储有与该车载设备之前成功配对过的电子设备的连接数据。例如,该连接数据可以为与该车载设备成功配对过的电子设备的蓝牙地址。基于该连接数据,该车载设备能够与该电子设备自动配对,而不必配置与其之间的连接,如进行合法性验证等。上述蓝牙地址可以为媒体访问控制(media access control,MAC)地址。
传感器330可以包括触摸传感器,用于检测用户的触摸操作。在一些实施例中,该车载设备还可以包括指纹传感器,用于检测用户指纹,识别用户身份等。在另一些实施例中,该车载设备还可以包括环境光传感器,可以根据感知的环境光的亮度,自适应调节一些参数,如音量大小。
无线通信模块340,用于支持车载设备300与各种电子设备,如上述手机200之间的短距离数据交换。在一些实施例中,该无线通信模块340可以为蓝牙收发器或者射频(Radio Frequency,RF)电路。车载设备300可以通过该蓝牙收发器与上述手机200之间建立无线连接,以实现两者之间的短距离数据交换。
至少一个受话器350,也可以称为“听筒”,可以用于将音频电信号转换成声音信号并播放。例如,当车载设备300作为上述手机200的音频输出设备时,受话器350可以将接收到的音频电信号转换为声音信号并播放。
至少一个麦克风360,也可以称为“话筒”,“传声器”,用于将声音信号转换为音频电信号。例如,当车载设备300作为上述手机200的音频输入设备时,在用户说话(如通话或发语音消息)的过程中,麦克风360可以采集用户的声音信号,并将其转换为音频电信号。上述音频电信号即为本申请实施例中的音频数据。在一些实施例中,该麦克风360可以为前馈式麦克风。
可以理解的是,本申请实施例示意的结构并不构成对车载设备300的具体限定。其可以具有比图3中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,该车载设备300还可以包括显示屏(可以显示应用图标和通话界面等)等部件。图3中所示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
以下实施例中的方法均可以在具有上述硬件结构的电子设备和车载设备中实现。
本申请实施例提供一种通话的控制的方法,如图4所示,该通话的控制方法可以包括S401-S406。
S401、电子设备获取第一指示信息。
其中,该第一指示信息用于指示车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输。其中,本申请实施例对进行传输的方式不作限定。例如,电子设备可以通过SCO与车载设备进行语音传输。又例如,电子设备可以使用扩展同 步定向链接(Extended Synchronous Connection Oriented,ESCO)与车载设备进行语音传输。
需要说明的是,用户通过电子设备触发接听来电是指,在电子设备接收到来电时,电子设备接收到用户的接听来电操作,该接听来电操作用于触发接听来电。示例性的,结合图1中的(a)所示,在电子设备接收到来电时,电子设备可以接收到用户作用于接听按钮103的操作。也就是说,图1中的(a)的场景即为用户通过电子设备触发接听来电。
需要说明的是,车载设备接收到用户的接听来电操作,不视为用户通过电子设备触发接听来电。
在本申请实施例中,在电子设备与车载设备建立蓝牙连接的过程中,电子设备可以获取第一指示信息。
一种可能的实现方式中,车载设备中保存有该第一指示信息。在电子设备与车载设备建立蓝牙连接的过程中,车载设备可以向电子设备发送该第一指示信息。之后,电子设备可以接收来自电子设备的第一指示信息。
如图5所示,S401可以包括S501-S502。
S501、车载设备可以向电子设备发送蓝牙支持功能消息。
其中,第一蓝牙支持功能(Bluetooth Retrieve Supported Features,BRSF)消息携带有第一指示信息。该BRSF消息用于指示车载设备能够支持的功能特性。例如,车载设备能够支持的功能特性可以包括:车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输、车载设备支持三方通话等。
一种可能的实现方式中,在电子设备与车载设备建立蓝牙连接的过程中,该车载设备可以向电子设备发送BRSF消息。示例性的,在电子设备与车载设备建立蓝牙免提规范(Hands-Free Profile,HFP)连接的过程中(例如服务级别连接(Service Level Connection,SLC)),车载设备可以向电子设备发送第一BRSF命令(即BRSF消息),该第一BRSF命令携带有BitMap格式的第一指示信息。例如,该第一BRSF命令可以为“AT+BRSF=<HF supported features>”。
一种可能的设计中,第一指示信息可以占用BitMap中至少一个bit位。例如,第一指示信息可以占用BitMap中一个bit位(即该第一指示信息为1bit)。又例如,第一指示信息可以占用BitMap中三个bit位(即该第一指示信息为3bit)。以下第一指示信息占用BitMap中一个bit位为例,对本申请实施例进行介绍。在第一指示信息占用BitMap中一个bit位的情况下,该第一指示信息可以位于BitMap的保留位中任意一个bit位,BitMap的保留位用于指示未被占用的bit位。也就是说,本申请实施例对第一指示信息占用的bit位不作限定。示例性的,假如BitMap的保留位包括BitMap中第13个bit位至BitMap中第32个bit位。该第一指示信息可以位于BitMap中第13个bit位。该第一指示信息也可以位于BitMap中第15个bit位。该第一指示信息也可以位于BitMap中第30个bit位。
S502、电子设备接收到来自车载设备的蓝牙支持功能消息。
可选的,电子设备接收到来自车载设备的BRSF消息,可以向车载设备发送第一响应消息。该第一响应消息用于指示电子设备成功接收到该BRSF消息。可选的,电 子设备可以向车载设备发送BRSF命令,该BRSF命令用于指示电子设备能够支持的功能。例如,电子设备能够支持的功能特性可以包括:电子设备支持来电铃声、电子设备支持三方通话等。
S402、电子设备接收到来电。
在一些实施例中,电子设备接收到来电,可以播放来电铃声进行来电提醒(例如图1中的(a))。
S403、电子设备接收用户的第一操作。
其中,第一操作用于触发接听来电。该第一操作为作用于电子设备的操作(如图1中的(a)所示的操作A)。本申请实施例对第一操作不作限定。例如,该第一操作可以为滑动操作。又例如,该第一操作可以为点击操作。又例如,该第一操作可以为长按操作。
在本申请实施例中,在电子设备接收到来电之后,用户可以向电子设备输入第一操作。电子设备可以接收到用户的第一操作。
S404、响应于第一操作,电子设备根据第一指示信息,确定车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输。
在一些实施例中,若电子设备确定车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以执行S405。
在一些实施例中,若电子设备确定车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以执行S406。
S405、电子设备确定通过车载设备播放语音内容。
在本申请实施例中,若电子设备确定车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以确定通过车载设备播放语音内容。
在一些实施例中,电子设备确定通过车载设备播放语音内容之后,电子设备可以通过SCO或者ESCO与车载设备进行语音传输。之后,车载设备可以播放语音内容。该语音内容用于指示电子设备传输的语音数据。
可以理解的是,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备向车载设备传输语音数据之后,车载设备不会断开与手机之间的连接(如SCO连接),而是可以直接播放语音内容。如此,可以保障用户能够听到完整的语音内容,改善了用户的使用体验。
并且,用户通过电子设备进行通话时,可能需要手持电子设备。而用户通过车载设备进行通话时无需手持车载设备。如此,可以使用户通话更加便利。
S406、电子设备确定通过电子设备或者第一蓝牙设备播放语音内容。
其中,第一蓝牙设备为与电子设备建立蓝牙连接的多个蓝牙设备中,除车载设备以外的其他蓝牙设备。该至少一个蓝牙设备包括车载设备。本申请实施例对除车载设备以外的其他蓝牙设备不作限定。例如,蓝牙设备可以为蓝牙音响、蓝牙手环或者蓝牙耳机等。
在一些实施例中,电子设备可以与多个蓝牙设备建立蓝牙连接。该多个蓝牙设备包括车载设备和除车载设备以外的其他蓝牙设备。若电子设备确定车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以从其他蓝牙设 备中确定第一蓝牙设备。之后,电子设备可以确定通过第一蓝牙设备播放语音内容。可选的,电子设备可以确定通过电子设备播放语音内容。
可以理解的是,在电子设备与除车载设备以外的其他蓝牙设备建立连接的情况下,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以通过第一蓝牙设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
需要说明的是,本申请实施例对第一蓝牙设备不作限定。
一种可能的设计中,第一蓝牙设备可以为其他蓝牙设备中任一蓝牙设备。示例性的,假如其他蓝牙设备包括蓝牙音响、蓝牙手环和蓝牙耳机。第一蓝牙设备可以为蓝牙音响;或者,第一蓝牙设备可以为蓝牙手环;或者,第一蓝牙设备可以为蓝牙耳机。
另一种可能的设计中,第一蓝牙设备可以为其他蓝牙设备中使用频率最高的蓝牙设备。其中,蓝牙设备的使用频率用于指示电子设备与蓝牙设备建立蓝牙连接的频率。本申请实施例对使用频率不作限定。例如,该使用频率可以为每天电子设备与蓝牙设备建立蓝牙连接的次数。又例如,该使用频率可以为每周电子设备与蓝牙设备建立蓝牙连接的次数。具体的,电子设备可以保存与电子设备建立过蓝牙连接的蓝牙设备的使用频率,以及蓝牙设备的标识与蓝牙设备的使用频率之间的关系。其中,蓝牙设备的标识用于标识蓝牙设备。本申请实施例对蓝牙设备的标识不作限定。例如,蓝牙设备的标识可以为蓝牙设备的媒体存取控制(Media Access Control,MAC)地址。又例如,蓝牙设备的标识可以为蓝牙设备的设备标识(device ID)。
示例性的,如表1所示,其示出了蓝牙设备的标识与蓝牙设备的使用频率之间的关系。
表1
蓝牙设备的标识 蓝牙设备的使用频率
标识A 7
标识B 2
标识C 5
也就是说,标识为标识A的蓝牙设备的使用频率为7,标识为标识B的蓝牙设备的使用频率为2,标识为标识C的蓝牙设备的使用频率为5。
电子设备可以获取与电子设备建立蓝牙连接的其他蓝牙设备的标识。之后,电子设备可以根据其他蓝牙设备的标识,以及蓝牙设备的标识与蓝牙设备的使用频率之间的关系,确定其他蓝牙设备中每个蓝牙设备的使用频率。接着,电子设备可以根据每个蓝牙设备的使用频率,确定第一蓝牙设备。
可选的,上述使用频率还可为使用时长和使用次数等,本申请实施例对此不作限定。具体对于电子设备根据使用时长或者使用次数等确定第一蓝牙设备的方式,可以参考上述实施例,此处不予赘述。
可以理解的是,第一蓝牙设备为其他蓝牙设备中使用频率最高的蓝牙设备。也就是说,电子设备可以通过使用频率最高的蓝牙设备播放语音内容。如此,可以根据用户的使用习惯接听来电,改善了用户的使用体验。
另一种可能的设计中,第一蓝牙设备可以为在电子设备与车载设备建立蓝牙连接 之前,与电子设备建立蓝牙连接的蓝牙设备。示例性的,假如在电子设备与车载设备建立蓝牙连接之前,电子设备与蓝牙耳机建立蓝牙连接。则第一蓝牙设备可以为蓝牙耳机。
另一种可能的设计中,第一蓝牙设备为其他蓝牙设备中优先级最高的蓝牙设备。具体的,电子设备中保存有多种设备的优先级。其中,设备的优先级用于表征蓝牙设备播放电子设备的语音内容时,泄露语音内容的概率。设备的优先级越高,蓝牙设备播放电子设备的语音内容时泄露语音内容的概率越小。设备的优先级越低,蓝牙设备播放电子设备的语音内容时泄露语音内容的概率越大。
示例性的,多种设备包括:耳机类型设备、穿戴类型设备和音响类型设备。耳机类型设备的优先级高于穿戴类型设备的优先级,穿戴类型设备的优先级高于音响类型设备的优先级。电子设备可以获取其他蓝牙设备中每个蓝牙设备的设备类型。之后,电子设备可以根据其他蓝牙设备的设备类型,以及多种设备的优先级,确定其他蓝牙设备中每个蓝牙设备的优先级。然后,电子设备可以根据每个蓝牙设备的优先级,确定第一蓝牙设备。示例性的,假如电子设备与蓝牙耳机、蓝牙手表、蓝牙音响之间均建立蓝牙连接,电子设备则可以确定第一蓝牙设备为蓝牙耳机。假如电子设备与蓝牙手表、蓝牙音响之间建立蓝牙连接,电子设备则可以确定第一蓝牙设备为蓝牙手表。
可以理解的是,第一蓝牙设备为其他蓝牙设备中优先级最高的蓝牙设备。也就是说,电子设备可以通过泄露语音内容概率最低的蓝牙设备播放语音内容。如此,可以降低泄露用户隐私的概率,提高了语音通话的安全性,改善了用户的使用体验。
在一些实施例中,电子设备与车载设备建立蓝牙连接,且未与其他蓝牙设备建立蓝牙连接。若电子设备确定车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以确定通过电子设备播放语音内容。
可以理解的是,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以直接播放语音内容。如此,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。
需要说明的是,在电子设备与车载设备建立蓝牙连接的情况下,若车载设备未播放语音内容,而是由电子设备或者蓝牙设备播放语音内容,可能会使用户产生困惑。
在一些实施例中,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,在电子设备确定通过电子设备或者第一蓝牙设备播放语音内容之后,电子设备可以显示第一提示消息,该第一提示消息用于提示车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
示例性的,在电子设备确定通过电子设备或者第一蓝牙设备播放语音内容之后,电子设备可以显示如图6所示的提示消息601,该提示消息601可以为“提醒,当前车载设备不支持在手机侧触发接听来电的情况下,接听语音通话。”可选的,该提示消息601还可以用于指示当前播放语音内容的设备。例如,假如电子设备通过蓝牙耳机播放语音内容,该提示消息601还可以包括“注意,当前进行语音通话的设备为蓝牙耳机!”。
需要说明的是,本申请实施例对第一提示消息的显示方式不作限定。例如,电子设备可以通过通知消息显示第一提示消息。又例如,电子设备可以在通知栏显示第一 提示消息。又例如,电子设备可以在弹出框显示第一提示消息。
可以理解的是,电子设备显示第一提示消息,可以使用户了解车载设备不播放语音内容的原因。如此,可以减少用户在使用过程中的困惑,提升用户的使用体验。
在一些实施例中,第一指示信息可以为第一数值或者第二数值。其中,第一数值用于指示车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,第二数值用于指示车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。示例性的,假如第一指示信息为BitMap中“AG answer”bit位对应的信息,则“AG answer”bit位可以为第一数值,也可以为第二数值。本申请实施例对第一数值和第二数值不作限定。例如,第一数值可以为1,第二数值可以为0。又例如,第一数值可以为0,第二数值可以为1。
需要说明的是,在本申请实施例中,电子设备可以建立与车载设备之间的同步连接。其中,该同步连接用于电子设备与车载设备之间传输语音数据。也就是说,车载设备播放的语音内容为电子设备通过同步连接向车载设备发送的语音内容。本申请实施例对该同步连接不作限定。例如,该同步连接可以为SCO连接。又例如,该同步连接可以为ESCO连接。又例如,该同步连接也可以是同步语音数据的其他连接。
需要说明的是,在本申请实施例中,电子设备建立与车载设备之间的同步连接的时机,与电子设备是否支持来电铃声同步相关,来电铃声同步为电子设备向车载设备同步来电铃声的功能。若电子设备支持来电铃声同步,电子设备可以在电子设备接收到来电之后,建立与车载设备之间的同步连接。若电子设备不支持来电铃声同步,电子设备则不会在电子设备接收到来电之后,建立与车载设备之间的同步连接。可选的,若电子设备不支持来电铃声同步,电子设备可以在电子设备接收到第一操作(即用户通过电子设备触发接听来电)之后,建立与车载设备之间的同步连接。
在本申请实施例中,电子设备可以根据第二指示信息,确定电子设备是否支持来电铃声同步,该第二指示信息用于指示电子设备是否支持来电铃声同步。具体的,电子设备可以获取第二指示信息。示例性的,该第二指示信息可以为BitMap格式中“in-band ring tone capability”bit位。若BitMapBitMap格式中“in-band ring tone capability”bit位为0(即第二指示信息为0),电子设备则确定电子设备不支持来电铃声同步。若BitMap格式中“in-band ring tone capability”bit位为1(即第二指示信息为1),电子设备则确定电子设备支持来电铃声同步。
以下以电子设备支持来电铃声同步为例,介绍本申请实施例的方法。如图7所示,在S502之后,该通话的控制方法可以包括S701-S712。
S701、在电子设备接收到来电时,电子设备向车载设备发送来电指令。
其中,该来电指令用于指示电子设备接收到来电。
示例性的,在电子设备接收到来电时,电子设备可以向车载设备发送第一CIEV命令(即来电指令),该第一CIEV命令包括来电指示信息,该来电指示信息用于指示电子设备接收到来电。例如,该来电指示信息可以为“callsetup=1”。
在本申请实施例中,在电子设备接收到来电时,电子设备可以向车载设备发送来电指令。之后,车载设备可以接收到来自电子设备的来电指令。可选的,在车载设备接收到来自电子设备的来电指令之后,车载设备可以显示来电提醒界面。车载设备可 以接收用户作用于来电提醒界面的接听来电操作,以触发接听来电。
在一些实施例中,响应于电子设备接收到来电,电子设备可以确定电子设备是否支持来电铃声同步。可选的,在电子设备与车载设备建立蓝牙连接的过程中,电子设备可以确定电子设备是否支持来电铃声同步。若电子设备支持来电铃声同步,电子设备则可以执行S702。
需要说明的是,电子设备确定电子设备是否支持来电铃声同步的方式,可以参考上述实施例中电子设备确定电子设备是否支持来电铃声同步的方法,此处不予赘述。
S702、电子设备向车载设备发送同步请求消息。
其中,该同步请求消息用于请求建立同步连接。示例性的,该同步请求消息可以为LMP_SCO_LINK_REQ消息或者LMP_eSCO_LINK_REQ消息。
在本申请实施例中,若电子设备支持来电铃声同步,电子设备接收到来电之后,电子设备则可以向车载设备发送同步请求消息。
S703、车载设备向电子设备发送同步响应消息。
其中,同步响应消息用于指示已成功建立同步连接。示例性的,该同步响应消息可以为LMP_ACCEPT消息或者LMP_ACCEPT_EXT消息。
在本申请实施例中,车载设备接收到来自电子设备的同步请求消息,可以向电子设备发送同步响应消息。之后,电子设备可以接收到来自车载设备的同步响应消息。也就是说,电子设备与车载设备之间已成功建立同步连接。
需要说明的是,本申请实施例对电子设备与车载设备之间建立同步连接的过程不作限定。示例性的,车载设备接收到来电指令之后,若电子设备支持来电铃声同步,车载设备可以向电子设备发送同步请求消息。之后,电子设备可以向车载设备发送同步响应消息。
在一些实施例中,在电子设备接收到来电之后,电子设备可以播放来电铃声。在电子设备与车载设备之间成功建立同步连接之后,电子设备可以通过同步连接向车载设备传输来电铃声,指示车载设备播放来电铃声进行来电提醒。之后,车载设备可以播放该来电铃声。示例性的,假如同步连接为SCO连接,电子设备可以通过SCO向车载设备发送来电铃声数据。
S704、电子设备接收用户的第一操作。
在一些实施例中,响应于第一操作,电子设备可以向车载设备发送接听指令,该接听指令用于指示已接听来电。示例性的,响应于第一操作,电子设备可以向车载设备发送第二CIEV命令(即接听指令),该CIEV命令包括接听指示信息,该接听指示信息用于指示已接听来电。例如,该接听指示信息可以为“call=1”。
S705、响应于第一操作,电子设备确定第一指示信息是否为第一数值。
在一些实施例中,若第一指示信息为第一数值,电子设备则可以执行S706-S708。也就是说,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以执行S706-S708。
在一些实施例中,若第一指示信息为第二数值,电子设备则可以执行S709或者S710-S712。也就是说,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以执行S709;或者,若车载设备支持在用户通过电子设备 触发接听来电的情况下进行语音传输,电子设备则可以执行S710-S712。
S706、电子设备确定通过车载设备播放语音内容。
在本申请实施例中,若第一指示信息为第一数值,电子设备则确定通过车载设备播放语音内容。也就是说,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以确定通过车载设备播放语音内容。
S707、电子设备向车载设备发送语音数据。
在本申请实施例中,电子设备确定通过车载设备播放语音内容,可以通过同步连接向车载设备发送语音数据指示车载设备播放语音数据对应的语音内容。例如,电子设备可以通过SCO向车载设备发送语音数据。
可以理解的是,由于该电子设备支持来电铃声同步,电子设备可以在接收到来电之后与车载设备建立同步连接。因此,在S707中,电子设备向车载设备发送语音数据时,电子设备无需建立同步连接。
S708、车载设备接收到来自电子设备的语音数据,播放语音内容。
可以理解的是,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备向车载设备传输语音数据之后,车载设备不会断开与电子设备之间的同步连接(如SCO连接),而是可以直接播放语音内容。如此,可以保障用户能够听到完整的语音内容,改善了用户的使用体验。
并且,用户通过电子设备进行通话时,可能需要手持电子设备。而用户通过车载设备进行通话时无需手持车载设备。如此,可以使用户通话更加便利。
S709、电子设备确定通过电子设备播放语音内容。
在本申请实施例中,若第一指示信息为第二数值,电子设备则确定通过电子设备播放语音内容。
在一些实施例中,电子设备确定通过电子设备播放语音内容之后,电子设备可以不断开与车载设备之间的同步连接。具体的,若第一指示信息为第二数值,电子设备可以将声音通道切换至电子设备,并保留电子设备与车载设备之间的同步连接,例如SCO连接。也就是说,电子设备可以在播放语音内容的同时,保持与车载设备之间的同步连接。
需要说明的是,电子设备播放语音内容时,不需要同步连接传输语音数据。若电子设备仍然与车载设备建立同步连接,可能会增加电子设备的功耗。
在一些实施例中,电子设备确定通过电子设备播放语音内容之后,电子设备可以释放与车载设备之间的同步连接,即电子设备可以断开与车载设备之间的同步连接。
如图8所示,在电子设备确定通过电子设备播放语音内容,即S709之后,该通话的控制方法还可以包括S801-S802。
S801、电子设备向车载设备发送释放请求消息。
其中,该释放请求消息用于指示释放同步连接。示例性,该释放请求消息可以为LMP_REMOVE_SCO_LINK_REQ消息或者LMP_REMOVE_eSCO_LINK_REQ消息。
S802、车载设备向电子设备发送释放响应消息。
其中,该释放响应消息用于指示已成功释放同步连接。示例性的,该释放响应消息可以为LMP_ACCEPT消息或者LMP_ACCEPT_EXT消息。
在本申请实施例中,车载设备接收到来自电子设备的释放请求消息,可以向电子设备发送释放响应消息。之后,电子设备可以接收来自车载设备的释放响应消息。
可以理解的是,电子设备释放与车载设备之间的同步连接,可以减少电子设备的功耗。如此,可以增加电子设备的使用时长,改善了用户的使用体验。
S710、电子设备确定通过第一蓝牙设备播放语音内容。
在本申请实施例中,若第一指示信息为第二数值,且电子设备与除车载设备以外的其他蓝牙设备建立蓝牙连接,电子设备则确定通过第一蓝牙设备播放语音内容。其中,其他蓝牙设备包括第一蓝牙设备。
需要说明的是,本申请实施例对第一蓝牙设备不作限定。具体对于第一蓝牙设备的说明,以及电子设备确定第一蓝牙设备的方式,可以参考上述实施例中的介绍,此处不予赘述。
在一些实施例中,电子设备确定第一蓝牙设备播放语音内容之后,电子设备可以释放与车载设备之间的同步连接。也就是说,在电子设备执行S710之后,电子设备可以执行S801,车载设备可以执行S802。
S711、电子设备向第一蓝牙设备发送同步请求消息。
S712、第一蓝牙设备向电子设备发送同步响应消息。
在本申请实施例中,第一蓝牙设备接收到来自电子设备的同步请求消息,可以向电子设备发送同步响应消息。也就是说,电子设备可以通过同步连接向第一蓝牙设备发送语音数据。
可以理解的是,在电子设备与除车载设备以外的其他蓝牙设备建立连接的情况下,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以通过第一蓝牙设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
在另一些实施例中,车载设备可能不支持来电铃声同步。若电子设备不支持来电铃声同步,在电子设备接收到来电之后,电子设备和车载设备不会执行S702和S703,即电子设备不会建立与车载设备之间的同步连接。
以下以电子设备不支持来电铃声同步为例,介绍本申请实施例的方法。如图9所示,在S502之后,该通话的控制方法可以包括S901-S910。
S901、在电子设备接收到来电时,电子设备向车载设备发送来电指令。
需要说明的是,对电子设备向车载设备发送来电指令的说明,可以参考上述实施例中对S701的介绍,此处不予赘述。
在一些实施例中,响应于电子设备接收到来电,电子设备可以确定电子设备是否支持来电铃声同步。可选的,在电子设备与车载设备建立蓝牙连接的过程中,电子设备可以确定电子设备是否支持来电铃声同步。若电子设备不支持来电铃声同步,电子设备则在电子设备接收到来电之后,不会执行S702和S703,即电子设备在电子设备接收到来电之后不会建立与车载设备之间的同步连接。
需要说明的是,在电子设备接收到来电之后,电子设备可以播放来电铃声。并且,车载设备接收到来自电子设备的来电指令之后,车载设备可以播放来电铃声。其中,车载设备播放的来电铃声是由车载设备设置的来电铃声。车载设备播放的来电铃声可 以与电子设备播放的来电铃声相同,或者,车载设备播放的来电铃声可以与电子设备播放的来电铃声不同。
S902、电子设备接收用户的第一操作。
需要说明的是,对电子设备接收用户的第一操作的说明,可以参考上述实施例中对S704的介绍,此处不予赘述。
S903、响应于第一操作,电子设备确定第一指示信息是否为第一数值。
在一些实施例中,若第一指示信息为第一数值,电子设备则可以执行S904-S906。也就是说,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以执行S904-S906。
在一些实施例中,若第一指示信息为第二数值,电子设备则可以执行S907或者S908-S910。也就是说,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以执行S907;或者,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以执行S908-S910。
S904、电子设备确定通过车载设备播放语音内容。
在本申请实施例中,若第一指示信息为第一数值,电子设备则确定通过车载设备播放语音内容。也就是说,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则可以确定通过车载设备播放语音内容。
S905、电子设备向车载设备发送同步请求消息。
其中,该同步请求消息用于请求建立同步连接。
在本申请实施例中,电子设备不支持来电铃声同步,在电子设备接收到用户的第一操作之后,若第一指示信息为第一数值,电子设备可以向车载设备发送同步请求消息。
可以理解的是,电子设备不支持来电铃声同步的情况下,电子设备在接收到来电时未建立与车载设备之间的同步连接。因此,电子设备确定通过车载设备播放语音内容之后,需要建立与车载设备之间的同步连接。如此,可以通过同步连接向车载设备传输语音数据。
S906、车载设备向电子设备发送同步响应消息。
在本申请实施例中,车载设备接收到来自电子设备的同步请求消息,可以向电子设备发送同步响应消息。也就是说,电子设备与车载设备之间已成功建立同步连接。
需要说明的是,本申请实施例对电子设备与车载设备之间建立同步连接的过程不作限定。示例性的,车载设备接收到来电指令之后,若电子设备支持来电铃声同步,车载设备可以向电子设备发送同步请求消息。之后,电子设备可以向车载设备发送同步响应消息。
在本申请实施例中,电子设备接收到来自车载设备的同步响应消息,可以通过同步连接向车载设备发送语音数据。例如,电子设备可以通过SCO向车载设备发送语音数据。车载设备接收到来自电子设备的语音数据,可以播放语音内容。
可以理解的是,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备向车载设备传输语音数据之后,车载设备不会释放与手机之间的同步连接(如SCO连接),而是可以直接播放语音内容。如此,可以保障用户能够听 到完整的语音内容,改善了用户的使用体验。
并且,用户通过电子设备进行通话时,可能需要手持电子设备。而用户通过车载设备进行通话时无需手持车载设备。如此,可以使用户通话更加便利。
S907、电子设备确定通过电子设备播放语音内容。
在本申请实施例中,电子设备不支持来电铃声同步,若第一指示信息为第二数值,电子设备不执行S905-S906。也就是说,电子设备不支持来电铃声同步,且车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备不会建立与车载设备之间的同步连接。
可以理解的是,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备向车载设备传输语音数据之后,车载设备不会释放与手机之间的连接(如SCO连接),而是可以直接播放语音内容。如此,可以保障用户能够听到完整的语音内容,改善了用户的使用体验。
并且,本申请实施例中,电子设备不会建立与车载设备之间的同步连接。如此,可以降低电子设备的功耗,增加电子设备的使用时长。
S908、电子设备确定通过第一蓝牙设备播放语音内容。
在本申请实施例中,若第一指示信息为第二数值,且电子设备与除车载设备以外的其他蓝牙设备建立蓝牙连接,电子设备则确定通过第一蓝牙设备播放语音内容。
S909、电子设备向第一蓝牙设备发送同步请求消息。
S910、第一蓝牙设备向电子设备发送同步响应消息。
需要说明的是,对于S908-S910过程的说明,可以参考上述实施例中S710-S712的介绍,此处不予赘述。
可以理解的是,在电子设备与除车载设备以外的其他蓝牙设备建立连接的情况下,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以通过第一蓝牙设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
在一些实施例中,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,车载设备可以拒绝建立同步连接。具体的,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,车载设备接收到来自电子设备的同步请求消息之后,车载设备可以向电子设备发送拒绝响应消息,该拒绝响应消息用于指示未成功建立同步连接。可选的,电子设备接收到来自车载设备的拒绝响应消息,可以确定通过电子设备或者第一蓝牙设备播放语音内容。
可以理解的,车载设备与电子设备之间未建立同步连接,电子设备则不会向车载设备进行语音传输,而是由电子设备或者第一蓝牙设备播放语音内容。如此,可以避免用户遗漏语音内容,改善了用户的使用体验。
在另一些实施例中,电子设备可以根据黑名单确定是否通过车载设备播放语音内容。其中,电子设备中保存有黑名单,该黑名单包括多个预设车载设备标识,预设车载设备标识为不支持在用户通过电子设备触发接听来电的情况下进行语音传输的车载设备的标识。也就是说,黑名单中的预设车载设备标识中每个预设车载设备标识对应的车载设备,均不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
需要说明的是,车载设备标识用于标识车载设备。本申请实施例对车载设备标识不作限定。例如,车载设备标识可以为车载设备的MAC地址。又例如,车载设备标识可以为车载设备的device ID。
需要说明的是,本申请实施例中,电子设备可以通过方式(a)和方式(b)保存黑名单。其中,方式(a)为电子设备可以预先存储黑名单,方式(b)为电子设备根据释放电子设备与车载设备之间的同步连接耗费的时长确定黑名单,并保存该黑名单。
在一些实施例中,电子设备可以通过方式(a)保存黑名单,即电子设备可以预先存储黑名单。具体的,电子设备可以在出厂时,保存由开发人员输入的多个预设车载设备标识。其中,本申请实施例对开发人员获取预设车载设备标识的方法不作限定。例如,开发人员可以通过测试(例如方式(b))确定不支持在用户通过电子设备触发接听来电的情况下进行语音传输的车载设备,并获取该车载设备的标识。又例如,开发人员可以通过获取各个车载设备的设备信息(例如第一指示信息)确定不支持在用户通过电子设备触发接听来电的情况下进行语音传输的车载设备,并获取该车载设备的标识。
在一些实施例中,电子设备可以通过方式(b)保存黑名单,即电子设备根据释放电子设备与车载设备之间的同步连接耗费的时长确定黑名单,并保存该黑名单。
以下以电子设备支持来电铃声同步为例,介绍本申请实施例提供的话的控制方法。如图10所示,该通话的控制方法可以包括S1001-S1011。
S1001、在电子设备接收到来电时,电子设备向车载设备发送来电指令。
需要说明的是,对于在电子设备接收到来电时,电子设备向车载设备发送来电指令的介绍,可以参考S701中的说明,此处不予赘述。
在一些实施例中,响应于电子设备接收到来电,电子设备可以确定电子设备是否支持来电铃声同步。可选的,在电子设备与车载设备建立蓝牙连接的过程中,电子设备可以确定电子设备是否支持来电铃声同步。若电子设备支持来电铃声同步,电子设备则可以执行S1002。
S1002、电子设备向车载设备发送同步请求消息。
需要说明的是,对于电子设备向车载设备发送同步请求消息的介绍,可以参考S702中的说明,此处不予赘述。
S1003、车载设备向电子设备发送同步响应消息。
需要说明的是,对于车载设备向电子设备发送同步响应消息的介绍,可以参考S703中的说明,此处不予赘述。
S1004、电子设备接收用户的第一操作。
需要说明的是,对于电子设备接收用户的第一操作的介绍,可以参考S704中的说明,此处不予赘述。
在一些实施例中,响应于用户的第一操作,电子设备可以通过同步连接向车载设备发送语音数据,并指示车载设备播放语音数据对应的语音内容。若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,车载设备可以播放语音内容。并且,电子设备不执行S1005-S1011。若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备则执行S1005-S1011。
S1005、电子设备记录第一时间。
其中,第一时间为电子设备接收第一操作的时间。也就是说,第一时间用于记录触发接听来电的时间。示例性的,假如电子设备在09:55:66接收用户的操作,则第一时间为09:55:66。
S1006、电子设备与车载设备之间释放同步连接。
在一些实施例中,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备与车载设备之间可以释放同步连接。具体的,车载设备接收到来自电子设备的语音数据,可以向电子设备发送释放请求消息。电子设备可以接收到来自车载设备的释放请求消息,向车载设备发送释放响应消息。
S1007、电子设备记录第二时间。
其中,第二时间为电子设备接收第一操作之后,第一次释放同步连接的时间。也就是说,第二时间为电子设备接收第一操作之后,第一次发送释放响应消息的时间。示例性的,假如电子设备接收第一操作之后第一次释放SCO连接的时间为09:55:70,则第二时间为09:55:70。
S1008、电子设备计算第一时间与第二时间之间的差值,得到第一目标差值。
其中,第一目标差值用于指示接收第一操作之后,第一次释放同步连接耗费的时长。
示例性的,假如第一时间为09:55:66,第二时间为09:55:70,则第一目标差值为0.04秒,即40毫秒。也就是说,电子设备与车载设备之间释放同步连接耗费40毫秒。
S1009、电子设备确定第一目标差值是否小于预设时间阈值。
需要说明的是,车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,或者车载设备发生异常,均可以导致释放同步连接。因此,为了确定车载设备是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的,电子设备可以设定预设时间阈值。通常情况下,车载设备发生异常导致释放同步连接所耗费的时长,大于车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输导致释放同步连接所耗费的时长。
需要说明的是,本申请实施例对预设时间阈值不作限定。例如,预设时间阈值可以为100毫秒。又例如,预设时间阈值可以为110毫秒。又例如,预设时间阈值可以为90毫秒。通常情况下,预设时间阈值可以为100毫秒。
在一些实施例中,若第一目标差值小于预设时间阈值,电子设备则可以执行S1010。若第一目标差值大于预设时间阈值,电子设备则可以执行S1011。
S1010、电子设备将第一设备标识添加至黑名单。
其中,第一设备标识为与电子设备建立蓝牙连接的车载设备的标识。
在一些实施例中,在电子设备将第一设备标识添加至黑名单之前,电子设备可以获取第一设备标识。本申请实施例对电子设备获取第一设备标识的方式不作限定。例如,电子设备可以在与车载设备建立蓝牙连接的过程获取车载设备的MAC地址。
在本申请实施例中,若第一目标差值小于预设时间阈值,电子设备则可以将第一设备标识添加至黑名单。示例性的,假如第一目标差值为40毫秒,预设时间阈值为100毫秒,电子设备则可以将第一设备标识添加至黑名单。
可以理解的是,第一目标差值小于预设时间阈值,说明释放同步连接耗费的时长较短。如此,可以确定车载设备是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的,即车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
S1011、电子设备不将第一设备标识添加至黑名单。
在本申请实施例中,若第一目标差值大于预设时间阈值,电子设备则不将第一设备标识添加至黑名单。示例性的,假如第一目标差值为200毫秒,预设时间阈值为100毫秒,电子设备则不将第一设备标识添加至黑名单。
可以理解的是,第一目标差值大于预设时间阈值,说明释放同步连接耗费的时长较长。如此,可以确定车载设备不是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的。
需要说明的是,仅通过一次释放同步连接耗费的时长,就确定释放同步连接是车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输引起的,可能不太准确。
在一些实施例中,为了提高准确率,电子设备可以再次根据释放同步连接耗费的时长,确定是否将第一设备标识添加至黑名单。
如图11所示,在S1009之后,该通话的控制方法还可以包括S1101-S1106。
需要说明的是,在本申请实施例中,若第一目标差值小于预设时间阈值,电子设备则可以执行S1101。
S1101、电子设备与车载设备之间建立同步连接。
在本申请实施例中,电子设备可以再次建立与车载设备之间的同步连接。具体的,电子设备可以向车载设备发送同步请求消息。车载设备接收到来自电子设备的同步请求消息,向电子设备发送同步响应消息。
在本申请实施例中,在电子设备与车载设备之间再次建立同步连接之后,电子设备可以向车载设备发送语音数据。
S1102、电子设备记录第三时间。
其中,第三时间为电子设备接收第一操作之后,第二次建立同步连接的时间。可选的,第三时间可以为电子设备接收第一操作之后,第二次接收到同步响应消息的时间。示例性的,假如电子设备接收第一操作之后,电子设备与车载设备第二次建立SCO连接的时间为09:56:00,则第三时间09:56:00。
S1103、电子设备与车载设备之间释放同步连接。
在本申请实施例中,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备与车载设备之间可以释放同步连接。具体的,车载设备接收到来自电子设备的语音数据,可以向电子设备发送释放请求消息。电子设备可以接收到来自车载设备的释放请求消息,向车载设备发送释放响应消息。
S1104、电子设备记录第四时间。
其中,第四时间为电子设备接收第一操作之后,第二次释放同步连接的时间。可选的,第四时间可以为电子设备接收第一操作之后,第二次发送释放响应消息的时间。
S1105、电子设备计算第三时间与第四时间之间的差值,得到第二目标差值。
其中,第二目标差值用于指示接收第一操作之后,第二次释放同步连接耗费的时长。
S1106、电子设备确定第二目标差值是否小于预设时间阈值。
在一些实施例中,若第二目标差值小于预设时间阈值,电子设备则可以执行S1010。也就是说,若电子设备与车载设备之间两次释放同步连接耗费的时长均小于预设时间阈值,电子设备则可以将第一设备标识添加至黑名单。
若第二目标差值大于预设时间阈值,电子设备则可以执行S1011。也就是说,若电子设备与车载设备之间第二次释放同步连接耗费的时长均大于预设时间阈值,电子设备则不将第一设备标识添加至黑名单。
可以理解的是,电子设备通过多次释放同步连接耗费的时长,能够更加准确地确定车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输,进而提高黑名单的准确性。
下面以电子设备不支持来电铃声同步为例,介绍本申请实施例提供的话的控制方法。如图12所示,该通话的控制方法可以包括S1201-S1216。
S1201、在电子设备接收到来电时,电子设备向车载设备发送来电指令。
需要说明的是,对于在电子设备接收到来电时,电子设备向车载设备发送来电指令的介绍,可以参考S701中的说明,此处不予赘述。
在一些实施例中,响应于电子设备接收到来电,电子设备可以确定电子设备是否支持来电铃声同步。可选的,在电子设备与车载设备建立蓝牙连接的过程中,电子设备可以确定电子设备是否支持来电铃声同步。若电子设备不支持来电铃声同步,则不执行S1002和S1003。
S1202、电子设备接收用户的第一操作。
需要说明的是,对于电子设备接收用户的第一操作的介绍,可以参考S704中的说明,此处不予赘述。
S1203、电子设备记录第一时间。
需要说明的是,对于电子设备记录第一时间的介绍,可以参考S1005中的说明,此处不予赘述。
S1204、电子设备与车载设备之间建立同步连接。
需要说明的是,对于电子设备与车载设备之间建立同步连接的介绍,可以参考S702和S703中的说明,此处不予赘述。
在本申请实施例中,响应于第一操作,电子设备可以与车载设备之间建立同步连接。其中,电子设备接收用户的第一操作的时间和电子设备与车载设备之间建立同步连接的时间相同或者近乎相同(即时间差较小)。也就是说,第一时间也可以为电子设备与车载设备之间建立同步连接的时间。
在一些实施例中,电子设备与车载设备之间建立同步连接,电子设备可以通过向车载设备
S1205、电子设备与车载设备之间释放同步连接。
在本申请实施例中,若车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备与车载设备之间可以释放同步连接。具体的,车载设备接 收到来自电子设备的语音数据,可以向电子设备发送释放请求消息。电子设备可以接收到来自车载设备的释放请求消息,向车载设备发送释放响应消息。
S1206、电子设备记录第二时间。
需要说明的是,对于电子设备记录第二时间的介绍,可以参考S1007中的说明,此处不予赘述。
S1207、电子设备计算第一时间与第二时间之间的差值,得到第一目标差值。
需要说明的是,对于电子设备计算第一时间与第二时间之间的差值,得到第一目标差值的介绍,可以参考S1008中的说明,此处不予赘述。
S1208、电子设备确定第一目标差值是否小于预设时间阈值。
需要说明的是,对于电子设备确定第一目标差值是否小于预设时间阈值的介绍,可以参考S1009中的说明,此处不予赘述。
在一些实施例中,若第一目标差值小于预设时间阈值,电子设备则可以执行S1215。若第一目标差值大于预设时间阈值,电子设备则可以执行S1216。
在另一些实施例中,若第一目标差值小于预设时间阈值,电子设备则可以执行S1209-S1215。若第一目标差值大于预设时间阈值,电子设备则可以执行S1216。
S1209、电子设备与车载设备之间建立同步连接。
需要说明的是,对于电子设备与车载设备之间建立同步连接的介绍,可以参考S1101中的说明,此处不予赘述。
S1210、电子设备记录第三时间。
需要说明的是,对于电子设备记录第三时间的介绍,可以参考S1102中的说明,此处不予赘述。
S1211、电子设备与车载设备之间释放同步连接。
需要说明的是,对于电子设备与车载设备之间释放同步连接的介绍,可以参考S1103中的说明,此处不予赘述。
S1212、电子设备记录第四时间。
需要说明的是,对于电子设备记录第四时间的介绍,可以参考S1104中的说明,此处不予赘述。
S1213、电子设备计算第三时间与第四时间之间的差值,得到第二目标差值。
需要说明的是,对于电子设备计算第三时间与第四时间之间的差值,得到第二目标差值的说明,可以参考S1105中的说明,此处不予赘述。
S1214、电子设备确定第二目标差值是否小于预设时间阈值。
在一些实施例中,若第二目标差值小于预设时间阈值,电子设备则可以执行S1215。也就是说,若电子设备与车载设备之间两次释放同步连接耗费的时长均小于预设时间阈值,电子设备则可以执行S1215。
若第二目标差值大于预设时间阈值,电子设备则可以执行S1216。也就是说,若电子设备与车载设备之间第二次释放同步连接耗费的时长均大于预设时间阈值,电子设备则可以执行S1216。
S1215、电子设备将第一设备标识添加至黑名单。
需要说明的是,对于电子设备将第一设备标识添加至黑名单的说明,可以参考 S1215中的说明,此处不予赘述。
可以理解的是,第一目标差值(或者第一目标差值和第二目标差值)小于预设时间阈值,说明释放同步连接耗费的时长较短。如此,可以确定车载设备是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的,即车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
S1216、电子设备不将第一设备标识添加至黑名单。
可以理解的是,第一目标差值(或者第一目标差值和第二目标差值)大于预设时间阈值,说明释放同步连接耗费的时长较长。如此,可以确定车载设备不是由于不支持在用户通过电子设备触发接听来电的情况下进行语音传输才释放同步连接的。
下面以支持来电铃声同步的电子设备根据黑名单确定是否通过车载设备播放语音内容为例,介绍本申请实施例提供的话的控制方法。如图13所示,在S1005之后,该通话的控制方法可以包括S1301-S1302。
S1301、电子设备确定第一设备标识是否在黑名单中。
示例性的,电子设备可以确定多个预设车载设备标识中是否存在与第一设备标识相同的标识。
在一些实施例中,若电子设备确定第一设备标识在黑名单中,电子设备则可以执行S1302。也就是说,若多个预设车载设备标识中存在与第一设备标识相同的标识,电子设备可以执行S1302。若电子设备确定第一设备标识不在黑名单中,电子设备则可以执行S1006-S1011和S1302。也就是说,若多个预设车载设备标识中不存在与第一设备标识相同的标识,电子设备可以执行S1006-S1011和S1302。
在一些实施例中,若电子设备确定第一设备标识不在黑名单中,且电子设备与车载设备之间未释放同步连接,电子设备可以通过同步连接向车载设备发送语音数据。车载设备可以播放语音内容。也就是说,若电子设备确定第一设备标识不在黑名单中,且电子设备与车载设备之间未释放同步连接,电子设备不会执行S1006-S1011和S1302。
S1302、电子设备确定通过电子设备播放语音内容。
在本申请实施例中,若电子设备确定第一设备标识在黑名单中,则可以确定车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。电子设备可以确定通过电子设备播放语音内容。也就是说,若电子设备确定第一设备标识在黑名单中,电子设备可以播放语音内容。
可以理解的是,若电子设备确定第一设备标识在黑名单中,电子设备可以直接播放语音内容。这样一来,可以避免车载设备和电子设备均未播放语音内容。如此,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。
下面以不支持来电铃声同步的电子设备根据黑名单确定是否通过车载设备播放语音内容为例,介绍本申请实施例提供的话的控制方法。如图14所示,在S1203之后,该通话的控制方法可以包括S1401-S1402。
S1401、电子设备确定第一设备标识是否在黑名单中。
在一些实施例中,若电子设备确定第一设备标识在黑名单中,电子设备则可以执行S1402。也就是说,若多个预设车载设备标识中存在与第一设备标识相同的标识,电子设备可以执行S1402。若电子设备确定第一设备标识不在黑名单中,电子设备则 可以执行S1204-S1216,之后执行S1402。也就是说,若多个预设车载设备标识中不存在与第一设备标识相同的标识,电子设备可以执行S1204-S1216,之后执行S1402。
S1402、电子设备播放语音内容。
在本申请实施例中,若电子设备确定第一设备标识在黑名单中,则可以确定车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。电子设备可以确定通过电子设备播放语音内容。
在一些实施例中,若电子设备确定第一设备标识在黑名单中,电子设备可以释放同步连接。具体对于电子设备释放同步连接的介绍,可以参考上述实施例中对电子设备释放与车载设备之间的同步连接的说明,此处不予赘述。
在另一些实施例中,若电子设备确定第一设备标识在黑名单中,电子设备可以不释放同步连接。
可以理解的是,若电子设备确定第一设备标识在黑名单中,电子设备可以直接播放语音内容。这样一来,可以避免车载设备和电子设备均未播放语音内容。如此,可以保障用户能够接听完整的语音内容,改善了用户的使用体验。
在一些实施例中,若电子设备确定第一设备标识在黑名单中,电子设备则可以通过第一蓝牙设备播放语音内容。具体对于电子设备通过第一蓝牙设备播放语音内容的方法,可以参考上述实施例中对电子设备通过第一蓝牙设备播放语音内容的介绍,此处不予赘述。
可以理解的是,若电子设备确定第一设备标识在黑名单中,电子设备可以通过第一蓝牙设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
需要说明的是,车载设备可能会不断的完善所支持的功能特性,使得车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输。如此,若仅根据上述黑名单可能无法准确地确定车载设备是否支持在用户通过电子设备触发接听来电的情况下进行语音传输,进而不能确定是否通过车载设备播放语音内容。
在一些实施例中,电子设备可以更新黑名单。之后,电子设备可以根据更新后的黑名单确定是否通过车载设备播放语音内容。本申请实施例对电子设备更新黑名单的方式不作限定。
一种可能的实现方式中,电子设备可以在每次开机时,或者电子设备可以每间隔一个预设周期(例如一天、三天或者十天等),删除黑名单中所有的预设车载设备标识。之后,在电子设备接收到来电时,重新执行上述S1001-S1302(即图13所示的流程)或者S1201-S1402(即图14所示的流程)。
另一种可能的实现方式中,若电子设备确定第一设备标识在黑名单中,电子设备可以不释放同步连接。若在电子设备接收到第一操作之后的预设时长内,电子设备与车载设备之间未释放同步连接,电子设备则可以从黑名单中删除第一设备标识。也就是说,若电子设备接收到第一操作之后与车载设备之间保持同步连接的时长大于预设时长,电子设备可以从黑名单中删除第一设备标识。
可以理解的是,若在电子设备接收到第一操作之后的预设时长内,电子设备与车载设备之间未释放同步连接,则说明车载设备支持在用户通过电子设备触发接听来电 的情况下进行语音传输。因此,电子设备可以将第一设备标识从黑名单中删除。
可选的,在电子设备从黑名单中删除第一设备标识之后,电子设备可以确定通过车载设备播放语音内容。
可以理解的是,车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备可以通过车载设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
在一些实施例中,电子设备可以将黑名单上传至服务器,服务器可以接收并保存黑名单。之后,服务器可以向其他的电子设备同步名单。并且,电子设备也可以接收来自服务器的黑名单。其中,本申请实施例对服务器不作限定。例如,该服务器可以为云端服务器。又例如,该服务器可以为物理服务器。
可以理解的是,通过向服务器同步黑名单,可以使其他电子设备获取到该黑名单。这样一来,可以减少其他电子设备执行添加黑名单的流程,提高了电子设备的效率。
在一些实施例中,电子设备也可以保存白名单,该白名单中保存有支持在用户通过电子设备触发接听来电的情况下进行语音传输的车载设备的标识。电子设备可以根据白名单,确定是否通过车载设备播放语音内容。若白名单中存在第一设备标识,电子设备可以确定通过车载设备播放语音内容。若白名单中不存在第一设备标识,电子设备可以确定通过电子设备播放语音内容。
需要说明的是,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,电子设备确定通过车载设备播放语音内容,可能会泄露语音内容,降低了用户的使用体验。
在一些实施例中,若车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,车载设备可以根据装载有该车载设备的目标车辆是否处于行驶状态,确定是否通过车载设备播放语音内容。具体的,车载设备可以检测目标车辆是否正在行驶。若目标车辆未在行驶,车载设备可以释放同步连接,或者车载设备可以拒绝建立同步连接。之后,电子设备可以播放语音内容。也就是说,若目标车辆处于停滞状态(即目标车辆未在行驶),即使车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,仍然由电子设备播放语音内容。
需要说明的是,车载设备检测目标车辆是否正在行驶的方式,可以参考常规技术中检测车辆是否正在行驶的方法,此处不予赘述。并且,对于车载设备释放同步连接和车载设备拒绝建立同步连接的描述,可以参考上述实施例中的介绍,此处不予赘述。
可以理解的是,若目标车辆未在行驶,用户通过电子设备接听电话不会影响用户驾驶目标车辆。并且,电子设备播放语音内容不会外放语音内容。如此,可以提高通话的私密性,改善了用户的使用体验。
若目标车辆在行驶,车载设备可以播放语音内容。也就是说,若目标车辆处于行驶状态(即目标车辆在行驶),且车载设备支持在用户通过电子设备触发接听来电的情况下进行语音传输,车载设备可以播放语音内容。
可以理解的是,若目标车辆在行驶,车载设备播放语音内容。如此,不仅可以保障用户能够接听完整的语音内容,而且无需用户手持电子设备进行通话,改善了用户的使用体验。
在一些实施例中,电子设备可以设置是否通过车载设备播放语音内容。其中,本申请实施例对电子设备设置是否通过车载设备播放语音内容的方式不作限定。示例性的,电子设备可以通过设置选项设置是否通过车载设备播放语音内容。例如,如图15所示,电子设备可以显示设置界面1501,该设置界面1501包括“车载设备通话”选项1502,“车载设备通话”选项1502用于控制是否通过车载设备播放语音内容。示例性的,电子设备可以在接听来电时,设置是否通过车载设备播放语音内容。例如,电子设备中设置有预设按键,该预设按键用于触发通过车载设备接听来电。也就是说,响应于作用于预设按键的第一操作,电子设备可以确定通过车载设备播放语音内容。又例如,若第一操作为预设操作(例如长按操作或者双击操作),电子设备可以确定通过车载设备播放语音内容。
可以理解的是,电子设备设置是否通过车载设备播放语音内容,可以保障语音内容由用户设定的方式进行播放。如此,可以提高用户的使用体验。
上述主要从电子设备的角度对本申请实施例提供的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请所公开的实施例描述的各示例的一种通话的控制方法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是电子设备软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对通话的控制装置进行功能模块或者功能单元的划分,例如,可以对应各个功能划分各个功能模块或者功能单元,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块或者功能单元的形式实现。其中,本申请实施例中对模块或者单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本申请另一些实施例提供了一种电子设备(如图2所示的手机200)。该电子设备可以包括:存储器和一个或多个处理器。该存储器和处理器耦合。该电子设备还可以包括摄像头。或者,该电子设备可以外接摄像头。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。该电子设备的结构可以参考图2所示的手机200的结构。
本申请实施例还提供一种芯片系统,如图16所示,该芯片系统包括至少一个处理器1601和至少一个接口电路1602。处理器1601和接口电路1602可通过线路互联。例如,接口电路1602可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1602可用于向其它装置(例如处理器1601)发送信号。示例性的,接口电路1602可读取存储器中存储的指令,并将该指令发送给处理器1601。当所述指令被处理器1601执行时,可使得电子设备(如图2所示的手机200)执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在上述电子设备(如图2所示的手机200)上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (18)

  1. 一种通话的控制方法,其特征在于,所述电子设备中保存有黑名单,所述黑名单包括多个预设车载设备标识,所述预设车载设备标识为不支持在用户通过电子设备触发接听来电的情况下进行语音传输的车载设备的标识;
    所述方法包括:
    电子设备与车载设备建立蓝牙连接,所述电子设备获取第一设备标识,所述第一设备标识为所述车载设备的标识;
    所述电子设备接收到来电,播放来电铃声进行来电提醒,并向所述车载设备发送来电指令;
    所述电子设备接收用户的第一操作,所述第一操作用于触发接听所述来电;
    响应于所述第一操作,若所述多个预设车载设备标识中包括所述第一设备标识,所述电子设备则通过所述电子设备或者第一蓝牙设备播放语音内容,所述第一蓝牙设备为与所述电子设备建立连接的蓝牙设备;
    若所述多个预设车载设备标识中不包括所述第一设备标识,所述电子设备根据释放所述电子设备与所述车载设备之间的同步连接耗费的时长,将所述第一设备标识添加至所述黑名单。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备根据释放所述电子设备与所述车载设备之间的同步连接耗费的时长,将所述第一设备标识添加至所述黑名单,包括:
    所述电子设备记录第一时间和第二时间,所述第一时间为所述电子设备接收所述第一操作的时间,所述第二时间为所述电子设备接收第一操作之后,第一次释放同步连接的时间;
    所述电子设备计算所述第一时间与所述第二时间之间的差值,得到第一目标差值;
    若所述第一目标差值小于预设时间阈值,所述电子设备再次建立与所述车载设备之间的所述同步连接,并记录第三时间,所述第三时间为所述电子设备接收所述第一操作之后,第二次建立同步连接的时间;
    所述电子设备释放与所述车载设备之间的所述同步连接,并记录第四时间,所述第四时间为所述电子设备接收所述第一操作之后,第二次释放同步连接的时间;
    所述电子设备计算所述第三时间与所述第四时间之间的差值,得到第二目标差值;
    若所述第二目标差值小于预设时间阈值,所述电子设备将所述第一设备标识添加至所述黑名单。
  3. 根据权利要求2所述的方法,其特征在于,在所述电子设备释放与所述车载设备之间的所述同步连接之后,所述方法还包括:
    所述电子设备通过所述电子设备或者所述第一蓝牙设备播放所述语音内容。
  4. 根据权利要求2所述的方法,其特征在于,在所述电子设备计算所述第一时间与所述第二时间之间的差值,得到第一目标差值之后,所述方法还包括:
    若所述第一目标差值大于预设时间阈值,所述电子设备则通过所述电子设备或者所述第一蓝牙设备播放所述语音内容。
  5. 根据权利要求2-4中任一项所述的方法,其特征在于,所述电子设备支持来电铃 声同步,在所述电子设备接收到来电之后,所述方法还包括:
    所述电子设备建立与所述车载设备之间的所述同步连接;
    所述电子设备通过所述同步连接,向所述车载设备传输来电铃声,并指示所述车载设备播放所述来电铃声进行来电提醒;
    在所述电子设备接收用户的第一操作之后,所述方法还包括:
    所述电子设备释放与所述车载设备之间的所述同步连接。
  6. 根据权利要求2-4中任一项所述的方法,其特征在于,所述电子设备不支持来电铃声同步,在所述电子设备接收用户的第一操作之后,所述方法还包括:
    所述电子设备建立与所述车载设备之间的所述同步连接;
    所述电子设备释放与所述车载设备之间的所述同步连接。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,在所述电子设备接收用户的第一操作之后,所述方法还包括:
    若所述多个预设车载设备标识中存在与所述第一设备标识相同的标识,且所述电子设备与所述车载设备之间的保持所述同步连接的时长大于预设时长,所述电子设备则从所述黑名单中删除所述第一设备标识。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述电子设备与多个蓝牙设备建立蓝牙连接,所述多个蓝牙设备包括所述车载设备和除所述车载设备以外的其他蓝牙设备;
    所述电子设备通过所述电子设备或者第一蓝牙设备播放语音内容,包括:
    所述电子设备通过所述第一蓝牙设备播放所述语音内容,所述第一蓝牙设备为所述其他蓝牙设备中任一蓝牙设备。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:
    若所述车载设备不支持在用户通过所述电子设备触发接听来电的情况下进行语音传输,所述电子设备显示第一提示消息,所述第一提示消息用于提示车载设备不支持在用户通过电子设备触发接听来电的情况下进行语音传输。
  10. 一种通话的控制方法,其特征在于,所述方法包括:
    电子设备与车载设备建立蓝牙连接,所述电子设备接收来自所述车载设备的蓝牙支持功能BRSF消息,所述BRSF消息包括第一指示信息,所述第一指示信息用于指示所述车载设备是否支持在用户通过所述电子设备触发接听来电的情况下进行语音传输;
    所述电子设备接收到来电,播放来电铃声进行来电提醒,并向所述车载设备发送来电指令;
    所述电子设备接收用户的第一操作,所述第一操作用于触发接听所述来电;
    响应于所述第一操作,若所述第一指示信息指示所述车载设备支持在用户通过所述电子设备触发接听来电的情况下进行语音传输,所述电子设备则通过所述车载设备播放语音内容;
    若所述第一指示信息指示所述车载设备不支持在用户通过所述电子设备触发接听来电的情况下进行语音传输,所述电子设备则通过所述电子设备或者第一蓝牙设备播放所述语音内容,所述第一蓝牙设备为与所述电子设备建立连接的蓝牙设备。
  11. 根据权利要求10所述的方法,其特征在于,所述第一指示信息包括:第一数值或者第二数值;所述第一数值用于指示所述车载设备支持在用户通过所述电子设备触发接听来电的情况下进行语音传输,所述第二数值用于指示所述车载设备不支持在用户通过所述电子设备触发接听来电的情况下进行语音传输。
  12. 根据权利要求10或11所述的方法,其特征在于,所述电子设备支持来电铃声同步,所述来电铃声同步为所述电子设备向所述车载设备同步来电铃声的功能;
    在所述电子设备接收到来电之后,所述方法还包括:
    所述电子设备向所述车载设备发送同步请求消息,所述同步请求消息用于请求建立所述电子设备与所述车载设备之间的同步连接;
    所述电子设备接收来自所述车载设备的同步响应消息,所述同步响应消息用于指示已建立所述同步连接;
    所述电子设备通过所述同步连接,向所述车载设备传输来的来电铃声,并指示所述车载设备播放所述来电铃声进行来电提醒。
  13. 根据权利要求12所述的方法,其特征在于,所述电子设备则通过所述车载设备播放语音内容,包括:
    所述电子设备通过所述同步连接,向所述车载设备发送语音数据,并指示所述车载设备播放所述语音数据对应的语音内容。
  14. 根据权利要求12所述的方法,其特征在于,在所述电子设备则通过所述电子设备或者第一蓝牙设备播放所述语音内容之后,所述方法还包括:
    所述电子设备向所述车载设备发送释放请求消息,所述释放请求消息用于指示释放所述同步连接;
    所述电子设备接收来自所述车载设备的释放响应消息,所述释放响应消息用于指示已释放所述同步连接。
  15. 根据权利要求10或11所述的方法,其特征在于,所述电子设备不支持来电铃声同步,所述来电铃声同步为所述电子设备向所述车载设备同步来电铃声的功能;
    在所述电子设备则通过所述车载设备播放语音内容之前,所述方法还包括:
    所述电子设备向所述车载设备发送同步请求消息,所述同步请求消息用于请求建立所述电子设备与所述车载设备之间的同步连接;
    所述电子设备接收来自所述车载设备的同步响应消息,所述同步响应消息用于指示已建立所述同步连接。
  16. 一种电子设备,其特征在于,所述电子设备包括:存储器、显示屏和一个或多个处理器;所述存储器、所述显示屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1-15中任一项所述的方法。
  17. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-15中任一项所述的方法。
  18. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所 述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如权利要求1-15中任一项所述的方法。
PCT/CN2022/091195 2021-07-14 2022-05-06 一种通话的控制方法及电子设备 WO2023284378A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110797271.4A CN113691678B (zh) 2021-07-14 2021-07-14 一种通话的控制方法及电子设备、计算机可读存储介质、芯片系统
CN202110797271.4 2021-07-14

Publications (1)

Publication Number Publication Date
WO2023284378A1 true WO2023284378A1 (zh) 2023-01-19

Family

ID=78577038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091195 WO2023284378A1 (zh) 2021-07-14 2022-05-06 一种通话的控制方法及电子设备

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691678B (zh) * 2021-07-14 2022-10-25 荣耀终端有限公司 一种通话的控制方法及电子设备、计算机可读存储介质、芯片系统
CN114979994B (zh) * 2022-05-25 2024-01-30 北斗星通智联科技有限责任公司 车载电话隐私保护方法、系统及计算机可读存储介质
CN114885317B (zh) * 2022-07-08 2022-11-25 荣耀终端有限公司 设备间协同控制的方法、通信系统、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130137404A1 (en) * 2011-11-30 2013-05-30 Juhang Kuo Method of responding to incoming calls and messages while driving
CN105187655A (zh) * 2015-09-18 2015-12-23 惠州Tcl移动通信有限公司 能够自动接听电话的移动终端及电话接听方法
CN112469009A (zh) * 2019-09-06 2021-03-09 中兴通讯股份有限公司 一种蓝牙数据传输方法、装置、终端及存储介质
CN113691678A (zh) * 2021-07-14 2021-11-23 荣耀终端有限公司 一种通话的控制方法及电子设备

Family Cites Families (9)

* 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 (zh) * 2010-12-31 2012-07-04 上海博泰悦臻电子设备制造有限公司 基于蓝牙的手机和车载设备的协同处理方法和系统
US9716762B2 (en) * 2014-03-31 2017-07-25 Ford Global Technologies Llc Remote vehicle connection status
CN105911900A (zh) * 2015-10-21 2016-08-31 乐卡汽车智能科技(北京)有限公司 应用于车载系统中的信息处理系统
CN106211361B (zh) * 2016-08-01 2020-01-14 惠州Tcl移动通信有限公司 一种移动终端蓝牙兼容处理方法及系统
JP7471777B2 (ja) * 2019-03-26 2024-04-22 株式会社ホンダアクセス 着信報知システム
CN110087215B (zh) * 2019-05-06 2022-05-13 北京百度网讯科技有限公司 基于蓝牙连接的信息播报方法、装置、终端及存储介质
CN110460984B (zh) * 2019-08-16 2022-07-01 中科微电技术(深圳)有限公司 基于分布式存储的多蓝牙控制方法、系统、终端及存储
CN111629409B (zh) * 2020-05-27 2022-09-27 维沃移动通信有限公司 通话控制方法、装置及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130137404A1 (en) * 2011-11-30 2013-05-30 Juhang Kuo Method of responding to incoming calls and messages while driving
CN105187655A (zh) * 2015-09-18 2015-12-23 惠州Tcl移动通信有限公司 能够自动接听电话的移动终端及电话接听方法
CN112469009A (zh) * 2019-09-06 2021-03-09 中兴通讯股份有限公司 一种蓝牙数据传输方法、装置、终端及存储介质
CN113691678A (zh) * 2021-07-14 2021-11-23 荣耀终端有限公司 一种通话的控制方法及电子设备

Also Published As

Publication number Publication date
CN113691678B (zh) 2022-10-25
CN113691678A (zh) 2021-11-23

Similar Documents

Publication Publication Date Title
WO2023284378A1 (zh) 一种通话的控制方法及电子设备
WO2021082829A1 (zh) 蓝牙连接方法及相关装置
CN113411793A (zh) 一种蓝牙通信的方法及终端
CN112789934B (zh) 一种蓝牙服务的查询方法及电子设备
CN113329381B (zh) 一种建立蓝牙连接的方法及电子设备
CN114079892A (zh) 蓝牙通信方法、可穿戴设备及系统
CN115190197B (zh) 基于蓝牙耳机的通话方法、装置及存储介质
CN116074986B (zh) 一种蓝牙连接方法、设备及系统
CN113873678A (zh) 传输数据的方法和电子设备
CN113923611A (zh) 一种呼叫转移系统及相关装置
CN114339696A (zh) 蓝牙通信系统、蓝牙连接方法、电子设备及存储介质
CN113489844B (zh) 一种音量档位的调整方法及电子设备
CN113301544B (zh) 一种音频设备间语音互通的方法及设备
CN115175159B (zh) 一种蓝牙耳机播放方法及设备
CN115052276A (zh) 信息处理方法及装置、电子设备及存储介质
CN111432502B (zh) 随机接入方法、基站和终端设备
CN110267361B (zh) 通信控制方法、设备、系统及可读存储介质
CN113170499A (zh) Coreset#0的配置方法及装置、通信设备及存储介质
JP2023552458A (ja) 接続確立方法及び装置
CN110691347A (zh) 通信连接方法、通信设备和存储介质
WO2024092627A1 (zh) 信息传输方法及装置、存储介质
WO2024082855A1 (zh) 一种音频业务处理方法、电子设备及计算机存储介质
WO2024187425A1 (zh) 资源确定、资源指示方法及装置、存储介质
CN115087134B (zh) 一种蓝牙连接的方法和电子设备
CN114173317B (zh) 传输数据的方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22841018

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22841018

Country of ref document: EP

Kind code of ref document: A1