Communication relay method, electronic equipment, communication system and storage medium
By establishing Wi-Fi long connections and call relay links between mobile phones and relay devices, the problem of poor call quality in weak signal environments is solved, and high-quality calls in IMS call mode are achieved.
Patent Information
- Application Number
- CN202211349220.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-10-31
AI Technical Summary
In the IMS call method, when the electronic device receives a weak signal environment, call data packets are easily lost, the delay is too large, or the jitter is too large, resulting in poor call quality. For example, calls may be intermittent in weak signal scenarios such as basements. Silence or interruption.
By establishing a long Wi-Fi connection between the mobile phone and the relay device, synchronizing the SIM card information and completing network registration on the relay device, the relay device is used for signal relay, and a call relay link is established to transmit voice data to ensure call quality.
In a weak signal environment, voice data is transmitted through relay equipment to improve call quality, ensuring that the user experience is similar to the local experience and maintaining smooth calls.
Smart Images

Figure CN116709226B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication relay method, electronic equipment, a communication system and a storage medium. Background Art
[0002] At present, calls between electronic devices are usually carried out with the help of operator networks, such as traditional call methods such as IMS networks; IMS refers to the Internet protocol (IP) multimedia subsystem. In this IMS call mode, call data packets are transmitted between electronic devices through the call link formed by base stations and core network devices.
[0003] However, during a call, the network signal received by the electronic device may be weak, causing the call data packets (also called voice data packets) transmitted by the call link to be lost, delayed too much, or jitter too much, which may lead to intermittent, silent, or interrupted call voice, resulting in poor call quality. Summary of the invention
[0004] The present application provides a communication relay method, an electronic device, a communication system and a storage medium. In an environment without a network or with a weak network, the electronic device can synchronize the subscriber identification module (SIM) card data to the relay device through a Wi-Fi signal, and complete the actions of applying for registration with the network and accessing the operator's network on the relay device. In the incoming or outgoing call scenario, the electronic device can use the relay device to transmit voice data or send and receive text messages to improve the call quality.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a communication relay method, the method comprising: a first device has been connected to a first cellular network and a first wireless fidelity Wi-Fi network, wherein the signal strength of the first cellular network is a first signal strength;
[0007] The first device transmits the first user identification SIM card data of the first device to the second device through the first Wi-Fi network, and triggers the second device to stay on the network according to the first SIM card data; the second device and the first device have logged in to the same account;
[0008] The first device receives the network stationing information sent by the second device, the network stationing information including that the second cellular network has been stationed according to the first SIM card data, and the signal strength of the second cellular network is a second signal strength, and the second signal strength is higher than the first signal strength;
[0009] The first device receives a first communication instruction sent by the second device, where the first communication instruction is that the second device receives an incoming call from a third device;
[0010] In response to the first communication instruction, the first device displays an incoming call interface;
[0011] In response to the user's answering operation, the first device sends a second communication instruction to the second device, where the second communication instruction is for the first device to confirm that the call from the third device is connected, and triggers the second device to establish a call link with the third device through the cellular network;
[0012] The first device and the second device establish a call relay link through a first Wi-Fi network;
[0013] The first device receives first voice data sent by the second device, where the first voice data is voice data from the third device.
[0014] Through the communication relay method provided in the embodiment of the present application, a long connection is established between the mobile phone and the relay device with the help of the first Wi-Fi network, the mobile phone synchronizes the SIM card information to the relay device, and completes the actions of applying for registration with the network and accessing the operator network on the relay device, and the long connection is responsible for forwarding various communication signaling between the mobile phone and the relay device. In this way, when the mobile phone carried by the user is in a scene with weak signal such as a basement, when the mobile phone establishes a call with another mobile phone, a call relay link can be established between the mobile phone and the relay device through the Wi-Fi network to transmit voice data, and a call link can be established between the relay device and the other mobile phone through the cellular network to transmit voice data. In this way, signal relay through the relay device can ensure that the mobile phone and the other mobile phone can maintain smooth communication and improve call quality.
[0015] The first device is referred to as electronic device 1 in the embodiment. The third device is referred to as electronic device 2 in the embodiment. The second device is referred to as electronic device 3 in the embodiment, which serves as a relay device or an auxiliary device.
[0016] In the embodiment of the present application, in an environment without network or weak network, if the electronic device has Wi-Fi signal, the electronic device can transmit SIM card information to the relay device through the Wi-Fi signal, and complete the action of applying for registration with the network and accessing the operator network on the relay device. In the incoming or outgoing call scenario, the electronic device can use the relay device to transmit voice data or send and receive text messages. Through the present application solution, the call quality can be improved, and the user experience is similar to the local experience.
[0017] In some possible implementations, the first device transmitting the first SIM card data of the first device to the second device through the first Wi-Fi network includes: the first device establishing a persistent connection channel with the second device through the first Wi-Fi network; and the first device transmitting the first SIM card data to the second device through the persistent connection channel.
[0018] In some possible implementations, the first device receives the first communication instruction sent by the second device, including: the first device receives the first communication instruction sent by the second device through the long connection channel.
[0019] In some possible implementations, the first device establishing a persistent connection channel with the second device through the first Wi-Fi network includes: the first device acquiring a push identifier of the second device; the first device sending the push identifier of the second device to a first server to trigger the first server to push a first message to the second device, where the first message is used to instruct the second device to establish a persistent connection channel with the first device; and the first device sending a second message to the second server, where the second message is used to request the second server to establish a persistent connection channel between the first device and the second device through the first Wi-Fi network.
[0020] The first server may also be referred to as a push cloud or a push cloud server, and the second server may also be referred to as a communication relay cloud or a communication relay cloud server, or a communication auxiliary service cloud or a communication auxiliary service cloud server.
[0021] In some possible implementations, the first device and the second device establish a call relay link through a first Wi-Fi network, including: the first device obtains a push identifier and a communication identifier of the second device; the first device sends the push identifier of the second device to a first server to trigger the first server to push a second message to the second device, where the second message is used to instruct the second device to establish a call relay link with the first device; the first device sends the communication identifier of the first device and the communication identifier of the second device to a third server to trigger the third server to establish a call relay link between the first device and the second device through the first Wi-Fi network according to the communication identifier of the first device and the communication identifier of the second device.
[0022] Among them, the third server can also be called a far field communication service cloud or a far field communication service cloud server.
[0023] In some possible implementations, before the first device transmits the first SIM card data of the first device to the second device through the first Wi-Fi network, the method further includes: the first device obtains relayable device information from the second server, the relayable device information includes the names of one or more relayable devices, and the account number of each of the one or more relayable devices is the same as the account number of the first device; the first device displays the names of the one or more relayable devices, and the names of the one or more relayable devices include the name of the second device; in response to the user's operation on the name of the second device, the first device determines the second device as the preferred relay device.
[0024] In some possible implementations, before the first device obtains the relayable device information from the second server, the method also includes: the first device turns on the signal relay switch; the first device uploads the relay-related information of the first device to the second server, and the relay-related information includes the account, device information, communication identifier and push identifier of the first device.
[0025] In some possible implementations, the first device turns on a signal relay switch, including: when the first device is turned on for the first time, the first device automatically turns on the signal relay switch; or, in response to a user's operation on the signal relay switch, the first device turns on the signal relay switch.
[0026] In some possible implementations, after the first device receives the network information sent by the second device, the method further includes: when the second signal strength is higher than the first signal strength, the first device enters a signal relay state; and the first device displays a first prompt message, wherein the first prompt message is used to prompt that the first device is using the second device for signal relay.
[0027] In some possible implementations, the first device displays the first prompt information, including: the first device displays the first prompt information in a notification bar, the first prompt information is in the form of a notification card, and the notification card displays a stop relay control, a switch relay device control and / or a switch relay card control; and / or the first device displays the first prompt information in a status, and the first prompt information is in the form of a relay icon.
[0028] In some possible implementations, after the first device displays the first prompt information in the notification bar, the method further includes: in response to a user operation on the switching relay device control, the display interface of the first device jumps to a signal relay setting interface, and the relayable devices displayed on the signal relay setting interface include a fourth device and the second device; in response to the user operation on the fourth device, the first device determines the fourth device as the preferred relay device;
[0029] Alternatively, in response to the user's operation on the switching relay card control, the display interface of the first device jumps to the signal relay setting interface, and the default relay card displayed on the signal relay setting interface is the first SIM card; in response to the user's operation on the second SIM card, the first device determines the second SIM card as the default relay card;
[0030] Alternatively, in response to the user's operation on the stop relay control, the first device disconnects the long connection channel with the second device and displays a second prompt message, where the second prompt message is used to prompt that the signal relay is interrupted and the local signal has been restored.
[0031] In some possible implementations, after the first device receives the network information sent by the second device, when the first device is not in a call state, the method further includes: the first device displays an outgoing call interface; in response to a user's call making operation, the first device sends a third communication instruction to the second device, the third communication instruction is that the first device makes a call to the third device, and triggers the second device to establish a call link with the third device through a cellular network; the first device and the second device establish a call relay link through a first Wi-Fi network; the first device receives first voice data sent by the second device, the first voice data is voice data from the third device.
[0032] In some possible implementations, in some possible implementations, the method further includes: the first device collects second voice data; the first device sends the second voice data to the second device, and triggers the second device to transmit the second voice data to the third device.
[0033] In some possible implementations, the first device includes a call relay service module, and a far-field communication service module connected to the call relay service module, the far-field communication service module is connected to a third server through a first Wi-Fi network, and the third server is a relay server;
[0034] The first device sends the second voice data to the second device, including: the first device transmits the second voice data to the far-field communication service module through the call relay service module; the first device uploads the second voice data to the third server through the far-field communication service module, and triggers the third server to forward the second voice data to the second device.
[0035] In some possible implementations, the method further includes: when the Wi-Fi network of any device among the first device and the second device is disconnected, or the SIM card is pulled out, or the device is restarted, or the airplane mode is turned on, the first device disconnects the signal relay of the second device.
[0036] In a second aspect, the present application provides a communication relay device, which includes a unit for executing the method in the first aspect. The device may correspond to executing the method described in the first aspect. For the relevant description of the unit in the device, please refer to the description of the first aspect, which will not be repeated here for the sake of brevity.
[0037] The method described in the first aspect above can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a processing module or unit, a display module or unit, etc.
[0038] In a third aspect, the present application provides an electronic device, the electronic device comprising a processor, the processor coupled to a memory, the memory being used to store a computer program or instruction, the processor being used to execute the computer program or instruction stored in the memory, so that the method in the first aspect is executed. For example, the processor is used to execute the computer program or instruction stored in the memory, so that the device executes the method in the first aspect.
[0039] In a fourth aspect, the present application provides a communication system, which includes a relay device and an electronic device as described in the third aspect, wherein the electronic device and the relay device have the same login account, and the electronic device establishes a long connection channel and a call relay link with the relay device through a Wi-Fi network, the long connection channel is used to transmit the user identification SIM card data and communication instructions of the electronic device, and the call relay link is used to transmit call voice data.
[0040] In a fifth aspect, the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as instructions or codes) for implementing the method in the first aspect. For example, when the computer program is executed by a computer, the computer can execute the method in the first aspect.
[0041] In a sixth aspect, the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof. Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0042] In a seventh aspect, the present application provides a chip system, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof. Optionally, the chip system also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0043] In an eighth aspect, the present application provides a computer program product, which includes a computer program (also referred to as instructions or codes), and when the computer program is executed by a computer, the computer implements the method in the first aspect.
[0044] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of an application scenario of communication between electronic devices;
[0046] Figure 2 A schematic diagram of an application scenario of a communication relay method provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of a software architecture of an electronic device disclosed in an embodiment of the present application;
[0049] Figure 5 A simple schematic diagram of establishing a long connection channel and a call relay link between an electronic device and a relay device in a communication relay method disclosed in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of an electronic device reporting account-related information to a network side in a communication relay method disclosed in an embodiment of the present application;
[0051] Figure 7 A timing diagram of establishing a long connection channel between an electronic device and a relay device in a communication relay method disclosed in an embodiment of the present application;
[0052] Figure 8 A user operation interface diagram of a communication relay method disclosed in an embodiment of the present application Figure 1 ;
[0053] Fig. 9 A user operation interface diagram of a communication relay method disclosed in an embodiment of the present application Figure 2 ;
[0054] Fig.10 A user operation interface diagram of a communication relay method disclosed in an embodiment of the present application Figure 3 ;
[0055] Fig.11 A timing diagram of establishing a call link and a call relay link in a communication relay method disclosed in an embodiment of the present application;
[0056] Fig.12 A timing diagram of transmitting a call data packet in an incoming call scenario in a communication relay method disclosed in an embodiment of the present application;
[0057] Fig.13 A schematic diagram of transmitting a call data packet in an incoming call scenario in a communication relay method disclosed in an embodiment of the present application;
[0058] Fig.14 A timing diagram of transmitting a call data packet in an outgoing call scenario in a communication relay method disclosed in an embodiment of the present application;
[0059] Fig.15 A schematic diagram of transmitting a call data packet in an outgoing call scenario in a communication relay method disclosed in an embodiment of the present application;
[0060] Fig.16 A schematic diagram of establishing a call relay link in a communication relay method disclosed in an embodiment of the present application;
[0061] Fig.17 A timing diagram of establishing a call relay link in a communication relay method disclosed in an embodiment of the present application;
[0062] Fig.18 A user operation interface diagram of a communication relay method disclosed in an embodiment of the present application Figure 4 ;
[0063] Fig.19 A user operation interface diagram of a communication relay method disclosed in an embodiment of the present application Figure 5 ;
[0064] Fig. 20 A user operation interface diagram of a communication relay method disclosed in an embodiment of the present application Figure 6 . DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.
[0067] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of objects. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two, for example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
[0068] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0069] At present, calls between electronic devices are usually carried out with the help of operator networks, such as traditional call methods such as IMS. In this IMS call method, call data packets are transmitted between electronic devices through the call link formed by the base station and the core network equipment. However, during the call, the call data packet (also called voice data packet) transmitted by the call link may be lost, delayed too much, or jitter too much due to the weak strength of the network signal received by the electronic device, which may lead to the phenomenon of intermittent, silent or interrupted voice, so the call quality is poor.
[0070] For example, when a user uses a mobile phone or other communication device to make a call in a location with weak cellular signal strength (such as an underground garage, basement, etc.), the call may not be connected, the call may be dropped, or the call sound may be intermittent due to signal reasons.
[0071] To address this problem, the call quality can be improved by transmitting call data packets through an auxiliary link. The specific process is: add an auxiliary link (also called an auxiliary link) on the basis of the main link (i.e. the call link formed by the base station and the core network equipment), transmit call data packets through the main link and the auxiliary link respectively, and integrate the call data packets transmitted by the main link and the auxiliary link to improve the call quality.
[0072] Figure 1 The schematic diagram of the scenario of transmitting call data packets through the main link and the auxiliary link respectively provided by the embodiment of the present application is shown. Figure 1As shown, in this scenario, two call links are established between two electronic devices (electronic device 1 and electronic device 2): a main link and an auxiliary link. The main link includes electronic device 1, base station 1, core network device, base station 2 and electronic device 2; the auxiliary link includes electronic device 1, Wi-Fi device 1, core network device, Wi-Fi device 2 and electronic device 2. During the call between electronic device 1 and electronic device 2, electronic device 1 and electronic device 2 respectively access the core network through the cellular network (also called mobile data network) provided by the base station to form a main link, and electronic device 1 and electronic device 2 respectively establish a connection with the core network device through the Wi-Fi device to form an auxiliary link. In this way, when electronic device 1 and electronic device 2 transmit call data packets through the main link, if the network signal strength is weak (including no network signal), call data packets can be transmitted through the main link and the auxiliary link respectively, thereby improving the call quality.
[0073] In the above scheme, the conditions for establishing an auxiliary link include that electronic device 1 and electronic device 2 are respectively connected to the wireless local area network. When electronic device 2 is not connected to the wireless local area network, an auxiliary link cannot be established between electronic device 1 and electronic device 2. In this case, phenomena such as intermittent, silent or interrupted call voice still exist.
[0074] In view of this, the embodiment of the present application provides a communication relay method. Through the communication relay method provided by the embodiment of the present application, a long connection is established between the mobile phone and the relay device with the help of the Wi-Fi network. The mobile phone synchronizes the SIM card information to the relay device, and completes the actions of applying for registration with the network and accessing the operator network on the relay device. The long connection is responsible for forwarding various communication signaling between the mobile phone and the relay device. In this way, when the mobile phone carried by the user is in a scene with weak signal such as a basement, when the mobile phone establishes a call with another mobile phone, a call relay link can be established between the mobile phone and the relay device through the Wi-Fi network to transmit voice data, and a call link can be established between the relay device and the other mobile phone through the cellular network to transmit voice data. In this way, signal relay through the relay device can ensure that the mobile phone and the other mobile phone can maintain smooth calls and improve call quality.
[0075] Compared with Android native calls, in the embodiment of the present application, after the electronic device 1 and the relay device establish a connection, the transmission of call signaling (such as incoming call signaling or incoming call signaling) has changed: the present application scheme introduces a call relay service, which can transmit call signaling between electronic devices 1 and 2 through the call relay service, and transmit call signaling to the Android call framework and application through the call relay service in the electronic device 1. For example, a call relay service module and a far-field communication service module are newly designed on the electronic device side, and a push service module is added; a communication relay cloud and a far-field communication service cloud are added on the network side, and a push cloud is added. The specific functions will be described in detail below.
[0076] In the embodiment of the present application, for example, it is assumed that the user has two electronic devices, which can be a mobile phone carried by the user and a relay device not carried by the user. The overall idea of this solution is: a long connection is established between the mobile phone and the relay device with the help of the Wi-Fi network, the mobile phone synchronizes the SIM card information to the relay device, and completes the action of applying for registration with the network and accessing the operator network on the relay device, and the long connection is responsible for forwarding various communication signaling between the mobile phone and the relay device. In this way, when the mobile phone carried by the user is in a scene with weak signal such as a basement, when the mobile phone establishes a call with another mobile phone, a call relay link can be established between the mobile phone and the relay device through the Wi-Fi network to transmit voice data, and a call link can be established between the relay device and the other mobile phone through the cellular network to transmit voice data. In this way, by relaying the signal through the relay device, it can be ensured that the mobile phone and the other mobile phone can maintain a smooth call and improve the call quality.
[0077] Optionally, the above-mentioned call relay link can be a point-to-point audio transmission channel based on P2P (peer to peer), or it can be an audio transmission channel based on a communication relay cloud (also known as a relay server); wherein the relay server is a relay server used to send information between two devices that are far apart and cannot send information directly.
[0078] Figure 2A schematic diagram of the system framework for the application of the communication relay method disclosed in the embodiment of the present application. The system framework includes electronic device 1, electronic device 2 and electronic device 3. Both electronic device 1 and electronic device 2 are equipped with SIM cards. Electronic device 3 supports SIM card functions and has an idle communication chip (also called a modem). The communication chip supports virtual SIM card access. In addition, both electronic device 1 and electronic device 3 are connected to a wireless fidelity (Wi-Fi) network, which can be the same or different. Electronic device 3 can be placed in a location with a strong signal, such as a home or a company.
[0079] like Figure 2 As shown, when the user carries electronic device 1 to a place such as a basement where the cellular network signal strength is weak (including the situation where there is no network signal), if the signal strength of the cellular network where electronic device 3 is located is higher than the signal strength of the cellular network where electronic device 1 is located, then electronic device 1 can establish a long connection channel with electronic device 3 through a Wi-Fi network (not shown in the figure) and a far-field communication service cloud, and then electronic device 3 can pass the SIM card information of electronic device 1 to electronic device 3 through the long connection channel, forming a virtual SIM card on electronic device 3, and then electronic device 3 uses the virtual SIM card to register the cellular network. Since the modem of electronic device 3 supports the virtual SIM card access method, electronic device 3 can remotely access the cellular network registered by the virtual SIM card, and then establish a call link with electronic device 2 through the cellular network.
[0080] When a call is connected between electronic device 1 and electronic device 2, electronic device 1 establishes a call relay link with electronic device 3, and electronic device 3 establishes a call link with electronic device 2. During the call, electronic device 1 and electronic device 2 can forward call data packets through electronic device 3 to implement a voice call between electronic device 1 and electronic device 2, thereby improving the call quality.
[0081] In this scenario, the electronic device 3 may be referred to as a relay device, a relay device, or an auxiliary device. The call relay link established between the electronic device 1 and the electronic device 3 may also be referred to as an auxiliary link.
[0082] In the embodiment of the present application, the relay process can be performed only when the user device and the relay device meet certain conditions, so as to realize the forwarding of call data packets between the two electronic devices through the relay device. For example, the conditions may include:
[0083] (1) Both the user device and the relay device are logged in to the same user account.
[0084] (2) The user device and the relay device are connected to Wi-Fi networks respectively. The user device and the relay device can be connected to the same Wi-Fi network or different Wi-Fi networks.
[0085] (3) Both the user equipment and the relay equipment have turned on the signal relay feature switch.
[0086] (4) The relay device supports the SIM card function and has an idle modem that supports the virtual SIM card access method.
[0087] As described above, the relay device is an electronic device that supports the SIM card function, and the relay device has an idle and available modem that supports the virtual SIM card access method. Exemplarily, the relay device can be a mobile phone or other electronic devices that meet the conditions.
[0088] In order to better understand the embodiments of the present application, the structure of the electronic device in the embodiments of the present application is introduced below:
[0089] For example, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, etc.
[0090] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0091] Combine the following Figure 3 The components of the electronic device 100 are described in detail:
[0092] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. For example, the processor 110 is used to execute the ambient light detection method in the embodiment of the present application.
[0093] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0094] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0095] The external memory 120 generally refers to an external memory. In the embodiment of the present application, the external memory refers to a memory other than the memory of the electronic device and the cache of the processor, and the memory is generally a non-volatile memory.
[0096] The internal memory 121, which may also be referred to as "memory", may be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
[0097] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may be an organic light-emitting diode (OLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0098] The electronic device 100 also includes various sensors that can convert various physical signals into electrical signals. Exemplarily, the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. The bone conduction sensor 180M can obtain a vibration signal.
[0099] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0100] Exemplarily, in an embodiment of the present application, the touch sensor 180K can detect a user's click operation on an application icon, and transmit the detected click operation to the application processor, determine that the click operation is used to start or run the application, and then execute the running operation of the application.
[0101] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0102] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0103] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0104] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0105] The above is a specific description of the embodiment of the present application using the electronic device 100 as an example. It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0106] It should be noted that the electronic device provided in the embodiments of the present application may be a mobile terminal (such as a user's mobile phone), a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices with a call function or supporting a far-field SIM card function. The embodiments of the present application do not impose any restrictions on the specific type of electronic device.
[0107] In addition, an operating system is running on the above components, such as an iOS operating system, an Android open source operating system, or a Windows operating system, etc. Application programs can be installed and run on the operating system.
[0108] The operating system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0109] Figure 4 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0110] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer (applications), application framework layer (application framework), system library layer, and kernel layer (kernel).
[0111] The application layer may include a series of application packages. For example, the application layer may include call APP, SMS application (application, APP), camera APP, gallery APP, calendar APP, map APP, navigation APP, Bluetooth, music APP, video APP and other applications, and the present application embodiment does not impose any restrictions on this.
[0112] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 4 As shown, the application framework layer may include a call service (Telephony) module, a call setting module, a call relay service module (also called a call assistance module), a push service module, a connection management (ConnectivityManager) module, and a far-field communication service module, etc.
[0113] The call service module is used to provide call services, such as being responsible for IMS service registration, and making and hanging up calls. The call setting module is used to set call-related functions, such as providing a call relay function switch, and displaying the information of one or more relayable devices in a pop-up window. The call relay service module is mainly used to pass the SIM card information of the electronic device to the relay device, and to establish a call relay link between the electronic device and the relay device. The push service module is also mainly used to assist the far-field communication service module in establishing a call relay link, and to provide some necessary information for establishing a call relay link. The connection management module is responsible for the wireless LAN connection of the electronic device and the registration and connection of the cellular network.
[0114] The far-field communication service module is mainly used to establish a call relay link between electronic devices, through which call data packets can be sent and received.
[0115] The system library layer can include multiple functional modules. The system library layer can also include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGLES), 2D graphics engine (for example: SGL), etc. (not shown in the figure). The surface manager is used to manage the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0116] In the system library layer, Android Runtime includes the core library and the virtual machine. Android Runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of Android. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
[0117] The kernel layer is the layer between hardware and software. The kernel layer includes at least call driver, display driver, camera driver, Wi-Fi driver and sensor driver.
[0118] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.
[0119] Combine the following Figure 3 The hardware structure diagram of the electronic equipment shown and Figure 4 The software structure diagram of the electronic device shown above is Figure 2 The system architecture shown gradually and in detail illustrates the call relay method provided in the embodiment of the present application.
[0120] First of all, it should be noted that the execution subject of the call relay method provided in the embodiment of the present application can be the above-mentioned electronic device, or it can be a functional module and / or functional entity in the electronic device that can implement the call relay method, and the present application scheme can be implemented by hardware and / or software, which can be determined according to actual use requirements and is not limited by the embodiment of the present application. The hardware structure diagram of the electronic device can be as follows: Figure 3 As shown, the software structure diagram of the electronic device can be as follows Figure 4 The following takes an electronic device (referred to as electronic device 1) as an example and describes the call relay method provided in the embodiment of the present application in combination with the accompanying drawings.
[0121] In order to better understand the solution of the present application, the overall system architecture provided by the embodiment of the present application is briefly described below. Figure 5 FIG. 1 is a schematic diagram showing the system architecture used by the call relay method provided in the embodiment of the present application. Figure 5 As shown, the electronic device 1 includes a call relay service module 11, a far-field communication service module 12, a push service module 13 and a call service module 14. The electronic device 3 (relay device) includes a call relay service module 21, a far-field communication service module 22, a push service module 23 and a call service module 24. The network side includes a far-field communication service cloud 31, a communication relay cloud 32 and a push cloud 33. Among them, the push service module 13 and the push service module 23 are both connected to the push cloud 33. The call relay service module 11 and the call relay service module 21 are both connected to the communication relay cloud 32. The far-field communication service module 12 and the far-field communication service module 22 are both connected to the far-field communication service cloud 31.
[0122] It should be noted that the above-mentioned far-field communication service cloud, communication relay cloud, and push cloud can be a cloud server, server cluster, etc., and the embodiments of the present application do not impose any restrictions on this.
[0123] In the embodiment of the present application, a "long connection channel" for call relay can be established between electronic device 1 and electronic device 3. The "long connection channel" is used to transmit SIM card data of electronic device 1 and also to transmit call signaling (such as incoming call signaling or outgoing call signaling). Figure 5 As shown, the long connection channel includes the call relay service module 11 of the electronic device 1, the communication relay cloud 32, and the call relay service module 21 of the electronic device 3.
[0124] In the embodiment of the present application, a "call relay link" can be established between the electronic device 1 and the electronic device 3, and the "call relay link" is used to transmit audio data during the call. Figure 5As shown, the call relay includes the far-field communication service module 12 of the electronic device 1 , the far-field communication service cloud 31 , and the far-field communication service module 22 of the electronic device 3 .
[0125] It should be noted that Figure 5 The system architecture shown in the figure only reflects the functional modules related to the solution of the present application. In actual implementation, the system architecture in the embodiment of the present application may include more or fewer components than those shown in the figure.
[0126] For example, in the system architecture provided in the present application, on the electronic device 1 side, the call relay service module 11 and the far-field communication service module 12 are also connected to the wireless local area network device (such as Wi-Fi device 1), respectively, the call relay service module 11 is connected to the communication relay cloud 32 through the Wi-Fi device 1, and the far-field communication service module 12 is connected to the far-field communication service cloud 31 through the Wi-Fi device 1. Similarly, on the electronic device 3 side, the call relay service module 21 and the far-field communication service module 22 are also connected to the wireless local area network device (such as Wi-Fi device 2), respectively, the call relay service module 21 is connected to the communication relay cloud 32 through the Wi-Fi device 1, and the far-field communication service module 22 is connected to the far-field communication service cloud 31 through the Wi-Fi device 2.
[0127] Exemplarily, the long connection channel includes electronic device 1-Wi-Fi device 1-communication relay cloud 32-Wi-Fi device 2-electronic device 3. The call relay link includes electronic device 1-Wi-Fi device 1-far field communication service cloud 31-Wi-Fi device 2-electronic device 3.
[0128] Optionally, the wireless LAN device can also be connected to the far-field communication service cloud through the core network device. Figure 5 Wireless LAN equipment and core network equipment are not shown.
[0129] Through the application solution, it is possible to complete the establishment of long connection channels and call relay links under the Wi-Fi network, achieving more refined resource allocation.
[0130] Figure 6 A schematic diagram is shown of the electronic device 1 applying for a communication identifier, applying for a push identifier, and reporting relevant information to the relay cloud.
[0131] The communication ID refers to the identification (ID) of the terminal device for communication. The device communication ID is uniformly allocated by the far-field communication service cloud, and the communication ID of each terminal device is unique. The format of the communication ID can be, for example, an 8-byte long integer.
[0132] PushToken is also called push token, which is used as the identifier of device application message push. It should be noted that the push identifier of each application on each terminal device is unique. The push identifier can be in the form of a string, for example, a 16-byte or 32-byte string. It should be noted that the push identifier applied by the application has a certain life cycle. The push identifier is valid within the life cycle and becomes invalid after the expiration.
[0133] The push service module (Push service) can be used to manage the push identifiers of various applications in the terminal device and push messages to the application according to the push identifier. The push service module can push messages to the application according to the assigned push identifier.
[0134] The Push Cloud can forward application push messages between different terminal devices based on the push identifier.
[0135] It should be noted that the push ID is generated by the push cloud, and the push cloud side stores the push ID of each device. The terminal device side applies for the push ID from the push cloud side through the push service module. After obtaining the push ID assigned by the push cloud, the push service module directly returns the push ID to the call assistance module, which stores the push ID.
[0136] Step 1-1 and step 1-2: After the electronic device 1 is powered on for the first time, when the call relay service module 11 detects that the Wi-Fi connection or cellular network registration is successful, the call relay service module 11 applies to the far-field communication service module 12 for the communication ID of the electronic device 1. The far-field communication service module 12 applies to the far-field communication service cloud 31 for the communication ID, and then returns the communication ID obtained to the call relay service module 11. In some embodiments, when the far-field communication service module 12 has pre-allocated and stored the communication ID, there is no need to apply to the far-field communication service cloud 31 for the communication ID.
[0137] Step 2-1 and step 2-2: the call relay service module 11 applies for a push identifier from the push service module 13, and the push service module 13 accordingly applies for a push identifier from the push cloud. The push cloud generates a push identifier and sends it to the push service module 13, which is then returned to the call relay service module 11 by the push service module 13.
[0138] Step 3: The call relay service module 11 binds the account, device information, communication ID and push identifier of the electronic device 1 together, and uploads the binding information to the communication relay cloud 32.
[0139] When the call relay service module detects that the SIM card is in place and the IMS service registration is successful (completed by the call service module), the call relay service module establishes an associated binding relationship between the registered account of the electronic device 1 and the communication ID and push identifier obtained in the application, and uploads the binding information to the communication relay cloud 32, which is stored by the communication relay cloud 32.
[0140] It is understood that the process of applying for a communication ID, applying for a push ID, and reporting relevant information to the relay cloud on the electronic device 3 side is similar to the process on the electronic device 1 side, and will not be repeated here. It is understood that on the electronic device 3 side, the call relay service module 21 binds the account, device information, communication ID, and push ID of the electronic device 3 together, and uploads the binding information to the communication relay cloud 32.
[0141] Figure 7 The following is a schematic flow chart of a call relay method provided in an embodiment of the present application. Figure 7 As shown, the call relay method includes the following S101-S130. For ease of understanding, the user device carried by the user is referred to as electronic device 1, and the relay device not carried by the user is referred to as electronic device 3. Electronic device 1 includes a call setting module, a call relay service module and a notification module, and electronic device 3 includes a call setting module, a call relay service module and a call service module.
[0142] On the electronic device 1 (user device) side, the following S101 to S105 are executed.
[0143] S101, the call setting module instructs the call relay service module to start the signal relay function.
[0144] Optionally, in response to the user's operation on the signal relay function switch, the call setting module may instruct the call relay service module to turn on the signal relay function. Alternatively, when the electronic device 1 is turned on, the call setting module is automatically triggered to instruct the call relay service module to turn on the signal relay function.
[0145] For example, Figure 8 FIG. 1 is a schematic diagram showing a signal relay setting interface when the signal is good provided in an embodiment of the present application. Figure 8 As shown, the signal relay setting interface (also called the function menu) displays a signal relay icon and function description, and is provided with a signal relay function switch. In response to the user turning on the signal relay function switch, the electronic device 1 can turn on the signal relay function. The function description of the signal relay is: in the case of no cellular network signal, such as in the basement, the cellular network of other idle devices is used to make calls and send and receive text messages. Figure 8As shown, the signal relay setting interface also displays the prompt information "The current signal of this machine is normal, no need to use signal relay", and "You can keep the switch on, and when there is no signal on this machine, it will automatically recommend your available idle devices to relay the signal for you."
[0146] S102, the call relay service module queries the push cloud for a push identifier.
[0147] S103, the push cloud returns the push identification of the electronic device 1 to the call relay service module.
[0148] After the electronic device 1 turns on the signal relay function switch, the call relay service module of the electronic device 1 obtains the push identification of the electronic device 1 from the push cloud side.
[0149] S104, the call relay service module establishes a connection with the communication relay cloud.
[0150] Among them, the communication relay cloud is also called a call relay cloud. The communication relay cloud can be a cloud server, a server cluster, etc., which is not limited in the embodiments of the present application.
[0151] S105, the call relay service module reports the account number, device information, communication ID and push identification of the electronic device 1 to the communication relay cloud.
[0152] The account of the electronic device 1 may be information of a user registering and logging into the electronic device 1. The account may be input by the user or automatically assigned by the electronic device system, which is not limited in the present embodiment.
[0153] The device information may include the mobile phone model, serial number, mobile phone number, Bluetooth address and / or wireless address, etc.
[0154] Therefore, the communication relay cloud receives the following information reported by the electronic device 1: the account, device information, communication ID and push identification of the electronic device 1, and generates a device account data table on the communication relay cloud side, which may include the account, device information, communication ID and push identification of the electronic device 1.
[0155] Similarly, on the electronic device 3 side (relay device), the following S106 to S110 are executed.
[0156] S106: The call setting module instructs the call relay service module to start the signal relay function.
[0157] S107, the call relay service module queries the push cloud for a push ID.
[0158] S108, the push cloud returns the push identification of the electronic device 3 to the call relay service module.
[0159] S109, the call relay service module establishes a connection with the communication relay cloud.
[0160] S110, the call relay service module reports the account number, device information, communication ID and push identification of the electronic device 3 to the communication relay cloud.
[0161] For the description of S106-S110, reference can be made to the above description of S101-S105, which will not be repeated here.
[0162] Therefore, the communication relay cloud receives and stores the following information reported by the electronic device 3: the account number, device information, communication ID and push identification of the electronic device 3, collectively referred to as relayable device information.
[0163] If the account of electronic device 1 is the same as the account of electronic device 3, the communication relay cloud side can store the relevant information of electronic device 1 and the relevant information of electronic device 3 in an associated manner.
[0164] It should be noted that the example in which the communication relay cloud receives information reported by two electronic devices is used for illustrative purposes. In actual implementation, the communication relay cloud may also receive information reported by more electronic devices. In this case, if the accounts of multiple electronic devices are the same, the communication relay cloud will store the reported information of the multiple electronic devices in an associated manner.
[0165] In the embodiment of the present application, when the user turns on the signal relay function switch, the electronic device 1 registers the necessary information such as device information and encrypted account information with the cloud server. This information is mainly used to query whether there are devices that meet the conditions under the same account, so that the relayable device information is displayed on the interface of the electronic device 1 for the user to select. Among them, the process of querying the device and the process of the user selecting the device will be described below.
[0166] It should be noted that the embodiment of the present application does not limit the execution order of S106-S110 and S101-S105. S101-S105 may be executed first, and then S106-S110; S106-S110 may be executed first, and then S101-S105; or S101-S105 and S106-S110 may be executed simultaneously. For example, Figure 7 The following is an example of executing S101 to S105 first and then executing S106 to S110.
[0167] The following describes the process in which electronic device 1 selects electronic device 3 as a relay device.
[0168] S111, the call relay service module determines whether the electronic device 1 meets the relay condition, for example, the relay condition includes that the electronic device 1 is connected to the Wi-Fi network and the cellular signal strength of the electronic device 1 is lower than or equal to a preset strength value.
[0169] Among them, the signal strength of the Wi-Fi network also needs to meet certain requirements. The signal strength of the Wi-Fi network can be characterized by the received signal strength indicator (RSSI) range. Table 1 exemplarily shows the RSSI range of the 2.4G Wi-Fi network and the RSSI range of the 5G Wi-Fi network. Among them, the signal strength of the Wi-Fi network is expressed in decibel relative to one milliwatt (dBm), and dBm refers to the absolute value of the power.
[0170] Table 1
[0171] Number of Wi-Fi signals RSSI range of 2.4G Wi-Fi network RSSI range for 5G Wi-Fi networks 4 (full signal, best quality) [-65dBm, ~] [-65dBm, ~] 3(better signal quality) [-75dBm, -66dBm] [-72dBm, -66dBm] 2(Average signal quality) [-82dBm, -76dBm] [-79dBm, -73dBm]
[0172] For example, assuming that the signal strength of the Wi-Fi network is measured by the number of Wi-Fi signals displayed in the status bar at the top of the mobile phone screen, the signal strength of the Wi-Fi network in the present application solution needs to meet the following requirements: the number of Wi-Fi signals is greater than or equal to 2 bars of signal.
[0173] Exemplarily, assuming that the signal strength of the Wi-Fi network is measured by the RSSI range of the Wi-Fi network, the signal strength of the Wi-Fi network in the present application solution needs to meet the following requirements: for a 2.4G Wi-Fi network, the signal strength of the Wi-Fi network is greater than or equal to -82dBm; for a 5G Wi-Fi network, the signal strength of the Wi-Fi network is greater than or equal to -79dBm.
[0174] Specifically, the call relay service module on the electronic device 1 side may detect the cellular signal quality of the electronic device 1 .
[0175] Optionally, the cellular signal quality may be a cellular signal quality parameter such as reference signal receiving power (RSRP), reference signal receiving quality (RSRQ), or a parameter such as packet loss rate, delay, and jitter. For example, the larger the RSRP or RSRQ, the better the call quality. For example, the larger the call data packet loss rate, the worse the call quality. For example, the larger the call data packet delay, the worse the call quality.
[0176] In the embodiment of the present application, the cellular signal strength can be used to measure whether the cellular signal quality is good or bad. For example, the signal strength can be represented by the number of signal grids or bars. The more signal grids there are, the better the call quality is; the fewer signal grids there are, the worse the call quality is. For example, 5 grids of signal indicate the best call quality, and 0 grids of signal indicate the worst call quality. Since the cellular signal is unstable, the number of signal grids will vary between 0 and 5 grids.
[0177] The preset strength value can be set according to actual use requirements, and the present application embodiment does not limit it. Exemplarily, the preset strength value can be measured by 4 grids of signal strength.
[0178] Exemplarily, the electronic device 1 monitors whether the cellular signal strength is lower than a preset value (for example, 5-grid signal strength). Exemplarily, when the electronic device 1 detects that the current cellular signal strength drops to 3-grid signal strength, it indicates that the signal quality is unstable, and it can be considered that the electronic device 1 is currently in a scenario where a relay device may be needed for signal relay. The process of establishing a call relay link between the specific electronic device 1 and the relay device and using the relay device for signal relay will be described in detail below.
[0179] S112, when the electronic device 1 meets the relay condition, the call relay service module records the current signal state of the electronic device 1 (ie, the cellular signal strength value).
[0180] S113, the call relay service module queries the communication relay cloud for information on relayable devices.
[0181] Among them, the call relay service module sends the information of the electronic device 1 to the communication relay cloud, and the communication relay cloud queries the relayable device information based on the information of the electronic device 1.
[0182] S114, the communication relay cloud returns the relayable device information to the call relay service module.
[0183] It should be noted that the communication relay cloud returning one relayable device information is used as an example for illustrative explanation here. In actual implementation, multiple relayable device information may also be returned to the call relay service module.
[0184] S115, the call relay service module sends one or more relayable device information to the call setting module.
[0185] In some embodiments, the call setting module can sort one or more relayable devices according to their signal strengths, and set the relayable device with the highest signal strength as the preferred relay device. In another embodiment, in response to the user's selection operation on the call setting module, the device selected by the user is determined as the preferred relay device. For details of this embodiment, please refer to S116 and S117 below. The preferred relay device refers to the device that will be first selected for signal relay during a call. It should be noted that the strategy for determining the preferred relay device can be determined based on actual usage requirements, and the embodiments of the present application are not limited thereto.
[0186] When electronic device 1 enters an area without cellular network or with weak cellular network and meets the relay condition, electronic device 1 queries the communication relay cloud for device information with the same account as electronic device 1 and notifies the call setting module to pop up a prompt.
[0187] S116, the call setting module pops up a window to prompt that there are currently one or more devices that can take over.
[0188] The relayable device information may specifically be the device name of the relayable device. Fig. 9 FIG. 1 is a schematic diagram showing a signal relay setting interface when the signal is poor provided in an embodiment of the present application. Fig. 9 As shown, the relayable devices displayed in the relayable device column include electronic device 3 and electronic device 4. Optionally, the user can select electronic device 3 or electronic device 4 in the relayable device column according to actual use needs. For example, the user selecting electronic device 3 is used as an example for exemplary description.
[0189] S117, in response to the user operation, determining the device selected by the user as the preferred relay device.
[0190] For example, the information of the preferred relay device includes the account number, device information, communication ID and push identification of the electronic device 3 .
[0191] When the cellular signal strength of electronic device 1 is lower than or equal to the preset strength value, the user can view the relay devices (specifically the device names) that meet the conditions in the function menu, and the user can select the corresponding device as the preferred relay device in this function menu. The information of the preferred relay device will be recorded in the database, and when electronic device 1 and electronic device 2 establish a call later, the preferred relay device will be connected to electronic device 1.
[0192] S118, the call setting module sends the information of the preferred relay device to the call relay service module.
[0193] S119, the call relay service module of the electronic device 1 sends a message to the push cloud to notify the electronic device 3 to establish a long connection with the electronic device 1. The message may include the push identifier of the electronic device 3.
[0194] S120, the push cloud sends a message to the call relay service module of electronic device 3 according to the push identifier of electronic device 3, so as to notify electronic device 3 to establish a long connection with electronic device 1.
[0195] S121, the call relay service module of the electronic device 1 establishes a long connection with the communication relay cloud.
[0196] S122, the call relay service module of the electronic device 3 establishes a long connection with the communication relay cloud.
[0197] As a result, electronic device 1 establishes a long connection channel with electronic device 3 through the communication relay cloud.
[0198] After completing the above preparations, the electronic device 1 automatically virtualizes the SIM card of the electronic device 1 to the relay device. At this time, a specific relay icon will be displayed in the status bar of the electronic device 1, and there will also be a corresponding notification card prompt in the drop-down menu. Fig.10 As shown in (a), a signal relay card is displayed in the drop-down menu of electronic device 1, and the signal relay card prompts "electronic device 3 is being used for signal relay", and the signal relay card also displays quick operation controls such as "stop relay", "switch relay device", and "switch relay card". Fig.10 As shown in (b), a cellular signal icon, a Wi-Fi signal icon, and a signal relay icon are displayed in the status bar of the electronic device 1.
[0199] Fig.10 (b) shows two cellular signal icons, one for SIM card 1 and the other for SIM card 2. SIM card 1 is the default card for the signal interface. The cellular signal icon of SIM card 1 shows that the cellular signal quality of SIM card 1 is poor. In addition, the Wi-Fi signal icon indicates that the Wi-Fi signal quality is good. It should be noted that Fig.10 The illustration is for illustrative purposes only, and the present application does not limit the display size, display style, display color, display position, and display effect of the signal relay icon.
[0200] S123, the call relay service module of electronic device 1 transmits the SIM card data of electronic device 1 to the call relay service module of electronic device 3 through the long connection channel.
[0201] S124, the call relay service module of the electronic device 3 instructs the call service module to stay on the network.
[0202] S125 , the call service module of the electronic device 3 is stationed on the network according to the SIM card data of the electronic device 1 .
[0203] S126, the call service module of the electronic device 3 returns the network information to the call relay service module.
[0204] S127 , the call relay service module of electronic device 3 forwards the network access information to the call relay service module of electronic device 1 .
[0205] The network information includes signal quality parameters of the cellular network where the SIM card data resides.
[0206] When the user selects the relay device on the electronic device 1, an encrypted channel will be established between the electronic device 1 and the relay device, and the channel can be used to transmit SIM card information, so that the SIM card on the electronic device 1 can be registered on the relay device.
[0207] S128 , the call relay service module of electronic device 1 obtains the signal quality parameter of electronic device 3 according to the network information, and determines whether the signal quality of electronic device 3 is better than the signal quality of electronic device 1 .
[0208] S129, when it is determined that the signal quality of electronic device 3 is better than the signal quality of electronic device 1, the call relay service module of electronic device 1 sends a message to the notification module to notify electronic device 1 to enter the signal relay state.
[0209] S130, the notification module of electronic device 1 updates the user interface, for example, prompting that electronic device 3 is being used to relay signals for electronic device 1.
[0210] In the above embodiment of the present application, a long connection channel is established between the electronic device 1 and the electronic device 3 and the electronic device 1 enters the call relay state, and the signal relay can be performed through the electronic device 3 when a call is incoming or outgoing. The following is a possible implementation of how the electronic device performs signal relay through the electronic device 3 in the incoming call scenario and the outgoing call scenario in conjunction with the accompanying drawings.
[0211] First embodiment: incoming call scenario
[0212] Fig.11 The following is a schematic flow chart of a call relay method provided in an embodiment of the present application. Fig.11 As shown, the call relay method includes the following S201-S213. The application scenario is an incoming call scenario of electronic device 1. First of all, it should be noted that a long connection channel for signal relay has been successfully established between electronic device 1 and electronic device 3.
[0213] S201, when electronic device 2 places a call to electronic device 1, electronic device 3 first receives the incoming call signal.
[0214] The incoming call signal is sent from the electronic device 2, and after being transmitted through the cellular network and the core network (not shown), it reaches the call service module of the electronic device 3 (specifically, it realizes the call function in combination with the communication chip modem).
[0215] S202, after receiving the incoming call signal, the call service module of the electronic device 3 sends the incoming call signal to the call relay service module, and then the call relay service module sends the incoming call signal to the communication relay cloud.
[0216] S203, the communication relay cloud forwards the incoming call signal to the call relay service module of the electronic device 1.
[0217] The communication relay cloud is also called a call relay cloud or an auxiliary call service cloud, which can be a cloud server or a server cluster. The communication relay cloud is used to transmit or forward communication-related signaling between electronic devices.
[0218] S204, the call relay service module of the electronic device 1 reports the incoming call signaling to the communication framework.
[0219] S205, the call relay service module of the electronic device 1 instructs the far field communication service module to establish a call relay link.
[0220] In this case, the electronic device 1 and the electronic device 3 can transmit the call data packet (audio data) through the call relay link. In the call relay link, the audio interface of the virtual audio processing module can be called to transfer the audio data.
[0221] S206, the far field communication service module of electronic device 1 establishes a call relay link with the far field communication service module of electronic device 3 through the far field communication service cloud.
[0222] S207, the communication framework of the electronic device 1 reports the incoming call signal to the call APP.
[0223] S208, the call APP of the electronic device 1 displays an incoming call interface.
[0224] In the embodiment of the present application, after the call service module of the relay device receives an incoming call, it forwards the message to the call relay service module of the electronic device 1 through the communication relay cloud. The call relay service module reports the incoming call signal to the application side and displays the incoming call interface on the desktop. At the same time, the call relay service module notifies the far-field communication service module to establish a call relay link.
[0225] S209, the call APP of the electronic device 1 receives the user's answering operation. In response to the answering operation, the call APP generates an answering signaling.
[0226] S210, the call APP of the electronic device 1 sends the answering signaling to the call relay service module, and then the call relay service module sends the answering signaling to the communication relay cloud.
[0227] S211, the communication relay cloud forwards the answering signaling to the call relay service module of the electronic device 3, and the call relay service module forwards the answering signaling to the call service module.
[0228] S212, the call service module of the electronic device 3 responds to the answer signaling and connects the call.
[0229] S213, electronic device 3 establishes a call link with electronic device 2 via a cellular network or the like.
[0230] In this case, electronic device 3 and electronic device 2 can transmit call data packets through the call link.
[0231] As described above, in the incoming call scenario, electronic device 3 will first receive the incoming call signal, and pass the incoming call signal to electronic device 1 through the communication relay cloud. A call relay link (call data packets can be transmitted) is established between electronic device 1 and electronic device 3 through the far-field communication service cloud, and the incoming call interface is displayed on the electronic device 1 side. When the user triggers the answer, electronic device 1 sends an answer signal to electronic device 3 through the communication relay cloud, and then a call link (call data packets can be transmitted) is established between electronic device 3 and electronic device 1 through a cellular network, etc.
[0232] For example, in combination Fig.11 ,like Fig.12 As shown, after S213, the call relay method may further include the following steps.
[0233] S214, electronic device 2 transmits the call data packet to electronic device 3 via a cellular network or the like.
[0234] S215 , after receiving the call data packet, the call service module of the electronic device 3 sends the call data packet to the far field communication service module of the electronic device 3 .
[0235] In some embodiments, the call service module first sends the call data packet to the call relay service module, and then the call relay service module transfers the call data packet to the far field communication service module.
[0236] S216, the far field communication service module of electronic device 3 transmits the call data packet to the far field communication service module of electronic device 1 through the call relay link.
[0237] The call data packet first passes through the far-field communication service cloud and then reaches the far-field communication service module of the electronic device 1 .
[0238] In some embodiments, the far field communication service cloud first sends the call data packet to the far field communication service module, and then the far field communication service module sends the call data packet to the call relay service module, and then the call relay service module sends the call data packet to the call service module.
[0239] S217, the far-field communication service module of the electronic device 1 sends the call data packet to the virtual audio processing module.
[0240] S218, the virtual audio processing module of the electronic device 1 plays the voice according to the call data packet.
[0241] The above steps describe the process in which the call data packet from the electronic device 2 first passes through the electronic device 3 and then reaches the electronic device 1.
[0242] S219, the virtual audio processing module of the electronic device 1 collects voice and obtains a call data packet.
[0243] S220: The virtual audio processing module sends the call data packet to the far field communication service module.
[0244] S221, the far field communication service module of electronic device 1 sends a call data packet to the far field communication service module of electronic device 3 through the call relay link.
[0245] The call data packet first passes through the far-field communication service and then reaches the far-field communication service module of the electronic device 3 .
[0246] S222, the far field communication service module of the electronic device 3 sends the call data packet to the call service module.
[0247] S223, the call service module of the electronic device 3 transmits the call data packet to the electronic device 2 via the cellular network or the like.
[0248] The above steps describe the process in which the call data packet from electronic device 1 first passes through electronic device 3 and then reaches electronic device 2.
[0249] It should be noted that compared with Android native calls, in the embodiment of the present application, after the electronic device 1 and the relay device establish a connection, the transmission of call signaling (such as incoming call signaling) has changed: the present application scheme introduces a call relay service, and call signaling can be transmitted between the electronic device 1 and the electronic device 2 through the call relay service, and call signaling can be transmitted to the Android call framework and application within the electronic device through the call relay service.
[0250] In the embodiments of the present application, illustratively, Fig.13 FIG. 1 shows a schematic diagram of transmitting a call voice between an electronic device 1 and a relay device in an incoming call scenario. Fig.13 As shown, for the call voice (i.e., audio data) generated by electronic device 2 during the call, the communication chip of electronic device 3 (relay device side) first receives the audio data, and then passes the audio data to the far-field communication service cloud through the virtual audio processing module, the far-field communication service module, and the transmission control protocol (TCP) / internet protocol (IP) module, and then passes it to electronic device 1 through the far-field communication service cloud. After passing through the TCP / IP module and the far-field communication service module on electronic device 1, it reaches the virtual audio processing module. After the virtual audio processing module processes the audio data, it calls the audio interface to pass the processed audio data to the speaker, and the speaker plays the audio data. Thus, through the relay of electronic device 3, electronic device 1 can receive the call voice from electronic device 2.
[0251] Second embodiment: Outgoing call scenario
[0252] The above embodiments illustrate the link establishment process and call data packet transmission process in the incoming call scenario of the electronic device 1. The link establishment process and call data packet transmission process in the outgoing call scenario of the electronic device 1 are described below with reference to the accompanying drawings.
[0253] It should be noted that the implementation process of the outgoing call scenario is basically similar to that of the incoming call scenario. The following only focuses on the differences and similar parts will not be repeated.
[0254] Fig.14 The following is a schematic flow chart of a call relay method provided in an embodiment of the present application. Fig.14 As shown, the call relay method includes the following S301-S317. The application scenario is an outgoing call scenario in which electronic device 1 makes a call to electronic device 1. Among them, a long connection channel for signal relay has been successfully established between electronic device 1 and electronic device 3.
[0255] S301, in response to a user operation, the call APP of the electronic device 1 displays a dialing interface.
[0256] S302, the call APP of electronic device 1 receives the user's call making operation.
[0257] S303, the call APP of electronic device 1 sends an outgoing call signal, which passes through the call relay service module of electronic device 1, the communication relay cloud, the call relay service module and the call service module of electronic device 3 in sequence, and then reaches electronic device 2 through the cellular network.
[0258] S304, electronic device 2 answers the call in response to receiving the user's answering operation.
[0259] S305, electronic device 2 and electronic device 3 establish a call link via a cellular network or the like.
[0260] In this case, electronic device 2 and electronic device 3 can transmit call data packets through the call link.
[0261] S306-S307, the call relay service module of electronic device 1 instructs the far field communication service module to establish a call relay link. The far field communication service module of electronic device 1 establishes a call relay link with the far field communication service module of electronic device 3 through the far field communication service cloud.
[0262] In this case, electronic device 1 and electronic device 3 can transmit call data packets (audio data) via the call relay link.
[0263] S308-S312 describe the process that the call data packet from electronic device 2 first passes through electronic device 3 and then reaches electronic device 1. For the specific process, please refer to the detailed description of S214-S218 in the first embodiment above.
[0264] S313-S317 describe the process that the call data packet from electronic device 1 first passes through electronic device 3 and then reaches electronic device 2. For the specific process, please refer to the detailed description of S219-S223 in the first embodiment above.
[0265] It should be noted that compared with Android native calls, in the embodiment of the present application, after the electronic device 1 and the relay device establish a connection, the transmission of call signaling (such as outgoing call signaling) changes: the present application scheme introduces a call relay service, and call signaling can be transmitted between electronic devices through the call relay service.
[0266] In the embodiments of the present application, illustratively, Fig.15 FIG. 1 shows a schematic diagram of transmitting a call voice between an electronic device 1 and a relay device in an outgoing call scenario. Fig.15 As shown, when the microphone of electronic device 1 collects voice (i.e., audio data) during a call, the audio interface is called to pass the audio data to the virtual audio processing module. After the virtual audio processing module processes the audio data, the processed audio data is passed to the far-field communication service cloud through the far-field communication service module and the TCP / IP module, and then passed to electronic device 3 through the far-field communication service cloud. On electronic device 3, the audio data reaches the virtual audio processing module after passing through the TCP / IP module and the far-field communication service module, and then the audio data is passed to the communication chip, and finally transmitted to electronic device 2 by the communication chip. Thus, electronic device 1 can send the voice collected by the local end to electronic device 2 through the relay of electronic device 3.
[0267] In the above embodiment, Fig.11 and Fig.12 Step S206 in Fig.14 Step S307 in the figure briefly illustrates the process of establishing a call relay link between the electronic device 1 and the electronic device 3 through the far field communication service cloud. The process of establishing a call relay link between the electronic device 1 and the electronic device 3 is described in detail below with reference to the accompanying drawings.
[0268] For example, Fig.16 A schematic block diagram showing the establishment of a call relay link between two parties triggered by push mode is shown. Fig.17 FIG. 1 shows a flow chart of triggering the establishment of a call relay link between two parties through a push method. Fig.16 As shown, the schematic block diagram includes steps B1 to B12. Fig. 9 As shown, the flowchart includes steps S201 to B212. Fig.16 and Fig.17 To comprehensively understand the process of establishing a call relay link between electronic device 1 and electronic device 3. Fig.17 The flowchart shown is mainly used for explanation. Fig.16 The schematic diagram of each step can be found in Fig.17 The relevant description of each step in the above is not repeated here. Among them, electronic device 1 is connected to the far field communication service cloud through Wi-Fi device 1, and electronic device 3 is connected to the far field communication service cloud through Wi-Fi device 2. Fig.16 and Fig.17 Wi-Fi device 1 and Wi-Fi device 2 are not shown.
[0269] S401, the communication relay cloud stores a device account data table uploaded by electronic devices, which includes the account, device information, communication ID and push identification of electronic device 1, and the account, device information, communication ID and push identification of electronic device 3.
[0270] S402, electronic device 1 and electronic device 3 obtain device information of the other end through the long connection channel.
[0271] When the call is connected, the two electronic devices exchange their respective device information through their respective call service modules. Electronic device 1 obtains the device information of electronic device 3, and electronic device 3 obtains the device information of electronic device 1. The device information may be information used to uniquely identify a device.
[0272] The following S403 - S405 are the processing flow on the electronic device 1 side.
[0273] S403, the call relay service module of electronic device 1 sends a request to the communication relay cloud: according to the device information of electronic device 3, query the communication ID and push identification of electronic device 3.
[0274] S404, the communication relay cloud returns to the call relay service module of electronic device 1: the communication ID and push identifier of electronic device 3.
[0275] S405 , the call relay service module of electronic device 1 caches the communication ID and push identifier of electronic device 3 .
[0276] Similarly, the call relay service module of electronic device 3 also sends a request to the communication relay cloud to query the communication ID and push identification of electronic device 1. S406-S408 is the processing flow of electronic device 3. For detailed description, please refer to the description of S403-S405 above, which will not be repeated here.
[0277] The following is an exemplary description using the example of electronic device 1 initiating establishment of a call relay link.
[0278] S409, the call relay service module of electronic device 1 sends the push identification of electronic device 3 to the push service module.
[0279] S410, the push service module of electronic device 1 sends the push identification of electronic device 3 to the push cloud and requests a push message, where the message is used to request to establish a call relay link between electronic device 1 and electronic device 3.
[0280] S411, the push cloud pushes a message of establishing the call relay link to the electronic device 3 according to the push identifier of the electronic device 3.
[0281] The push service module of the electronic device 3 first receives the message, and then forwards the message to the call relay service module. Accordingly, the electronic device 3 can interact with the far-field communication service cloud according to the message of establishing the call relay link, and request to establish the call relay link, as shown in S412 and S413 below.
[0282] S412, the call relay service module of electronic device 3 responds to the call relay link establishment message, calls the cached communication ID of electronic device 1, and sends the communication ID of electronic device 1 to the far-field communication service module to apply for establishing a call relay link.
[0283] S413, the far field communication service module of electronic device 3 sends a message to the far field communication service cloud: according to the communication ID of electronic device 1 and the communication ID of electronic device 3, apply to establish a call relay link between electronic device 1 and electronic device 3.
[0284] The above S413 is a step in which the electronic device 3 applies to the far field communication service for establishing a call relay link in response to the request for establishing a call relay link initiated by the electronic device 1. Similarly, when the electronic device 1 initiates a request for establishing a call relay link, it will apply to the far field communication service for establishing a call relay link. For specific steps, see the following S414.
[0285] S414, the call relay service module of electronic device 1 calls the cached communication ID of electronic device 3, and sends the communication ID of electronic device 3 to the far-field communication service module to apply for establishing a call relay link. Then, the far-field communication service module of electronic device 3 sends a message to the far-field communication service cloud: according to the communication ID of electronic device 3 and the communication ID of electronic device 1, apply to establish a call relay link between electronic device 1 and electronic device 3.
[0286] S415, the far field communication service cloud establishes a far field communication call relay link between electronic device 1 and electronic device 3 based on the communication ID of electronic device 1 and the communication ID of electronic device 3.
[0287] The present application solution can directly use the cached device's communication ID and push identifier to establish a call relay link when necessary. Since the network interaction process is reduced at this time, the speed of establishing the call relay link can be accelerated.
[0288] As described above, after a far-field communication call relay link is established between electronic device 1 and electronic device 3, a signal relay card can be displayed in the drop-down notification bar of electronic device 1. The signal relay card contains a prompt message "Signal relay is being performed using electronic device 3", and also displays a "Stop relay" control, a "Switch relay device" control, and a "Switch relay card" control.
[0289] In some embodiments, Fig.18 (a) and Fig.18 As shown in (b), electronic device 1 displays a signal relay card. In response to the user's operation on the "switch relay device" control, the display interface of electronic device 1 jumps to the signal relay setting interface. The name of the current relayable device is displayed in the signal relay setting interface: electronic device 3 (preferred relay device), electronic device 4. When the user clicks on electronic device 4, Fig.18 As shown in (c), electronic device 1 pops up a prompt message "Switch to electronic device 4 to relay your signal. After switching, you can use the idle cellular signal of electronic device 4 to communicate and send text messages. Cancel or confirm the switch." If the user clicks "Confirm Switch", Fig.18As shown in (d), electronic device 1 hides the prompt information and updates the names of the current relayable devices in the signal relay setting interface: electronic device 4 (preferred relay device) and electronic device 3. In addition, electronic device 1 also updates the signal relay card displayed in the drop-down notification bar, and the updated signal relay card displays the prompt information "Signal relay is being performed using electronic device 4". In this case, the relay device has been successfully switched.
[0290] In some embodiments, Fig.19 (a) and Fig.19 As shown in (b), the electronic device 1 displays a signal relay card. In response to the user's operation on the "switch relay card" control, the display interface of the electronic device 1 jumps to the signal relay setting interface. The default relay card: card 1 is displayed in the signal relay setting interface. When the user slides on the default relay card button to card 2, as shown in FIG. Fig.19 As shown in (c), the electronic device 1 pops up a prompt message "Switch card 2 to the default relay card. After the switch, the signal relay will be performed for card 2. Cancel or confirm the switch." When the user clicks "Confirm Switch", as shown in Fig.19 As shown in (d), the electronic device 1 hides the prompt information and updates the default relay card in the display signal relay setting interface: card 2. In this case, the relay card has been successfully switched.
[0291] In some embodiments, Fig. 20 (a) and Fig. 20 As shown in (b), the electronic device 1 displays a signal relay card, and a relay icon is displayed in the status bar. In response to the user's operation of the "stop relay" control, the display interface of the electronic device 1 jumps to the desktop, and a prompt message "Signal relay interrupted, local signal has been restored" pops up on the desktop, and the relay icon is hidden in the status bar. In this case, the relay stop has been successfully triggered.
[0292] The above exemplary method is to trigger the stopping of signal relay by a user manually operating on the electronic device 1. In addition, there are other possible signal relay termination methods. For example, the signal relay service will be automatically disconnected when the following situations occur:
[0293] (1) The Wi-Fi signal quality deteriorates (e.g., falls below the preset signal quality);
[0294] (2) The relay device or the electronic device 1 has a card insertion or removal action;
[0295] (3) The relay device or electronic device 1 is restarted or the flight mode is turned on.
[0296] In this case, electronic device 1 will notify the relay device to turn off the signal relay function switch, and then electronic device 1 will disconnect from the far-field communication service cloud and the communication relay cloud, and restore the modem of electronic device 1 to its original state.
[0297] Accordingly, when the relay device receives the notification of closing the signal relay, it disconnects from the far-field communication service cloud and the communication relay cloud, and restores the modem of the relay device to its original state.
[0298] It should be noted that in the embodiment of the present application, the main function of the call relay service is to realize the distributed sharing of SIM card capabilities across terminals. Devices with modem capabilities can access the SIM cards of other devices through non-cellular communication means (including near field / far field), just like using local SIM cards.
[0299] In the embodiment of the present application, the modem supports a virtual SIM card access mode, that is, when the local modem needs to access the SIM card during the process of registering the network, it does not access the local physical card slot, but accesses the virtual SIM card. The virtual SIM card follows the same interface specification as the physical SIM card.
[0300] The present application solution supports remote access to SIM cards, that is, the modem provides the ability for remote devices to access SIM cards.
[0301] The present application scheme supports data exchange of SIM cards, mainly including reset response (answer to reset, ATR), application protocol data unit (application protocol data unit, APDU) response, as well as messages such as card insertion and removal, and virtual card activation.
[0302] In the embodiment of the present application, in an environment without network or weak network, if the electronic device has Wi-Fi signal, the electronic device can transmit SIM card information to the relay device through the Wi-Fi signal, complete the action of applying for registration with the network and accessing the operator network on the relay device, and transmit voice data or send and receive text messages with the help of the relay device in the incoming or outgoing call scenario. Through the present application solution, the call quality can be improved, and the user experience is similar to the local experience.
[0303] In the embodiment of the present application, the electronic device 1 can be connected to multiple relay devices, and according to the communication quality of the relay devices or the user's choice, one of the relay devices is determined to relay the signal for the electronic device 1. In some embodiments, a relay device can also be connected to multiple electronic devices at the same time. When the relay device supports the SIM card function and has an idle modem, it can relay the signal for one electronic device; when the relay device supports the SIM card function and has two idle modems, it can relay the signal for two electronic devices respectively.
[0304] It should also be noted that, in the embodiments of the present application, "greater than" can be replaced by "greater than or equal to", "less than or equal to" can be replaced by "less than", or "greater than or equal to" can be replaced by "greater than", and "less than" can be replaced by "less than or equal to".
[0305] It is understandable that the methods and operations implemented by the electronic device in the above-mentioned various method embodiments may also be implemented by components (such as chips or circuits) that can be used in electronic devices. The various embodiments described herein may be independent solutions or may be combined according to internal logic, and these solutions all fall within the scope of protection of this application.
[0306] The above mainly describes the solution provided by the embodiment of the present application from the perspective of method steps. It is understandable that, in order to achieve the above functions, the electronic device implementing the method includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of protection of the present application.
[0307] The above describes the method embodiment provided by the present application, and the following describes the device embodiment provided by the present application. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the content not described in detail can be referred to the method embodiment above, and for the sake of brevity, it will not be repeated here.
[0308] The present application also provides a chip, which is coupled to a memory and is used to read and execute computer programs or instructions stored in the memory to execute the methods in the above embodiments.
[0309] The present application also provides an electronic device, which includes a chip, and the chip is used to read and execute a computer program or instruction stored in a memory, so that the method in each embodiment is executed.
[0310] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the communication relay method in the above-mentioned embodiment.
[0311] This embodiment also provides a computer program product, wherein the computer-readable storage medium stores program codes. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the communication relay method in the above-mentioned embodiment.
[0312] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the communication relay method in the above-mentioned method embodiments.
[0313] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0314] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A communication relay method, characterized in that: include: The first device sends a push identifier of the second device to the first server to trigger the first server to push a first message to the second device, where the first message is used to instruct the second device to establish a persistent connection channel with the first device; The first device sends a second message to the second server, where the second message is used to request the second server to establish the persistent connection channel between the first device and the second device; The first device establishes the long connection channel with the second device; The first device caches the push identifier and the communication identifier of the second device; The first device sends a push identifier of the second device to the first server to trigger the first server to push a second message to the second device, where the second message is used to instruct the second device to establish a call relay link with the first device; The first device sends the communication identifier of the first device and the communication identifier of the second device to a third server, so as to trigger the third server to establish a call relay link between the first device and the second device according to the communication identifier of the first device and the communication identifier of the second device; The first device establishes the call relay link with the second device; Based on the long connection channel and the call relay link, the first device communicates with the third device with the assistance of the second device; Among them, the first server is a push cloud, the second server is a communication relay cloud, and the third server is a far-field communication service cloud.
2. The method according to claim 1, characterized in that The first device communicating with the third device based on the long connection channel and the call relay link with the assistance of the second device includes: The first device has been connected to a first cellular network, and the signal strength of the first cellular network is a first signal strength; The first device transmits the first user identification SIM card data of the first device to the second device through the long connection channel, and triggers the second device to stay on the network according to the first SIM card data; the second device and the first device have logged in to the same account; The first device receives network station information sent by the second device through the long connection channel, where the network station information includes that the first device has stationed on the second cellular network according to the first SIM card data, and the signal strength of the second cellular network is a second signal strength, and the second signal strength is higher than the first signal strength; The first device receives a first communication instruction sent by the second device through the long connection channel, where the first communication instruction is that the second device receives an incoming call from a third device; In response to the first communication instruction, the first device displays an incoming call interface; In response to the user's answering operation, the first device sends a second communication instruction to the second device through the persistent connection channel, where the second communication instruction is for the first device to confirm that the call from the third device is connected, and triggers the second device to establish a call link with the third device through the cellular network; The first device receives first voice data sent by the second device through the call relay link, where the first voice data is voice data transmitted from the third device to the second device through the call link; The first device sends second voice data to the second device through the call relay link, and the second device transmits the second voice data to the third device.
3. The method according to claim 1, characterized in that The first device includes a push service module, a call relay service module, and a far-field communication service module; Among them, the push service module is connected to the first server, the call relay service module is connected to the second server, and the far-field communication service module is connected to the third server.
4. The method according to claim 2, characterized in that: The first device sends the second voice data to the second device through the call relay link, and the second device transmits the second voice data to the third device, including: The first device collects second voice data and transmits the second voice data to the far-field communication service module through the call relay service module; then uploads the second voice data to the third server through the far-field communication service module, triggers the third server to forward the second voice data to the second device, and then triggers the second device to transmit the second voice data to the third device.
5. The method according to claim 1 or 2, characterized in that: The first device and the second device establish the long connection channel, including: The first device establishes a long connection channel with the second device through a first Wireless Fidelity Wi-Fi network.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: The first device obtains relayable device information from the second server, where the relayable device information includes the names of one or more relayable devices, and the account number of each of the one or more relayable devices is the same as the account number of the first device; The first device displays the names of the one or more relayable devices, where the names of the one or more relayable devices include the name of the second device; In response to a user operation on the name of the second device, the first device determines the second device as a preferred relay device.
7. The method according to claim 6, characterized in that Before the first device obtains the relayable device information from the second server, the method further includes: The first device turns on the signal relay switch; The first device uploads the relay related information of the first device to the second server, where the relay related information includes an account number, device information, a communication identifier, and a push identifier of the first device.
8. The method according to claim 7, characterized in that The first device starts a signal relay switch, including: When the first device is powered on for the first time, the first device automatically turns on the signal relay switch; or, In response to a user's operation on the signal relay switch, the first device turns on the signal relay switch.
9. The method according to claim 2, characterized in that: After the first device receives the network information sent by the second device through the long connection channel, the method further includes: When the second signal strength is higher than the first signal strength, the first device enters a signal relay state; The first device displays first prompt information, where the first prompt information is used to prompt that the first device is using the second device for signal relay.
10. The method according to claim 9, characterized in that The first device displays first prompt information, including: The first device displays the first prompt information in a notification bar, wherein the first prompt information is in the form of a notification card, and the notification card displays a stop relay control, a switch relay device control, and / or a switch relay card control; and / or, The first device displays the first prompt information in a status, and the first prompt information is in a form of a relay icon.
11. The method according to claim 10, characterized in that After the first device displays the first prompt information in a notification bar, the method further includes: In response to the user's operation on the switching relay device control, the display interface of the first device jumps to the signal relay setting interface, and the relayable devices displayed in the signal relay setting interface include the fourth device and the second device; in response to the user's operation on the fourth device, the first device determines the fourth device as the preferred relay device; or, In response to the user's operation on the switching relay card control, the display interface of the first device jumps to the signal relay setting interface, and the default relay card displayed in the signal relay setting interface is the first SIM card; in response to the user's operation on the second SIM card, the first device determines the second SIM card as the default relay card; or, In response to the user's operation on the stop relay control, the first device disconnects the long connection channel between the first device and the second device, and displays a second prompt message, where the second prompt message is used to prompt that the signal relay is interrupted and the local signal has been restored.
12. The method according to claim 1 or 2, characterized in that: After the first device receives the network information sent by the second device through the long connection channel, the method further includes: When the first device is not in a call state, the first device displays an outgoing call interface; In response to a user's call making operation, the first device sends a third communication instruction to the second device, where the third communication instruction is for the first device to make a call to the third device and triggers the second device to establish a call link with the third device through a cellular network; The first device receives first voice data sent by the second device through the call relay link, and the first voice data is voice data sent by the third device to the second device through the call link.
13. The method according to claim 1 or 2, characterized in that: The method further comprises: When the Wi-Fi network of any one of the first device and the second device is disconnected, or the SIM card is removed, or the device is restarted, or the airplane mode is turned on, the first device disconnects the signal relay of the second device.
14. An electronic device, characterized in that: The electronic device comprises a processor coupled to a memory, wherein the processor is configured to execute a computer program or instruction stored in the memory, so that the electronic device implements the method according to any one of claims 1 to 13.
15. A communication system, characterized in that: It includes a relay device and an electronic device as described in claim 14, wherein the electronic device and the relay device have the same login account, and the electronic device establishes a long connection channel and a call relay link with the relay device through a Wi-Fi network, the long connection channel is used to transmit SIM card data and communication instructions of the electronic device, and the call relay link is used to transmit call voice data.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Call method, device and system
CN110138937A
Voice communication method, electronic device, and system
CN111602379A
System and device for assisting link to compensate call, and chip
CN113395785A
Call implementation method and device, electronic equipment and readable storage medium
CN114095616A
Communication system, first electronic equipment and second electronic equipment
CN115150812A
