Disclosure of Invention
The embodiment of the application provides an incoming call answering method, electronic equipment and a storage medium, and provides an incoming call answering mode.
In a first aspect, an embodiment of the present application provides an incoming call answering method, which is applied to a first electronic device, and includes:
detecting connectable second electronic equipment after receiving the incoming call; specifically, the first electronic device may include a mobile device such as a mobile phone, a tablet, etc.; the second electronic device may include a wireless headset, a smart speaker, etc. listening device.
Detecting one or more connectable second electronic devices, and displaying one or more answering controls of the second electronic devices in a display interface of the first electronic device; specifically, each answering control can be in one-to-one correspondence with each second electronic device, and the answering control is used for indicating a user to answer an incoming call through the second electronic device.
Detecting a first operation for selecting answering equipment; and responding to the detected first operation, determining an answering device in one or more second electronic devices, sending a connection request to the answering device, and establishing connection with the answering device. Specifically, the user may arbitrarily select one of the plurality of second electronic devices as the answering device.
In this embodiment, the user may optionally select one of the answering devices connectable to the periphery as the answering device, so as to implement seamless switching of the answering device, thereby improving the user's experience of answering the incoming call.
In one possible implementation, the priority of the connection request is high. In particular, the high priority connection request is used to indicate that the connection is to be established preferentially, and illustratively, the high priority connection is to be established preferentially over the low priority connection. For example, if the second electronic device has established a low priority connection with other electronic devices, and a high priority connection is received at this time, the high priority connection may be disconnected and a connection may be established with the high priority connection request.
In this embodiment, the request for answering the incoming call can be effectively identified by sending the connection request with high priority, so that the efficiency of answering the incoming call can be improved.
In one possible implementation manner, after establishing a connection with the answering device, the method further includes:
the method comprises the steps of connecting an incoming call of a first electronic device; and displaying a first hang-up control and a second hang-up control in a display interface of the first electronic equipment, wherein the first hang-up control is used for representing hanging up the incoming call through the first electronic equipment, and the second hang-up control is used for representing hanging up the incoming call through the answering equipment.
In this embodiment, different hang-up controls are displayed on the display interface, so that different incoming call hang-up options can be improved, the degree of freedom of selection of the user can be further improved, and the feeling of the user is improved.
In one possible implementation manner, the method further includes:
detecting a second operation for hanging up the incoming call through the first electronic device; and responding to the detected second operation, hanging up the incoming call of the first electronic equipment, and maintaining the connection between the first electronic equipment and the answering equipment. Specifically, the second operation may be clicking on the first hanging-up control (for example, the hanging-up control of the first electronic device), or sliding the first hanging-up control, which is not limited in particular by the embodiment of the present application.
In this embodiment, the connection between the first electronic device and the second electronic device is maintained after the phone is hung up, so that a connection flow between the first electronic device and the second electronic device can be saved, and a user can conveniently listen to contents (such as music, video, etc.) directly through the second electronic device, thereby improving the operation efficiency.
In one possible implementation manner, the method further includes:
detecting a third operation for hanging up the incoming call through the answering device; and responding to the detected third operation, hanging up the incoming call of the first electronic equipment, and sending a disconnection request to the answering equipment so as to disconnect the answering equipment from the second electronic equipment.
In this embodiment, the answering device is disconnected from the answering device after the call is hung up, so that the answering device is prevented from being occupied, and the service efficiency of the answering device is improved.
The embodiment of the application also provides an incoming call answering method which is applied to the second electronic equipment, wherein the second electronic equipment and the third electronic equipment are connected, and the incoming call answering method comprises the following steps:
receiving a connection request sent by first electronic equipment; specifically, the second electronic device may include a wireless earphone, a smart speaker, and other listening devices, and the first electronic device and the third electronic device may include mobile devices such as a mobile phone and a tablet.
Disconnecting the third electronic device and establishing connection with the first electronic device; and receiving and playing the call information sent by the first electronic equipment so as to finish answering the incoming call of the first electronic equipment by the user by using the second electronic equipment.
In this embodiment, according to the connection request of the first electronic device, the connection between the first electronic device and the third electronic device is disconnected, and the connection between the first electronic device and the third electronic device is established, so that seamless switching of the second electronic device can be realized when an incoming call is answered, and the user experience is improved.
In one possible implementation manner, the connection priority of the second electronic device and the third electronic device is low priority; disconnecting the connection with the third electronic device, establishing the connection with the first electronic device comprising:
and if the priority of the connection request is high, disconnecting the connection with the third electronic equipment and establishing connection with the first electronic equipment.
In this embodiment, whether to disconnect from the third electronic device is determined by determining the priority of the connection request, so that frequent switching of the second electronic device caused by receiving the connection request can be avoided, and thus switching efficiency in the incoming call answering scenario can be improved.
In one possible implementation manner, the method further includes:
and caching first connection information corresponding to the third electronic equipment, wherein the first connection information is used for representing the connection information between the second electronic equipment and the third electronic equipment.
In this embodiment, by caching the first connection information, the second electronic device can be restored to be connected with the third electronic device after being disconnected with the first electronic device, so that a process of reconnecting the second electronic device with the third electronic device can be saved, and operation experience of a user can be improved.
In one possible implementation manner, after receiving and playing the call information sent by the first electronic device, the method further includes:
receiving a disconnection request sent by first electronic equipment; disconnecting from the first electronic device and restoring connection with the third electronic device based on the first connection information.
In this embodiment, the connection between the second electronic device and the first electronic device is disconnected according to the received disconnection request, and the connection between the second electronic device and the third electronic device is established, so that the second electronic device can be switched seamlessly after the incoming call is ended, and user experience is improved.
In a second aspect, an embodiment of the present application provides an incoming call answering apparatus, which is applied to a first electronic device, including:
the detection module is used for detecting the connectable second electronic equipment after receiving the incoming call;
the first display module is used for detecting one or more connectable second electronic devices and displaying answering controls of the one or more second electronic devices in a display interface of the first electronic device;
the connecting module is used for detecting a first operation for selecting answering equipment; and responding to the detected first operation, determining an answering device in one or more second electronic devices, sending a connection request to the answering device, and establishing connection with the answering device.
In one possible implementation manner, the priority of the connection request is high priority.
In one possible implementation manner, the apparatus further includes:
the answering module is used for switching on the incoming call of the first electronic equipment;
the second display module is used for displaying a first hang-up control and a second hang-up control in a display interface of the first electronic equipment, wherein the first hang-up control is used for representing hanging up an incoming call through the first electronic equipment, and the second hang-up control is used for representing hanging up the incoming call through answering equipment.
In one possible implementation manner, the apparatus further includes:
the first hang-up module is used for detecting a second operation for hanging up the incoming call through the first electronic equipment; and responding to the detected second operation, hanging up the incoming call of the first electronic equipment, and maintaining the connection between the first electronic equipment and the answering equipment.
In one possible implementation manner, the apparatus further includes:
the second hang-up module is used for detecting a third operation for hanging up the incoming call through the answering equipment; and responding to the detected third operation, hanging up the incoming call of the first electronic equipment, and sending a disconnection request to the answering equipment so as to disconnect the answering equipment from the second electronic equipment.
The embodiment of the application also provides an incoming call answering device which is applied to the second electronic equipment, wherein the second electronic equipment and the third electronic equipment are connected, and the incoming call answering device comprises:
the first receiving module is used for receiving a connection request sent by the first electronic equipment;
the first connection module is used for disconnecting the third electronic equipment and establishing connection with the first electronic equipment;
and the answering module is used for receiving and playing the call information sent by the first electronic equipment so as to finish answering the incoming call of the first electronic equipment by the user by using the second electronic equipment.
In one possible implementation manner, the priority of the connection between the second electronic device and the third electronic device is low priority, and the first connection module is further configured to disconnect the connection between the second electronic device and the third electronic device and establish the connection with the first electronic device if the priority of the connection request is high priority.
In one possible implementation manner, the apparatus further includes:
the cache module is used for caching first connection information corresponding to the third electronic equipment, wherein the first connection information is used for representing connection information between the second electronic equipment and the third electronic equipment.
In one possible implementation manner, the apparatus further includes:
The second receiving module is used for receiving a disconnection request sent by the first electronic equipment;
and the second connection module is used for disconnecting the first electronic device and restoring connection with the third electronic device based on the first connection information.
In a third aspect, an embodiment of the present application provides a first electronic device, including:
a memory for storing computer program code, the computer program code comprising instructions that, when read from the memory by the first electronic device, cause the first electronic device to perform the steps of:
detecting connectable second electronic equipment after receiving the incoming call;
detecting one or more connectable second electronic devices, displaying one or more second electronic device listening controls in a display interface of the first electronic device,
detecting a first operation for selecting answering equipment;
and responding to the detected first operation, determining an answering device in one or more second electronic devices, sending a connection request to the answering device, and establishing connection with the answering device.
In one possible implementation manner, the priority of the connection request is high priority.
In one possible implementation manner, after the step of enabling the first electronic device to establish a connection with the answering device when the instruction is executed by the first electronic device, the following steps are further executed:
the method comprises the steps of connecting an incoming call of a first electronic device;
and displaying a first hang-up control and a second hang-up control in a display interface of the first electronic equipment, wherein the first hang-up control is used for representing hanging up the incoming call through the first electronic equipment, and the second hang-up control is used for representing hanging up the incoming call through the answering equipment.
In one possible implementation manner, after the step of enabling the first electronic device to establish a connection with the answering device when the instruction is executed by the first electronic device, the following steps are further executed:
detecting a second operation for hanging up the incoming call through the first electronic device;
and responding to the detected second operation, hanging up the incoming call of the first electronic equipment, and maintaining the connection between the first electronic equipment and the answering equipment.
In one possible implementation manner, the instructions, when executed by the first electronic device, cause the first electronic device to further perform the following steps:
detecting a third operation for hanging up the incoming call through the answering device;
And responding to the detected third operation, hanging up the incoming call of the first electronic equipment, and sending a disconnection request to the answering equipment so as to disconnect the answering equipment from the second electronic equipment.
The embodiment of the application also provides a second electronic device, which is connected with a third electronic device, comprising:
a memory for storing computer program code, the computer program code comprising instructions that, when read from the memory by the second electronic device, cause the second electronic device to perform the steps of:
receiving a connection request sent by first electronic equipment;
disconnecting the third electronic device and establishing connection with the first electronic device;
and receiving and playing the call information sent by the first electronic equipment so as to finish answering the incoming call of the first electronic equipment by the user by using the second electronic equipment.
In one possible implementation manner, the priority of the connection between the second electronic device and the third electronic device is low, and when the instruction is executed by the second electronic device, the step of making the second electronic device execute disconnection from the third electronic device and establish connection with the first electronic device includes:
And if the priority of the connection request is high, disconnecting the connection with the third electronic equipment and establishing connection with the first electronic equipment.
In one possible implementation manner, the instructions, when executed by the second electronic device, cause the second electronic device to further perform the following steps:
and caching first connection information corresponding to the third electronic equipment, wherein the first connection information is used for representing the connection information between the second electronic equipment and the third electronic equipment.
In one possible implementation manner, when the instruction is executed by the second electronic device, after the step of receiving and playing the call information sent by the first electronic device, the second electronic device further executes the following steps:
receiving a disconnection request sent by first electronic equipment;
disconnecting from the first electronic device and restoring connection with the third electronic device based on the first connection information.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program for performing the method of the first aspect when the computer program is executed by a computer.
In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the current electronic devices, the function of connecting a wireless earphone is generally provided, and through the connection of the wireless earphone, the listening of audio information can be conveniently performed, for example, a user can wear the wireless earphone to listen to music in the electronic device.
However, if the user has a plurality of electronic devices, when the user uses the wireless headset to listen to the audio information of one of the electronic devices, if the other electronic device receives an incoming call, the user needs to take off the wireless headset to listen to the incoming call of the other electronic device, which causes tedious operation for the user.
Based on the above-mentioned problems, an embodiment of the present application provides an incoming call answering method, which is applied to a first electronic device and a second electronic device, where the first electronic device may also be called a terminal device, a User Equipment (UE), an access terminal, a subscriber unit, a mobile device, a User terminal, a terminal, and a wireless communication device. The electronic device may be a cellular telephone, a cordless telephone, a personal digital assistant (Personal Digital Assistant, PDA) device, a handheld device having wireless communication capabilities. The second electronic device may include a wireless playing device such as a wireless earphone and a wireless sound box. The wireless earphone can include an infrared earphone and a Bluetooth earphone, and also can include other earphones connected in a wireless mode, for example, the wireless earphone works at the frequency of 2.4GHz, and the wireless loudspeaker can include a Bluetooth loudspeaker box, a WIFI loudspeaker box and the like. The embodiment of the application does not particularly limit the specific form of the second electronic device for executing the technical scheme.
Fig. 1 shows a schematic structure of a first electronic device 100.
The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100. In other embodiments of the application, the first electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the first electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of first electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display functionality of the first electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the first electronic device 100, or may be used to transfer data between the first electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only illustrative, and is not limited to the structure of the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the first electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the first electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the first electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on the first electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied on the first electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of first electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that first electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The first electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the first electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The first electronic device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the first electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the first electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The first electronic device 100 may support one or more video codecs. Thus, the first electronic device 100 may play or record video in multiple encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the first electronic device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the first electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the first electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the first electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The first electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The first electronic device 100 may listen to music, or to hands-free calls, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the first electronic device 100 is answering a telephone call or voice message, voice can be received by placing the receiver 170B close to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The first electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the first electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the first electronic device 100 may further be provided with three, four or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The first electronic device 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display 194, the first electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The first electronic device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the first electronic device 100. In some embodiments, the angular velocity of the first electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the first electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the first electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the first electronic device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The first electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the first electronic device 100 is a flip machine, the first electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the first electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the first electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The first electronic device 100 may measure the distance by infrared or laser. In some embodiments, the first electronic device 100 may range using the distance sensor 180F to achieve fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The first electronic device 100 emits infrared light outward through the light emitting diode. The first electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the first electronic device 100. When insufficient reflected light is detected, the first electronic device 100 may determine that there is no object in the vicinity of the first electronic device 100. The first electronic device 100 can detect that the user holds the first electronic device 100 close to the ear to talk by using the proximity light sensor 180G, so as to automatically extinguish the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The first electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the first electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The first electronic device 100 may utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call by the fingerprint, and so on.
The temperature sensor 180J is for detecting temperature. In some embodiments, the first electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the first electronic device 100 performs a reduction in the performance of a processor located in the vicinity of the temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the first electronic device 100 heats the battery 142 to avoid the low temperature causing the first electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the first electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the first electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The first electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the first electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195 to enable contact and separation with the first electronic device 100. The first electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The first electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the first electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100.
Fig. 2 is a schematic structural diagram of a second electronic device 200 according to an embodiment of the present application. The second electronic device 200 may include a memory 210, a processor 220, a receiver 230, and a sound source 240; the receiver 230 is configured to receive an audio signal of the first electronic device 100, and the receiver 230 may be connected to the first electronic device 100 through bluetooth, that is, the receiver 230 may be connected to the wireless communication module 160, or the receiver 230 may be connected to the first electronic device 100 through infrared, or may be connected to other wireless devices (for example, WIFI), which is not limited in this embodiment of the present application. The sound source 240 is used for playing the received audio signal for the user to listen to.
The memory 210 may be used to store software programs and modules, and the processor 220 performs various functional applications and data processing of the second electronic device 200 by executing the software programs and modules stored in the memory 210. The memory 210 may mainly include a storage program area that may store an operating system, an application program (such as a sound playing function, etc.) required for at least one function, and a storage data area; the storage data area may store data (such as audio data, etc.) created according to the use of the second electronic device 200, and the like. In addition, memory 210 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 220 is a control center of the second electronic device 200, connects respective portions of the entire second electronic device 200 using various interfaces and lines, and performs various functions of the second electronic device 200 and processes data by running or executing software programs and/or modules stored in the memory 210 and calling data stored in the memory 210, thereby performing overall monitoring of the second electronic device 200. Optionally, the processor 220 may include one or more processing units; preferably, the processor 220 may integrate an application processor that primarily handles operating system applications and the like with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 220.
Fig. 3 is a schematic diagram of an application scenario according to an embodiment of the present application. As shown in fig. 3, a user has a plurality of first electronic devices (e.g., first electronic device a, first electronic device B, first electronic device C, etc.) and one second electronic device W (e.g., wireless headset). Wherein the first electronic device may be of the same type, and the first electronic device may include a mobile phone a, a mobile phone B, and the like; the first electronic device may also be of a different type, and may include, for example, a cell phone a, a smart watch B, etc. In the application scenario shown in fig. 3, the second electronic device W may establish a connection with any one of the first electronic devices, and illustratively, the second electronic device W may be connected with the first electronic device a, and the user may listen to music on the first electronic device a through the second electronic device W. At this time, the user can switch the connection of the second electronic device with the first electronic device to the connection with another first electronic device, thereby being able to listen to the audio information in the different first electronic device through the second electronic device; for example, the first electronic device B receives the incoming call information, and the user may switch from the connection between the first electronic device a and the second electronic device W to the connection between the first electronic device B and the second electronic device W, so that the seamless switching from listening to the music on the first electronic device a to listening to the incoming call on the first electronic device B may be completed. The connection between the first electronic device and the second electronic device may be a WIFI connection, or a bluetooth connection, or other types of short-distance connection, which is not limited in this embodiment.
The scenario shown in fig. 3 is described below with reference to fig. 4-8, where fig. 4 is a flowchart of an embodiment of a method for answering an incoming call according to the present application, and includes:
in step 101, the first electronic device B and the second electronic device W are already connected, and are in a connected state.
For example, the user may wear the second electronic device W to listen to music in the first electronic device B.
Step 102, the first electronic device a receives the incoming call, and detects whether the second electronic device is connected.
If the first electronic device a is not connected to the second electronic device, step 103 may be executed.
If the first electronic device a is connected to the second electronic device, the user can answer the incoming call directly through the second electronic device.
In step 103, the first electronic device a detects a connectable second electronic device.
The detection manner may include the first electronic device a searching for the second electronic device within a default range to determine a nearby connectable second electronic device (for example, the second electronic device W). The first electronic device a may search for whether there is a second electronic device available for connection within the default range. It will be appreciated that the default range may correspond to an effective connection distance between the first electronic device a and the second electronic device, which may be determined based on a maximum distance connectable between the second electronic device and the electronic device. For example, after the second electronic device opens the connection function, the pairing information may be broadcast. Because the transmitting power of the second electronic device is limited, the range of the pairing information broadcast by the second electronic device determines the effective connection distance, and the electronic device can receive the pairing information broadcast by the second electronic device within the effective connection distance, so that the electronic device and the second electronic device can be connected based on the pairing information; and if the distance between the electronic device and the second electronic device exceeds the effective connection distance, the electronic device cannot receive the pairing information broadcast by the second electronic device, and cannot search for the second electronic device.
Optionally, the detecting means may further include detecting a state in which the second electronic device is worn by the user. For example, after receiving the incoming call information, the first electronic device a may send query information to a nearby second electronic device (for example, the second electronic device W) in a group; the query information is used for querying the wearing state of the second electronic equipment. The wearing state of the second electronic device may be obtained by a motion sensor in the second electronic device, or may be obtained by other manners, which is not limited in particular by the embodiment of the present application. The wearing state is used to identify whether the user has worn the second electronic device. In response to receiving the query information, the second electronic device may detect a wearing state to determine whether it is worn by the user.
If the second electronic device is determined to be in a worn state, that is, the user has worn the second electronic device, the second electronic device may return wearing state information to the first electronic device a. The wearing state information may include a wearing state and an identity of the second electronic device (for example, an ID, a MAC address, etc. of the second electronic device W). The first electronic device a determines that the second electronic device is worn, and performs step 104.
Step 104, the first electronic device a displays the answer control of the second electronic device W in the current incoming call waiting interface.
Specifically, the first electronic device a may display, based on the detected second electronic device, an answer control of the second electronic device in the current incoming call waiting interface, for selection by the user. The answering control of the second electronic device is used for identifying that a user can answer an incoming call through the second electronic device.
Referring to fig. 5, the incoming call waiting interface 500 may include an answer option area 510 and an incoming call information area 520; the answer option area 510 may be used for a user to select an answer mode, where the answer option area 510 may include controls of multiple answer modes, and the answer option area 510 may include a terminal answer control 511, an earphone answer control 512, and a hang-up control 513, for example. The terminal answer control 511 is used to identify that a user can answer an incoming call through the microphone of the electronic device. The headset answer control 512 is used to identify that the user can answer an incoming call through the second electronic device. The hang-up control 513 is used to identify that the user can hang up the current call.
The incoming call information area 520 may be used to present information about the incoming call, and may include, for example, information such as the name of the caller, the phone number of the incoming call, and the location of the incoming call. It will be appreciated that the incoming call information area 520 may also include other information, as embodiments of the application are not limited in this regard.
Step 105, in response to the operation of selecting the second electronic device by the user, determining that the second electronic device W is an answering device, and the first electronic device a sends a connection request to the second electronic device W.
Specifically, the user may operate on the incoming call waiting interface 500 for selecting an answering machine. Illustratively, the user may click on the headset answer control 512 in the answer options region 510 to determine that the second electronic device (e.g., second electronic device W) is an answer device. It should be understood that the manner in which the user determines to answer the device may be by clicking the earphone answer control 512, by sliding over the earphone answer control 512, or by other manners, which are not limited by the embodiments of the present application.
In response to the operation of selecting the second electronic device by the user, the first electronic device a determines that the second electronic device is the answering device of the incoming call, so that a connection request can be sent to the second electronic device, and the second electronic device is connected with the first electronic device a. In addition, when the first electronic device a transmits the connection request, the priority of the connection request may also be set based on the state of the first electronic device a. For example, the connection request sent by the first electronic device a to the second electronic device in the normal state (for example, in a non-incoming call answering state such as listening to music and watching video) may be set to a low priority, and the connection request sent by the first electronic device a to the second electronic device in the incoming call answering state may be set to a high priority, so that the second electronic device may determine whether to establish a connection with the electronic device after receiving the low priority connection request or the high priority connection request respectively.
In step 106, the second electronic device W receives the connection request from the first electronic device a, and disconnects the connection with the first electronic device B.
Specifically, after the second electronic device W receives the connection request of the first electronic device a, it may detect whether it is already in a connected state with other electronic devices.
If the second electronic device W does not establish a connection with the other first electronic device, step 107 is executed, and the user may answer the call of the first electronic device a through the second electronic device W.
If the second electronic device W has established a connection with another first electronic device (e.g., the first electronic device B), for example, the user is listening to music on the first electronic device B through the second electronic device W. At this time, the second electronic device W may further determine the priority of the connection request. Wherein the priority of the connection request may be used to identify a traffic state of an initiator of the connection request (e.g., the first electronic device a). For example, the low-priority connection request may indicate that the first electronic device a is in a non-incoming call answering state, so that the second electronic device may infer that the connection request initiated by the first electronic device a is likely to be for listening to music, that is, that an event corresponding to the low-priority connection request is a non-emergency event, and may select whether to establish a connection with the electronic device after receiving the connection request of the electronic device; the high-priority connection request may indicate that the first electronic device a is in an incoming call answering state, so that the second electronic device may infer that the connection request initiated by the first electronic device a is for answering an incoming call, that is, the event corresponding to the high-priority connection request is an emergency event, and after receiving the connection request of the electronic device, the second electronic device may disconnect from the connected electronic device (for example, the first electronic device B) and establish a connection with an initiator of the connection request (for example, the first electronic device a) to listen to the incoming call of the first electronic device a.
In a specific implementation, if the second electronic device W determines that the priority of the connection request is low, for example, the user wants to listen to the music on the first electronic device a through the second electronic device W, the second electronic device W may reject the connection request.
Optionally, after receiving the connection request with low priority, the second electronic device W may also send a switching request to the first electronic device B, and confirm whether to switch to the first electronic device a through the operation of the user. Wherein the handover request is used to identify a target object (e.g., the first electronic device a) of the present handover.
As described with reference to fig. 6, when the first electronic device B receives the low priority switching request of the second electronic device W, a switching indication screen 600 shown in fig. 6 may be popped up on the display interface of the first electronic device B, where the switching indication screen 600 includes an information display area 610 and an information confirmation area 620. The information display area 610 is used for displaying information to be switched by the second electronic device, and the information may be, for example, "the second electronic device is about to be switched to the first electronic device a, please confirm whether to switch. The information confirmation area 620 may include a confirmation control 621 and a rejection control 622, where the confirmation control 621 is used to confirm the current switching of the second electronic device W, and the rejection control 622 is used to reject the current switching request.
Illustratively, the user may operate a rejection control 622 (e.g., click on the rejection control 622) to thereby reject the second electronic device W from switching from the first electronic device B to the first electronic device a, that is, the second electronic device W remains in paired connection with the first electronic device B. In response to the rejection operation by the user, the first electronic device B may transmit a rejection message to the second electronic device W, the rejection message indicating that the second electronic device W remains connected to the first electronic device B.
Illustratively, the user may also operate the confirmation control 621 (e.g., click on the confirmation control 621) to confirm that the second electronic device W is being switched from the first electronic device B to the first electronic device a, that is, the second electronic device W may be disconnected from the first electronic device B. In response to the confirmation operation by the user, the first electronic device B may send a confirmation message to the second electronic device W, the confirmation message indicating that the second electronic device W may be disconnected from the first electronic device B and may establish a connection with the first electronic device a.
Alternatively, when the second electronic device W is disconnected from the first electronic device B, the first electronic device B may record first connection information when connected to the second electronic device W, and the second electronic device W may record second connection information when connected to the first electronic device a. The first connection information may include a name of an application program (e.g., music APP) that is running and an interruption time (e.g., a current pause time of a song), and the second connection information may include an identity of an electronic device (e.g., the first electronic device B). That is, the first electronic device B may temporarily suspend the playing of the current application program, and after waiting for the second electronic device W to switch back to the first electronic device B, the user may continue to listen to the content of the application program at the recorded interruption time. It is to be understood that the recording of the first connection information and the second connection information may be performed before the connection between the second electronic device W and the first electronic device B is disconnected, or after the connection between the second electronic device W and the first electronic device B is disconnected, or when the connection between the second electronic device W and the first electronic device B is disconnected, which is not particularly limited in the embodiment of the present application.
If the second electronic device W determines that the priority of the connection request is high, for example, the user wants to listen to an incoming call on the first electronic device a through the second electronic device W, the first electronic device a may send a connection request with high priority for identifying that the connection request is based on incoming call answering, that is, an event corresponding to the connection request is an emergency event, so that after receiving the connection request with high priority, the second electronic device W may immediately disconnect from the first electronic device B, and further execute step 107, so that the user may answer the incoming call of the first electronic device a through the second electronic device W.
As described with reference to fig. 7, if the second electronic device W determines that the priority of the connection request is high, the second electronic device W may disconnect from the first electronic device B. At this time, after the first electronic device B is disconnected from the second electronic device W, the switching prompt screen 700 shown in fig. 7 may be obtained on the display interface of the first electronic device B. The switching prompt screen 700 includes an information display area 710 and an information confirmation area 720. The information display area 710 is used for displaying prompt information that whether the first connection information (for example, the application program name and the interruption time) is recorded at this time, and this information may be, for example, "whether the second electronic device has been switched, or whether the connection information is recorded. The information validation area 720 may include a validation control 721 for validating the record of connection information and a rejection control 722 for rejecting the record of connection information 722.
Illustratively, the user may operate a rejection control 722 (e.g., click on the rejection control 722) to reject recording the first connection information. In response to the rejection operation of the user, the first electronic device B may not need to record the first connection information, for example, may close the corresponding application program, thereby saving the cache resource of the first electronic device B.
Illustratively, the user may also operate the confirmation control 721 (e.g., click on the confirmation control 721) to record the first connection information. In response to the confirmation operation of the user, the first electronic device B may record the first connection information, so that after the second electronic device W switches back to the first electronic device B, the program before switching may be continuously listened to based on the first connection information, for example, music interrupted before switching may be listened to, so that the listening experience of the user may be improved.
In step 107, the second electronic device W establishes a connection with the first electronic device a.
Specifically, the second electronic device W may establish a connection with the first electronic device a. If the second electronic device W and the first electronic device a are paired, that is, pairing information of the other party is stored between the second electronic device W and the first electronic device a, connection can be directly established; if the second electronic device W and the first electronic device a are not paired, connection can be established between the second electronic device W and the first electronic device a through a pairing process, so that pairing information of the other party can be recorded after successful pairing, a pairing connection process can be omitted during the next connection, the pairing speed is increased, and user experience is improved.
It is understood that the pairing connection process between the second electronic device W and the first electronic device a may be implemented by the prior art, for example, bluetooth pairing, which is not described herein.
And step 108, after the first electronic device A establishes connection with the second electronic device W, the incoming call is connected, the incoming call is answered through the second electronic device W, and the hang-up control of the second electronic device W is displayed on the call interface.
Specifically, after the first electronic device a and the second electronic device W are connected, the call of the first electronic device a may be turned on, and call information may be sent to the second electronic device W, so that the user may listen to the call through the second electronic device W, and the call interface 800 shown in fig. 8 may be obtained in the first electronic device a. Referring to fig. 8, a call interface 800 may include a call information area 810, a function area 820, and a call operation area 830; the call information area 810 may be used to display related information of a call, and the call information area 810 may include information such as a name of a caller, a duration of a call, and other information, which is not limited in the embodiment of the present application. The functional area 820 may include various functional controls 821, such as hands-free, mute, keyboard, add call, record, and address book controls, and other controls, which are not limited by the embodiment of the present application. The talk operation area 830 may include a terminal hang-up control 831 and an earphone hang-up control 832. The terminal hang-up control 831 is used for identifying that the second electronic device W still maintains a connection relationship with the first electronic device a after the call of the first electronic device a is ended, that is, the terminal hang-up control 831 corresponds to a terminal hang-up mode, in which a user only hangs up the first electronic device a, but does not disconnect the connection between the first electronic device a and the second electronic device W, and the second electronic device W does not switch back to the first electronic device B. The earphone hang-up control 832 is used for identifying that the second electronic device W is disconnected from the first electronic device a after the conversation of the first electronic device a is finished, that is, the earphone hang-up control 832 corresponds to an earphone hang-up mode, and in the earphone hang-up mode, a user hangs up not only the first electronic device a but also the connection between the first electronic device a and the second electronic device W is disconnected, so that the second electronic device W can be switched back to the first electronic device B.
In step 109, in response to the user hanging up the second electronic device, the first electronic device a transmits a disconnection request to the second electronic device W.
Specifically, when the user finishes the call, an operation may be performed on the call interface 800 to complete the hang-up call operation. The hang-up call operation may be a terminal hang-up control 831 or an earphone hang-up control 832 in the click-to-talk operation area 830; the hanging-up control 831 or the hanging-up control 832 of the earphone may be provided by sliding the terminal, which is not limited in the embodiment of the present application.
If the user operates the terminal hang-up control 831, the user may click on the terminal hang-up control 831, that is, the user selects the terminal hang-up mode, for example. And responding to the operation of hanging up the electronic equipment by a user, hanging up the current call by the first electronic equipment A, and keeping the connection with the second electronic equipment W.
If the user operates the headset hanging up control 832, the user may click on the headset hanging up control 832, that is, the user selects the headset hanging up mode, for example. In response to an operation of hanging up the headset by the user, the first electronic device a hangs up the current call, and sends a disconnection request to the second electronic device W to disconnect the connection with the second electronic device W, so that the second electronic device W can be switched back to the first electronic device B.
In step 110, the second electronic device W receives the disconnection request from the first electronic device a, and disconnects from the first electronic device a.
In step 111, the second electronic device W reestablishes the connection with the first electronic device B, thereby switching back to the first electronic device B.
Specifically, after the second electronic device W is disconnected from the first electronic device a, connection with the first electronic device B may be restored based on the identity of the electronic device recorded in step 106.
Alternatively, if the first electronic device B records the first connection information (for example, the application name and the interruption time), after the connection between the first electronic device B and the second electronic device W is reestablished, the application program that is temporarily suspended may resume playing based on the first connection information. This allows the user to continue listening to the program before disconnecting from the first electronic device B.
According to the embodiment of the application, the first electronic equipment receiving the incoming call information sends the connection request to the second electronic equipment so as to establish connection with the second electronic equipment, and the second electronic equipment is used for receiving the incoming call, so that the operation of a user can be facilitated, and the operation experience of the user is improved.
Fig. 4 to 8 illustrate the scenes of the plurality of first electronic devices and the one second electronic device, and then illustrate the scenes of the plurality of first electronic devices and the plurality of second electronic devices.
In an application scenario of another embodiment, a user owns a plurality of first electronic devices (e.g., first electronic device a, first electronic device B, first electronic device C, etc.) and a plurality of second electronic devices (e.g., second electronic device a, second electronic device B, etc.). Wherein the second electronic device may be of the same type, for example, the second electronic device may comprise a second electronic device a (ear canal earphone), a second electronic device B (ear canal earphone), etc.; the second electronic device may be of a different type, and for example, the second electronic device may include a second electronic device a (ear canal earphone), a second electronic device B (head set earphone), a second electronic device C (wireless sound box), and the like. A second electronic device may establish a connection with any one of the first electronic devices, and illustratively, the second electronic device a may connect with the first electronic device B, thereby enabling a user to listen to music on the first electronic device a via the second electronic device B.
In the application scenario shown in fig. 9, if another first electronic device (for example, the first electronic device a) has incoming call information, the user may select the second electronic device on the incoming call interface of the first electronic device a to determine which second electronic device is switched to answer the incoming call. For example, if the user selects the second electronic device a as the answering device on the incoming call interface of the first electronic device a, the second electronic device a may be switched from the first electronic device B to the first electronic device a, so that the flexibility of user selection may be improved, seamless switching may be implemented, and further the answering experience of the user may be improved.
In the application scenario shown in fig. 10, if another first electronic device (for example, the first electronic device a) has incoming call information, the user may select the second electronic device on the incoming call interface of the first electronic device a to determine which second electronic device is switched to answer the incoming call. For example, if the user selects the second electronic device B (for example, a wireless sound box) as the answering device on the incoming call interface of the first electronic device a, the first electronic device a may establish a connection with the second electronic device B, so that the flexibility of user selection may be improved, and further the answering experience of the user may be improved.
The scenario shown in fig. 9 and 10 is described below with reference to fig. 11-13, where fig. 11 is a flowchart of another embodiment of the method for answering an incoming call according to the present application, and includes:
in step 201, the first electronic device B and the second electronic device a have established a connection, and are in a connected state.
In step 202, the first electronic device a receives the incoming call, and detects whether the second electronic device is connected.
Specifically, if the first electronic device a is not connected to the second electronic device, step 203 may be performed.
If the first electronic device A is connected with the second electronic device, the user can answer the incoming call directly through the second electronic device.
In step 203, the first electronic device a detects a connectable second electronic device.
Specifically, in step 103, the first electronic device a may find that there is only one connectable second electronic device through the detection. In step 203, the user owns a plurality of second electronic devices, so the first electronic device a can find a plurality of connectable second electronic devices (for example, the second electronic device a, the second electronic device B, the second electronic device C, etc.), where the second electronic device a may be a wireless headset, the second electronic device B may be a headset, and the second electronic device C may be a sound box. The specific detection method can refer to step 103, and will not be described herein.
In step 204, the first electronic device a displays the answer control of the second electronic device in the current incoming call waiting interface.
Specifically, the first electronic device a may display, based on the second electronic device detected in step 203, an answer control of the second electronic device in the current incoming call waiting interface, for selection by the user.
Referring to fig. 12, the incoming call waiting interface 1200 may include an answer option area 1210 and an incoming call information area 1220; the answer option area 1210 may be used for a user to select an answer mode, and the answer option area 1210 may include a terminal answer area 1211 and a playback device answer area 1212. The terminal answer area 1211 includes a terminal answer control 12111 and a hang-up control 12112. The terminal answer control 12111 is used to identify that the user may answer an incoming call through the microphone of the electronic device. The hang-up control 12112 is used to identify that the user can hang up the current call. The playback device listening area 1212 includes a playback device listening control corresponding to the second electronic device, where the listening control corresponds to the second electronic device detected in step 203. Illustratively, the playback device listening area 1212 may include: an ear canal earphone listening control 12121, a helmet earphone listening control 12122, a speaker listening control 12123, and the like. The play device answering control is used for identifying that a user can answer an incoming call through the corresponding second electronic device.
The incoming call information area 1220 may be used to present information about an incoming call, and may include information such as a caller name, a caller phone number, and a location of the incoming call, for example.
In step 205, in response to the user selecting the second electronic device, it is determined that the second electronic device, and the first electronic device a sends a connection request to the second electronic device.
Specifically, in step 205, the incoming call waiting interface 1200 includes a plurality of second electronic device listening controls, so that the user can operate on the incoming call waiting interface 1200 to determine the second electronic device. For example, the user may click on the ear canal earphone listening control 12121 to determine that the ear canal earphone is a listening device, or click on the speaker listening control 12123 to determine that the wireless speaker is a listening device. And responding to the operation of selecting the second electronic equipment by the user, and sending a connection request to the second electronic equipment by the first electronic equipment A so that the second electronic equipment and the first electronic equipment A are connected.
Details of the specific sending connection request may refer to step 105, and will not be described herein.
In step 206, the second electronic device receives the connection request of the first electronic device a, and detects the current connection state of the second electronic device.
Specifically, the current connection state of the second electronic device may include whether the second electronic device establishes a connection with another electronic device. For example, whether the second electronic device establishes a connection with the first electronic device B.
In step 207, the second electronic device establishes a connection with the first electronic device a.
Specifically, if the second electronic device has established a connection with other electronic devices before receiving the connection request, and, illustratively, the second electronic device a has established a connection with the first electronic device B before receiving the connection request of the first electronic device a, the second electronic device a may disconnect from the first electronic device B and establish a connection with the first electronic device a after receiving the connection request of the first electronic device a; in addition, the second electronic device a may send information that the second electronic device a and the first electronic device B have established a connection before receiving the connection request to the first electronic device a. Therefore, the first electronic equipment A can be disconnected with the second electronic equipment A after the call is ended, and the second electronic equipment A can be restored to be connected with the first electronic equipment B.
If the second electronic device does not establish a connection with the other first electronic devices before receiving the connection request, for example, the second electronic device B does not establish a connection with the first electronic device B or establish a connection with the first electronic device a before receiving the connection request of the first electronic device a, and then the second electronic device B establishes a connection with the first electronic device a after receiving the connection request of the first electronic device a.
And step 208, after the first electronic device A establishes connection with the second electronic device, the user answers the call through the second electronic device, and whether the hang-up control of the second electronic device is displayed or not is determined based on the connection state.
Specifically, if the first electronic device a receives the information that the second electronic device sent by the second electronic device has established connection with other electronic devices, the hang-up control of the second electronic device may be displayed on the call interface, and step 209 may be further executed. For example, the first electronic device a receives the information that the second electronic device a sent by the second electronic device a has established a connection with the first electronic device B, so that the first electronic device a may obtain the call interface 800 as shown in fig. 8, and the call interface 800 may include a hang-up control 831 of the first electronic device a and a hang-up control 832 of the second electronic device a, where the hang-up control 831 is used to hang-up a call, and the hang-up control 832 is used to hang-up the call, and disconnect the second electronic device a from the first electronic device a.
If the first electronic device a does not receive the information that the second electronic device has established connection with the other first electronic devices, which is sent by the second electronic device, the call interface 1300 shown in fig. 13 may be displayed on the screen of the first electronic device a, and step 212 may be further performed. For example, the first electronic device a does not receive the information that the second electronic device B has established a connection with the first electronic device B, and thus the first electronic device a may obtain the call interface 1300 shown in fig. 13. The hang-up control of the second electronic device B may not be displayed on the call interface 1300; for example, only the hang-up control of the first electronic device a may be displayed on the talk interface 1300. As shown in fig. 13, the call interface 1300 includes a hang-up control 1301, where the hang-up control 1301 is configured to indicate that the first electronic apparatus a is hung up. Since the second electronic device B does not establish a connection with the other first electronic devices, the user can hang up the call after the call is ended by hanging up the hang-up control (e.g., hang-up control 1301) of the first electronic device a. After the call is hung up, the second electronic device B may maintain a connection state with the first electronic device a. Thus, there is no need to display a hang-up control for the second electronic device B on the talk interface 1300.
In step 209, in response to the user hanging up the second electronic device a, the first electronic device a sends a disconnection request to the second electronic device a.
Specifically, step 209 is the same as step 109, and reference may be made to step 109, which is not described herein.
In step 210, the second electronic device a receives the disconnection request of the first electronic device a, and disconnects from the first electronic device a.
In step 211, the second electronic device a reestablishes the connection with the first electronic device B, whereby the second electronic device a switches back to the first electronic device B.
Specifically, step 211 is the same as step 111, and reference may be made to step 111, which is not described herein.
In step 212, in response to the user hanging up the first electronic device a, the first electronic device a ends the call.
Specifically, the user may operate on the talk interface 1300, for example, the user may click on the hang-up control 1301. In response to the user operation, the first electronic device a may end the call.
Optionally, after the first electronic device a ends the call, the first electronic device a may maintain a connection state with the second electronic device B. That is, the user may listen to the audio content on the first electronic device a through the second electronic device B.
Optionally, after the first electronic device a ends the call, the first electronic device a may disconnect from the second electronic device B.
In the embodiment of the application, after the first electronic device receives the incoming call, the user can arbitrarily select one second electronic device from the plurality of searched second electronic devices to answer, and after the call is ended, based on the connection state of the second electronic device and other first electronic devices before the second electronic device is connected with the first electronic device for receiving the incoming call, whether the second electronic device is connected with the first electronic device for receiving the incoming call after the call is ended is determined, so that the flexibility of user operation can be improved, and the experience of user operation is improved.
Fig. 14 is a schematic structural diagram of an embodiment of an incoming call answering device according to the present application, as shown in fig. 7, where the incoming call answering device 1400 is applied to a first electronic device, and may include: the display device comprises a detection module 1410, a first display module 1420 and a connection module 1430;
a detection module 1410, configured to detect a connectable second electronic device after receiving an incoming call;
a first display module 1420, configured to detect one or more connectable second electronic devices, and display answer controls of the one or more second electronic devices in a display interface of the first electronic device;
A connection module 1430 for detecting a first operation for selecting a listening device; and responding to the detected first operation, determining an answering device in one or more second electronic devices, sending a connection request to the answering device, and establishing connection with the answering device.
In one possible implementation, the priority of the connection request is high.
In one possible implementation, the apparatus 1400 may further include: the answering module 1440 and the second display module 1450;
an answering module 1440, configured to answer an incoming call of the first electronic device;
the second display module 1450 is configured to display a first hang-up control and a second hang-up control in a display interface of the first electronic device, where the first hang-up control is used for representing hanging up an incoming call through the first electronic device, and the second hang-up control is used for representing hanging up an incoming call through the answering device.
In one possible implementation, the apparatus 1400 may further include: a first hang-up module 1460;
a first hang-up module 1460 for detecting a second operation for hanging up an incoming call through the first electronic device; and responding to the detected second operation, hanging up the incoming call of the first electronic equipment, and maintaining the connection between the first electronic equipment and the answering equipment.
In one possible implementation, the apparatus 1400 may further include: a second hang-up module 1470;
a second hang-up module 1470 for detecting a third operation for hanging up an incoming call through the answering device; and responding to the detected third operation, hanging up the incoming call of the first electronic equipment, and sending a disconnection request to the answering equipment so as to disconnect the answering equipment from the second electronic equipment.
Fig. 15 is a schematic structural diagram of another embodiment of an incoming call answering apparatus according to the present application, as shown in fig. 15, where the incoming call answering apparatus 1500 is applied to a second electronic device, and the second electronic device and a third electronic device have established a connection, and may include: a first receiving module 1510, a first connecting module 1520, and an answering module 1530;
a first receiving module 1510, configured to receive a connection request sent by a first electronic device;
a first connection module 1520 for disconnecting the third electronic device and establishing a connection with the first electronic device;
the answering module 1530 is configured to receive and play the call information sent by the first electronic device, so as to answer an incoming call of the first electronic device by using the second electronic device.
In one possible implementation manner, the priority of the connection between the second electronic device and the third electronic device is low priority, and the first connection module 1520 may be further configured to disconnect the connection between the second electronic device and the third electronic device and establish the connection between the second electronic device and the first electronic device if the priority of the connection request is high priority.
In one possible implementation manner, the apparatus 1500 may further include: a cache module 1540;
a buffer module 1540, configured to buffer first connection information corresponding to a third electronic device, where the first connection information is used to characterize connection information between the second electronic device and the third electronic device
In one possible implementation manner, the apparatus 1500 may further include: a second receiving module 1550 and a second connecting module 1560;
a second receiving module 1550, configured to receive a disconnection request sent by the first electronic device;
the second connection module 1560 is configured to disconnect from the first electronic device and resume connection with the third electronic device based on the first connection information.
It should be understood that the above division of the modules of the incoming call answering device shown in fig. 14 and 15 is merely a division of logic functions, and may be fully or partially integrated into one physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; it is also possible that part of the modules are implemented in the form of software called by the processing element and part of the modules are implemented in the form of hardware. For example, the detection module may be a separately established processing element or may be implemented integrated in a certain chip of the electronic device. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
For example, the modules above may be one or more integrated circuits configured to implement the methods above, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter ASIC), or one or more microprocessors (Digital Singnal Processor; hereinafter DSP), or one or more field programmable gate arrays (Field Programmable Gate Array; hereinafter FPGA), etc. For another example, the modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC).
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only schematically illustrated, and is not limited to the structure of the first electronic device 100 and the second electronic device 200. In other embodiments of the present application, the first electronic device 100 and the second electronic device 200 may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
It will be appreciated that, in order to implement the above-mentioned functions, the first electronic device and the second electronic device include corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The embodiment of the application can divide the functional modules of the first electronic device and the second electronic device according to the method example, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The functional units in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.