Call system and call method
Patent Information
- Application Number
- CN202380079906.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-11-22
- Filing Date
- 2023-09-05
- Publication Date
- 2025-07-01
AI Technical Summary
In the existing technology, electronic devices cannot control the transfer of the call between other electronic devices after the call is connected, resulting in poor convenience and poor user experience when answering calls.
By creating control channels with multiple electronic devices, calls can be flexibly transferred between different devices, including transferring calls from one device to another device when receiving a switching instruction.
It improves the user's convenience and experience when answering calls, simplifies the call transfer process, avoids call interruption, and improves the user experience.
Smart Images

Figure CN120239975A_ABST
Abstract
Description
Call system and call method
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on November 22, 2022, with application number 202211468148.9 and application name “Call System and Call Method”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of electronic products, and in particular to a communication system and a communication method. Background Art
[0003] With the development of communication technology, different electronic devices can establish communication connections and share device capabilities to collaboratively handle the same services. Device capabilities include audio, video, printing, and positioning capabilities. For example, after a call is connected, one electronic device can use the audio capabilities of another electronic device to handle the call and transfer the call to the other electronic device.
[0004] Currently, after a call is connected, an electronic device can transfer the call to another electronic device for answering, but it does not support transferring the call to another electronic device. In practice, users may need to transfer the call between different electronic devices after answering the call. Therefore, there is an urgent need for a method that allows one electronic device to control the transfer of the call between other electronic devices after the call is connected.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a call system and a call method, which can solve the problem that after an electronic device connects to a call, it is impossible to control the transfer of the call between other electronic devices.
[0007] In a first aspect, a call system is provided, the call system including a first electronic device, a second electronic device, and a third electronic device;
[0008] The first electronic device receives an incoming call request;
[0009] In response to the incoming call request, the first electronic device, the second electronic device, and the third electronic device perform an incoming call reminder;
[0010] The first electronic device establishes a first control channel with the second electronic device, and the first electronic device establishes a second control channel with the third electronic device;
[0011] An operation of answering the incoming call is received on the first electronic device or the second electronic device, and the first electronic device answers the call corresponding to the incoming call request;
[0012] The first electronic device transfers the call to the second electronic device through the first control channel;
[0013] During the process of the second electronic device answering the call, the first electronic device receives a first switching instruction;
[0014] In response to the first switching instruction, the first electronic device transfers the call to the third electronic device through the second control channel.
[0015] In an embodiment of the present application, after receiving an incoming call request, the first electronic device creates a first control channel with the second electronic device and a second control channel with the third electronic device. After the call is connected, the call can be transferred to the second electronic device for answering. While the call is being answered through the second electronic device, if a handover instruction is received, the call can be transferred from the second electronic device to the third electronic device for answering. This can solve the problem of being unable to control the transfer of the call between other electronic devices after the electronic device has connected the call.
[0016] At the same time, after a call is connected, the electronic device can control the call transfer between other electronic devices according to the user's needs, allowing the user to flexibly select an electronic device to answer the call according to their needs, thereby improving the user's convenience when answering the call and enhancing the user's call answering experience. At the same time, calls can be quickly transferred between different electronic devices. When the user switches to answer a call using different electronic devices, the user can switch directly from one device to another to answer the call, avoiding call interruptions and improving the user's call answering experience.
[0017] Optionally, after receiving the operation of answering the incoming call on the second electronic device, the second electronic device sends an answering instruction to the first electronic device; in response to the answering instruction, the first electronic device connects the call and transfers the call to the second electronic device through the first control channel.
[0018] In an embodiment of the present application, after receiving an incoming call request, the first electronic device will connect the call when it receives an answering instruction sent by the second electronic device, and transfer the call to the second electronic device for answering. This can facilitate the user to operate the second electronic device to answer the call, and transfer the call to the second electronic device for answering, which can facilitate the user to quickly use the second electronic device to answer the call.
[0019] Optionally, when an operation to answer the incoming call is received on the first electronic device, the first electronic device answers the call; in response to the received second switching instruction, the first electronic device transfers the call to the second electronic device through the first control channel for answering.
[0020] Optionally, while the second electronic device is answering the call, the second electronic device receives a first operation corresponding to the first control; in response to the first operation, the second electronic device sends the first switching instruction to the first electronic device.
[0021] Optionally, after the call is transferred to the second electronic device for answering, the first electronic device displays a first call interface, which includes a second control; the first electronic device receives the first switching instruction through the second control.
[0022] Optionally, after the call is transferred to the second electronic device for answering, the second electronic device displays a second call interface, which includes the first control.
[0023] Optionally, before transferring the call to the second electronic device for answering, the first electronic device registers a device identification of the second electronic device;
[0024] The first electronic device marks the enabled state of the audio capability of the second electronic device as a first identifier;
[0025] The first electronic device marks the calling state of the audio capability of the second electronic device as a second identifier;
[0026] When the first electronic device determines, based on the device identifier of the second electronic device, that the enabled state of the audio capability of the second electronic device is the first identifier and that the calling state of the audio capability of the second electronic device is the second identifier, the first electronic device transfers the call to the second electronic device through the first control channel.
[0027] Optionally, the first electronic device includes a collaborative module and a virtual audio module; before transferring the call to the second electronic device for answering, the collaborative module registers a first communication interface in the virtual audio module; after transferring the call to the second electronic device for answering, the first electronic device transmits the audio data in the call between the collaborative module and the virtual audio module through the first communication interface.
[0028] Optionally, before transferring the call to the third electronic device for answering, the first electronic device registers a device identification of the third electronic device;
[0029] The first electronic device marks the enabled state of the audio capability of the third electronic device as a third identifier;
[0030] The first electronic device marks the calling state of the audio capability of the third electronic device as a fourth identifier;
[0031] When the first electronic device determines, based on the device identifier of the third electronic device, that the enabled state of the audio capability of the third electronic device is the third identifier and that the calling state of the audio capability of the third electronic device is the fourth identifier, the first electronic device transfers the call to the third electronic device through the second control channel.
[0032] Optionally, the first electronic device includes a collaborative module and a virtual audio module; before transferring the call to the third electronic device for answering, the collaborative module registers the second communication interface of the third electronic device in the virtual audio module; after transferring the call to the third electronic device for answering, the first electronic device transmits the audio data in the call between the collaborative module and the virtual audio module through the second communication interface.
[0033] Optionally, after transferring the call to the second electronic device for answering, the first electronic device marks the calling state of the audio capability of the second electronic device as a fifth identifier.
[0034] Optionally, before creating the first control channel, the first electronic device determines that the second electronic device is in an online state; before creating the second control channel, the first electronic device determines that the third electronic device is in an online state.
[0035] In an embodiment of the present application, before enabling the audio capability of the second electronic device or the third electronic device, the first electronic device first determines whether the device is online. When the device is online, the audio capability of the device is enabled, which can avoid enabling the audio capability of the offline device.
[0036] Optionally, the first electronic device transfers the call to the third electronic device for answering through the second control channel, including: the first electronic device disconnects the first data channel between the first electronic device and the second electronic device, the first data channel being established before the call is transferred to the second electronic device; the first electronic device establishes a second data channel between the first electronic device and the third electronic device; after establishing the second data channel, the first electronic device transfers the call to the third electronic device for answering through the second control channel; wherein, the first data channel and the second data channel are used to transmit audio data in the call.
[0037] Optionally, when the first electronic device detects that the fourth electronic device is online, it creates a third control channel with the fourth electronic device; wherein, the third control channel is used to transfer the call flow to the fourth electronic device for answering when a third switching instruction corresponding to the fourth electronic device is received.
[0038] In an embodiment of the present application, during a call answering process, when a newly online electronic device is detected, the first electronic device can enable the audio capability of the newly online device so that when the call needs to be transferred to the new electronic device, the call can be quickly transferred to the new electronic device for answering.
[0039] In a second aspect, a call method is provided, which is applied to a first electronic device, and the method includes:
[0040] The first electronic device receives an incoming call request;
[0041] In response to the incoming call request, the first electronic device sends a co-vibration notification to the second electronic device and the third electronic device respectively, so that the second electronic device and the third electronic device provide an incoming call reminder;
[0042] The first electronic device establishes a first control channel with the second electronic device, and the first electronic device establishes a second control channel with the third electronic device;
[0043] When the first electronic device receives the answer instruction, it connects the call corresponding to the incoming call request;
[0044] The first electronic device transfers the call to the second electronic device through the first control channel;
[0045] After the call is transferred to the second electronic device for answering, the first electronic device receives a first switching instruction;
[0046] In response to the first switching instruction, the first electronic device transfers the call to the third electronic device through the second control channel.
[0047] Optionally, the answering instruction is sent by the second electronic device to the first electronic device.
[0048] Optionally, the first electronic device transfers the call to the second electronic device for answering through the first control channel, including: when the first electronic device receives the second switching instruction, the first electronic device transfers the call to the second electronic device for answering through the first control channel.
[0049] Optionally, the first switching instruction is sent by the second electronic device to the first electronic device; wherein, the first switching instruction is sent by the second electronic device to the first electronic device when the second electronic device receives a first operation corresponding to the first control after answering the call.
[0050] Optionally, after the call is transferred to the second electronic device for answering, the first electronic device displays a first call interface, which includes a second control; the first electronic device receives the first switching instruction through the second control.
[0051] Optionally, the first control is included in a second call interface, and the second call interface is displayed by the second electronic device after answering the call.
[0052] Optionally, before transferring the call to the second electronic device for answering, the method further includes: the first electronic device registering a device identifier of the second electronic device; the first electronic device marking an enabled state of the audio capability of the second electronic device as a first identifier; and the first electronic device marking a call state of the audio capability of the second electronic device as a second identifier;
[0053] The first electronic device transfers the call to the second electronic device for answering through the first control channel, including: when the first electronic device determines, based on the device identifier of the second electronic device, that the enabled state of the audio capability of the second electronic device is the first identifier and the call state of the audio capability of the second electronic device is the second identifier, transferring the call to the second electronic device for answering through the first control channel.
[0054] Optionally, the first electronic device includes a collaborative module and a virtual audio module. Before transferring the call to the second electronic device for answering, the method also includes: the collaborative module registers a first communication interface in the virtual audio module; wherein, after the call is transferred to the second electronic device for answering, the first electronic device transmits the audio data in the call between the collaborative module and the virtual audio module through the first communication interface.
[0055] Optionally, before transferring the call to the third electronic device for answering, the method further includes: the first electronic device registering a device identifier of the third electronic device; the first electronic device marking an enabled state of the audio capability of the third electronic device as a third identifier; and the first electronic device marking a call state of the audio capability of the third electronic device as a fourth identifier;
[0056] The first electronic device transfers the call to the third electronic device for answering through the second control channel, including: when the first electronic device determines, based on the device identifier of the third electronic device, that the enabled state of the audio capability of the third electronic device is the third identifier and the call state of the audio capability of the third electronic device is the fourth identifier, the first electronic device transfers the call to the third electronic device for answering through the second control channel.
[0057] Optionally, the first electronic device includes a collaborative module and a virtual audio module. Before transferring the call to the third electronic device for answering, the method also includes: the collaborative module registers the second communication interface of the third electronic device in the virtual audio module; wherein, after the call is transferred to the third electronic device for answering, the first electronic device transmits the audio data in the call between the collaborative module and the virtual audio module through the second communication interface.
[0058] Optionally, after transferring the call to the second electronic device for answering, the method further includes: the first electronic device marking the calling state of the audio capability of the second electronic device as a fifth identifier.
[0059] Optionally, the method further includes: before creating the first control channel, the first electronic device determining that the second electronic device is in an online state; before creating the second control channel, the first electronic device determining that the third electronic device is in an online state.
[0060] Optionally, the first electronic device transfers the call to the third electronic device for answering through the second control channel, including: the first electronic device disconnects the first data channel between the first electronic device and the second electronic device, the first data channel being established before the call is transferred to the second electronic device; the first electronic device establishes a second data channel between the first electronic device and the third electronic device; after establishing the second data channel, the first electronic device transfers the call to the third electronic device for answering through the second control channel; wherein, the first data channel and the second data channel are used to transmit audio data in the call.
[0061] Optionally, when the first electronic device detects that the fourth electronic device is online, it creates a third control channel with the fourth electronic device; wherein, the third control channel is used to transfer the call flow to the fourth electronic device for answering when a third switching instruction corresponding to the fourth electronic device is received.
[0062] According to a third aspect, an electronic device is provided, comprising: one or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories being used to store computer program code, the computer program code comprising computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in the second aspect.
[0063] In a fourth aspect, a readable storage medium is provided, in which a computer program product is stored. The computer program product includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the second aspect.
[0064] In a fifth aspect, a chip system is provided, which is applied to an electronic device. The chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method described in the second aspect.
[0065] In a sixth aspect, a computer program product is provided, comprising computer instructions, which, when executed on an electronic device, causes the electronic device to execute the method as described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] FIG1 shows a schematic diagram of a system structure provided in an embodiment of the present application.
[0067] FIG2 shows a schematic diagram of a call transfer process provided in an embodiment of the present application.
[0068] FIG3 shows a schematic diagram of an interface for simultaneously providing incoming call reminders on multiple devices according to an embodiment of the present application.
[0069] FIG4 shows a schematic diagram of the interface after the call in FIG3 is transferred from the mobile phone to the tablet computer.
[0070] FIG5 shows a schematic diagram of an interface when the call in FIG4 is transferred from the tablet computer to the notebook computer.
[0071] FIG6 shows a schematic diagram of an interface when the call in FIG4 is transferred from the tablet computer to the notebook computer.
[0072] FIG. 7 shows a schematic diagram of an interface after the call in FIG. 5 and FIG. 6 is transferred from the tablet computer to the laptop computer.
[0073] FIG8 shows a call transfer schematic diagram provided in an embodiment of the present application.
[0074] FIG9 is a schematic diagram showing an interface of a mobile phone after the call service in FIG3 is transferred to a tablet computer or a laptop computer.
[0075] FIG10 shows a schematic diagram of the hardware structure of an electronic device suitable for the above method.
[0076] FIG11 shows a schematic diagram of the architecture of an electronic device provided in an embodiment of the present application.
[0077] FIG12 shows a schematic structural diagram of a collaboration module provided in an embodiment of the present application.
[0078] FIG13 shows a schematic structural diagram of a call system provided in an embodiment of the present application.
[0079] FIG14 shows a flow chart of a calling method provided in an embodiment of the present application.
[0080] FIG15 is a schematic diagram of the call transfer process in the scenarios shown in FIG3 to FIG7 .
[0081] FIG16 is a flowchart illustrating a process of enabling audio capabilities in the scenarios shown in FIG3 to FIG7 .
[0082] FIG17 shows a schematic diagram of a partial system architecture of an electronic device provided in an embodiment of the present application.
[0083] FIG18 shows a schematic diagram of a system structure provided in an embodiment of the present application.
[0084] FIG19 shows a schematic diagram of a process for enabling device capabilities provided in an embodiment of the present application.
[0085] FIG20 is a schematic diagram of the process of transferring a call from a mobile phone to a tablet computer for answering in the scenarios shown in FIG3 to FIG7 .
[0086] FIG21 shows a schematic diagram of data transmission provided in an embodiment of the present application.
[0087] FIG22 is a schematic diagram of the process of transferring a call from a tablet computer to a laptop computer for answering by a mobile phone in the scenarios shown in FIG3 to FIG7 .
[0088] Figure 23 shows a schematic diagram of a service transfer process provided in an embodiment of the present application.
[0089] FIG24 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0090] The technical solutions of this application will be described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them.
[0091] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0092] The term "comprising" herein indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their collections. The terms "include," "comprising," "having" and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0093] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0094] The term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. Additionally, the character " / " in this document generally indicates that the related objects are in an "or" relationship.
[0095] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of such phrases in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0096] The calling method provided in the embodiment of the present application can be applied to a system composed of multiple electronic devices, which may include multiple electronic devices, hereinafter referred to as devices, such as mobile phones, tablet computers, laptops, smart screens, smart speakers, personal computers (PCs), ultramobile personal computers (UMPCs), handheld computers, netbooks, smart home devices (such as smart TVs, large screens, smart air conditioners, etc.), personal digital assistants (PDAs), wearable devices (such as smart watches, smart bracelets, etc.), vehicle-mounted devices, virtual reality devices, etc., but not limited to these.
[0097] Figure 1 shows a schematic diagram of a system structure provided by an embodiment of the present application, which includes a mobile phone 1, a tablet computer 2, a laptop computer 3, a smart watch 4, a smart speaker 5, and headphones 6. After multiple devices have been mutually authenticated, a trust ring is formed. The process of mutual recognition between devices can refer to relevant technologies. For example, the judgment can be made based on one or more of whether the devices have logged in with the same system account, whether they have been authorized, and whether near-field communication is used. The details will not be repeated here.
[0098] It can be understood that in the same trust ring, multiple devices can safely share data, and the shared data includes but is not limited to audio data, video data, text data, notification information, and device information such as device name, device address and device type, but is not limited to this.
[0099] Based on the data sharing mechanism between multiple devices, after a device in a trust ring starts a service, it can act as the primary device and call upon the device capabilities of another device (the secondary device) in the trust ring to process the service. It can be understood that calling upon the device capabilities of the secondary device to process the service means that the primary device uses the device capabilities of the secondary device to collaboratively process the service.
[0100] Here, a service refers to a specific transaction processed by a device, such as a call service for answering a call, a system prompt service for outputting a system prompt, an audio playback service for playing music, a video playback service for playing a video, etc., but is not limited thereto.
[0101] Device capabilities can also be referred to as device functions, such as, but not limited to, audio capabilities for playing audio data, video capabilities for playing video data, and positioning capabilities for positioning. It is understood that some device capabilities can be subdivided into multiple capabilities, such as audio capabilities including audio playback and audio recording capabilities, and video capabilities including video playback and video recording capabilities.
[0102] In practice, when an electronic device has relevant hardware modules and software modules related to the hardware modules, the electronic device has the corresponding device capabilities. For example, a smart speaker includes a speaker and a software module for processing audio data, so the smart speaker has audio playback capabilities.
[0103] Typically, devices of different types have different hardware and software modules. Therefore, the device capabilities of a device can be determined based on its type. Device types may include wearable devices, vehicle-mounted devices, home appliances, office equipment, multimedia devices, Bluetooth headsets, etc. The specific method for classifying device types can be set based on needs and is not limited in this embodiment.
[0104] After being powered on, devices in the trust ring enter an online state and can push device information to other online devices in the trust ring to notify them to go online. They can also act as slave devices and share their capabilities with other devices. When processing a service, the master device can identify one or more online slave devices in the trust ring and invoke the device capabilities of one of them to process the service.
[0105] Taking phone calls as an example, answering a call requires the device's audio capabilities. In Figure 1, after being powered on, tablet 2 and laptop 3 push their respective device information to phone 1, notifying phone 1 that tablet 2 and laptop 3 are online. After the call is connected, phone 1 identifies tablet 2 and laptop 3, both online and audio-capable, as slave devices in the trusted loop and invokes the audio capabilities of one of these slave devices to handle the call.
[0106] Specifically, after a call is connected, if mobile phone 1 uses the audio capabilities of a secondary device to process the call, that is, transfers the call to the secondary device, then when mobile phone 1 receives downlink audio data from another mobile phone (the other device), it sends the downlink audio data to the secondary device, which then plays the downlink audio data. At the same time, the secondary device can collect the sound signal emitted by the user to obtain uplink audio data, send the uplink audio data to mobile phone 1, and mobile phone 1 sends the uplink audio data to the other device. This can achieve collaborative processing of call services, allowing the user to answer the call through the secondary device.
[0107] It is understood that the collaborative processing process of other services is similar to that of the call service. For example, when collaboratively processing the video playback service, the primary device sends video data to the secondary device, and the secondary device plays the video data. The specific collaborative process can be determined according to the service type and will not be described in detail in this embodiment.
[0108] It should be noted that, for ease of distinction, in this embodiment, the electronic device that provides device capabilities is referred to as the secondary device, and the electronic device that invokes device capabilities is referred to as the primary device. For example, tablet computer 2 that provides audio capabilities in a call service is referred to as the secondary device, and mobile phone 1 that invokes audio capabilities is referred to as the primary device. The primary and secondary devices can also be referred to by other names, such as the primary device can be referred to as the source device, and the secondary device can be referred to as the target device, but this embodiment does not limit this.
[0109] Currently, the primary device only supports transferring calls to one of the secondary devices; it doesn't support transferring calls between different secondary devices. For example, if Phone 1 determines that Tablet 2 and Laptop 3 are suitable secondary devices, it can transfer a call from Phone 1 to Tablet 2, or transfer a call from Phone 1 to Laptop 3. However, after Phone 1 transfers a call from Phone 1 to Tablet 2, it can no longer transfer the call from Tablet 2 to Laptop 3.
[0110] In practice, users may need to transfer a call from one auxiliary device to another. For example, after receiving an incoming call, mobile phone 1 answers the call and transfers it to tablet computer 2, where the user can then answer the call. If the user needs to open and edit a document on laptop computer 3 while on tablet computer 2, they will need to use both devices simultaneously, which is very inconvenient. If the call could be transferred from tablet computer 2 to laptop computer 3, the user could then edit the document on laptop computer 3 while answering the call, reducing the number of devices required and making it easier for the user to handle multiple tasks simultaneously.
[0111] In order to solve the problem that calls cannot be transferred between different auxiliary devices, an optional method is to first transfer the call back to the main device, and then transfer the call from the main device to another auxiliary device. Figure 2 shows a schematic diagram of a call transfer process provided by an embodiment of the present application. After the mobile phone 1 connects the call, it can first execute step S21 to call the audio capability of the tablet computer 2 to process the call service, that is, transfer the call to the tablet computer 2 for answering. At this time, the user can answer the call through the tablet computer 2. When the user needs to answer the call through the laptop computer 3, the call needs to be transferred from the tablet computer 2 to the laptop computer 3. At this time, the mobile phone 1 can first execute step S22 to transfer the call back to the mobile phone 1, and then execute step S23 to transfer the call to the laptop computer 3. At this time, the user can answer the call through the laptop computer 3.
[0112] When transferring a call from tablet 2 to laptop 3 using the method shown in Figure 2, the call must first be transferred back to phone 1 and then transferred from phone 1 to laptop 3, resulting in a long transfer process. Furthermore, since a call is ongoing during the transfer process, to avoid interrupting the call, the user must briefly answer the call on phone 1, then answer the call on laptop 3 after the call has been transferred. This is a cumbersome operation and results in a poor user experience.
[0113] In summary, during a call, a user may need to transfer a call from one secondary device to another. However, the primary device does not support direct call transfers between secondary devices. Even using the method shown in Figure 2, call transfers can still take a long time, the switching process is cumbersome, and the user experience is poor.
[0114] This embodiment provides a call system and a call method, in which the main device enables the audio capabilities of multiple auxiliary devices at the same time, so that the audio capabilities of multiple auxiliary devices are available at the same time. After the main device connects the call, it can transfer the call to one of the auxiliary devices for answering. If the call needs to be transferred from one auxiliary device to another new auxiliary device, since the audio capability of the new auxiliary device has been enabled, the main device can directly call the audio capability of the new auxiliary device to process the call service and directly transfer the call to the new auxiliary device, which not only allows the call to be directly transferred between different auxiliary devices, but also can avoid the call being transferred back to the main device, shorten the time taken to transfer the call from one auxiliary device to another, simplify user operations, and improve user experience.
[0115] Figures 3 to 7 show a schematic diagram of an application scenario of the above method. Figures 3 to 7 describe the process in which, after receiving an incoming call request, the mobile phone 1 first transfers the call to the tablet computer 2, then transfers the call from the tablet computer 2 to the laptop computer 3, and finally ends the call.
[0116] Figure 3 shows a schematic diagram of an interface for simultaneous call notifications on multiple devices, as provided in an embodiment of the present application. After receiving an incoming call request, mobile phone 1 displays an incoming call notification interface 11, notifying the user to answer the call. Incoming call notification interface 11 may include, but is not limited to, a disconnect control 12 and an answer control 13.
[0117] After receiving an incoming call request, mobile phone 1 can identify an online secondary device with audio capabilities from the trusted ring. For example, if tablet 2 and laptop 3 are online, they can be identified as secondary devices. After identifying tablet 2 and laptop 3 as secondary devices, mobile phone 1 can send a simultaneous call notification to tablet 2 and to laptop 3. The simultaneous call notification may include, but is not limited to, information such as the phone number, location, user name, and call signaling.
[0118] After receiving a co-seismic notification, tablet computer 2 and laptop computer 3 can provide incoming call reminders. As shown in Figure 3, tablet computer 2 can display a floating window 21 based on the user's name and phone number in the co-seismic notification to provide an incoming call reminder, prompting the user to answer the call. Floating window 21 may include, but is not limited to, a disconnect control 22 and an answer control 23.
[0119] Similarly, after receiving the co-earthquake notification, the laptop computer 3 may display a floating window 31 including an answer control 32 and a disconnect control 33 to remind the user of an incoming call and to prompt the user to answer the call.
[0120] Before or after sending the co-seismic notification to the tablet computer 2 and the laptop computer 3, the mobile phone 1 can enable the audio capability of the tablet computer 2 and the audio capability of the laptop computer 3, so that the audio capability of the tablet computer 2 is available and the audio capability of the laptop computer 3 is available, so that the mobile phone 1 can directly call the audio capability of the tablet computer 2 or call the audio capability of the laptop computer 3 to answer the call.
[0121] It is understandable that the tablet computer 2 and the laptop computer 3 can implement the incoming call reminder by displaying a floating window as shown in Figure 3, or by other methods, such as displaying an incoming call notification interface or a message bubble, etc., but is not limited thereto.
[0122] As shown in Figure 3, after receiving an incoming call request, mobile phone 1 displays an incoming call notification interface 11, tablet computer 2 displays a floating window 21, and laptop computer 3 displays a floating window 31. Mobile phone 1, tablet computer 2, and laptop computer 3 all vibrate simultaneously, alerting the user to the incoming call and notifying the user to answer the call. At this point, the user can choose any of mobile phone 1, tablet computer 2, and laptop computer 3 to answer the call.
[0123] For example, if the user chooses to answer a call on tablet 2, they can tap answer control 23 in floating window 21 as shown in Figure 3. Upon receiving the user's tap on answer control 23, tablet 2 sends an answer instruction to mobile phone 1. After receiving the answer instruction from tablet 2, mobile phone 1 answers the call corresponding to the incoming call request and transfers the call to tablet 2, allowing the user to answer the call on tablet 2.
[0124] Similarly, if the user chooses to answer the call on laptop 3, they can click the answer control 32 in floating window 31. Upon receiving the user's click on the answer control 32, laptop 3 sends an answer instruction to mobile phone 1. Upon receiving the answer instruction from laptop 3, mobile phone 1 can answer the call and transfer the call to laptop 3, allowing the user to answer the call on laptop 3.
[0125] Similarly, if the user chooses to answer the call on mobile phone 1, he can click the answer control 13 in the incoming call notification interface 11. When the mobile phone 1 receives the user's click operation on the answer control 13, the call is connected and the user can answer the call through mobile phone 1.
[0126] Figure 4 shows a schematic diagram of the interface after the call in Figure 3 is transferred from the mobile phone to the tablet computer. After the call is transferred to the tablet computer 2, the mobile phone 1 can display a call interface 14, in which the device icon 16 of the tablet computer 2 can be highlighted to indicate that the call has been transferred to the tablet computer 2.
[0127] At the same time, tablet computer 2 may display a call interface 24, which may be the same as or different from the call interface 14 displayed on mobile phone 1. Mobile phone 1 sends the downlink audio data to tablet computer 2 for playback. Tablet computer 2 then receives the uplink audio data and sends it to mobile phone 1. Mobile phone 1 then sends the uplink audio data to the peer device, and the user answers the call through tablet computer 2.
[0128] As shown in Figure 4 , before or after transferring a call to tablet computer 2, mobile phone 1 can send a stop co-vibration notification to laptop computer 3. After receiving the stop co-vibration notification, laptop computer 3 closes floating window 31 and stops the incoming call reminder. Figures 5 and 6 show the interface diagrams when the call in Figure 4 is transferred from the tablet computer to the laptop computer. The call interface 14 displays a device selection control 17. When the user is answering a call on tablet computer 2, if they want to transfer the call from tablet computer 2 to laptop computer 3, they can first click the device selection control 17 to display the device selection interface 18 on mobile phone 1. The device selection interface 18 includes a device icon 181 for laptop computer 3, a device icon 182 for tablet computer 2, a device icon 183 for the speaker in mobile phone 1, and a device icon 184 for the headset 6 connected to mobile phone 1. The user can then click the device icon 181 to cause mobile phone 1 to transfer the call to laptop computer 3.
[0129] As shown in Figure 6, a device selection control 26 is displayed in the call interface 24. When a user is answering a call on tablet computer 2 and wants to transfer the call from tablet computer 2 to laptop computer 3, they can first click device selection control 26, causing tablet computer 2 to display device selection interface 27. Device selection interface 27 includes a device icon 271 for laptop computer 3 and a device icon 272 for headset 6 connected to mobile phone 1. The user can then click device icon 271, causing tablet computer 2 to send a handover instruction to mobile phone 1 containing the device identifier of laptop computer 3. After receiving the handover instruction, mobile phone 1 transfers the call to laptop computer 3.
[0130] Figure 7 shows a schematic diagram of the interface after the call in Figures 5 and 6 is transferred from the tablet computer to the laptop computer. If the user clicks the device icon 181 or the device icon 271, the mobile phone 1 can transfer the call directly from the tablet computer 2 to the laptop computer 3. After the call is transferred to the laptop computer 3, the laptop computer 3 displays the call interface 34, and the mobile phone 1 can send the downlink audio data to the laptop computer 3 for playback. The laptop computer 3 can obtain the uplink audio data and send the uplink audio data to the mobile phone 1. Before or after the call is transferred from the tablet computer 2 to the laptop computer 3, the mobile phone 1 can send a stop command to the tablet computer 2. After receiving the stop command, the tablet computer 2 closes the call interface 24 in response to the stop command, stops playing the downlink audio data, and stops obtaining the uplink audio data. The mobile phone 1 stops sending the downlink audio data to the tablet computer 2, and stops receiving the uplink audio data sent by the tablet computer 2.
[0131] When a user answers a call on laptop computer 3 and needs to hang up, they can click the hang-up control 35 in the call interface 34. After receiving the user's click operation, laptop computer 3 responds to the click operation by stopping the call, closing the call interface 34, and sending a stop command to mobile phone 1. After receiving the stop command, mobile phone 1 can hang up the call and close the call interface 14.
[0132] Alternatively, the user can click the hang-up control 15 in the call interface 14. After receiving the user's click operation, the mobile phone 1 can hang up the call, close the call interface 14, and send a stop instruction to the laptop computer 3. After receiving the stop instruction, the laptop computer 3 stops processing the call and closes the call interface 34.
[0133] Similarly, when a user answers a call on tablet computer 2 and needs to hang up, they can click the hang-up control 25 in the call interface 24. After receiving the user's click operation, tablet computer 2 can stop processing the call in response to the click operation, close the call interface 24, and send a stop instruction to mobile phone 1. After receiving the stop instruction, mobile phone 1 can hang up the call and close the call interface 14.
[0134] Figure 8 shows a call transfer diagram provided by an embodiment of the present application. Referring back to Figures 3 and 4 , after receiving an incoming call request, mobile phone 1 displays an incoming call notification interface 11, tablet computer 2 displays a floating window 21, and laptop computer 3 displays a floating window 31. If the user clicks the answer control 23, mobile phone 1 executes step S81 to transfer the call to tablet computer 2.
[0135] Please refer back to Figures 5 and 7. During the process of answering a call via the tablet computer 2, if the user clicks the device icon 181, the mobile phone 1 executes step S82 to transfer the call from the tablet computer 2 to the laptop computer 3.
[0136] Because mobile phone 1 has enabled the audio capabilities of both tablet computer 2 and laptop computer 3, the audio capabilities of both tablet computer 2 and laptop computer 3 are available at the same time. Therefore, mobile phone 1 can directly use the audio capabilities of laptop computer 3 to answer the call and directly transfer the call to laptop computer 3.
[0137] Compared to the transfer process shown in Figure 2, the call does not need to be transferred back to mobile phone 1, which shortens the transfer time. At the same time, since the call does not need to be transferred back to mobile phone 1, the user does not need to use mobile phone 1 to answer the call during the transfer process, which can simplify user operations and improve user experience.
[0138] Figure 9 shows the interface of the mobile phone after the call in Figure 3 has been transferred to the tablet or laptop. After transferring the call to tablet 2 or laptop 3, mobile phone 1 can lock the call interface 14 after a preset time and display a floating window 19 on the display screen. Floating window 19 may include, but is not limited to, information such as the call duration and contact. When the user clicks floating window 19, mobile phone 1 can display call interface 14 again.
[0139] Figure 10 shows a schematic diagram of the hardware structure of an electronic device suitable for the above method. Electronic device 10 may include a processor 101, a wireless communication module 102, an audio module 103, a mobile communication module 104, a display 105, a storage module 106, and a power module 107. The electronic device may also include a microphone 1031, a receiver 1032, a speaker 1033, antennas 1 and 2, as well as a sensor module, a universal serial bus (USB) interface, an external memory interface, buttons, a motor, an indicator, a subscriber identification module (SIM) card interface, etc., but is not limited thereto.
[0140] The processor 101 may include one or more processing units. For example, the processor 101 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.
[0141] The wireless communication module 102 can provide wireless communication solutions such as wireless local area networks (WLAN), Bluetooth, and near-field communication on the application electronic device 10, but is not limited thereto. The wireless communication module 102 can be one or more devices that integrate at least one communication processing module. The wireless communication module 102 receives electromagnetic waves via the antenna 1, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101. The wireless communication module 102 can also receive signals to be transmitted from the processor 101, frequency modulate and amplify them, and the signals are converted into electromagnetic waves and radiated through the antenna 1.
[0142] The electronic device 10 can implement audio processing functions, such as audio playback and audio recording, through the audio module 103 , the microphone 1031 , the receiver 1032 , the speaker 1033 , and the application processor.
[0143] The audio module 103 is used to convert audio into an analog sound signal output, and can also be used to convert an analog sound signal into an audio stream. In some embodiments, the audio module 103 or some functional modules of the audio module 103 can be set in the processor 101.
[0144] The microphone 1031 , also called a “microphone” or a “speaker”, is used to convert a sound signal into an audio stream.
[0145] The receiver 1032, also called a "handset", is used to convert audio into sound signals. When the electronic device 10 receives a call or voice message, the user can place the receiver 1032 close to the ear to listen to the voice.
[0146] Speaker 1033 , also known as a "speaker," converts audio into sound signals for output. For example, when an application on an electronic device plays an audio file in pulse code modulation (PCM) format, the audio file is first decoded to generate a PCM audio stream. This PCM audio stream is then transmitted to speaker 1033 , where it is converted into a sound signal for output.
[0147] The mobile communication module 104 can provide second-generation (2G) mobile communication solutions, third-generation (3G) mobile communication solutions, fourth-generation (5G) mobile communication solutions, and fifth-generation (5G) mobile communication solutions, etc., applied to the electronic device 10. The mobile communication module 104 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), etc. The mobile communication module 104 can receive electromagnetic waves from the antenna 2, filter and amplify the received electromagnetic waves, and then transmit them to the modem processor for demodulation. The mobile communication module 104 can also amplify the signal modulated by the modem processor, and the amplified signal is converted into electromagnetic waves and radiated through the antenna 2.
[0148] Electronic device 10 can display images using a GPU, display screen 105, and an application processor, enabling video playback and image display capabilities. A GPU is a microprocessor for image processing that connects display screen 105 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 101 may include one or more GPUs that execute program instructions to generate or modify display information.
[0149] Storage module 106 is used to store instructions and data. Storage module 106, such as a cache memory, can store instructions or data that have just been used or are being recycled by processor 101. If processor 101 needs to use the instruction or data again, it can directly retrieve it from storage module 106. This avoids duplicate accesses, reduces processor 101's latency, and thus improves system efficiency.
[0150] The processor 101 and the storage module 106 may be combined into a processing device, or more commonly, they are independent components. In specific implementations, the storage module 106 may also be integrated into the processor 101 or independent of the processor 101.
[0151] The power module 107 is used to provide power to various devices or circuits in the electronic device 10, and may include a charging management unit, a power management unit, a battery, and the like.
[0152] It should be noted that the connection relationship between the modules shown in Figure 10 is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 10. Optionally, the modules of the electronic device 10 may also adopt a combination of multiple connection methods in the above embodiments. The structure shown in Figure 10 does not constitute a specific limitation on the electronic device 10. The electronic device 10 may include more or fewer components than those shown in Figure 10, or the electronic device 10 may include a combination of some of the components shown in Figure 10, or the electronic device 10 may include sub-components of some of the components shown in Figure 10. The components shown in Figure 10 may be implemented in hardware, software, or a combination of software and hardware.
[0153] Figure 11 shows a schematic diagram of the architecture of an electronic device provided by an embodiment of the present application. In Figure 11 , the left side shows the architecture of a primary device, such as a mobile phone 1 , and the right side shows the architecture of a secondary device, such as a tablet computer 2 .
[0154] Taking a mobile phone as an example, the operating system (OS) of the mobile phone includes an application layer, an application framework layer, and a hardware abstraction layer (HAL).
[0155] The application layer includes multiple different application (APP) packages. Applications are hereinafter referred to as "applications." Examples of applications include, but are not limited to, calling applications, video applications, and navigation applications. Different applications are used to launch and handle different services. For example, a calling application launches and handles calling services, while a video application launches and handles video playback services.
[0156] The application framework layer provides the application programming interface (API) and programming framework for applications in the application layer. The application framework layer can be further divided into the service layer, the device connection layer, and the collaboration module. The service layer provides service support for applications in the application layer. For example, for a calling application, the service layer can set up a calling framework and cellular calling services. These call framework and cellular calling services can provide service support for the calling application, enabling features such as caller ID, call routing, voicemail, and video conferencing.
[0157] Furthermore, the service layer also includes a call continuation service and a collaborative control center, which are used to provide service support for the transfer of services between primary and secondary devices. For example, for call services, the service layer is equipped with a call continuation service. The call continuation service accesses the call application and can monitor the call application. When the call application is monitored to start the call service, the call continuation service and the collaborative control center can determine the secondary device that supports the call service from multiple devices in the trust ring, interact with the call continuation service in the secondary device, and send a co-seismic notification to the secondary device, so that the secondary device and the primary device can simultaneously receive incoming call reminders.
[0158] It is understood that for different applications, different connection services can be set in the service layer to support the transfer of different services between the primary device and the secondary device. For example, for the video playback service, a video connection service can be set in the service layer.
[0159] The device connection layer is used to provide communication support for the collaboration between the primary device and the secondary device, and may include the device management module, discovery connection module, data transmission module, communication module and dynamic library shown in Figure 11, but is not limited thereto.
[0160] The device management module manages devices within the trust ring. For example, in the trust ring shown in Figure 1, after each device goes online, it can push device information to other devices within the trust ring to notify them of the online status. Each device can record the device information of online devices within the trust ring in a dynamic database and determine whether there are any online auxiliary devices within the trust ring based on the recorded device information.
[0161] The connection discovery module can detect devices in the trust ring and determine whether the devices in the trust ring are online or offline. The data transmission module is used to control the transmission of different types of data between devices.
[0162] The communication module establishes data and control channels between devices, transmitting data through the data channel and control information and protocol information through the control channel. Furthermore, the communication module provides a quality interface to the collaboration module. Through this interface, the collaboration module can obtain network quality metrics between the device and other devices. These metrics include parameters such as negotiated rate, signal strength, current average transmission delay, and packet loss rate. The device can notify the user when network quality indicators indicate poor quality.
[0163] The collaboration module can also be called the device virtualization layer. The collaboration module is used to provide functional support for collaboration between devices. For example, the collaboration module is a distributed mobile sensing development platform (DMSDP). The DMSDP can be composed of different virtualization units, such as the audio virtualization unit, display virtualization unit, and camera virtualization unit (not shown in the figure) shown in Figure 11. Different virtualization units are used to support sharing of different device capabilities between devices. For example, the audio virtualization unit is used to support sharing of audio capabilities between mobile phone 1 and tablet computer 2, and the display virtualization unit is used to support sharing of video playback capabilities between mobile phone 1 and tablet computer 2.
[0164] In this embodiment, when a device functions as a master, the collaboration module enables the master to invoke the device capabilities of a slave. When a device functions as a slave, the collaboration module enables the slave to provide its capabilities to the master. Each device capability has a corresponding capability identifier, also known as a service identifier. A service identifier represents a service that a slave can provide to the master. A service is a device capability that can be invoked by the master. The collaboration module can distinguish device capabilities through different service identifiers and enable sharing of device capabilities through service identifiers.
[0165] For example, audio playback capability and audio recording capability have different service identifiers. The service identifier of audio playback capability indicates the device's audio playback capability, while the service identifier of audio recording capability indicates the device's audio recording capability. Audio capabilities also have corresponding service identifiers, which indicate the device's audio playback capability and audio recording capability.
[0166] The primary device can invoke the device capabilities of the secondary device using a service identifier. For example, when mobile phone 1 transfers a call service to tablet 2, it first sends a service transfer request to tablet 2, including the service identifier for the audio capability. After receiving the service transfer request, tablet 2 can create an audio player (AudioTrack or MediaPlayer), an audio recorder (AudioRecord), and an audio processor (AudioFlinger).
[0167] Furthermore, when tablet computer 2 receives downlink audio data sent by mobile phone 1, it inputs the downlink audio data into the audio player, which then inputs the downlink audio data into the audio processor for processing. The audio processor then inputs the processed audio data into the speaker of tablet computer 2 for playback. Simultaneously, tablet computer 2 can obtain uplink audio data from the microphone via the audio recorder and send the uplink audio data to mobile phone 1.
[0168] The hardware abstraction layer (HAL) provides data support for the collaboration module, enabling it to access service data through interfaces within the HAL. For example, in the case of a call service, service data includes both uplink and downlink audio data. The HAL includes an audio hardware abstraction layer (Audio HAL), which includes a software module for supporting audio capability calls. This software module can be named a virtual audio module or another name.
[0169] When a mobile phone is processing a call, it receives downlink audio data from the other device via a modem. The modem then transmits the downlink audio data to the audio digital signal processing (ADSP), which then inputs the downlink audio data into the speakers for playback. Simultaneously, the mobile phone collects uplink audio data through a microphone and inputs it into the ADSP, which then sends the uplink audio data to the other device.
[0170] Before calling the audio capability of tablet computer 2, mobile phone 1 needs to enable the audio capability of tablet computer 2. When enabling the audio capability of tablet computer 2, the communication interface of tablet computer 2 can be registered in the virtual audio module. In the process of collaboratively processing call services, when mobile phone 1 receives uplink audio data sent by tablet computer 2, the collaborative module can call the communication interface to send the uplink audio data to ADSP, ADSP sends the uplink audio data to the modem, and the modem sends the uplink audio data to the peer device. At the same time, the collaborative module can call the communication interface to obtain the downlink audio data sent by the peer device from ADSP, and then send the downlink audio data to tablet computer 2 for playback.
[0171] The hardware layer includes different hardware modules of an electronic device, such as speakers, microphones, ADSPs, modems, cameras, and displays, but is not limited to these.
[0172] It is understood that FIG11 only introduces the architecture of the master device and the slave device using the Android operating system as an example, and does not constitute a limitation on the operating system of the master device and the slave device. The operating system of the master device and the slave device may also be other operating systems, such as the Windows system. When the operating system of the master device and the slave device is other operating system, the architecture of the operating system may be different from that shown in FIG11, but may include software modules such as the service layer, device connection layer, collaboration module, and virtual audio module shown in FIG11.
[0173] Figure 12 shows a structural schematic diagram of a collaborative module provided in an embodiment of the present application. The left side is a structural schematic diagram of the collaborative module in a main device, such as a mobile phone 1, and the right side is a structural schematic diagram of the collaborative module in an auxiliary device, such as a tablet computer 2.
[0174] The service interface layer is used to provide different interfaces to input information such as device identification and auxiliary device identification into the collaboration module, trigger the collaboration module to enable the auxiliary device, and call the device capabilities of the auxiliary device.
[0175] The access authentication unit and device authentication unit are used to authenticate and authorize the primary and secondary devices. The connection discovery unit is used to detect online secondary devices. The device management unit is used to manage secondary devices. The service matching unit is used to match different services to different businesses.
[0176] The Java native interface (JNI) provides support for the interaction between the collaborative module and the HAL, so that the collaborative module can obtain business data from the HAL through the communication interface registered in the HAL.
[0177] The service adaptation unit is used to adapt different device capabilities to different services. The audio processing unit is used to process audio data during service collaboration, such as resampling, encryption, and decryption. The video processing unit is used to process video data during service collaboration, such as cropping and rotating video data, encrypting and decrypting video data, and performing color space conversion and resolution conversion.
[0178] The hide interface description language (HIDL) adaptation unit is used to provide adaptation of the interface description language.
[0179] The transmission channel unit is used to create and manage channels between different devices, and has the device channel management function, service channel management function, output management function and session management function as shown in Figure 11.
[0180] The session layer provides data support for sessions between devices, such as heartbeat detection and the transmission of control information. The Real-time Transport Protocol (RTP) provides end-to-end real-time transmission services for multimedia data such as audio and video between collaborative modules, as well as time information and stream synchronization.
[0181] The data encryption unit is used to provide security support for the collaborative module and can encrypt the data transmitted by the collaborative module.
[0182] The network layer is used to provide different protocol support for the collaborative module, such as the User Datagram Protocol (UDP), the Transmission Control Protocol (TCP), and the Fill Up the Pipe (FILLP) protocol. The above examples are merely illustrative and do not constitute a specific limitation on the collaborative module. The composition of the collaborative module may include, but is not limited to, the various software units in the above examples.
[0183] Figure 13 shows a schematic diagram of the structure of a call system provided in an embodiment of the present application. Figure 14 shows a schematic diagram of the flow of a call method provided in an embodiment of the present application.
[0184] The call system includes a first electronic device, a second electronic device, and a third electronic device, and the call method is applied to the first electronic device in the call system. The first electronic device is configured to receive an incoming call request and connect the call corresponding to the incoming call request. After the call is connected, the first electronic device first transfers the call to the second electronic device for answering, and then transfers the call from the second electronic device to the third electronic device for answering.
[0185] Referring to Figure 8 , the first electronic device is a mobile phone 1, the second electronic device is a tablet computer 2, and the third electronic device is a laptop computer 3. The first electronic device is the primary device, and the second and third electronic devices are secondary devices. The second electronic device is the secondary device to which the call is transferred after the first call, and the third electronic device is the secondary device to which the call is transferred after it is transferred from the second electronic device.
[0186] It should be noted that the third electronic device may be one or more, and this embodiment does not limit this.
[0187] In one embodiment, when a first electronic device receives an incoming call request, it can issue an incoming call reminder. Simultaneously, upon receiving the incoming call request, the first electronic device can send a co-seismic notification to a second electronic device and a third electronic device, instructing the second and third electronic devices to issue incoming call reminders via the co-seismic notification. As shown in Figure 3, upon receiving the incoming call request, mobile phone 1 displays an incoming call notification interface 11 and sends co-seismic notifications to tablet computer 2 and laptop computer 3, respectively, causing tablet computer 2 to display a floating window 21 for incoming call reminders, and causing laptop computer 3 to display a floating window 31 for incoming call reminders.
[0188] After receiving an incoming call request, the first electronic device can enable the audio capability of the second electronic device and establish a first control channel between the first and second electronic devices, so that after the call is connected, the call can be transferred to the second electronic device through the first control channel. Similarly, the first electronic device can enable the audio capability of the third electronic device and establish a second control channel between the first and third electronic devices, so that after the call is transferred to the second electronic device, the call can be transferred to the third electronic device through the second control channel.
[0189] As shown in Figure 8, after receiving the incoming call request, mobile phone 1 can enable the audio capability of tablet computer 2 and establish a first control channel between mobile phone 1 and tablet computer 2. At the same time, mobile phone 1 enables the audio capability of laptop computer 3 and establishes a second control channel between mobile phone 1 and laptop computer 3.
[0190] In the call system shown in FIG13 , after the first electronic device receives an incoming call request, when the first electronic device or the second electronic device receives an operation to answer the incoming call, the first electronic device answers the call.
[0191] In one embodiment, after receiving an operation to answer an incoming call on the second electronic device, the second electronic device sends an answer instruction to the first electronic device. In response to the answer instruction, the first electronic device answers the call and transfers the call to the second electronic device through the first control channel. As shown in Figures 3 and 4, the operation to answer an incoming call is, for example, a click operation of clicking the answer control 23. When the tablet computer 2 receives the user's click operation of clicking the answer control 23, it sends an answer instruction to the mobile phone 1. After receiving the answer instruction, the mobile phone 1 answers the call in response to the answer instruction, and then transfers the call to the second electronic device through the first control channel. The method for the second electronic device to send an answer instruction to the first electronic device may include but is not limited to the above examples.
[0192] In another embodiment, the first electronic device answers the call when it receives an operation to answer the call. After the call is connected, if the first electronic device receives a second switching instruction corresponding to the second electronic device, it transfers the call to the second electronic device through the first control channel in response to the second switching instruction. As shown in Figure 3, the operation of answering the call is, for example, a click operation of clicking the answer control 13. After receiving the call request, the mobile phone 1 displays the call notification interface 11. When the mobile phone 1 receives the click operation of the user clicking the answer control 13, it answers the call. At this time, the mobile phone 1 answers the call and displays the call interface 14 shown in Figure 4. The call interface can also include a device selection control 17.
[0193] After the user clicks device selection control 17, mobile phone 1 displays device selection interface 18. The user can then click device icon 182 of tablet computer 2 to input a second handover instruction to mobile phone 1. The second handover instruction includes the device identifier of tablet computer 2. In response to the second handover instruction, mobile phone 1 can transfer the call to tablet computer 2 via the first control channel based on the device identifier in the second handover instruction. Methods for the first electronic device to receive the second handover instruction may include, but are not limited to, the examples described above.
[0194] In one embodiment, after a call is transferred to a second electronic device, upon receiving a first operation corresponding to a first control, the second electronic device sends a first handover instruction to the first electronic device. In response to the first handover instruction, the first electronic device transfers the call to a third electronic device. As shown in FIG6 , when a call is transferred to tablet computer 2, tablet computer 2 may display a call interface 24, which is also known as a second call interface. The first control included in the call interface is a device icon 271 for laptop computer 3. For example, the first operation involves clicking on device icon 271. When answering the call on tablet computer 2, the user can click on device icon 271. In response to the user's click on device icon 271, tablet computer 2 sends a first handover instruction to mobile phone 1. Device icon 271 is associated with laptop computer 3, and the first handover instruction may include the device identifier of laptop computer 3. Upon receiving the first handover instruction, mobile phone 1 transfers the call to laptop computer 3.
[0195] In another embodiment, after the call is transferred to the second electronic device, the first electronic device displays a first call interface, which includes a second control. The first electronic device receives the first handover instruction via the second control. As shown in Figure 5, the first call interface is call interface 14, and the second control is a device icon 181 for laptop computer 3. When the call is answered on tablet computer 2, the user can input the first handover instruction to mobile phone 1 by clicking device icon 181. After receiving the first handover instruction, mobile phone 1 transfers the call to laptop computer 3.
[0196] In this embodiment, before transferring the call to the second electronic device for answering, the first electronic device registers the device identification of the second electronic device; the first electronic device marks the enabled state of the audio capability of the second electronic device as the first identification; the first electronic device marks the calling state of the audio capability of the second electronic device as the second identification; when the first electronic device determines that the enabled state of the audio capability of the second electronic device is the first identification and the calling state of the audio capability of the second electronic device is the second identification based on the device identification of the second electronic device, the first electronic device transfers the call to the second electronic device for answering through the first control channel.
[0197] The first identifier indicates that the audio capability of the second electronic device is enabled as disabled, and the second identifier indicates that the audio capability of the second electronic device is not invoked. Before transferring the call to the second electronic device for answering, the first electronic device registers the device identifier of the second electronic device in the first electronic device, marks the enabled state of the audio capability of the second electronic device as the first identifier, and marks the invoked state of the audio capability of the second electronic device as the second identifier.
[0198] Before transferring the call to the second electronic device, the first electronic device transfers the call to the second electronic device when determining that the enabled state of the audio capability of the second electronic device is the first identifier and the calling state is the second identifier.
[0199] Similarly, before transferring the call to the third electronic device for answering, the first electronic device registers the device identifier of the third electronic device; the first electronic device marks the enabled state of the audio capability of the third electronic device as the third identifier; the first electronic device marks the calling state of the audio capability of the third electronic device as the fourth identifier; when the first electronic device determines that the enabled state of the audio capability of the third electronic device is the third identifier and the calling state of the audio capability of the third electronic device is the fourth identifier based on the device identifier of the second electronic device, the first electronic device transfers the call to the second electronic device for answering through the first control channel.
[0200] The third identifier may be the same as the first identifier, indicating that the audio capability of the third electronic device is enabled as disabled. The fourth identifier may be the same as the second identifier, indicating that the audio capability of the third electronic device is not called as enabled. Before transferring the call to the third electronic device for answering, the first electronic device registers the device identifier of the third electronic device in the first electronic device, marks the enabled state of the audio capability of the third electronic device as the third identifier, and marks the called state of the audio capability of the third electronic device as the fourth identifier.
[0201] Before transferring the call to the third electronic device, the first electronic device transfers the call to the third electronic device when determining that the enabled state of the audio capability of the third electronic device is the third identifier and the calling state is the fourth identifier.
[0202] In this embodiment, a first electronic device includes a collaboration module and a virtual audio module. Before transferring a call to a second electronic device, the collaboration module registers a first communication interface with the virtual audio module. After transferring the call to the second electronic device, the first electronic device transmits audio data from the call between the collaboration module and the virtual audio module via the first communication interface. The audio data from the call includes both uplink and downlink audio data.
[0203] Similarly, before transferring the call to the third electronic device for answering, the collaborative module registers the second communication interface in the virtual audio module; after transferring the call to the third electronic device for answering, the first electronic device transmits the audio data in the call between the collaborative module and the virtual audio module through the second communication interface.
[0204] FIG15 is a schematic diagram of the call transfer process in the scenarios shown in FIG3 to FIG7 .
[0205] Please refer back to Figures 1 and 3. At this moment, mobile phone 1, tablet computer 2, and laptop computer 3 are all online. Mobile phone 1 is the first electronic device, tablet computer 2 is the second electronic device, and laptop computer 3 is the third electronic device. After receiving the incoming call request, mobile phone 1 can determine that tablet computer 2 and laptop computer 3 are auxiliary devices, enable the audio capabilities of tablet computer 2, and enable the audio capabilities of laptop computer 3. After enabling the audio capabilities of tablet computer 2 and laptop computer 3, the call can be transferred between mobile phone 1, tablet computer 2, and laptop computer 3. The call transfer process is as follows:
[0206] Step 11: Mobile phone 1 receives the incoming call request.
[0207] Step 12: Mobile phone 1 determines that tablet computer 2 and laptop computer 3 are online and support call services.
[0208] Step 13: Mobile phone 1 sends a co-seismic notification to tablet computer 2.
[0209] Step 14: Mobile phone 1 sends a co-earthquake notification to laptop computer 3.
[0210] Step 15: Mobile phone 1 receives an incoming call reminder.
[0211] Step 16: Tablet computer 2 performs incoming call reminder.
[0212] Step 17: Laptop computer 3 performs an incoming call reminder.
[0213] Please refer back to Figure 3. After receiving the incoming call request, the mobile phone 1 reminds the user of the incoming call by displaying the incoming call notification interface 14. When the tablet computer 2 and the laptop computer 3 are online, the mobile phone 1 can determine that the tablet computer 2 and the laptop computer 3 are auxiliary devices, and the tablet computer 2 and the laptop computer 3 support call services. After determining that the tablet computer 2 and the laptop computer 3 are auxiliary devices, the mobile phone 1 sends a simultaneous earthquake notification to the tablet computer 2. After receiving the simultaneous earthquake notification, the tablet computer 2 reminds the user of the incoming call by displaying a floating window 21. Similarly, the mobile phone 1 sends a simultaneous earthquake notification to the laptop computer 3. After receiving the simultaneous earthquake notification, the laptop computer 3 reminds the user of the incoming call by displaying a floating window 31. The ways in which the tablet computer 2 and the laptop computer 3 remind the user of the incoming call may include, but are not limited to, reminding the user of the incoming call by displaying a floating window.
[0214] Among them, step 13, step 14 and step 15 can be executed simultaneously or in steps. The order of step 13, step 14 and step 15 can be set according to needs, and this embodiment does not limit this.
[0215] Step 18: Mobile phone 1 enables the audio capability of tablet computer 2.
[0216] Step 19: Mobile phone 1 enables the audio capability of laptop computer 3.
[0217] Among them, the mobile phone 1 can enable the audio capability of the tablet computer 2 before or after displaying the incoming call notification interface 14, so that the audio capability of the tablet computer 2 reaches a usable state, and enable the audio capability of the laptop computer 3, so that the audio capability of the laptop computer 3 reaches a usable state.
[0218] Step 20: Tablet computer 2 receives the answering operation.
[0219] 3 , the answering operation is a click operation of clicking the answering control 23. After receiving the click operation, the tablet computer 2 responds to the click operation and sends an answering instruction to the mobile phone 1. The answering operation may include but is not limited to the operation of clicking the answering control in the above example.
[0220] Step 21: After receiving the answering operation, the tablet computer 2 sends an answering instruction to the mobile phone 1, where the answering instruction includes the device identification of the tablet computer 2.
[0221] Step 22: After receiving the answering instruction sent by the tablet computer 2, the mobile phone 1 sends a stop co-seismic notification to the laptop computer 3.
[0222] Step 23: Laptop computer 3 stops the incoming call reminder after receiving the stop co-seismic notification.
[0223] Step 24: After receiving the answering instruction sent by the tablet computer 2, the mobile phone 1 answers the call and transfers the call to the tablet computer 2.
[0224] Step 25: Tablet 2 answers the call.
[0225] Referring to Figure 4 , the answer command sent by tablet 2 includes the tablet's device identifier. After receiving the answer command, mobile phone 1 answers the call and, based on the device identifier in the answer command, transfers the call to tablet 2. Simultaneously, it sends a stop co-tune notification to laptop 3, instructing it to close floating window 31 and stop the incoming call notification. At this point, mobile phone 1 displays call interface 14, tablet 2 displays call interface 24, and floating window 31 on laptop 3 closes. After the call is transferred to tablet 2, tablet 2 plays the downlink audio data, receives the uplink audio data, and sends the uplink audio data to mobile phone 1. The user then answers the call on tablet 2.
[0226] Step 22 may be performed before or after step 24, and this embodiment does not limit this.
[0227] Step 26: Mobile phone 1 receives a switching instruction, which instructs to switch the call to laptop computer 3.
[0228] 5 , the switching instruction is input by the user by clicking on the device icon 181, which is bound to the device ID of the laptop 3. In response to the user clicking on the device icon 81, the mobile phone 1 determines the device ID of the laptop 3 bound to the device icon 181.
[0229] 6 , the switching instruction is sent by the tablet computer 2 . Upon receiving the switching operation of the user clicking the device icon 271 , the tablet computer 2 sends the switching instruction to the mobile phone 1 . The switching instruction includes the device identification of the laptop computer 3 .
[0230] Step 27: After receiving the switching instruction, the mobile phone 1 sends a stop instruction to the tablet computer 2.
[0231] Step 28: After receiving the stop instruction, the tablet computer 2 stops answering the call.
[0232] Step 29: After receiving the switching instruction, mobile phone 1 transfers the call to laptop computer 3 for answering.
[0233] Step 30: Laptop computer 3 starts answering the call.
[0234] Referring to Figure 7 , after receiving the handover command and identifying the device identifier of laptop computer 3 corresponding to the handover command, mobile phone 1 sends a stop command to tablet computer 2. Upon receiving the stop command, tablet computer 2 closes call interface 24 and stops answering the call. Simultaneously, mobile phone 1 transfers the call to laptop computer 3, which displays call interface 34, answers the call, plays the downlink audio data sent by mobile phone 1, and retrieves and sends the uplink audio data to mobile phone 1. The user then answers the call on laptop computer 3.
[0235] Step 31: Laptop computer 3 receives the hang-up operation.
[0236] 7 , the hang-up operation is, for example, clicking the hang-up control 35. When the laptop computer 3 receives the click operation on the hang-up control 35, it responds to the click operation and sends a hang-up instruction to the mobile phone 1. The hang-up operation may include but is not limited to the operation of clicking the hang-up control in the above example.
[0237] Step 32: The laptop computer 3 sends a hang-up instruction to the mobile phone 1.
[0238] Step 33: After receiving the hang-up operation, the laptop computer 3 stops answering the call.
[0239] 7 , after receiving the hang-up operation, the laptop computer 3 closes the call interface 34 , stops playing the downlink audio data, and stops acquiring the uplink audio data.
[0240] Step 34: Mobile phone 1 hangs up the call after receiving the hang-up instruction.
[0241] Step 35: After receiving the hang-up instruction, the mobile phone 1 disables the audio capability of the tablet computer 2 and the audio capability of the laptop computer 3 .
[0242] After receiving the hang-up instruction, the mobile phone 1 may stop hanging up the call and close the call interface 14. In addition, the mobile phone 1 may disable the audio capability of the tablet computer 2 and the audio capability of the laptop computer 3.
[0243] To facilitate understanding of the various steps in the process shown in Figure 15, the call transfer process in the scenarios shown in Figures 3 to 7 is described in detail below with reference to Figures 16, 20, and 22. Figure 16 is a flowchart illustrating the process of enabling audio capabilities in the scenarios shown in Figures 3 to 7.
[0244] Please refer back to Figures 11 and 12. For easy distinction, "first" and "second" are used in Figure 16 to identify the same functional modules in mobile phone 1 and tablet computer 2 respectively. "First" indicates that the functional module is the functional module in mobile phone 1, for example, the first collaborative module is the collaborative module in mobile phone 1, and "second" indicates that the functional module is the functional module in tablet computer 2, for example, the second call connection service is the call connection service in tablet computer 2.
[0245] Meanwhile, in FIG16 , the second collaborative module refers to each functional module included in the collaborative module of the tablet computer 2. The specific implementation of each functional module in the tablet computer 2 during the enabling process can refer to the same functional module in the mobile phone 1. It is understood that the steps shown in FIG16 are schematic diagrams of the interaction of some functional modules in FIG11 and FIG12 during the enabling process. Other functional modules also participate in the enabling process, which are not shown in FIG16 in this embodiment.
[0246] Refer back to Figures 1 and 3. At this moment, mobile phone 1, tablet computer 2, and laptop computer 3 are all online. After receiving an incoming call request, mobile phone 1 can determine that tablet computer 2 and laptop computer 3 are auxiliary devices and enable the audio capabilities of tablet computer 2 and laptop computer 3. Mobile phone 1 is the first electronic device, tablet computer 2 is the second electronic device, and laptop computer 3 is the third electronic device. The specific enabling process is as follows:
[0247] Step 100: The first call connection service monitors an incoming call request.
[0248] For example, the first call connection service accesses the call application in the mobile phone 1 and can monitor the call application. When the call application receives an incoming call request, the first call connection service can monitor the incoming call request.
[0249] Referring to FIG15 , step 100 corresponds to step 11. After monitoring the incoming call request, mobile phone 1 executes step 12 to determine the device identifications of online tablet computer 2 and laptop computer 3. Step 12 includes steps 101 and 102 shown in FIG16 .
[0250] Step 101: After monitoring an incoming call request, the first call connection service obtains a device list from a first dynamic library.
[0251] Exemplarily, the device list stores the device information of all online devices in the trust ring. When tablet computer 2 and laptop computer 3 are online, they push their respective device information to mobile phone 1. Mobile phone 1 can then store tablet computer 2's device information in the device list in the first dynamic library, and store laptop computer 3's device information in the device list in the first dynamic library. For example, tablet computer 2's device information includes its device identification and device type, such as a multimedia device. Laptop computer 3's device information includes its device identification and device type, such as an office device.
[0252] It is understood that mobile phone 1 can update the device information in the device list in real time. For example, when tablet computer 2 is offline, it can send a logoff notification to mobile phone 1. Mobile phone 1 can then delete the device information of tablet computer 2 stored in the device list based on the logoff notification. Alternatively, if mobile phone 1 does not detect tablet computer 2 as online for a preset period of time, it can delete the device information of tablet computer 2 stored in the device list.
[0253] Step 102: After obtaining the device list, the first call connection service determines the device identifier of the tablet computer 2 with audio capability from the device list.
[0254] Exemplarily, the default device types corresponding to the call service include office equipment and multimedia equipment. After monitoring the incoming call request, the first call connection service can obtain a device list including the device information of tablet computer 2 and the device information of laptop computer 3 from the first dynamic library. Then, since the device type included in the device information of tablet computer 2 is the same as the default device type (multimedia device), the device information of tablet computer 2 can be determined from the device list, and the device identification of tablet computer 2 can be determined from the device information of tablet computer 2, so that it can be determined that tablet computer 2 is an auxiliary device and tablet computer 2 has the audio capability to support the call service. Similarly, the device type included in the device information of laptop computer 3 is the same as the default device type (office equipment), the device identification of laptop computer 3 can be determined, and it can be determined that laptop computer 3 has the audio capability to support the call service.
[0255] It is understandable that the device list can also include device information of other online devices, such as the device information of the smart watch 4 and speaker 5 shown in Figure 1. Since the device type included in the device information of the smart watch 4 and speaker 5 is inconsistent with the default device type, the smart watch 4 and speaker 5 are not included in the determined auxiliary devices.
[0256] After determining that tablet computer 2 and laptop computer 3 are auxiliary devices, mobile phone 1 sends a co-seismic notification to tablet computer 2 and laptop computer 3. The following takes tablet computer 2 as an example to illustrate the sending process of the co-seismic notification. The same applies to laptop computer 3 and tablet computer 2.
[0257] Step 103: The first call connection service sends a co-seismic notification to the first communication module.
[0258] Step 104: After receiving the co-seismic notification, the first communication module sends the co-seismic notification to the second communication module.
[0259] For example, the device information pushed by tablet computer 2 to mobile phone 1 may also include the device address of tablet computer 2, such as the Internet Protocol (IP) address of tablet computer 2 in the local area network. The co-seismic notification may include the device address of tablet computer 2, and the first communication module may send the co-seismic notification to the second communication module based on the device address of tablet computer 2. The specific method for mobile phone 1 to send the co-seismic notification to tablet computer 2 can be configured as needed and is not limited in this embodiment.
[0260] Step 105: After receiving the co-seismic notification, the second communication module forwards the co-seismic notification to the second call connection service.
[0261] Step 106: After receiving the co-seismic notification, the second call connection service controls the tablet computer 2 to issue an incoming call reminder.
[0262] Step 13 in Figure 15 includes steps 103 and 104, and step 16 corresponds to step 106. Referring back to Figure 3, upon receiving the simultaneous earthquake notification, the second call connection service can control the display of tablet computer 2 to display a floating window 21, simultaneously providing an incoming call reminder with mobile phone 1. Similarly, upon receiving the simultaneous earthquake notification, laptop computer 3 can display a floating window 31, simultaneously providing an incoming call reminder with mobile phone 1.
[0263] Step 107: After receiving the co-seismic notification, the second call connection service sends a start instruction to the second cooperation module.
[0264] Step 108: The second collaborative module starts running after receiving the start instruction.
[0265] Step 109: After determining the device identification of the tablet computer 2, the first call connection service may send a start instruction to the first service interface layer. Sending the start instruction to the first service interface layer means sending the start instruction to the first collaboration module.
[0266] Step 110: The first collaborative module starts running after receiving the start instruction.
[0267] It is understandable that after obtaining the device list, if the first call connection service determines that the device list does not include the device identifier of the auxiliary device, it may not execute 109, not send a start instruction to the first collaboration module, and not start the first collaboration module.
[0268] It is understandable that step 103 may be performed before step 109, after step 109, or simultaneously with step 109. Similarly, step 107 may be performed before step 106, after step 106, or simultaneously with step 106.
[0269] Step 111: After the second collaboration module is started, it sends a first startup success notification to the second call connection service to notify the second call connection service that the second collaboration module has been started and can share device capabilities.
[0270] Among them, after the startup fails, the second collaborative module can send a startup failure notification to the second call connection service, the second call connection service sends a startup failure notification including the device identification of the tablet computer 2 to the second communication module, and the second communication module forwards the startup failure notification to the first communication module.
[0271] Correspondingly, after receiving the startup failure notification, the first communication module sends a startup failure notification to the first call connection service. After receiving the startup failure notification, the first call connection service can determine based on the device identifier in the startup failure notification that tablet computer 2 cannot provide audio capabilities. Therefore, step 115 and subsequent steps are not executed, and the audio capabilities of tablet computer 2 are not enabled. Similarly, when the collaboration module in laptop computer 3 fails to start, mobile phone 1 does not enable the audio capabilities of laptop computer 3.
[0272] Step 112: After receiving the first activation success notification, the second call connection service sends a second activation success notification to the second communication module.
[0273] For example, the second successful startup notification includes the device identifier of tablet computer 2. After receiving the first successful startup notification, the second call connection service determines that the second collaboration module is started and running, and tablet computer 2 can provide audio capabilities to mobile phone 1. The second call connection service can send a second successful startup notification including the device identifier of tablet computer 2 to the second communication module.
[0274] Step 113: After receiving the second startup success notification, the second communication module sends the second startup success notification to the first communication module.
[0275] Step 114: After receiving the second activation success notification, the first communication module sends the second activation success notification to the first call connection service.
[0276] For example, the second successful startup notification includes the device identifier of tablet computer 2. After receiving the second successful startup notification, the first call connection service obtains the device identifier of tablet computer 2 from the second successful startup notification and determines, based on the device identifier of tablet computer 2, that the second collaboration module in tablet computer 2 has been activated. At this point, the first call connection service instructs the first collaboration module to enable the audio capability of tablet computer 2.
[0277] It should be noted that steps 107 to 114 are not shown in FIG15 . The process of enabling the audio capability of tablet computer 2 in step 18 includes steps 115 to 154 shown in FIG16 . Similarly, the process of enabling the audio capability of laptop computer 3 in step 19 includes steps 115 to 154 shown in FIG16 . The following describes the process of enabling the audio capability of tablet computer 2 as an example. The process of enabling the audio capability of laptop computer 3 is similar and is not described in detail in this embodiment.
[0278] Step 115 : The first call connection service inputs the device identifier of the tablet computer 2 and the capability identifier of the audio capability to the first collaboration module, so that the first collaboration module enables the audio capability of the tablet computer 2 .
[0279] Exemplarily, the first call connection service obtains the device identification of the tablet computer 2 from the second startup success notification, and obtains the capability identification of the audio capability corresponding to the call service, and then calls the enable interface provided by the first service interface layer to input the device identification of the tablet computer 2 into the first service interface layer, and at the same time inputs the capability identification of the audio capability to instruct the first collaborative module to enable the audio capability of the tablet computer 2.
[0280] It is understood that after receiving the second success notification including the device identifier of tablet computer 2, the first call connection service executes step 115 and subsequent steps to enable the audio capability of tablet computer 2. Similarly, after receiving the second success notification including the device identifier of laptop computer 3, the first call connection service executes step 115 and subsequent steps to enable the audio capability of laptop computer 3.
[0281] Step 116: After receiving the device identification and the capability identification of the audio capability of the tablet computer 2 , the first service interface layer sends a verification instruction to the first device management unit. The verification instruction may include the device identification of the tablet computer 2 .
[0282] Step 117: After receiving the verification instruction, the first device management unit obtains a device list from the first dynamic library.
[0283] After receiving the verification instruction, the first device management unit obtains a device list from the first dynamic library. The device list stores device information of online devices within the trust ring. The first device management unit determines that tablet computer 2 is online when it determines that the device list contains the device information of tablet computer 2, and determines that tablet computer 2 is offline when it determines that the device list does not contain the device information of tablet computer 2.
[0284] Step 118: The first device management unit determines that the device list includes the device identifier of the tablet computer 2.
[0285] Step 119: After determining that the device list includes the device identification of the tablet computer 2, the first device management unit sends a verification success notification to the first service interface layer to notify the first service interface layer that the tablet computer 2 is online.
[0286] When the first device management unit determines that tablet computer 2 is offline, it can send a verification failure notification to the first service interface layer. After receiving the verification failure notification, the first service interface layer does not perform subsequent steps and ends enabling the audio capability of tablet computer 2. At the same time, the first service interface layer sends a notification to the first call connection service, notifying the first call connection service that enabling the audio capability of tablet computer 2 has failed.
[0287] Step 120: After receiving the verification success notification, the first service interface layer sends a connection instruction to the first device management unit.
[0288] After receiving the verification success notification, the first service interface layer determines that the tablet computer 2 is online and can send a connection instruction to the first device management unit to instruct the first device management unit to establish a first control channel between the mobile phone 1 and the tablet computer 2.
[0289] Step 121: After receiving the connection instruction, the first device management unit sends a negotiation channel creation instruction to the first communication module.
[0290] Step 122: After receiving the negotiation channel creation instruction, the first communication module creates a negotiation channel with the second communication module.
[0291] The negotiation channel is used to negotiate device information, such as device identification and device address, between devices, and to establish a control channel between the devices using the negotiated device information. The negotiated device information includes, but is not limited to, device identification and device address. The first and second collaborative modules can exchange device information, such as device identification and device address, of mobile phone 1 and tablet computer 2 via the negotiation channel, and use the exchanged device information to establish a control channel between mobile phone 1 and tablet computer 2.
[0292] Step 123: After the negotiation channel is successfully created, the first communication module sends a negotiation channel creation success notification to the first device management module.
[0293] Step 124: Similarly, after the negotiation channel is successfully created, the second communication module sends a negotiation channel creation success notification to the second collaboration module.
[0294] When the negotiation channel fails to be established, the first communication module may send a negotiation channel creation failure notification to the first device management unit, which in turn sends a negotiation channel creation failure notification to the first service interface layer. Upon receiving the negotiation failure notification, the first service interface layer terminates the audio capability of tablet computer 2. Furthermore, the first service interface layer sends a notification to the first call connection service, notifying the first call connection service of the failure to enable the audio capability of tablet computer 2.
[0295] Step 125: After receiving the notification of successful negotiation channel creation, the first device management unit sends a negotiation instruction to the first communication module.
[0296] Step 126: After receiving the negotiation instruction, the first communication module negotiates device information with the second communication module.
[0297] For example, the first communication module can send a negotiation request to the second communication module. After receiving the negotiation request, the second communication module sends device information such as the device address and device identifier of tablet computer 2 to the first communication module. At the same time, the first communication module can proactively send device information such as the device address and device identifier of mobile phone 1 to the second communication module.
[0298] Step 127: After the device information negotiation is successful, the first communication module sends a negotiation success notification to the first device management unit.
[0299] For example, the negotiation success notification sent by the first communication module to the first device management unit may include the negotiated device information of the tablet computer 2. After receiving the negotiation success notification, the first device management unit may instruct the first communication module to establish a control channel between the mobile phone 1 and the tablet computer 2 based on the device information in the negotiation success notification.
[0300] Step 128: Similarly, after the device information negotiation is successful, the second communication module sends a negotiation success notification to the second collaboration module. The negotiation success notification sent by the second communication module to the second collaboration module may include the device information of the mobile phone 1 obtained through negotiation.
[0301] Step 129: After receiving the negotiation success notification, the first device management unit sends a channel creation instruction to the first transmission channel unit.
[0302] Please refer to step 127. After obtaining the negotiated device information of the tablet computer 2, the first device management unit can send a channel creation instruction including the device information of the tablet computer 2 to the first transmission channel unit to instruct the first transmission channel unit to establish a first control channel between the mobile phone 1 and the tablet computer 2.
[0303] Step 130: After receiving the channel creation instruction, the first transmission channel unit forwards the channel creation instruction to the first communication module.
[0304] Step 131 : After receiving the channel creation instruction, the first communication module creates a first control channel between the mobile phone 1 and the tablet computer 2 .
[0305] For example, after receiving the channel creation instruction, the first communication module can interact with the second communication module based on the device information of the tablet computer 2 included in the channel creation instruction to establish a first control channel between the mobile phone 1 and the tablet computer 2. The specific process of establishing the first control channel can be set as required and is not limited in this embodiment.
[0306] Step 132: After receiving the notification of successful creation of the first control channel, the first communication module sends a notification of successful creation of the control channel to the first device management unit.
[0307] Step 133: Similarly, after receiving the notification of successful creation of the first control channel, the second communication module sends a notification of successful creation of the control channel to the second coordination module.
[0308] Step 134: After receiving the notification of successful creation of the control channel, the first device management unit forwards the notification of successful creation of the control channel to the first service interface layer.
[0309] When the control channel fails to be established, the first communication module may send a control channel creation failure notification to the first transmission channel unit, which in turn sends a control channel creation failure notification to the first service interface layer, causing the first service interface layer to terminate the enabling of the audio capability of tablet computer 2. Simultaneously, the first service interface layer sends a notification to the first call connection service, notifying the first call connection service that enabling the audio capability of tablet computer 2 has failed.
[0310] Step 135: After receiving the notification of successful creation of the control channel, the first service interface layer sends a request for obtaining device capability information to the first device management unit.
[0311] The request for obtaining the device capability information may include the device identification of the tablet computer 2 to instruct the acquisition of the device capability information of the tablet computer 2 .
[0312] Step 136: After receiving the request for obtaining device capability information, the first device management unit forwards the request for obtaining device capability information to the first communication module.
[0313] Step 137: After receiving the request for obtaining device capability information, the first communication module sends a request for obtaining device capability information to the second communication module.
[0314] Please refer to step 135. The request for obtaining device capability information includes the device identification of tablet computer 2. After receiving the request for obtaining device capability information, the first communication module can determine that the request needs to be sent to tablet computer 2 based on the device identification of tablet computer 2, and send the request for obtaining device capability information to tablet computer 2 through the first control channel pre-established between mobile phone 1 and tablet computer 2.
[0315] Step 138: After receiving the request for obtaining device capability information, the second communication module sends a request for obtaining device capability information to the second coordination module.
[0316] Step 139: After receiving the request for obtaining device capability information, the second collaboration module may send the device capability information of the tablet computer 2 to the second communication module.
[0317] Exemplarily, tablet computer 2 can store device information of tablet computer 2 in the second dynamic library. The device information includes information such as the device identification and device address of tablet computer 2. It can also include the service identification of each device capability of tablet computer 2 and the enablement status information of each device capability. The enablement status information indicates whether the enablement status of the device capability is enabled or not enabled.
[0318] After receiving the request to obtain device capability information, the second collaborative module can obtain the device information of tablet computer 2 from the second dynamic library, and determine the service identifier of each device capability of tablet computer 2 from the device information of tablet computer 2, and then send the device capability information of tablet computer 2 to the second communication module. The sent device capability information includes the service identifier and enablement status information of each device capability of tablet computer 2.
[0319] Step 140: After receiving the device capability information, the second communication module forwards the device capability information to the first communication module.
[0320] Step 141: After receiving the device capability information sent by the second communication module, the first communication module forwards the device capability information to the first service interface layer.
[0321] Step 142: After receiving the device capability information, if the first service interface layer determines that the device capability information includes the service identifier of the audio capability, it sends a registration instruction to the first device management unit.
[0322] The default device capability for the call service is audio capability. If the first service interface layer determines that the device capability information includes the service identifier for audio capability, it determines that tablet computer 2 has audio capability and sends a registration instruction to the first device management unit to continue enabling the audio capability of tablet computer 2. Conversely, if it determines that the device capability information does not include the service identifier for audio capability, it determines that tablet computer 2 does not have audio capability, and step 142 is not executed, ending the enabling of the audio capability of tablet computer 2.
[0323] In one embodiment, after receiving the device capability information of the tablet computer 2, the mobile phone 1 may include the service identifier of the audio capability in the device capability information, and send a registration instruction to the first device management unit when the audio capability enablement status information corresponding to the audio capability service identifier indicates that the audio capability of the tablet computer 2 is not enabled. Conversely, when the enablement status information indicates that the audio capability of the tablet computer 2 is enabled, the registration instruction is not sent to the first device management unit, and the enabling of the audio capability of the tablet computer 2 is terminated.
[0324] Optionally, in the process of enabling the audio capability of the tablet computer 2 , the mobile phone 1 may also obtain enabling status information of the audio capability of the tablet computer 2 from the tablet computer 2 before step 115 .
[0325] For example, after receiving the second startup success notification, the first call continuation service may send a request for obtaining the device identifier of the tablet computer 2 and the service identifier of the audio capability to the first communication module. The first communication module sends the request to the second communication module, and the second communication module forwards the request to the second call continuation service. After receiving the request, the second call continuation service obtains the enabling status information of the audio capability from the device list according to the service identifier of the audio capability, and sends the enabling status information of the audio capability to the first call continuation service through the second communication module and the first communication module. The first call continuation service executes step 115 and subsequent steps when the obtained enabling status information indicates that the audio capability of the tablet computer 2 is not enabled. When the obtained enabling status information indicates that the audio capability of the tablet computer 2 is enabled, step 115 and subsequent steps are not executed, and the audio capability of the tablet computer 2 is not enabled.
[0326] If the capabilities of a secondary device have already been enabled, this indicates that they may be used by other services. Re-enabling the capabilities of the secondary device will cause duplicate enabling of the capabilities, potentially leading to service errors. The primary device can enable the capabilities of the secondary device if the capabilities are not enabled, and not enable them if the capabilities are already enabled. This avoids duplicate enabling of the capabilities of the secondary device.
[0327] Step 143: After receiving the registration instruction, the first device management unit registers the device identifier of tablet computer 2 and the corresponding audio capability identifier in the first device management unit. Simultaneously, the first device management unit may register the communication interface of tablet computer 2 with the virtual audio module of mobile phone 1. The communication interface may be, for example, a callback function.
[0328] For example, the first device management unit can record the device identification of the tablet computer 2 in the first device management unit, and correspondingly record the service identification of the audio capability. The device identification of the tablet computer 2 indicates that the tablet computer 2 can share the device capability with the mobile phone 1, and the service identification of the audio capability indicates that the device capability shared by the tablet computer 2 to the mobile phone 1 is the audio capability.
[0329] At the same time, the first device management unit can register the first communication interface of tablet computer 2 in the virtual audio module of mobile phone 1. After the call is transferred to tablet computer 2, when mobile phone 1 receives the uplink audio data sent by tablet computer 2, the first collaborative module can call the first communication interface of tablet computer 2 to send the uplink audio data to the virtual audio module, and the virtual audio module sends the uplink audio data to ADSP. At the same time, the virtual audio module obtains the downlink audio data sent by the opposite device from ADSP, and the first collaborative module can call the first communication interface of tablet computer 2 to obtain the downlink audio data from the virtual audio module, and then send the downlink audio data to tablet computer 2 for playback.
[0330] Referring back to Figure 11 , the HAL of mobile phone 1 includes an interface management module and an interface status management module. After the first device management unit registers the communication interface of tablet computer 2 with the virtual audio module, the interface management module can record the first communication interface of tablet computer 2, and the interface status management module marks the call status of the first communication interface of tablet computer 2 as uncalled. The interface management module records the first communication interface of tablet computer 2 for invocation by the first collaboration module. The first collaboration module invokes the communication interface of tablet computer 2 when the call status of the first communication interface of tablet computer 2 is uncalled.
[0331] It is understood that when any one of the device identifier, service identifier, and communication interface registration fails, the first device management unit may send a registration failure notification to the first service interface layer, causing the first service interface layer to terminate the enabling of the audio capability of tablet computer 2. Simultaneously, the first service interface layer sends a notification to the first call connection service, notifying the first call connection service that the enabling of the audio capability of tablet computer 2 has failed.
[0332] Step 144: After receiving the enable instruction, the first device management unit may send an initialization instruction to the first transmission channel unit.
[0333] Step 145: After receiving the initialization instruction, the first transmission channel unit initializes the network layer of the first coordination module.
[0334] It should be noted that when enabling the audio capability of tablet computer 2, the first device management unit may not send an initialization instruction to the first transmission channel unit and initialize the network layer. The first device management unit may send an initialization instruction to the first transmission channel unit to initialize the network layer before switching the call service to tablet computer 2.
[0335] Step 146: After registering the device identifier of the tablet computer 2, the service identifier of the audio capability, and the communication interface of the tablet computer 2, the first device management unit may send an enabling success notification to the first service interface layer.
[0336] As shown in Figure 16, the process of enabling the audio capability of the tablet computer 2 includes steps 115 to 154. After establishing the first control channel between the mobile phone 1 and the tablet computer 2, completing the registration of the device identification and the first communication interface of the tablet computer 2, and completing the registration of the service identification of the audio capability, the audio capability of the tablet computer 2 is enabled, and the mobile phone 1 can directly call the audio capability of the tablet computer 2.
[0337] Please refer to step 132. After determining that the first control channel between the mobile phone 1 and the tablet computer 2 is successfully created, the first device management unit registers the device identifier and the first communication interface of the tablet computer 2, and registers the service identifier of the audio capability. Therefore, after registering the device identifier of the tablet computer 2, the service identifier of the audio capability, and the communication interface of the tablet computer 2, the first device management unit can determine that the audio capability of the tablet computer 2 is successfully enabled and send an enabling success notification to the first service interface layer.
[0338] Step 147: After receiving the enabling success notification, the first service interface layer forwards the enabling success notification to the first call connection service.
[0339] Step 148: The first device management unit may send an enabling success notification to the first communication module.
[0340] Step 149: After receiving the enabling success notification, the first communication module forwards the enabling success notification to the second communication module.
[0341] Step 150: After receiving the enabling success notification, the second communication module forwards the enabling success notification to the second call connection service.
[0342] Step 151: After receiving the notification of successful enabling, the second call connection service writes enabling status information of the audio capability into the second dynamic library.
[0343] Step 152 : The second dynamic library stores the enabling status information of the audio capability of the tablet computer 2 .
[0344] Please refer to the description of step 139. After receiving the enablement success notification, the second call connection service can add the audio capability enablement status information to the device information of the tablet computer 2 stored in the second dynamic library to mark that the audio capability of the tablet computer 2 has been enabled.
[0345] It is understandable that when the second dynamic library already stores the audio capability enablement status information, the second call connection service can update the audio capability enablement status information stored in the second dynamic library after receiving the enablement success notification, and update the audio capability enablement status information to enabled.
[0346] Step 153: After receiving the notification of successful enabling, the first call connection service determines that the audio capability of the tablet computer 2 is successfully enabled.
[0347] For example, the successful enablement notification may include the device identifier of tablet computer 2. Upon receiving the successful enablement notification, the first call connection service determines that the audio capability of tablet computer 2 has been successfully enabled. As shown in FIG15 , after determining that the audio capability of tablet computer 2 has been successfully enabled, if the first call connection service receives an answer instruction sent by tablet computer 2 in response to a user clicking on the answer control 23, the call may be transferred to tablet computer 2. Conversely, if the successful enablement notification including the device identifier of tablet computer 2 is not received, the call will not be transferred to tablet computer 2 upon receiving the answer instruction.
[0348] Step 154: After determining that the audio capability of the tablet computer 2 is successfully enabled, the first device management unit sends an enabling success notification to the first status management unit (not shown in the figure).
[0349] As shown in FIG12 , the first status management unit is included in the first cooperative module of the mobile phone 1 . The status management unit can record the enabling status information of the device capability of each device successfully enabled by the first cooperative module and the calling status information of the device capability.
[0350] Exemplarily, the enablement success notification may include the device identification of the tablet computer 2 and the service identification of the audio capability. After receiving the enablement success notification, the first status management unit records the device identification of the tablet computer 2 based on the device identification of the tablet computer 2 and the service identification of the audio capability included in the enablement success notification, and correspondingly records the enablement status information of the audio capability of the tablet computer 2, where the enablement status information indicates that the audio capability of the tablet computer 2 is enabled, and at the same time records the call status information of the audio capability of the tablet computer 2, where the call status information indicates that the audio capability of the tablet computer 2 is not called.
[0351] Figure 17 shows a schematic diagram of a partial system architecture of an electronic device provided by an embodiment of the present application. The collaboration module may include a device management unit and a status management unit. The device management unit may record the device identification and service identification of enabled auxiliary devices, and the status management unit may manage the enabled and invoked status of device capabilities.
[0352] In one embodiment, the enabling state information may include a first state and a second state, the first state indicating that the enabling state of the device capability is not enabled, the first identifier and the third identifier are enabling state information of the first state, and the second state information indicating that the enabling state of the device capability is enabled. For example, after registering the device identifier of the tablet computer 2 and registering the service identifier of the audio capability, the state management unit may set the enabling state information of the audio capability to the first state or to empty. After completing the enabling of the audio capability of the tablet computer 2, the state management unit may update the enabling state information of the audio capability of the tablet computer 2 to the second state to record that the enabling state of the audio capability of the tablet computer 2 is enabled. The specific form of the enabling state information may include but is not limited to the above examples.
[0353] Similarly, the call status information may include a first state and a second state, the first state indicating that the call status of the device capability is not called, and the second identifier and the fourth identifier are the call status information of the first state; the second state indicating that the call status of the device capability is called, and the fifth identifier is the call status information of the second state. After registering the device identifier of the tablet computer 2 and the service identifier of the audio capability, the state management unit may set the call status information of the audio capability to empty. After completing the enabling of the audio capability of the tablet computer 2, the state management unit may update the call status information of the audio capability of the tablet computer 2 to the first state to record that the call status of the audio capability of the tablet computer 2 is not called. The specific form of the call status information may include but is not limited to the above examples.
[0354] The HAL may include an interface management module and an interface status management module. The interface management module is used to manage communication interfaces, and the interface status management module is used to manage the call status of communication interfaces. For example, after the first device management unit registers the first communication interface of tablet computer 2 in the virtual audio module, the interface management module may record the first communication interface of tablet computer 2, and the interface status management module may mark the call status of the first communication interface of tablet computer 2 as uncalled.
[0355] Among them, the first call connection service can first execute step 115 on the tablet computer 2, and complete the enabling of the audio capability of the tablet computer 2 through steps 115 to 154, or it can first execute step 115 on the laptop computer 3, and complete the enabling of the audio capability of the laptop computer 3 through steps 115 to 154, or execute step 115 on the tablet computer 2 and the laptop computer 3 at the same time, and enable the audio capabilities of the tablet computer 2 and the laptop computer 3 at the same time.
[0356] It should be noted that the above is only an illustrative example of the enabling process and does not constitute a limitation on the enabling process. If other operations are required to make the device capabilities of the auxiliary device reach a usable state, the enabling process can be adjusted according to needs. This embodiment does not limit the enabling process of device capabilities.
[0357] In summary, after receiving an incoming call request, mobile phone 1 can simultaneously enable the audio capabilities of tablet computer 2 (the first electronic device) and laptop computer 3 (the second electronic device). During the enabling process, mobile phone 1 establishes a first control channel with tablet computer 2 and a second control channel with laptop computer 3.
[0358] At the same time, during the enabling process, mobile phone 1 registers the device ID of tablet computer 2 in the collaboration module, and the corresponding capability ID of the audio capability. It also registers the device ID of laptop computer 3 in the collaboration module, and the corresponding capability ID of the audio capability. Furthermore, it registers the first communication interface of tablet computer 2 and the second communication interface of laptop computer 3 in the virtual audio module.
[0359] After completing the enabling of the audio capability of the tablet computer 2, the mobile phone 1 marks the enabling state of the audio capability of the tablet computer 2 as enabled in the status management unit of the mobile phone 1, and marks the enabling state of the audio capability of the laptop computer 3 as enabled in the status management unit of the mobile phone 1.
[0360] FIG18 shows a schematic diagram of a system structure provided by an embodiment of the present application. After enabling the audio capabilities of tablet computer 2 and laptop computer 3, mobile phone 1 establishes a first control channel 181 with tablet computer 2 and a second control channel 182 with laptop computer 3. At this point, the audio capabilities of tablet computer 2 are enabled, and the audio capabilities of laptop computer 3 are also enabled.
[0361] As shown in Figures 4 to 7, at this time, after receiving the answering instruction sent by the tablet computer 2, the mobile phone 1 can transfer the call to the tablet computer 2 through the first control channel. In the process of answering the call through the tablet computer 2, after receiving the switching instruction sent by the laptop computer 3, the call can be transferred directly from the tablet computer 2 to the laptop computer 3 through the second control channel. It should be noted that after the mobile phone 1 receives the incoming call request, if only the tablet computer 2 is online, the first call connection service can only determine the device identification of the tablet computer 2 from the device list. At this time, the first call connection service can call the enable interface to input the device identification of the tablet computer 2 and the capability identification of the audio capability to the first collaborative module, so that the collaborative module can enable the audio capability of the tablet computer 2.
[0362] FIG19 shows a schematic diagram of a process for enabling device capabilities provided in an embodiment of the present application.
[0363] Step 191: When enabling the device capability of each slave device, the master device first obtains the slave device's device identifier and the service identifier of the device capability, and then executes step 192. Referring to steps 101 and 102 in FIG16 , the first call connection service first determines that tablet computer 2 and laptop computer 3 are online, obtains the device identifiers of tablet computer 2 and laptop computer 3, and obtains the service identifier of the audio capability.
[0364] Step 192: After obtaining the device identifier and service identifier of the secondary device's device capabilities, the secondary device is verified to determine whether it is online. If the secondary device is online, step 194 is executed; if the secondary device is offline, step 193 is executed. For an understanding of step 192, please refer to steps 116 to 119 in Figure 16; this embodiment will not be further described here.
[0365] Step 193: When the master device determines that the slave device is offline, the master device determines that the verification has failed, returns a verification failure notification, and then returns to step 191 to obtain the device ID and service ID of the next slave device and enable the device capability of the next slave device.
[0366] Step 194: Upon determining that the secondary device is online, the primary device enables the secondary device's device capabilities. The enabling process can be seen in steps 115 to 154 in Figure 16 . After enabling, the primary device executes step 195, marking the device capability's enabled state as enabled and updating the device capability's enabled state information to the second state. After marking the device capability's enabled state, the primary device executes step 196.
[0367] In step 196, the master device determines whether the device capabilities of all slave devices are enabled. If the device capabilities of all slave devices are enabled, step 197 is executed to mark the call status of the device capability of each enabled slave device as uncalled.
[0368] On the contrary, when there are still device capabilities of the secondary device that are not enabled, the process returns to step 191 to obtain the device identifier and service identifier of the next secondary device.
[0369] It is understandable that step 195 and step 197 may be executed at any time point after step 194. When a slave device fails verification, it is determined that the slave device is offline, and the device capability of the slave device may not be enabled.
[0370] Figure 20 is a flow chart showing the process of transferring a call from a mobile phone to a tablet computer for answering in the scenarios shown in Figures 3 to 7. Similarly, for ease of distinction, "first" and "second" are used in Figure 20 to identify the same functional modules in mobile phone 1 and tablet computer 2, respectively.
[0371] Among them, each step in Figure 20 is located after step 154 in Figure 16, and each step in Figure 20 corresponds to step 19 to step 24 in step 14.
[0372] Referring back to Figures 3 and 4 , tablet 2's audio capabilities are now successfully enabled, as is laptop 3's. Phone 1 displays incoming call notification interface 11, tablet 2 displays floating window 21, and laptop 3 displays floating window 31. To answer the call on tablet 2, the user taps answer control 23 in floating window 21. Phone 1 transfers the call to tablet 2, and the user then answers the call on tablet 2. The process for phone 1 to transfer a call to tablet 2 is as follows:
[0373] Step 155: The second call connection service monitors the answering operation.
[0374] As shown in FIG3 , the answering operation is, for example, a click operation of clicking the answering control 23 . When the second call connection service monitors that the user clicks the answering control 23 , it determines that the user needs to answer the call through the tablet computer 2 and can send an answering instruction to the mobile phone 1 .
[0375] Step 156: When the second call connection service detects the answering operation, it sends an answering instruction to the second communication module.
[0376] For example, the answering instruction includes the device identification of the tablet computer 2 . After receiving the answering instruction, the mobile phone 1 transfers the call to the tablet computer 2 for answering according to the device identification in the answering instruction.
[0377] Step 157 : After receiving the answering instruction, the second communication module forwards the answering instruction to the first communication module through the pre-established first control channel between the mobile phone 1 and the tablet computer 2 .
[0378] Step 158: After receiving the answer instruction, the first communication module forwards the answer instruction to the first call connection service.
[0379] Step 159: After receiving the answer instruction, the first call connection service forwards the answer instruction to the call application to instruct the call application to connect the call.
[0380] Step 160: The call application answers the call after receiving the answer instruction sent by the first call connection service.
[0381] Please refer to FIG. 4 , after receiving the answer instruction, the call application answers the call, closes the incoming call notification interface 11 , and displays the call interface 14 .
[0382] Step 161: After receiving the answer instruction sent by the first communication module, the first call connection service determines the device identifier of the tablet computer 2 included in the answer instruction.
[0383] The first call connection service determines that the call service needs to be transferred to the tablet computer 2 according to the device identification of the tablet computer 2 included in the answering instruction.
[0384] Step 162: After determining the device identifier of the tablet computer 2 included in the answer instruction, the first call connection service sends a connection notification to the first communication module.
[0385] For example, the connection notification may include the device identification of the tablet computer 2. The first communication module sends the connection notification to the second communication module according to the device identification in the connection notification. The connection notification is used to notify the tablet computer 2 to start answering the call.
[0386] Step 163 : After receiving the connection notification, the first communication module forwards the connection notification to the second communication module through the first control channel between the mobile phone 1 and the tablet computer 2 .
[0387] Step 164: After receiving the connection notification, the second communication module forwards the connection notification to the second call connection service.
[0388] Step 165: After receiving the call connection notification, the second call connection service stops the incoming call reminder.
[0389] 4 , after receiving the call connection notification, the second call connection service can control the display screen of the tablet computer 2 to close the floating window 21 to stop the incoming call reminder, and at the same time display the call interface 24 .
[0390] Referring to step 21 in Figure 15 , after receiving the answer instruction from tablet computer 2, the first call continuation service can also send a stop co-activation notification to the first communication module. This stop co-activation notification includes the device identifier of laptop computer 3. The first communication module can send the stop co-activation notification to the communication module in laptop computer 3 via the control channel between mobile phone 1 and laptop computer 3. The communication module in laptop computer 3 forwards the stop co-activation notification to the call continuation service in laptop computer 3. Upon receiving the stop co-activation notification, the call continuation service in laptop computer 3 closes the floating window 31 and stops the incoming call notification.
[0391] Step 166: After receiving the call connection notification, the second call connection service may send a service start instruction to the second collaboration module, so that the second collaboration module starts processing the call service.
[0392] Step 167 : After determining the device identification of the tablet computer 2 , the first call connection service determines that the audio capability of the tablet computer 2 is enabled and not called.
[0393] Please refer to step 154 in Figure 16. The first call connection service can send an acquisition request to the first status management unit, and the acquisition request includes the device identification of the tablet computer 2. In response to the acquisition request, the first status management unit obtains the enabling status information and calling status information corresponding to the device identification of the tablet computer 2 from the pre-recorded enabling status information and calling status information, and sends the enabling status information and calling status information to the first call connection service.
[0394] Correspondingly, after the first call connection service receives the enabling status information and calling status information sent by the first status management unit, if the enabling status information indicates that the audio capability of the tablet computer 2 is enabled (the enabling status is the first identifier), it is determined that the audio capability of the tablet computer 2 is enabled; if the calling status information indicates that the audio capability of the tablet computer 2 is not called (the calling status is the second identifier), it is determined that the audio capability of the tablet computer 2 is not called.
[0395] It is understandable that when the enablement status information indicates that the audio capability of the tablet computer 2 is enabled as disabled (the enablement status is not the first indicator), and / or the call status information indicates that the call status of the audio capability of the tablet computer 2 is called (the call status is not the second indicator), the first call connection service may stop executing subsequent steps and not transfer the call to the tablet computer 2. At the same time, the first call connection service may control the display screen of the mobile phone 1 to output a prompt message, informing the user that the call cannot be transferred to the tablet computer 2.
[0396] Step 168: After the first call connection service determines that the audio capability of the tablet computer 2 is enabled and not called, it sends a device switching instruction to the first collaboration module.
[0397] For example, the first call connection service may call the switching interface provided by the first service interface layer to input the device identification of the tablet computer 2 to the first collaboration module.
[0398] In one embodiment, the first call connection service can directly execute step 168 after determining the device identification of the tablet computer 2, and the first collaborative module executes step 167 to determine whether the audio capability enablement status of the tablet computer 2 is enabled, and determine whether the call status of the audio capability of the tablet computer 2 is not called.
[0399] Step 169 : After receiving the device switching instruction, the first collaboration module sends a path switching instruction to the virtual audio module. The path switching instruction includes the device identification of the tablet computer 2 .
[0400] Step 170 : After receiving the path switching instruction, the virtual audio module may send a channel creation instruction to the first transmission channel unit in the first collaboration module. The channel creation instruction includes the device identification of the tablet computer 2 .
[0401] Step 171: After receiving the channel creation instruction, the first transmission channel unit forwards the channel creation instruction to the first communication module.
[0402] Step 172 : After receiving the channel creation instruction, the first communication module interacts with the second communication module through the first control channel between the mobile phone 1 and the tablet computer 2 to create a downlink data channel between the mobile phone 1 and the tablet computer 2 .
[0403] Step 173: After the downlink data channel is successfully created, the first communication module sends a downlink channel creation success notification to the first transmission channel unit.
[0404] Step 174: Similarly, after the downlink data channel is successfully created, the second communication module channel sends a downlink channel creation success notification to the second coordination module.
[0405] Step 175 : At the same time, after receiving the channel creation instruction, the first communication module interacts with the second communication module through the first control channel between the mobile phone 1 and the tablet computer 2 to create an uplink data channel between the mobile phone 1 and the tablet computer 2 .
[0406] Step 176: After the uplink data channel is successfully created, the first communication module sends an uplink channel creation success notification to the first transmission channel unit.
[0407] Step 177: After the uplink data channel is successfully created, the second communication module channel sends an uplink channel creation success notification to the second coordination module.
[0408] Step 178: After receiving the service start instruction, the second collaboration module may start answering the call.
[0409] Exemplarily, after receiving the service start instruction, the second collaboration module can create an audio player, an audio recorder and an audio processor to play downlink audio data through the audio player and obtain uplink audio data from the speaker of the tablet computer 2 through the audio recorder.
[0410] It is understandable that the second collaboration module may execute step 178 after receiving the service start instruction, or may execute step 178 after receiving the uplink channel creation success notification and the downlink channel creation success notification.
[0411] Step 179: The virtual audio module switches the audio path after receiving the path switching instruction.
[0412] For example, the virtual audio module can create a first audio stream (Stream) to enable a first pulse code modulation device in the kernel layer (Kernel), and a second audio stream (Stream) to enable a second pulse code modulation device in the kernel layer. The first pulse code modulation device is used to read downlink audio data from the ADSP and output the downlink audio data to the virtual audio module; the second pulse code modulation device is used to write the uplink audio data written by the virtual audio module to the second pulse code modulation device to the ADSP. In this way, the output of the ADSP can be switched from the speaker of mobile phone 1 to the virtual audio module, and the input of the ADSP can be switched from the microphone of mobile phone 1 to the virtual audio module.
[0413] It is understandable that after receiving the path switching instruction, the virtual audio module can also first execute step 179 to switch the audio path, and then execute step 170 to send a channel creation instruction to the first transmission channel unit, so that the first transmission channel unit controls the first communication module to create an uplink data channel and a downlink data channel.
[0414] After receiving the path switching instruction, the virtual audio module can also update the call status information of the communication interface of tablet computer 2 to the second state based on the device identifier in the path switching instruction, thereby marking the call status of the communication interface of tablet computer 2 as called. During the call answering process, the first collaborative module receives uplink audio data transmitted through the communication interface of tablet computer 2, and transmits downlink audio data to the first collaborative module through the communication interface of tablet computer 2.
[0415] Step 180: After the audio path switching is completed, the virtual audio module sends a switching success notification to the first coordination module.
[0416] Step 181 : After receiving the handover success notification, the first collaboration module sends a handover success notification to the first call connection service to notify the first call connection service that the call has been transferred to the tablet computer 2 .
[0417] Referring to Figure 4 , after receiving the successful handover notification, the first call connection service sends a handover notification to the call application. The handover notification may include the device identifier of tablet computer 2. Based on the device identifier of tablet computer 2, the call application highlights the device icon 16 of tablet computer 2 on the call interface 14 to indicate that the call has been transferred to tablet computer 2.
[0418] After completing the establishment of the uplink data channel, the establishment of the downlink data channel and the switching of the audio path, the mobile phone 1 transfers the call to the tablet computer 2, and the tablet computer 2 starts to answer the call.
[0419] Among them, after receiving the notification of successful switching, the first collaborative module can mark the calling status of the tablet computer 2 recorded in the status management unit as the fifth identifier, and the fifth identifier indicates that the calling status of the audio capability of the tablet computer 2 is called. The fifth identifier can be an identifier opposite to the second identifier, such as the calling status information of the second state, to mark the calling status of the audio capability of the tablet computer 2 as called.
[0420] Figure 21 shows a data transmission diagram provided by an embodiment of the present application. After the mobile phone 1 transfers the call to the tablet computer 2, a first control channel P1, a downlink data channel P2, and an uplink data channel P3 are established between the mobile phone 1 and the tablet computer 2.
[0421] Step 182: The ADSP obtains the downlink audio data from the modem.
[0422] Specifically, the modem of the mobile phone 1 receives the downlink audio data sent by the opposite device, the ADSP obtains the downlink audio data from the modem, and inputs the downlink audio data into the first pulse code modulation device.
[0423] Step 183: The virtual audio module obtains downlink audio data from the first pulse code modulation device.
[0424] Step 184: The first collaborative module calls the pre-registered communication interface of the tablet computer 2 to obtain downlink audio data from the virtual audio module.
[0425] Referring to FIG. 11 , the audio virtualization unit in the first collaborative module may call the communication interface of the tablet computer 2 to obtain downlink audio data from the virtual audio module.
[0426] Step 185: After acquiring the downlink audio data, the first collaboration module outputs the downlink audio data to the first communication module.
[0427] Step 186: The first communication module sends the downlink audio data to the second communication module through the downlink data channel P2.
[0428] Step 187: After receiving the downlink audio data, the second communication module transmits the downlink audio data to the second coordination module.
[0429] Step 188: After receiving the downlink audio data, the second collaborative module controls the tablet computer 2 to output the downlink audio data.
[0430] Exemplarily, the second collaborative module inputs the downlink audio data into the audio player, the audio player inputs the downlink audio data into the audio processor for processing, and the audio processor inputs the processed audio data into the speaker of the tablet computer 2 for playback output through the audio hardware abstraction layer.
[0431] Step 189: At the same time, the second collaborative module controls the tablet computer 2 to obtain uplink audio data.
[0432] Exemplarily, the audio recorder in the tablet computer 2 obtains the uplink audio data from the microphone through the audio hardware abstraction layer, and the second collaboration module obtains the uplink audio data from the audio recorder.
[0433] Step 190: After acquiring the uplink audio data from the audio recorder, the second collaboration module transmits the uplink audio data to the second communication module.
[0434] Step 191: The second communication module sends the uplink audio data to the first communication module through the uplink data channel P3.
[0435] Step 192: The first communication module transmits the received uplink audio data to the first coordination module.
[0436] Step 193 : After receiving the uplink audio data, the first collaborative module inputs the uplink audio data into the virtual audio module through the communication interface of the tablet computer 2 .
[0437] Step 194: The virtual audio module inputs the uplink audio data to the second pulse code modulation device, and the second pulse code modulation device inputs the uplink audio data to the ADSP.
[0438] Step 195: After receiving the uplink audio data, the ADSP outputs the uplink audio data to the modem, and the modem sends the uplink audio data to the peer device.
[0439] It can be understood that steps 182 to 188 and steps 189 to 198 are executed synchronously.
[0440] It should be noted that in Figure 21, a control flow S1 exists between the first call connection service and the first collaborative module, and a control flow also exists between the virtual audio module and the ADSP. The first call connection service can input control information to the first collaborative module to control its operation, and the virtual audio module can input control information to the ADSP to switch audio channels. Similarly, a control flow S2 exists between the second call connection service and the second collaborative module, and a control flow also exists between the second collaborative module and the audio hardware abstraction layer.
[0441] Figure 22 is a schematic diagram of the process of transferring a call from a tablet to a laptop computer in the scenarios shown in Figures 3 to 7. For ease of distinction, Figure 22 uses "first" and "third" to identify identical functional modules in phone 1 and laptop computer 3, respectively. In Figure 22, the term "first collaborative module" refers to each functional module included in the collaborative module in phone 1, and the term "third collaborative module" refers to each functional module included in the collaborative module in laptop computer 3.
[0442] Among them, each step in Figure 22 is located after step 195 in Figure 20, and each step in Figure 22 corresponds to step 25 to step 34 in Figure 15.
[0443] Referring back to Figures 4, 5, and 6, the user is currently answering a call on tablet 2. Phone 1 displays call screen 14, tablet 2 displays call screen 24, and laptop 3 displays the desktop. If the user wishes to answer the call on laptop 3, they can click device icon 181 or device icon 271. Phone 1 will transfer the call from tablet 2 to laptop 3. The specific transfer process is as follows:
[0444] Step 196: The first call connection service monitors the switching operation.
[0445] Step 197: After monitoring the switching operation, the first call connection service determines the device identifier of the laptop computer 3 corresponding to the switching operation.
[0446] As shown in Figure 5, the handover operation is a click operation on device icon 181, which is received by the call application. When the call application receives the click operation, the first call connection service can monitor the click operation received by the call application. Device icon 181 is bound to the device ID of laptop computer 3. After receiving the click operation, the call application determines the device ID of laptop computer 3. After monitoring the click operation, the first call connection service obtains the device ID of laptop computer 3 from the call application and determines to transfer the call to laptop computer 3 based on the device ID of laptop computer 3.
[0447] Similarly, when the user clicks the device icon 271, the tablet computer 2 can send a switching instruction including the device identifier of the laptop computer 3 to the mobile phone 1. The first call connection service obtains the device identifier of the laptop computer 3 from the switching instruction and transfers the call to the laptop computer 3 according to the device identifier.
[0448] Step 198: After determining the device identification of the laptop computer 3, the first call connection service determines that the audio capability of the laptop computer 3 is enabled and not called.
[0449] Among them, the first call connection service can send an acquisition request to the first status management unit, and the acquisition request includes the device identification of the laptop computer 3. The first status management unit responds to the acquisition request, obtains the enabling status information and calling status information corresponding to the device identification of the laptop computer 3 from the pre-recorded enabling status information and calling status information, and sends the enabling status information and calling status information to the first call connection service.
[0450] Correspondingly, after the first call connection service receives the enabling status information and calling status information sent by the first status management unit, if the enabling status information indicates that the audio capability of the laptop computer 3 is enabled (the enabling status is the third identifier), then it is determined that the audio capability of the laptop computer 3 is enabled; if the calling status information indicates that the audio capability of the laptop computer 3 is not called (the calling status is the fourth identifier), then it is determined that the audio capability of the laptop computer 3 is not called.
[0451] It is understandable that when the enablement status information indicates that the audio capability of the tablet computer 2 is enabled as disabled (the enablement status is not the third identifier), and / or the call status information indicates that the call status of the audio capability of the tablet computer 2 is called (the call status is not the fourth identifier), the first call connection service may stop executing subsequent steps and not transfer the call to the laptop computer 3. At the same time, the first call connection service may control the display screen of the mobile phone 1 to output a prompt message, prompting the user that the call cannot be transferred to the laptop computer 3.
[0452] Step 199: After determining that the audio capability of the laptop computer 3 is enabled and not called, the first call connection service sends a service transfer request to the first communication module. The service transfer request may include the device identifier of the laptop computer 3.
[0453] Step 200: After receiving the service transfer request, the first communication module forwards the service transfer request to the third communication module through the pre-established control channel between the mobile phone 1 and the laptop computer 3 according to the device identifier in the service transfer request.
[0454] Step 201: After receiving the service transfer request, the third communication module forwards the service transfer request to the third call connection service.
[0455] Step 202: After receiving the service transfer request, the third call connection service controls the laptop computer 3 to display a call interface.
[0456] Referring back to FIG. 7 , after receiving the service transfer request, the third call connection service controls the display screen of the laptop computer 3 to display a call interface 34 .
[0457] Step 203: After receiving the service transfer request, the third call connection service may send a service start instruction to the third collaboration module.
[0458] Step 204: After receiving the service start instruction, the third collaboration module may start answering the call. For example, the third collaboration module may start an audio recorder, an audio player, and an audio processor.
[0459] Step 205: After receiving the service transfer request, the third call connection service sends a response notification to the third communication module to notify the mobile phone 1 that the call can be transferred.
[0460] Step 206 : After receiving the response notification, the third communication module forwards the response notification to the first communication module through the control channel between the mobile phone 1 and the laptop computer 3 .
[0461] Step 207: After receiving the response notification, the first communication module forwards the response notification to the first call connection service.
[0462] Step 208: After receiving the response notification, the first call connection service sends a device transfer instruction to the first collaboration module.
[0463] For example, the response notification may include the device identifier of laptop computer 3. After receiving the response notification, the first call connection service determines to transfer the call to laptop computer 3 based on the device identifier in the response notification. At this time, the first call connection service may call the switching interface provided by the first service interface layer to input the device identifier of laptop computer 3 to the first collaboration module.
[0464] Step 209: After receiving the device transfer instruction, the first collaboration module sends the device transfer instruction to the virtual audio module.
[0465] The device transfer instruction may include the device identification of the laptop computer 3 , and the virtual audio module determines that the call needs to be transferred to the laptop computer 3 according to the device identification in the device transfer instruction.
[0466] Step 210: After receiving the device transfer instruction, the virtual audio module sends a channel creation instruction to the first transmission channel unit.
[0467] Exemplarily, the channel creation instruction may include the device identification of the laptop computer 3 to instruct the first transmission channel unit to create an uplink data channel and a downlink data channel with the laptop computer 3 .
[0468] After receiving the device transfer instruction, the virtual audio module can update the call status information of the communication interface of tablet computer 2 to the first state and the call status information of the communication interface of laptop computer 3 to the second state according to the device identifier in the device transfer instruction, thereby marking the call status of the communication interface of tablet computer 2 as uncalled and the call status of the communication interface of laptop computer 3 as called. During the call answering process, the first collaborative module receives uplink audio data transmitted through the communication interface of laptop computer 3, and transmits downlink audio data to the first collaborative module through the communication interface of laptop computer 3.
[0469] Step 211: After receiving the channel creation instruction, the first transmission channel unit sends the channel creation instruction to the first communication module.
[0470] Step 212 : After receiving the channel creation instruction, the first communication module interacts with the third communication module through the second control channel between the mobile phone 1 and the laptop computer 3 to create a downlink data channel between the mobile phone 1 and the laptop computer 3 .
[0471] Step 213: After the downlink data channel is successfully created, the first communication module sends a downlink channel creation success notification to the first transmission channel unit.
[0472] Step 214: At the same time, after the downlink data channel is successfully created, the third communication module sends a downlink channel creation success notification to the third coordination module.
[0473] Step 215 : Similarly, after receiving the channel creation instruction, the first communication module creates an uplink data channel between the mobile phone 1 and the laptop computer 3 .
[0474] Step 216: After the downlink data channel is successfully created, the first communication module sends an uplink channel creation success notification to the first transmission channel unit.
[0475] Step 217: At the same time, after the uplink data channel is successfully created, the third communication module sends an uplink channel creation success notification to the third coordination module.
[0476] When the uplink data channel fails to be established or the downlink data channel fails to be established, the first communication module may send a channel creation failure notification to the first collaboration module, which then forwards the channel creation failure notification to the first call continuation service. Upon receiving the channel creation failure notification, the first call continuation service controls mobile phone 1 to output a prompt message, informing the user that the call cannot be transferred to laptop computer 3. Simultaneously, the first collaboration module may transfer the call back to mobile phone 1, or may not transfer the call and continue to hold the call on tablet computer 2, for example, by not executing step 218.
[0477] Step 218: After receiving the response notification, the first call connection service may send a stop instruction to the first communication module.
[0478] Exemplarily, the stop instruction may include the device identification of the tablet computer 2 , and the stop instruction is used to instruct the tablet computer 2 to stop answering calls.
[0479] Step 219: After receiving the stop instruction, the first communication module sends a stop instruction to the second communication module through the control channel between the mobile phone 1 and the tablet computer 2 according to the device identifier in the stop instruction.
[0480] Referring back to Figure 7 , upon receiving the stop command, the second call continuation service can control tablet computer 2 to close call interface 24. Simultaneously, the second call continuation service can send a stop command to the second call continuation service. Upon receiving the stop command, the second call continuation service sends a stop command to the second collaboration module. In response to the stop command, the second collaboration module shuts down the audio player, audio recorder, and audio processor, and ceases operation.
[0481] Step 220: After receiving the device transfer instruction, the first collaboration module may send a channel disconnection instruction to the first communication module.
[0482] For example, the first collaboration module may determine that the call needs to be transferred from tablet computer 2 to laptop computer 3 based on the device identifier of laptop computer 3 in the device transfer instruction. The first collaboration module may then send a channel disconnect instruction to the first communication module. The channel disconnect instruction may include the device identifier of tablet computer 2, instructing the first communication module to disconnect the uplink and downlink data channels between the first communication module and tablet computer 2.
[0483] Step 221 : After receiving the channel disconnection instruction, the first communication module disconnects the uplink data channel and the downlink data channel between the mobile phone 1 and the tablet computer 2 .
[0484] Step 218 can be performed before or after step 208, and step 220 can also be performed before or after step 208. That is, after transferring the call to laptop computer 3, mobile phone 1 can instruct tablet computer 2 to stop answering the call and disconnect the uplink and downlink data channels between mobile phone 1 and tablet computer 2. Alternatively, tablet computer 2 can be instructed to stop answering the call, disconnect the uplink and downlink data channels between mobile phone 1 and tablet computer 2, and then the call can be transferred to laptop computer 3. Because the time required to transfer the call from tablet computer 2 to laptop computer 3 is relatively short, the order of steps 218 and 208, or step 220 and 208, does not affect the normal processing of the call.
[0485] Step 222: After the uplink data channel and the downlink data channel are established between the mobile phone 1 and the laptop computer 3, the laptop computer 3 starts to answer the call.
[0486] Please refer to Figure 7. After the call service is transferred to the laptop computer 3, the laptop computer 3 displays the call interface 34, and the mobile phone 1 displays the call interface 14. The virtual audio module obtains the downlink audio data from the ADSP, and transmits the downlink audio data to the first collaborative module through the communication interface of the laptop computer 3. After the first collaborative module receives the uplink audio data, it transmits the uplink audio data to the virtual audio module through the communication interface of the laptop computer 3. When the first communication module receives the downlink audio data, it sends the downlink audio data to the third communication module through the downlink data channel between the mobile phone 1 and the laptop computer 3. When the first communication module receives the uplink audio data, it sends the downlink audio data to the third communication module through the downlink data channel between the mobile phone 1 and the laptop computer 3. When the uplink audio data sent by the third communication module is received, the uplink audio data is sent to the first collaborative module. For understanding of step 222, please refer to steps 182 to 195 shown in Figure 20, and this embodiment will not be repeated here.
[0487] It should be noted that when the call service is transferred from the tablet computer 2 to the laptop computer 3 , the audio capability of the tablet computer 2 is not disabled and is still available.
[0488] As shown in steps 196 to 222, during the call transfer from tablet computer 2 to laptop computer 3, mobile phone 1 disconnects the first data channel between mobile phone 1 and tablet computer 2, which includes the uplink data channel and the downlink data channel between mobile phone 1 and tablet computer 2. Furthermore, mobile phone 1 establishes a second data channel between mobile phone 1 and laptop computer 3, which includes the uplink data channel and the downlink data channel between mobile phone 1 and laptop computer 3.
[0489] In this embodiment, after the call is transferred from tablet computer 2 to laptop computer 3 for answering, the first state management unit in the first collaboration module can update the call state of the audio capability of tablet computer 2 to the first state, indicating that the audio capability of tablet computer 2 is not called. At the same time, the call state of the audio capability of laptop computer 3 can be updated to the second state, indicating that the call state of the audio capability of laptop computer 3 is called.
[0490] Among them, after transferring the call to the laptop computer 3, the first collaborative module can mark the calling status of the laptop computer 3 recorded in the status management unit as the sixth identifier, and the sixth identifier indicates that the calling status of the audio capability of the laptop computer 3 is called. The sixth identifier can be the same identifier as the fifth identifier, such as the calling status information of the second state, to mark the calling status of the audio capability of the laptop computer 3 as called.
[0491] Figure 23 shows a schematic diagram of a service transfer process provided in an embodiment of the present application.
[0492] Step 2301: After receiving the switching operation, the primary device first determines the device identifier of the secondary device to be switched.
[0493] Referring back to FIG. 5 and FIG. 6 , when the user clicks the device icon 181 or the device icon 271 , the mobile phone 1 determines that the auxiliary device to be switched is the laptop computer 3 , and further determines the device identifier of the laptop computer 3 .
[0494] Step 2302: After determining the device identification, the collaborative module in the main device can determine whether the transfer direction is from the main device to the auxiliary device. When the transfer direction is from the main device to the auxiliary device, the switching method is determined to be switching from the main device to the auxiliary device, and step 2304 is executed. When the transfer direction of the business is from one auxiliary device to another auxiliary device, the switching method is determined to be switching from the auxiliary device to the auxiliary device, and step 2303 is executed.
[0495] Specifically, if the determined device identifier is that of a slave device and the service is currently being processed by the primary device, the service transfer direction may be determined to be switching from the primary device to the slave device. Conversely, if the determined device identifier is that of a slave device and the service is currently being processed by one of the slave devices, the service transfer direction may be determined to be switching from the slave device to the slave device.
[0496] Step 2303: The master device updates the calling status of the device capability of the slave device.
[0497] For example, when it is determined that the call transfer direction is from tablet computer 2 to laptop computer 3, the calling state of the audio capability of laptop computer 3 can be updated to the second state, and the calling state of the audio capability of tablet computer 2 can be updated to the first state.
[0498] Step 2304: Determine the switching mode. When the switching mode is from the primary device to the secondary device, execute step 2307. When the switching mode is from the secondary device to the secondary device, execute step 2305.
[0499] Step 2307: Create a new session with the slave device to be switched. Creating a session means creating a data channel, for example, creating an uplink data channel and a downlink data channel.
[0500] For example, in Figure 20 , the uplink data channel and the downlink data channel between mobile phone 1 and tablet computer 2 are new sessions, and the uplink data channel and the downlink data channel between mobile phone 1 and tablet computer 2 are created. This step can be referred to steps 168 to 177 in Figure 20 , and will not be described in detail in this embodiment.
[0501] Step 2308: Based on the new session between the primary device and the secondary device, the device capability of the secondary device is called to process the service. This step can be referred to as steps 182 to 195 in FIG. 20 .
[0502] Step 2305: Create a new session with the secondary device to be switched.
[0503] Step 2306: Close the historical session with the currently called auxiliary device, and switch the session from the historical session to the new session.
[0504] For example, in Figure 22 , the uplink and downlink data channels between laptop computer 3 and mobile phone 1 are new sessions, while the uplink and downlink data channels between tablet computer 2 and mobile phone 1 are historical sessions. The uplink and downlink data channels between tablet computer 2 and mobile phone 1 are closed, and the call is handled collaboratively with laptop computer 3 via the uplink and downlink data channels between mobile phone 1 and laptop computer 3. For step 226, refer to steps 208 to 221 in Figure 22 .
[0505] Step 2309: When the switching mode is neither from slave device to slave device nor from master device to slave device, it indicates that the program is abnormal. In this case, it can be determined that the switching has failed, and step 2309 is executed to output a switching failure notification.
[0506] In this embodiment, when the master device calls the device capability of the slave device to process a service, the master device or the slave device may terminate the service processing. After terminating the service, the master device may disable the device capability of the slave device.
[0507] Referring to Figure 6 , after transferring the call service to laptop computer 3, if the user clicks hang-up control 35 in call interface 34, laptop computer 3 can respond to the user's click by closing call interface 34, stopping the call, and sending a hang-up instruction to mobile phone 1. After receiving the hang-up instruction, mobile phone 1 can hang up the call and stop the first collaboration module.
[0508] Alternatively, after transferring the call to laptop computer 3, if the user clicks the hang-up control 15 in the call interface 14, mobile phone 1 can respond to the user's click by closing the call interface 14 and ending the call. Simultaneously, mobile phone 1 can send a stop command to laptop computer 3. Upon receiving the stop command, laptop computer 3 closes the call interface 34 and stops the third collaboration module, thus ending the call.
[0509] Referring to FIG22 , FIG22 takes hanging up a call via laptop computer 3 as an example to illustrate the process of ending the service. The process of ending the call service is as follows:
[0510] Step 223: The third call connection service monitors a hang-up operation.
[0511] 6 , the hang-up operation is, for example, a click operation of clicking the hang-up control 35 . After monitoring the click operation of clicking the hang-up control 35 , the third call connection service sends a hang-up instruction to the third communication module.
[0512] Step 224: After monitoring the hang-up operation, the third call connection service sends a hang-up instruction to the third communication module.
[0513] Step 225 : After receiving the hang-up instruction, the third communication module sends the hang-up instruction to the first communication module through the second control channel between the mobile phone 1 and the laptop computer 3 .
[0514] Step 226: After receiving the hang-up instruction, the first communication module sends the hang-up instruction to the first call connection service.
[0515] Step 227: After receiving the hang-up instruction, the first call connection service sends a hang-up instruction to the call application.
[0516] Step 228: The call application hangs up the call after receiving the hang-up instruction.
[0517] Please refer to FIG. 7 , after receiving the hang-up instruction, the call application hangs up the call and closes the call interface 14 .
[0518] Step 229: After receiving the hang-up instruction, the first call connection service may send a hang-up notification to the first communication module.
[0519] Step 230: After receiving the hang-up notification, the first communication module sends the hang-up notification to the third communication module.
[0520] Step 231: After receiving the hang-up notification, the third communication module forwards the hang-up notification to the third call connection service.
[0521] Step 232 : After receiving the hang-up notification, the third call connection service controls the laptop computer 3 to close the call interface 34 .
[0522] Step 233: After receiving the hang-up notification, the third call connection service may send a stop instruction to the third collaborative module.
[0523] Step 234: The third cooperative module stops running after receiving the stop instruction.
[0524] Illustratively, after receiving the stop instruction, the third collaborative module may first shut down the audio player, audio recorder, audio processor, etc., and then stop running.
[0525] Step 235: After receiving the hang-up instruction, the first call connection service may send a stop instruction to the first collaboration module.
[0526] Step 236 : After receiving the stop instruction, the first collaboration module may disable the audio capabilities of the tablet computer 2 and the notebook computer 3 .
[0527] For example, the first device management unit may delete the device identifier and the service identifier of the audio capability of the tablet computer 2 registered in the device management unit, and delete the device identifier and the service identifier of the audio capability of the laptop computer 3 registered in the device management unit.
[0528] Step 237: After receiving the stop instruction, the first collaboration module sends a stop instruction to the virtual audio module.
[0529] Step 238: After receiving the stop instruction, the virtual audio module switches the audio path to the mobile phone.
[0530] For example, the virtual audio module can switch the output of the ADSP from the first pulse code modulation device to the speaker of mobile phone 1, and switch the input of the ADSP from the second pulse code modulation device to the microphone of mobile phone 1, so as to switch the audio path back to mobile phone 1. At the same time, the virtual audio module can delete the registered communication interface of tablet computer 2 and the communication interface of laptop computer 3.
[0531] Step 239: After receiving the stop instruction, the virtual audio module sends a channel closing instruction to the first transmission channel unit.
[0532] Step 240: After receiving the channel closing instruction, the first transmission channel unit sends the channel closing instruction to the first communication module.
[0533] Step 241: After receiving the channel closing instruction, the first communication module closes the control channel, the uplink data channel, and the downlink data channel between the mobile phone 1 and the tablet computer 2, and closes the control channel, the uplink data channel, and the downlink data channel between the mobile phone 1 and the laptop computer 3.
[0534] It should be noted that the above examples are merely illustrative and do not constitute specific limitations on the business termination process.
[0535] Optionally, during the call answering process, when the first electronic device detects that the fourth electronic device is online, it creates a third control channel between itself and the fourth electronic device; the third control channel is used to transfer the call flow to the fourth electronic device for answering when it receives a third switching instruction corresponding to the fourth electronic device.
[0536] As shown in Figure 22, tablet computer 2 and laptop computer 3 are online at the same time, and the call is transferred to laptop computer 3. At this time, if the smart screen in the trust ring is online, the smart screen will push device information to mobile phone 1, and the device information of the smart screen will appear in the device list. During the entire call answering process, the first call connection service can monitor the device list to determine whether the device list is updated. When the first call connection service detects that the device list is updated and the device information of the smart screen appears, if it is determined that the device type of the smart screen is the same as the default device type of the call service, it can be determined that the smart screen is the fourth electronic device, and mobile phone 1 enables the audio capability of the smart screen.
[0537] Similarly, in the process of enabling the audio capability of the smart screen, a fourth control channel can be created between mobile phone 1 and the smart screen. At the same time, the device identifier of the smart screen can be registered in the first collaborative module, and the corresponding service identifier of the audio capability can be registered. In addition, the communication interface of the smart screen can be registered in the virtual audio module.
[0538] After the audio capability of the smart screen is enabled, if the user needs to transfer the call to the smart screen, mobile phone 1 can transfer the call to the smart screen when it receives the third switching instruction corresponding to the smart screen.
[0539] In an embodiment of the present application, during a call answering process, when a newly online auxiliary device is detected, the main device can enable the audio capability of the newly online auxiliary device so that when the call needs to be transferred to the new auxiliary device, the call can be quickly transferred to the new auxiliary device for answering.
[0540] FIG24 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 24, such as the electronic device 10 shown in FIG10 , includes a processor 241, a memory 242, a communication interface 243, and a bus 244. The memory 242 is used to store instructions, and the processor 241 is used to execute the instructions stored in the memory 242. The processor 241, the memory 242, and the communication interface 243 are connected to each other via the bus 244.
[0541] The present application also provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method described above.
[0542] The present application also provides a computer program product, which includes: computer program code, and when the computer program code is executed by a communication device, implements the method described in any method embodiment of the present application.
[0543] The computer program product may also be a code solidified in a chip. This application does not limit the specific form of the computer program product.
[0544] The present application also provides a readable storage medium on which a computer program is stored, which, when executed by a communication device, implements the method described in any method embodiment of the present application. The computer program can be a high-level language program or an executable target program.
[0545] The readable storage medium may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0546] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0547] In the several embodiments provided in this application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not executed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0548] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0549] In short, the above description is only a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the scope of protection of this application.
Claims
1. A communication system, characterized in that: The communication system includes a first electronic device, a second electronic device and a third electronic device; The first electronic device receives an incoming call request; In response to the incoming call request, the first electronic device, the second electronic device, and the third electronic device perform an incoming call reminder; The first electronic device establishes a first control channel with the second electronic device, and the first electronic device establishes a second control channel with the third electronic device; An operation of answering the incoming call is received on the first electronic device or the second electronic device, and the first electronic device answers the call corresponding to the incoming call request; The first electronic device transfers the call to the second electronic device through the first control channel; During the process of the second electronic device answering the call, the first electronic device receives a first switching instruction; In response to the first switching instruction, the first electronic device transfers the call to the third electronic device through the second control channel.
2. The system according to claim 1, wherein After receiving an operation to answer the incoming call on the second electronic device, the second electronic device sends an answering instruction to the first electronic device; In response to the answer instruction, the first electronic device answers the call and transfers the call to the second electronic device through the first control channel.
3. The system according to claim 1, wherein: An operation of answering the incoming call is received on the first electronic device, and the first electronic device answers the call; In response to the received second switching instruction, the first electronic device transfers the call to the second electronic device through the first control channel.
4. The system according to any one of claims 1 to 3, wherein: During the process of the second electronic device answering the call, the second electronic device receives a first operation corresponding to the first control; In response to the first operation, the second electronic device sends the first switching instruction to the first electronic device.
5. The system according to any one of claims 1 to 3, wherein: After the call is transferred to the second electronic device for answering, the first electronic device displays a first call interface, wherein the first call interface includes a second control; The first electronic device receives the first switching instruction through the second control.
6. The system according to claim 4, wherein: After the call is transferred to the second electronic device for answering, the second electronic device displays a second call interface, which includes the first control.
7. The system according to any one of claims 1 to 6, wherein: Before transferring the call to the second electronic device for answering, the first electronic device registers the device identification of the second electronic device; The first electronic device marks the enabled state of the audio capability of the second electronic device as a first identifier; The first electronic device marks the calling state of the audio capability of the second electronic device as a second identifier; When the first electronic device determines, based on the device identifier of the second electronic device, that the enabled state of the audio capability of the second electronic device is the first identifier and that the calling state of the audio capability of the second electronic device is the second identifier, the first electronic device transfers the call to the second electronic device through the first control channel.
8. The system according to any one of claims 1 to 7, wherein: The first electronic device includes a collaboration module and a virtual audio module; Before transferring the call to the second electronic device for answering, the collaboration module registers the first communication interface in the virtual audio module; After the call is transferred to the second electronic device for answering, the first electronic device transmits the audio data of the call between the cooperation module and the virtual audio module through the first communication interface.
9. The system according to any one of claims 1 to 8, wherein: Before transferring the call to the third electronic device for answering, the first electronic device registers the device identification of the third electronic device; The first electronic device marks the enabled state of the audio capability of the third electronic device as a third identifier; The first electronic device marks the calling state of the audio capability of the third electronic device as a fourth identifier; When the first electronic device determines, based on the device identifier of the third electronic device, that the enabled state of the audio capability of the third electronic device is the third identifier and that the calling state of the audio capability of the third electronic device is the fourth identifier, the first electronic device transfers the call to the third electronic device through the second control channel.
10. The system according to any one of claims 1 to 9, wherein: The first electronic device includes a collaboration module and a virtual audio module; Before transferring the call to the third electronic device for answering, the collaboration module registers the second communication interface of the third electronic device in the virtual audio module; After the call is transferred to the third electronic device for answering, the first electronic device transmits the audio data of the call between the cooperation module and the virtual audio module through the second communication interface.
11. The system according to claim 7 or 8, characterized in that After transferring the call to the second electronic device for answering, the first electronic device marks the calling state of the audio capability of the second electronic device as a fifth identifier.
12. The system according to any one of claims 1 to 11, wherein: Before establishing the first control channel, the first electronic device determines that the second electronic device is in an online state; Before establishing the second control channel, the first electronic device determines that the third electronic device is in an online state.
13. The system according to any one of claims 1 to 12, wherein: The first electronic device transferring the call to the third electronic device through the second control channel includes: The first electronic device disconnects a first data channel between the first electronic device and the second electronic device, where the first data channel is established before transferring the call to the second electronic device; The first electronic device establishes a second data channel with the third electronic device; After establishing the second data channel, the first electronic device transfers the call to the third electronic device through the second control channel; The first data channel and the second data channel are used to transmit the audio data in the call.
14. The system according to any one of claims 1 to 13, wherein: When the first electronic device detects that the fourth electronic device is online, the first electronic device establishes a third control channel with the fourth electronic device; The third control channel is used to transfer the call flow to the fourth electronic device for answering when receiving a third switching instruction corresponding to the fourth electronic device.
15. A communication method, characterized in that: Applied to a first electronic device, the method includes: The first electronic device receives an incoming call request; In response to the incoming call request, the first electronic device sends a co-vibration notification to the second electronic device and the third electronic device respectively, so that the second electronic device and the third electronic device provide an incoming call reminder; The first electronic device establishes a first control channel with the second electronic device, and the first electronic device establishes a second control channel with the third electronic device; When the first electronic device receives the answer instruction, it connects the call corresponding to the incoming call request; The first electronic device transfers the call to the second electronic device through the first control channel; After the call is transferred to the second electronic device for answering, the first electronic device receives a first switching instruction; In response to the first switching instruction, the first electronic device transfers the call to the third electronic device through the second control channel.
16. The method according to claim 15, wherein The answering instruction is sent by the second electronic device to the first electronic device.
17. The method according to claim 15, wherein The first electronic device transferring the call to the second electronic device through the first control channel includes: When the first electronic device receives the second switching instruction, it transfers the call to the second electronic device through the first control channel.
18. The method according to any one of claims 15 to 17, wherein: The first switching instruction is sent by the second electronic device to the first electronic device; The first switching instruction is sent by the second electronic device to the first electronic device when the second electronic device receives a first operation corresponding to the first control after answering the call.
19. The method according to any one of claims 15 to 17, wherein: After the call is transferred to the second electronic device for answering, the first electronic device displays a first call interface, wherein the first call interface includes a second control; The first electronic device receives the first switching instruction through the second control.
20. The method of claim 18, wherein: The first control is included in a second call interface, and the second call interface is displayed by the second electronic device after answering the call.
21. The method according to any one of claims 15 to 20, wherein: Before transferring the call to the second electronic device for answering, the method further includes: The first electronic device registers the device identifier of the second electronic device; the first electronic device marks the enabled state of the audio capability of the second electronic device as the first identifier; the first electronic device marks the call state of the audio capability of the second electronic device as the second identifier; The first electronic device transferring the call to the second electronic device through the first control channel includes: When the first electronic device determines, based on the device identifier of the second electronic device, that the enabled state of the audio capability of the second electronic device is the first identifier and that the calling state of the audio capability of the second electronic device is the second identifier, the first electronic device transfers the call to the second electronic device through the first control channel.
22. The method according to any one of claims 15 to 21, wherein The first electronic device includes a collaboration module and a virtual audio module. Before transferring the call to the second electronic device for answering, the method further includes: registering a first communication interface in the virtual audio module by the collaboration module; After the call is transferred to the second electronic device for answering, the first electronic device transmits the audio data of the call between the collaboration module and the virtual audio module through the first communication interface.
23. The method according to any one of claims 15 to 22, wherein: Before transferring the call to the third electronic device for answering, the method further includes: The first electronic device registers the device identifier of the third electronic device; the first electronic device marks the enabled state of the audio capability of the third electronic device as a third identifier; the first electronic device marks the call state of the audio capability of the third electronic device as a fourth identifier; The first electronic device transfers the call to the third electronic device for answering through the second control channel, including: when the first electronic device determines, based on the device identifier of the third electronic device, that the enabled state of the audio capability of the third electronic device is the third identifier and the call state of the audio capability of the third electronic device is the fourth identifier, the first electronic device transfers the call to the third electronic device for answering through the second control channel.
24. The method according to any one of claims 15 to 23, wherein The first electronic device includes a collaboration module and a virtual audio module. Before transferring the call to the third electronic device for answering, the method further includes: The collaboration module registers the second communication interface of the third electronic device in the virtual audio module; After the call is transferred to the third electronic device for answering, the first electronic device transmits the audio data of the call between the collaboration module and the virtual audio module through the second communication interface.
25. The method according to claim 21 or 23, wherein: After transferring the call to the second electronic device for answering, the method further includes: The first electronic device marks the calling state of the audio capability of the second electronic device as a fifth identifier.
26. The method according to any one of claims 15 to 25, wherein The method further comprises: Before establishing the first control channel, the first electronic device determines that the second electronic device is in an online state; Before establishing the second control channel, the first electronic device determines that the third electronic device is in Line status.
27. The method according to any one of claims 15 to 26, wherein The first electronic device transferring the call to the third electronic device through the second control channel includes: The first electronic device disconnects a first data channel between the first electronic device and the second electronic device, where the first data channel is established before transferring the call to the second electronic device; The first electronic device establishes a second data channel with the third electronic device; After establishing the second data channel, the first electronic device transfers the call to the third electronic device through the second control channel; The first data channel and the second data channel are used to transmit the audio data in the call.
28. The method according to any one of claims 15 to 27, wherein The method further comprises: When the first electronic device detects that the fourth electronic device is online, the first electronic device establishes a third control channel with the fourth electronic device; The third control channel is used to transfer the call flow to the fourth electronic device for answering when receiving a third switching instruction corresponding to the fourth electronic device.
29. An electronic device, characterized in that: include: One or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the electronic device performs the method according to any one of claims 15-28.
30. A readable storage medium, characterized in that The readable storage medium stores a computer program product, wherein the computer program product includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 15 to 28.
31. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method as described in any one of claims 15-28.