Communication method, electronic equipment and computer readable storage medium

By switching between cellular networks and Wi-Fi networks, sending copies of call data packets, the call quality problem caused by insufficient signal coverage of cellular networks is solved, ensuring the continuity and quality of calls, and saving resources when the signal is restored to normal .

CN119255278APending Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410161402.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In areas with weak cellular network signal coverage, electronic devices are prone to poor call quality when answering calls, resulting in poor user experience.

Method used

By switching between a cellular network and a Wi-Fi network, using the Wi-Fi network as a supplement to the cellular network, sending copies of call data packets to ensure the integrity and reliability of call data.

Benefits of technology

Even when the signal quality of the cellular network is poor, it can ensure the continuity and quality of the call, improve the user's call experience, and turn off the replenishment package when the signal quality returns to normal to save resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255278A_ABST
    Figure CN119255278A_ABST
Patent Text Reader

Abstract

The invention provides a communication method, electronic equipment and a computer readable storage medium. In the method, when the communication quality of a cellular network is poor, the electronic equipment not only sends a call data packet to opposite-end electronic equipment through the cellular network, but also sends a copy of the call data packet to the opposite-end electronic equipment through a Wi-Fi network. Therefore, even if the call data packet is lost in the cellular network link, the opposite-end electronic equipment can restore the complete call content based on the call data packet obtained from the Wi-Fi network link, and the call experience of a user is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals and communication technologies, and in particular to communication methods, electronic devices and computer-readable storage media. Background Art

[0002] When making or receiving calls, electronic devices usually use a cellular network consisting of base stations and core network devices to transmit call data packets. The call quality is greatly affected by the quality of the cellular network signal. In areas with weak cellular network signal coverage, such as densely populated areas or indoors, poor call quality often occurs. At this time, users may feel that the call is intermittent, affecting their normal call experience. Summary of the invention

[0003] The present application provides a communication method, an electronic device, and a computer-readable storage medium. The method can be applied to two electronic devices making calls via a cellular network. When the call quality of the cellular network is poor, the electronic device can send a copy of the call data packet to the other electronic device via a Wi-Fi network on the basis of sending the call data packet to the other electronic device via the cellular network. The other electronic device can sort the call data packets, remove redundancy, etc. to obtain the complete call content, so that the user can get a better call experience when the call quality of the cellular network is poor.

[0004] In a first aspect, the present application provides a communication method, which is applied to a first electronic device, and the method includes: the first electronic device receives a first operation, the first operation is used to dial a first telephone number of a second electronic device, or the first electronic device receives a first incoming call notification, the first incoming call notification is used to indicate an incoming call to the first telephone number; when the first electronic device and the second electronic device are connected to the call, the first electronic device and the second electronic device establish a first data channel and a second data channel, the first data channel is a data channel based on a cellular network, and the second data channel is a data channel based on wireless fidelity WiFi; the first electronic device sends a first call data packet to the second electronic device through the first data channel; when the call quality when the first electronic device transmits a call data packet to the second electronic device in the first data channel is abnormal, the first electronic device sends a second call data packet to the second electronic device through the first data channel, and sends the second call data packet to the second electronic device through the second data channel.

[0005] The first telephone number may be a telephone number corresponding to a user identification module card in the second electronic device. After the first electronic device dials the first telephone number, the second electronic device may receive a call notification from the first electronic device, and the second electronic device may receive an operation to answer the call notification and connect the call. Alternatively, after the first electronic device receives the first call notification, the first electronic device may receive an incoming call corresponding to the first call notification answered by the user, and connect the call. After the call is connected, the first electronic device and the second electronic device send a call data packet through the first data channel. The first call data packet may include multiple call data packets. Reference Figure 2 In the illustrated embodiment, the first call data packet may be, for example, a call data packet F1, the first electronic device may be an electronic device A1, the second electronic device may be an electronic device A2, the first data channel may be a main link including a base station, and the second data channel may be an auxiliary link including a Wi-Fi device. The first electronic device first sends the first call data packet to the second electronic device through the main link. When the call quality in the first data channel is abnormal, the first electronic device sends the second call data packet through the main link and the auxiliary link. Here, the second call data packet may be, for example, a call data packet F2. Among them, the first electronic device sends a call data packet containing the same call content through the main link and the auxiliary link. In this way, even if the call data packet is lost in the main link, the second electronic device can restore the complete call content based on the call data packet obtained from the auxiliary link to ensure the user's call experience.

[0006] In combination with the first aspect, in some embodiments, the first electronic device sends a second call data packet to the second electronic device through the first data channel, and before sending the second call data packet to the second electronic device through the second data channel, the method also includes: the first electronic device detects that the uplink packet loss rate of the packet data convergence protocol PDCP packet corresponding to the call data packet transmitted in the first data channel exceeds the first threshold, or the first electronic device receives a first instruction from the second electronic device, the first instruction is used to instruct the first electronic device to transmit the call data packet through the first data channel and the second data channel, or the first electronic device detects that one or more of the multiple signal quality parameters of the first data channel do not exceed their corresponding thresholds.

[0007] The first electronic device may determine that the call quality is abnormal when the first electronic device transmits a call data packet to the second electronic device in the first data channel by the uplink packet loss rate of the PDCP packet in the first data channel exceeding the first threshold, or may determine the above-mentioned call quality abnormality by one or more of the multiple signal quality parameters of the first data channel not exceeding their corresponding thresholds. Alternatively, the above-mentioned call quality abnormality may also be determined by the second electronic device based on the downlink packet loss rate of the PDCP packet in the first data channel exceeding the second threshold, or the multiple signal quality parameters of the first data channel exceeding their corresponding thresholds. The second electronic device will send a first instruction to the first electronic device, instructing the first electronic device to transmit the call data packet through the first data channel and the second data channel. Reference Figure 5 In the embodiment shown, the first threshold may be a threshold G4, and the first electronic device may enable packet replenishment when the uplink packet loss rate of the PDCP packet exceeds the first threshold; or, referring to Figure 3 In the embodiment shown, the first electronic device can determine that the call quality of the main link is abnormal by one or more of the multiple signal quality parameters not exceeding the corresponding thresholds, and then start the packet replenishment; or the second electronic device can determine that the call quality of the main link is abnormal by one or more of the multiple signal quality parameters not exceeding the corresponding thresholds, and then start the packet replenishment; Figure 3 or Figure 7 The illustrated embodiment may send a first instruction to the first electronic device after determining that the call quality of the primary link is abnormal. Optionally, the plurality of signal quality parameters may include reference signal strength RSRP, reference signal quality RSRQ and signal-to-noise ratio SNR.

[0008] In combination with the first aspect, in some embodiments, when the call quality is abnormal when the second electronic device transmits a call data packet to the first electronic device in the first data channel, the first electronic device receives a third call data packet from the second electronic device through the first data channel, and receives a fourth call data packet from the second electronic device through the second data channel, and the third call data packet and the fourth call data packet correspond to the same call content.

[0009] In combination with the first aspect, in some embodiments, before the first electronic device receives a third call data packet from the second electronic device through the first data channel and receives a fourth call data packet from the second electronic device through the second data channel, the method also includes: the first electronic device detects that the downlink packet loss rate of the PDCP packet corresponding to the call data packet transmitted in the first data channel exceeds a second threshold, or the first electronic device detects that one or more of the multiple signal quality parameters of the first data channel do not exceed their corresponding thresholds; the first electronic device sends a second instruction to the second electronic device, and the second instruction is used to instruct the second electronic device to transmit the call data packet through the first data channel and the second data channel.

[0010] The second instruction may also be referred to as a control instruction H1. The abnormal call quality when the second electronic device transmits a call data packet to the first electronic device in the first data channel may be determined by the first electronic device determining that the downlink packet loss rate of the PDCP packet of the first data channel exceeds the threshold value G6, or the first electronic device detects that one or more of the multiple signal quality parameters do not exceed the corresponding threshold value, or the second electronic device detects that the uplink packet loss rate of the PDCP packet of the first data channel exceeds the threshold value G4. The above threshold value G6 may also be referred to as a second threshold value. In this way, the second electronic device can send a call data packet through the first data channel and the second data channel, wherein the second electronic device may send the same call data packet through the first data channel and the second data channel to indicate the same call content. The third call data packet may include one or more call data packets, and the fourth call data packet may also include one or more call data packets. Although the call data packets sent by the second electronic device through the first data channel and the second data channel are consistent, the call data packets may be lost when they are transmitted in the first data channel and the second data channel. Finally, the first electronic device finally receives the third call data packet through the first data channel and receives the fourth call data packet through the second data channel. The call data packets contained in the third call data packet and the fourth call data packet may be the same, or may be partially or completely different.

[0011] In combination with the first aspect, in some embodiments, the method also includes: when the call quality when the first electronic device transmits call data packets to the second electronic device in the first data channel returns to normal, the first electronic device transmits call data packets to the second electronic device only through the first data channel.

[0012] In combination with the first aspect, in some embodiments, the method also includes: before the first electronic device transmits a call data packet to the second electronic device only through the first data channel, the method also includes: the first electronic device detects that the uplink packet loss rate of the PDCP packet corresponding to the call data packet transmitted in the first data channel does not exceed a third threshold, or the first electronic device receives a third instruction from the second electronic device, and the third instruction is used to instruct the first electronic device to transmit the call data packet only through the first data channel, or the first electronic device detects that multiple signal quality parameters of the first data channel exceed their corresponding thresholds.

[0013] The third threshold value may be the same as or different from the first threshold value. Figure 2In steps S206-S207 of the illustrated embodiment, when the call quality when the first electronic device transmits a call data packet to the second electronic device in the first data channel returns to normal, the first electronic device may transmit the call data packet to the second electronic device only through the first data channel. The call quality when the first electronic device transmits a call data packet to the second electronic device in the first data channel returns to normal may be determined by the first electronic device based on the uplink packet loss rate of the PDCP packet not exceeding the third threshold, or may be determined by the first electronic device based on multiple signal quality parameters exceeding their corresponding thresholds, or may be determined by the second electronic device based on the downlink packet loss rate of the PDCP packet not exceeding the fourth threshold. After the second electronic device determines that the downlink packet loss rate of the PDCP packet does not exceed the fourth threshold, it may send a third instruction to the first electronic device.

[0014] In combination with the first aspect, in some embodiments, the method also includes: when the call quality when the second electronic device transmits call data packets to the first electronic device in the first data channel returns to normal, the first electronic device only receives call data packets from the second electronic device through the first data channel.

[0015] In combination with the first aspect, in some embodiments, before the first electronic device receives call data packets from the second electronic device only through the first data channel, the method also includes: the first electronic device detects that the downlink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the first data channel does not exceed a fourth threshold, or the first electronic device detects that multiple signal quality parameters of the first data channel exceed their corresponding thresholds; the first electronic device sends a fourth instruction to the second electronic device, and the fourth instruction is used to instruct the second electronic device to transmit call data packets only through the first data channel.

[0016] Among them, the call quality returning to normal when the second electronic device transmits a call data packet to the first electronic device in the first data channel can be determined by the first electronic device based on the downlink packet loss rate of the PDCP packet not exceeding the fourth threshold, or by the first electronic device based on multiple signal quality parameters of the first data channel exceeding their corresponding thresholds, or by the second electronic device based on the uplink packet loss rate of the PDCP packet not exceeding the third threshold, or by the second electronic device based on multiple signal quality parameters exceeding their corresponding thresholds. Reference Figure 2In steps S212-S214 of the illustrated embodiment, when the call quality of the second electronic device transmitting the call data packet to the first electronic device in the first data channel returns to normal and is determined by the first electronic device, the first electronic device will send a fourth instruction to the second electronic device, instructing the second electronic device to transmit the call data packet only through the first data channel. The fourth threshold value may also be referred to as the threshold value G7, and the fourth instruction may also be referred to as the control instruction H2. The fourth threshold value may be different from the second threshold value. In other words, the electronic device may continuously monitor the call quality of the first data channel. When the call quality of the first data channel is abnormal, the electronic device may transmit the call data packet through the first data channel and the second data channel together, and / or instruct the opposite electronic device to transmit the call data packet through the first data channel and the second data channel together; when the call quality of the first data channel returns to normal, the electronic device may transmit the call data packet only through the first data channel, and / or instruct the opposite electronic device to transmit the call data packet only through the first data channel. In other words, when the call quality of the cellular network is abnormal, the electronic device may start the packet replenishment in time; when the call quality of the cellular network returns to normal, the electronic device may stop the packet replenishment. In this way, the electronic device can save computing resources as much as possible while ensuring the user's call experience.

[0017] In combination with the first aspect, in some embodiments, the second data channel is a data channel based on a point-to-point P2P connection or a data channel based on a relay server.

[0018] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory, and a processor coupled to the memory; the display screen is used to display an interface, the memory stores a computer program, and when the processor executes the above computer program, the electronic device implements any one of the methods described in the above first aspect.

[0019] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program or computer instructions, and the aforementioned computer program or computer instructions are executed by a processor to implement any method described in the first aspect above.

[0020] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed by a processor, the method described in any one of the above-mentioned first aspects will be implemented.

[0021] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the chip executes any method described in the first aspect above.

[0022] The solutions provided in the second to fifth aspects are used to implement or cooperate with the corresponding methods provided in the first aspect, and therefore can achieve the same or corresponding beneficial effects as the corresponding methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a schematic diagram of a communication system 10 provided in an embodiment of the present application;

[0024] Figure 2 is a flow chart of a communication method provided in an embodiment of the present application;

[0025] Figure 3 It is a flow chart of a method for an electronic device to determine that the call quality of a main link is abnormal, provided in an embodiment of the present application;

[0026] Figure 4 It is a flow chart of a method for an electronic device to determine that the call quality of a main link has returned to normal, provided by an embodiment of the present application;

[0027] Figure 5 It is a flow chart of a method for an electronic device to determine that the uplink call quality of a main link is abnormal, provided in an embodiment of the present application;

[0028] Figure 6 It is a flow chart of a method for an electronic device to determine that the uplink call quality of a main link has returned to normal, provided by an embodiment of the present application;

[0029] Figure 7 It is a flow chart of a method for an electronic device to determine that the downlink call quality of a main link is abnormal, provided in an embodiment of the present application;

[0030] Figure 8 It is a flow chart of a method for an electronic device to determine that the downlink call quality of a main link has returned to normal, provided by an embodiment of the present application;

[0031] Fig. 9 It is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0033] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0034] When making calls, electronic devices usually use a cellular network consisting of base stations and core network devices to transmit call data packets. The call quality will be affected by the quality of the cellular network signal. In areas with densely populated buildings or indoors, the signal quality is poor due to the weak coverage of the cellular network signal. This will cause users to experience poor call quality when making calls through electronic devices in these areas.

[0035] In order to solve this problem, the embodiments of the present application provide a communication method, an electronic device and a computer-readable storage medium. In this method, when two electronic devices that are talking through a cellular network are both connected to a wireless fidelity (Wi-Fi) network, the two can transmit the same call data packet through the Wi-Fi network on the basis of transmitting the call data packet through the cellular network, and use the Wi-Fi network as a supplement to the cellular network. That is to say, when an electronic device (or an electronic device at this end) sends a call data packet to an electronic device at the opposite end through a cellular network, it can also send the call data packet to the electronic device at the opposite end through the Wi-Fi network, wherein the call data packet sent by the electronic device through the Wi-Fi network can be a copy of the call data packet sent through the cellular network, and the copy of the call data packet can be obtained by the electronic device after copying the call data packet. After receiving the call data packets from the cellular network and the Wi-Fi network, the electronic device at the opposite end can sort and merge the call data packets, remove redundancy, etc. In this way, even if the call data packet is lost during the transmission process due to poor signal quality of the cellular network, the electronic device at the opposite end can restore the complete call data based on the call data packet obtained from the Wi-Fi network. The method for the above-mentioned electronic device to transmit a call data packet through a Wi-Fi network can also be called a packet supplement. Since packet replenishment will cause a certain amount of power consumption in electronic devices, electronic devices can dynamically turn on or off packet replenishment based on parameters such as the signal quality of the cellular network. In other words, the electronic device will turn on packet replenishment when the signal quality of the cellular network is poor, and turn off packet replenishment when the signal quality of the cellular network is good. This can not only improve the quality of electronic device calls, but also avoid resource waste.

[0036] The above communication method can be used for both voice calls and video calls between electronic devices, and the embodiments of the present application do not limit this. For ease of description and better understanding, the subsequent embodiments of the present application take voice calls between electronic devices as an example to introduce the communication method proposed in the present application. The method for electronic devices to make video calls through the communication method can refer to the introduction of the method for electronic devices to make voice calls through the communication method in the subsequent embodiments, which will not be repeated here.

[0037] Here, the communication system 10 provided in an embodiment of the present application is first introduced.

[0038] Figure 1 Schematic diagram of a communication system 10 provided in an embodiment of the present application. Figure 1 As shown, the communication system 10 includes electronic device A1, electronic device A2, base station B1, base station B2, core network equipment, Wi-Fi device C1, Wi-Fi device C2 and a server. Figure 1 In the communication system 10 shown, the communication link formed by the electronic device A1, the base station B1, the core network device, the base station B2, and the electronic device A2 can be called a main link, or a first data channel. The communication link formed by the electronic device A1, the Wi-Fi device C1, the server, the Wi-Fi device C2, and the electronic device A2 can be called an auxiliary link, or a second data channel. Among them, the electronic device A1 can also be called a first electronic device, and the electronic device A2 can also be called a second electronic device.

[0039] Electronic devices A1 and A2 can access the core network provided by the core network equipment through the cellular networks provided by base stations B1 and B2, respectively. The core network equipment includes circuit switching (CS) core network equipment, packet switching (PS) core network equipment and IMS core network equipment.

[0040] Among them, the electronic device A1 and the electronic device A2 can use the same communication technology to establish a connection with the core network device, or they can use different communication technologies to establish a connection with the core network device. The above communication technologies may include but are not limited to: Circuit Switched (CS), Voice over Long-Term Evolution (VoLTE), Voice over New Radio (VoNR), Video over Long-Term Evolution (ViLTE), Video over New Radio (ViNR), Evolved Packet System fallback (EPS fallback), CS fallback, etc.

[0041] It should be noted that there may be multiple base stations between the electronic device A1 and the core network device, and there may also be multiple base stations between the electronic device A2 and the core network device, and this embodiment of the present application does not impose any restrictions on this.

[0042] Exemplarily, electronic device A1 and electronic device A2 can establish a main link using session initiation protocol (SIP). Taking electronic device A1 calling electronic device A2 as an example, electronic device A1 can receive an operation of a user calling a corresponding phone number of electronic device A2, which can be an operation of initiating a call to the corresponding mobile phone number of electronic device A2. In response to the operation, electronic device A1 can send an invitation message (INVITE) to the core network device, and the invitation information is used to invite electronic device A2 to join the session. Then the core network device can forward the invitation message to electronic device A2, and electronic device A2 can return a temporary response message (100TRYING) to the core network device to indicate that the INVITE has been received. Secondly, electronic device A1 and electronic device A2 will reserve resources and tell the opposite electronic device through the core network device. Then electronic device A2 can display a ringing interface, and electronic device A2 can send a ringing message (180RINGING) to electronic device A1 through the core network device to inform electronic device A1 that it has rung. Finally, electronic device A2 can receive the user's operation of answering the call. In response to the operation, electronic device A2 can send a confirmation message (200OK) to electronic device A1 through the core network device, indicating that electronic device A1 has picked up the phone. In this way, a main link is established between electronic device A1 and electronic device A2, and the two can transmit call data packets through the main link.

[0043] Electronic device A1 and electronic device A2 can also establish connection with the server through the Wi-Fi network provided by Wi-Fi device C1 and Wi-Fi device C2 respectively, so that electronic device A1 (or electronic device A2) can send call data packets to electronic device A2 (or electronic device A1) through the server. Among them, Wi-Fi devices (including Wi-Fi devices C1 and Wi-Fi devices C2) can be Wi-Fi routers or Wi-Fi hotspot devices, etc.

[0044] Electronic device A1 can report to the server the mobile phone number D1 and communication identifier E1 used by electronic device A1 in the main link, and electronic device A2 can report to the server the mobile phone number D2 and communication identifier E2 used by electronic device A2 in the main link. Among them, communication identifier E1 and communication identifier E2 can be assigned by the server, communication identifier E1 is bound to mobile phone number D1, and communication identifier E2 is bound to mobile phone number D2. That is to say, the server can determine mobile phone number D1 based on communication identifier E1, and determine mobile phone number D2 based on communication identifier E2. After the main link is established between electronic device A1 and electronic device A2, electronic device A1 can query the server for mobile phone number D2 to obtain its corresponding communication identifier E2. Then electronic device A1 can send a request message to the server, the request message is used to request the server to establish an auxiliary link with electronic device A2, and the request message can carry communication identifier E2. Electronic device A2 can also query the server for mobile phone number D1 to obtain its corresponding communication identifier E1, and then send a request message to the server, the request message is used to request the server to establish an auxiliary link with electronic device A1. The server can establish an auxiliary link based on the communication identifier E1 and the communication identifier E2 in the request message. In this way, the electronic device A1 and the electronic device A2 can also transmit call data packets through the auxiliary link.

[0045] The auxiliary link may be a peer-to-peer (P2P) link. Electronic device A1 and electronic device A2 may transmit data through the Internet protocol (IP) address and port number of the other end. Alternatively, the auxiliary link may be a link based on a relay server, and electronic device A1 and electronic device A2 may send a call data packet to the relay server, which forwards the call data packet.

[0046] When electronic device A1 and electronic device A2 make a voice call, the call data packet is a voice data packet; when electronic device A1 and electronic device A2 make a video call, the call data packet includes both a video data packet and a voice data packet. Electronic devices can transmit call data packets through the real-time transport protocol (RTP) and monitor call quality through the real-time control protocol (RTCP).

[0047] Figure 1 The number of servers in the communication system 10 shown is only an example, and the auxiliary link may include more than Figure 1 More servers are shown. For example, the auxiliary link may include a business server and a communication server. The business server can be used to establish the auxiliary link, and the communication server is used to transmit data such as call data packets after the auxiliary link is established. The above-mentioned business server and communication server can be physical servers or virtual servers, and the embodiments of the present application are not limited to this.

[0048] Combine the following Figure 1 The communication system 10 shown introduces the communication method provided by the embodiment of the present application.

[0049] Figure 2 is a flow chart of the communication method provided in the embodiment of the present application. Figure 2 As shown, the method may include but is not limited to the following steps:

[0050] S201 . Electronic device A1 and electronic device A2 establish a primary link via a cellular network and establish an auxiliary link via a Wi-Fi network.

[0051] Electronic device A1 and electronic device A2 can access the core network provided by the core network device through the cellular network provided by base station B1 and base station B2 to establish a main link. Then electronic device A1 and electronic device A2 can establish an auxiliary link through the Wi-Fi network. The method for electronic device A1 and electronic device A2 to establish the main link and the auxiliary link can refer to the above introduction, which will not be repeated here.

[0052] After the main link is established, the electronic device A1 and the electronic device A2 may continuously monitor the communication quality of the main link to determine whether to start or stop packet replenishment.

[0053] S202: Electronic device A1 sends a call data packet F1 to electronic device A2 via a main link.

[0054] Electronic device A1 can first send a call data packet F1 to electronic device A2 through the main link. Here, electronic device A1 sending call data packet F1 through the main link means that electronic device A1 sends call data packet F1 to the core network device through base station B1, and then the core network device sends call data packet F1 to base station B2, and finally base station B2 sends call data packet F1 to electronic device A2. Among them, there can be multiple base stations between base station B1 and the core network device, and between base station B2 and the core network device.

[0055] The call data packet F1 may include one or more call data packets, and the multiple call data packets may be arranged in a preset order. The electronic device A1 continuously collects the user's voice through the microphone to generate call data packets, and each call data packet may have a sequence number, which increases in sequence according to the time sequence of the call data packets.

[0056] S203: The electronic device A1 determines that the call quality when the electronic device A1 transmits a call data packet to the electronic device A2 in the main link is abnormal.

[0057] Electronic device A1 can continuously monitor the call quality of the main link, including the call quality when electronic device A1 transmits call data packets to electronic device A2 through the main link, and the call quality when electronic device A1 receives call data packets from electronic device A2 through the main link. Correspondingly, electronic device A2 can also continuously monitor the call quality when it transmits call data packets to electronic device A1 through the main link, and the call quality when it receives call data packets from electronic device A1 through the main link.

[0058] Electronic device A1 can determine that the call quality is abnormal when electronic device A1 transmits a call data packet to electronic device A2 in the main link by determining that the uplink call quality of the main link is abnormal. In addition, electronic device A2 can also determine that the call quality is abnormal when electronic device A1 transmits a call data packet to electronic device A2 in the main link by determining that the downlink call quality of the main link is abnormal.

[0059] Electronic device A1 can determine whether there is an abnormal uplink call quality through multiple signal quality parameters of the main link, or the electronic device A1 can also determine whether there is an abnormal uplink call quality based on the uplink packet loss rate of the packet data convergence protocol (PDCP) packet corresponding to the call data packet; Electronic device A1 can also determine whether there is an abnormal downlink call quality through multiple signal quality parameters of the main link, or the electronic device A1 can determine whether there is an abnormal downlink call quality based on the downlink packet loss rate of the packet data convergence protocol (PDCP) packet corresponding to the call data packet. Among them, the uplink call quality is used to characterize the transmission quality when the electronic device transmits the call data packet to the core network device through the base station, and the downlink call quality is used to characterize the transmission quality when the core network device transmits the call data packet to the electronic device through the base station.

[0060] The method for the electronic device A1 to determine whether the call quality is abnormal when the electronic device A1 transmits a call data packet to the electronic device A2 in the main link can be referred to the introduction of the subsequent embodiments, which will not be expanded here.

[0061] S204: Electronic device A1 sends a call data packet F2 to electronic device A2 via the main link.

[0062] S205 . Electronic device A1 sends a call data packet F2 to electronic device A2 via the auxiliary link.

[0063] When electronic device A1 determines that the call data quality when electronic device A1 transmits a call data packet to electronic device A2 in the primary link is abnormal, steps S204-S205 can be executed, that is, electronic device A1 sends a subsequent call data packet F2 through the primary link and the auxiliary link. The call data packet F2 can also include multiple call data packets.

[0064] Among them, the call data packet F2 sent by the electronic device A1 through the auxiliary link may be a copy of the call data packet F2 sent by it through the main link, or the call data packet F2 sent by the electronic device A1 through the main link may be a copy of the call data packet F2 sent by it through the auxiliary link. The copy of the above-mentioned call data packet F2 may be obtained by the electronic device A1 after copying the original call data packet F2. After receiving the call data packets sent by the electronic device A1 through the main link and the auxiliary link, the electronic device A2 may sort and merge the call data packets, remove redundancy, etc. to determine the call data packets whose sequence numbers are arranged in the correct order. The correct order here is the time sequence when the electronic device A1 generates the call data packets. The above-mentioned merging refers to processing the call data packets received by the two links into one. Deduplication refers to deleting redundant call data packets with the same sequence number and retaining only one of them. Sorting refers to arranging the call data packets in order from small to large according to the sequence number. For example, the electronic device A1 sends two call data packets with sequence numbers 1-5 through the main link and the auxiliary link. The electronic device A2 may receive call data packets with sequence numbers 1, 2, and 5 from the main link and call data packets with sequence numbers 1, 3, 4, and 5 from the auxiliary link. Then the electronic device A2 can remove the repeated call data packets with serial numbers 1 and 5, and then arrange the above call data packets according to their serial numbers to restore the call data packets with serial numbers 1-5.

[0065] In some embodiments, when electronic device A1 determines that the quality of call data when electronic device A1 transmits call data packets to electronic device A2 in the main link is abnormal, electronic device A1 may also send a control instruction H1 to electronic device A2, and the control instruction H1 is used to instruct electronic device A2 to send call data packets to electronic device A1 simultaneously through the main link and the auxiliary link.

[0066] After the electronic device A1 turns on the packet replenishment function, it will continue to monitor the call quality of the primary link. When the electronic device A1 determines that the call quality of the primary link has returned to normal, it can turn off the packet replenishment function in time to save resources.

[0067] S206: The electronic device A1 determines that the call quality when the electronic device A1 transmits the call data packet to the electronic device A2 in the main link has returned to normal.

[0068] Electronic device A1 can continuously monitor the call quality of the main link. When electronic device A1 detects that the call quality of the uplink in the main link returns to normal, it can stop sending call data packets to electronic device A2 through the auxiliary link and only send call data packets to electronic device A2 through the main link.

[0069] S207 . The electronic device A1 sends a call data packet F3 to the electronic device A2 via the main link.

[0070] After the electronic device A1 determines in step S206 that the call quality when the electronic device A1 transmits the call data packet to the electronic device A2 in the main link has returned to normal, the electronic device A1 may send the call data packet only through the main link.

[0071] S208: The electronic device A1 determines that the call quality when the electronic device A2 transmits the call data packet to the electronic device A1 in the main link is abnormal.

[0072] Electronic device A1 can determine that the call quality is abnormal when electronic device A2 in the main link transmits a call data packet to electronic device A1 by determining that the downlink call quality of the main link is abnormal. Among them, electronic device A1 can determine whether the downlink call quality is abnormal by the signal quality parameter of the main link, or the downlink packet loss rate of the PDCP packet corresponding to the call data packet. The method for electronic device A1 to determine that the call quality is abnormal when electronic device A2 in the main link transmits a call data packet to electronic device A1 can refer to the introduction of subsequent embodiments, which will not be expanded here.

[0073] S209 , the electronic device A1 sends a control instruction H1 to the electronic device A2 via the auxiliary link, where the control instruction H1 is used to instruct the electronic device A2 to send a call data packet via the main link and the auxiliary link.

[0074] After electronic device A1 determines in step S208 that the call quality is abnormal when electronic device A2 transmits a call data packet to electronic device A1 in the main link, electronic device A1 can instruct electronic device A2 to send the call data packet through the main link and the auxiliary link. After receiving the control instruction H1, electronic device A2 can return a message to electronic device A1 to inform electronic device A1 that it has turned on the packet replenishment.

[0075] In some embodiments, electronic device A2 may have already started the supplementary packet before receiving the control instruction H1, and the supplementary packet may be started after electronic device A2 determines that the uplink call quality of the primary link is abnormal. Electronic device A2 can continue to transmit call data packets through the primary link and the auxiliary link.

[0076] The control instruction H1 is not limited to being sent through the auxiliary link. In some embodiments, the electronic device A1 may also send the control instruction H1 to the electronic device A2 through the main link, which is not limited in the embodiments of the present application.

[0077] S210 : Electronic device A2 sends a call data packet F4 to electronic device A1 via the main link.

[0078] S211 . Electronic device A2 sends a call data packet F4 to electronic device A1 via the auxiliary link.

[0079] After receiving the control instruction H1, the electronic device A2 can send a call data packet through the primary link and the secondary link. The call data packet F4 can include one or more call data packets.

[0080] S212: The electronic device A1 determines that the call quality when the electronic device A2 transmits the call data packet to the electronic device A1 in the main link has returned to normal.

[0081] Electronic device A1 can determine the call quality when electronic device A2 transmits a call data packet to electronic device A1 through the downlink call quality of the main link. Electronic device A1 can determine the call quality when electronic device A2 transmits a call data packet to electronic device A1 through the signal quality parameters of the main link and the downlink packet loss rate of the PDCP packet on the electronic device A1 side. On the other hand, electronic device A2 can also determine the call quality when electronic device A2 transmits a call data packet to electronic device A1 through the signal quality parameters of the main link and the uplink packet loss rate of the PDCP packet on the electronic device A2 side.

[0082] S213: The electronic device A1 sends a control instruction H2 to the electronic device A2 through the auxiliary link. The control instruction H2 is used to instruct the electronic device A2 to send call data packets only through the primary link.

[0083] S214: Electronic device A2 sends a call data packet F5 to electronic device A1 via the main link.

[0084] When the electronic device A1 determines that the call quality when the electronic device A2 transmits the call data packets to the electronic device A1 in the main link has returned to normal, the electronic device A1 may instruct the electronic device A2 to send the call data packets only through the main link.

[0085] Since the packet replenishment of the electronic device A2 is started in response to the control instruction H1 from the electronic device A1, the electronic device A2 will only suspend the packet replenishment when it receives the control message H2 of the electronic device A1. This can avoid the situation where the electronic device A2 stops replenishing packets when the communication quality of the downlink of the electronic device A1 is good, but the communication quality of the uplink of the electronic device A2 is poor, resulting in the electronic device A1 not being able to receive all the call data packets sent by the electronic device A2, thereby affecting the call experience of the user on the electronic device A1 side.

[0086] It should be noted that Figure 2 The execution order of the steps shown is only for example. For example, in some embodiments, S208-S211 can also be between S203-S207. When electronic device A1 has enabled packet replenishment, and electronic device A1 detects that the call quality when electronic device A2 transmits a call data packet to electronic device A1 is abnormal, electronic device A1 can instruct electronic device A2 to also enable packet replenishment.

[0087] It can be seen that the electronic device A1 can monitor the call quality of the main link, and then dynamically turn on or off the packet replenishment based on the call quality of the main link, so as to save the computing resources of the electronic device while ensuring the normal call of the user.

[0088] The following specifically introduces several methods for electronic devices to determine that the call quality of the main link is abnormal and restores it to normal.

[0089] Figure 3 is a flow chart of a method for an electronic device to determine that the call quality of a primary link is abnormal, provided in an embodiment of the present application. Figure 3 As shown, the method may include but is not limited to the following steps:

[0090] S301. An electronic device monitors multiple signal quality parameters of a main link.

[0091] The electronic device can continuously monitor multiple signal quality parameters of the main link, that is, the electronic device can determine the values ​​of multiple signal quality parameters once every preset time length, and then the electronic device can determine the call quality of the main link. The signal quality parameter is a parameter used to measure the signal quality of the cellular network. Exemplarily, the signal quality parameter may include but is not limited to reference signal strength (reference signal receiving power, RSRP), reference signal quality (reference signal receiving quality, RSRQ), signal noise ratio (signal noise ratio, SNR) and signal to interference plus noise ratio (signal to interference plus noise ratio, SINR).

[0092] S302: The electronic device determines whether one or more signal quality parameters among a plurality of signal quality parameters are lower than corresponding thresholds.

[0093] In some embodiments, the electronic device may perform step S303 when one or more of the multiple signal quality parameters are lower than their corresponding thresholds. That is, as long as the electronic device detects that one or more of the signal quality parameters are lower than their corresponding thresholds, it determines that the call quality of the main link is abnormal. In this way, the electronic device can start the patching packet more quickly when there is a problem with the main link, ensuring that the user can talk normally.

[0094] In other embodiments, the electronic device may perform step S303 only when one or more of the multiple signal quality parameters are always lower than the threshold value within the time length T1. This can avoid triggering the electronic device to start packet replenishment when the signal quality parameter only drops for a short time, resulting in a waste of computing resources.

[0095] Among them, the time window for the electronic device to judge the signal quality may be overlapping. For example, the time window corresponding to the Kth T1 time length and the time window corresponding to the K+1th T1 time length may overlap, where K is any positive integer. Taking T1 as 500 milliseconds as an example, the electronic device can first determine whether there are one or more signal quality parameters that are always lower than their thresholds from the 0th millisecond to the 500th millisecond, and then the electronic device determines whether there are one or more signal quality parameters that are always lower than their thresholds from the 200th millisecond to the 700th millisecond, and then the electronic device determines whether there are one or more signal quality parameters that are always lower than their thresholds from the 400th millisecond to the 900th millisecond. In this example, there is an overlap of 200 milliseconds between two adjacent time windows, which can improve the accuracy of the electronic device in judging the call quality of the main link, avoid missed judgment due to the selection of too large a time window, so that the electronic device does not open the supplementary packet in time when there is a problem with the call quality, affecting the normal call of the user. Optionally, the time window for the electronic device to determine whether the supplementary packet condition is met may also be non-overlapping.

[0096] In some embodiments, the electronic device may perform step S303 when any one of the multiple signal quality parameters is always lower than its corresponding threshold value within the T1 time length. Take the electronic device monitoring the RSRP, RSRQ and SNR of the main link as an example. The electronic device can monitor whether the RSRP of the main link within the T1 time length is lower than its corresponding threshold value G1, whether the RSRQ is lower than its corresponding threshold value G2, and whether the SNR is lower than its corresponding threshold value G3. When the electronic device determines that any one of the RSRP, RSRQ and SNR within the T1 time length is lower than its corresponding threshold value, step S303 is performed. In other words, as long as any signal quality parameter within the T1 time length is lower than its threshold value, the electronic device starts to replenish packets without having to wait for all signal quality parameters to be lower than their threshold values ​​before starting to replenish packets. It is not limited to RSRP, RSRQ and SNR, but can also be other signal quality parameters, and the embodiments of the present application are not limited to this.

[0097] S303: The electronic device determines that the call quality of the main link is abnormal and starts packet replenishment.

[0098] Among them, enabling packet replenishment by an electronic device refers to transmitting a call data packet to the other electronic device through the main link and the auxiliary link.

[0099] When one or more of the signal quality parameters of the main link are lower than their corresponding thresholds, the call quality when the electronic device transmits call data packets to the opposite electronic device will usually be abnormal, and the call quality when the opposite electronic device transmits call data packets to the electronic device will usually be abnormal.

[0100] In some embodiments, after the electronic device determines that one or more of the signal quality parameters of the main link are lower than their corresponding thresholds, the electronic device can either turn on the packet replenishment at the local end or send a control instruction H1 to the electronic device at the other end, instructing the electronic device at the other end to also turn on the packet replenishment. This ensures that both electronic devices at both ends of the call can obtain complete call data packets, ensuring the user's normal call. Correspondingly, the electronic device at the other end can stop the packet replenishment only after receiving the control instruction H2 sent by the electronic device at the local end. In other words, when the packet replenishment is turned on by the electronic device at the local end, the stopping of the packet replenishment is controlled by the electronic device at the local end; when the packet replenishment is turned on by the electronic device at the other end, the stopping of the packet replenishment is controlled by the electronic device at the other end.

[0101] S304: The electronic device continues to transmit call data packets only through the primary link.

[0102] When the electronic device determines that one or more of the multiple signal quality parameters of the primary link are higher than the corresponding threshold, the electronic device can continue to transmit the call data packet only through the primary link. The electronic device can continue to execute S301 and continuously monitor the multiple signal quality parameters of the primary link.

[0103] Figure 4 is a flow chart of a method for an electronic device to determine that the call quality of a main link has returned to normal, provided in an embodiment of the present application. Figure 4 As shown, the method may include but is not limited to the following steps:

[0104] S401. The electronic device monitors multiple signal quality parameters of a main link.

[0105] The method for the electronic device to monitor multiple signal quality parameters of the main link can refer to the introduction of step S301, which will not be repeated here.

[0106] S402: The electronic device determines whether a plurality of signal quality parameters are all greater than or equal to their corresponding thresholds.

[0107] When the electronic device determines that the multiple signal quality parameters are all greater than or equal to their corresponding thresholds, step S403 may be executed; when the electronic device determines that there is a signal quality parameter among the multiple signal quality parameters that does not exceed its corresponding threshold, step S404 may be executed.

[0108] In some embodiments, the electronic device may determine that multiple signal quality parameters are always greater than or equal to their corresponding thresholds within the T2 time length, and then execute step S403, or the electronic device may determine that one or more signal quality parameters among the multiple signal quality parameters are less than their corresponding thresholds within the T2 time length, and then execute step S404. The T2 time length may be different from the aforementioned T1 time length.

[0109] In some embodiments, electronic devices may be used in combination Figure 4 The method for the electronic device to determine that the call quality of the main link is restored to normal Figure 3 The method for determining that the call quality of the main link is abnormal is shown. The multiple signal quality parameters used by the electronic device to determine whether to turn on the packet replenishment in step S302 and the multiple signal quality parameters used by the electronic device to determine whether to turn off the packet replenishment in step S402 may be partially or completely different. For example, the electronic device may determine whether to turn on the packet replenishment based on the values ​​of RSRP, RSRQ and SNR, and after turning on the packet replenishment, the electronic device may determine whether to turn off the packet replenishment based on the values ​​of RSRP and RSRQ.

[0110] In some embodiments, the multiple signal quality parameters used by the electronic device in determining whether to turn on the supplementary packet in step S302 may be completely the same as the multiple signal quality parameters used by the electronic device in determining whether to turn off the supplementary packet in step S402. Exemplarily, taking the multiple signal quality parameters including RSRP, RSRQ and SNR as an example, the electronic device may turn on the supplementary packet when one or more signal quality parameters among RSRP, RSRQ and SNR are lower than their thresholds, and after turning on the supplementary packet, the electronic device may turn off the supplementary packet when RSRP, RSRQ and SNR all exceed their corresponding thresholds.

[0111] S403: The electronic device determines that the call quality of the main link has returned to normal, and suspends packet replenishment.

[0112] When multiple signal quality parameters of the main link are greater than or equal to their corresponding thresholds, it indicates that the call quality of the main link has returned to normal, and the electronic device can suspend transmission of call data packets through the auxiliary link and only transmit call data packets through the main link.

[0113] S404: The electronic device continues to transmit call data packets through the primary link and the auxiliary link.

[0114] When a signal quality parameter among multiple signal quality parameters of the main link is less than its corresponding threshold, indicating that the call quality of the main link is still in an abnormal state, the electronic device can still transmit call data packets through the main link and the auxiliary link.

[0115] In some embodiments, the electronic device may determine the call quality of the uplink and the call quality of the downlink in the main link respectively. For abnormal uplink call quality and abnormal downlink call quality, the electronic device may have different packet replenishment strategies.

[0116] Figure 5 is a flow chart of a method for an electronic device to determine that the uplink call quality of a main link is abnormal, provided in an embodiment of the present application. Figure 5 As shown, the method may include but is not limited to the following steps:

[0117] S501. The electronic device monitors an uplink packet loss rate of PDCP packets corresponding to call data packets transmitted in a primary link.

[0118] S502: The electronic device determines that the uplink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link exceeds a threshold value G4.

[0119] The electronic device may continuously monitor the uplink packet loss rate of the PDCP packets corresponding to the call data packets. When the uplink packet loss rate of the PDCP packets exceeds the threshold value G4, the electronic device may determine that the call quality is abnormal when the local electronic device transmits the call data packets to the opposite electronic device in the main link, and then execute step S503. When the uplink packet loss rate of the PDCP packets does not exceed the threshold value G4, the electronic device may execute step S504.

[0120] In some embodiments, after the electronic device determines that the uplink packet loss rate of the PDCP packet corresponding to the call data packet transmitted in the main link exceeds the threshold G4, it can also send a control instruction H1 to the remote electronic device. The control instruction H1 is used to instruct the remote electronic device to also replenish the packet when transmitting the call data packet to the electronic device.

[0121] S503: The electronic device starts packet replenishment and transmits call data packets through the main link and the auxiliary link.

[0122] When the electronic device determines that the call quality when the local electronic device transmits call data packets to the opposite electronic device in the main link is abnormal based on the uplink packet loss rate of the PDCP packet, the electronic device can start packet replenishment.

[0123] S504: The electronic device continues to transmit call data packets only through the primary link.

[0124] When the electronic device determines that the call quality when the local electronic device transmits the call data packet to the opposite electronic device in the primary link is normal, the electronic device can continue to transmit the call data packet only through the primary link. The electronic device can continue to perform step S501 to monitor the uplink packet loss rate of the PDCP corresponding to the call data packet transmitted in the primary link.

[0125] Figure 6 is a flow chart of a method for an electronic device to determine that the uplink call quality of a main link has returned to normal, provided in an embodiment of the present application. Figure 6 As shown, the method may include but is not limited to the following steps:

[0126] S601. The electronic device monitors an uplink packet loss rate of PDCP packets corresponding to call data packets transmitted in a primary link.

[0127] S602: The electronic device determines that the uplink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the primary link does not exceed a threshold value G5.

[0128] When the electronic device has turned on packet replenishment, if the uplink packet loss rate of the PDCP packet corresponding to the call data packet transmitted in the main link does not exceed the threshold G5, the electronic device can execute step S603; if the uplink packet loss rate of the PDCP packet in the main link exceeds the threshold G5, the electronic device can execute step S604.

[0129] In some embodiments, the electronic device can determine the packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link within the preset time length T3, and the electronic device will only suspend packet replenishment when the uplink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link within the preset time length T3 always exceeds the threshold G5. This can prevent the electronic device from suspending packet replenishment too early when the main link returns to normal only in a short time, and when the subsequent uplink is abnormal again, the electronic device fails to start packet replenishment in time, resulting in the call data packet being unable to be completely transmitted to the other end electronic device, affecting the user's normal call.

[0130] In some embodiments, electronic devices may be used in combination Figure 6 The electronic device determines that the main link uplink call quality returns to normal. Figure 5 The method for the electronic device to determine that the uplink call quality of the main link is abnormal is shown. The threshold value G5 may be different from the threshold value G4 in step S502, that is, when the electronic device has turned on packet replenishment, the threshold value G5 of the uplink packet loss rate of the PDCP packet that needs to be lower than to stop packet replenishment, and the threshold value G4 of the uplink packet loss rate of the PDCP packet that needs to be exceeded to start packet replenishment when the electronic device has not turned on packet replenishment may be different. For example, when the electronic device has turned on packet replenishment, the electronic device can turn off packet replenishment when the uplink packet loss rate of the PDCP packet does not exceed 5%; when the electronic device has not turned on packet replenishment, the electronic device can turn on packet replenishment when the uplink packet loss rate of the PDCP packet exceeds 10%.

[0131] S603: The electronic device suspends packet replenishment and transmits call data packets only through the main link.

[0132] The electronic device can suspend packet replenishment after determining that the uplink call quality of the main link has returned to normal through the uplink packet loss rate of the PDCP packet not exceeding the threshold G5, that is, the call data packet is transmitted only through the main link.

[0133] S604: The electronic device continues to transmit call data packets through the primary link and the auxiliary link.

[0134] When the electronic device determines that the uplink call quality of the primary link is still in an abnormal state through the uplink packet loss rate of the PDCP packet exceeding the threshold G5, the electronic device can continue to transmit call data packets through the primary link and the auxiliary link.

[0135] Figure 7is a flow chart of a method for an electronic device to determine that the downlink call quality of a main link is abnormal, provided in an embodiment of the present application. Figure 7 As shown, the method may include but is not limited to the following steps:

[0136] S701. The electronic device monitors a downlink packet loss rate of PDCP packets corresponding to call data packets transmitted in a primary link.

[0137] S702: The electronic device determines that a downlink packet loss rate of a PDCP packet corresponding to a call data packet transmitted in a primary link exceeds a threshold value G6.

[0138] The electronic device can continuously monitor the downlink packet loss rate of the PDCP packet corresponding to the call data packet. Among them, the PDCP packet downlink packet loss rate is too high may be caused by the downlink packet loss of the local electronic device in the main link, or it may be caused by the uplink packet loss of the opposite electronic device. Therefore, when the electronic device determines that the downlink packet loss rate of the PDCP packet is high, it is necessary to instruct the opposite electronic device to turn on the uplink packet replenishment, so that the local electronic device can obtain a copy of the call data packet from the auxiliary link, thereby making up for the call data packet lost during the main link transmission process. Among them, the threshold G6 can be the same as or different from the aforementioned threshold G4, and the embodiment of the present application does not limit this.

[0139] S703: The electronic device sends a control instruction H1 to the opposite electronic device. The control instruction H1 is used to instruct the opposite electronic device to start the supplementary package.

[0140] When the downlink packet loss rate of the PDCP packet corresponding to the call data packet transmitted in the main link exceeds the threshold G6, it indicates that the call quality of the opposite electronic device in the main link when transmitting the call data packet to the local electronic device is poor, then the electronic device can send a control instruction H1 to the opposite electronic device, instructing the opposite electronic device to start the packet replenishment. In this way, the opposite electronic device can send the call data packet to the local electronic device through the main link and the auxiliary link, and the local electronic device can receive the call data packet from the opposite electronic device through the main link and the auxiliary link. Then the local electronic device can merge the call data packets, remove redundancy, and other processing to obtain complete call data.

[0141] In some embodiments, the electronic device may have already enabled the patch package before sending the control instruction H1 to the other electronic device. After receiving the control instruction H1, the other electronic device may return a message to the electronic device indicating that it has received the control instruction H1 and enabled the patch package.

[0142] Figure 8 is a flow chart of a method for an electronic device to determine that the downlink call quality of a main link has returned to normal, provided in an embodiment of the present application. Figure 8 As shown, the method may include but is not limited to the following steps:

[0143] S801. The electronic device monitors a downlink packet loss rate of PDCP packets corresponding to call data packets transmitted in a main link.

[0144] S802. The electronic device determines that the downlink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link does not exceed the threshold value G7.

[0145] When the downlink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link does not exceed the threshold value G7, the electronic device can execute step S803. When the downlink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link exceeds the threshold value G7, it indicates that the communication quality of the opposite electronic device in the main link when transmitting the call data packets to the local electronic device is still abnormal, and the electronic device can continue to execute step S801.

[0146] In some embodiments, the electronic device can determine the downlink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link within the preset time length T4. Only when the downlink packet loss rate of the PDCP packets corresponding to the call data packets transmitted in the main link within the preset time length T4 does not exceed the threshold G7, it is determined that the downlink call quality has returned to normal, and then step S803 is executed.

[0147] In some embodiments, electronic devices may be used in combination Figure 8 The method for the electronic device to determine that the downlink call quality of the main link has returned to normal is as follows Figure 7 The electronic device shown is a method for determining that the downlink call quality of the main link is abnormal. Among them, the threshold G7 and the threshold G5 can be the same or different, and the embodiment of the present application does not limit this.

[0148] S803: The electronic device sends a control instruction H2 to the opposite electronic device, where the control instruction H2 is used to instruct the opposite electronic device to suspend packet replenishment.

[0149] After the electronic device determines that the downlink call quality of the main link has returned to normal, it can send a control instruction H2 to the electronic device at the opposite end, instructing the electronic device at the opposite end to suspend packet replenishment.

[0150] In some embodiments, when the peer electronic device's packet replenishment is started in response to a control instruction of the local electronic device, the peer electronic device needs to receive the control instruction H2 of the local electronic device before it can suspend the packet replenishment. This can prevent the peer electronic device from being unable to receive a complete call data packet when packet loss occurs in the downlink of the peer electronic device, thereby affecting user communication.

[0151] In other embodiments, when the packet replenishment of the opposite electronic device is turned on in response to the control instruction of the local electronic device, the opposite electronic device can suspend the packet replenishment regardless of whether the opposite electronic device receives the control instruction H2 of the local electronic device or the opposite electronic device itself detects that the main link call instruction has returned to normal.

[0152] In some embodiments, electronic devices may be used in combination Figure 5-Figure 8 The method of the illustrated embodiment determines the call quality of the uplink and downlink of the main link respectively.

[0153] The following first introduces an exemplary electronic device 100 provided in an embodiment of the present application.

[0154] Fig. 9 It is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application.

[0155] The following is a detailed description of the embodiment using the electronic device 100 as an example. It should be understood that the electronic device 100 may have more than Fig. 9 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Fig. 9 The various components shown in the EMBODIMENTS 2000 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.

[0156] 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 display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, etc.

[0157] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0158] 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.

[0159] 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.

[0160] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0161] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194 and the wireless communication module 160.

[0162] 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.

[0163] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0164] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0165] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0166] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0167] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0168] 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.

[0169] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.

[0170] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0171] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0172] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0173] 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.

[0174] The audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals.

[0175] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0176] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0177] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C.

[0178] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0179] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.

[0180] The touch sensor 180B is also called a "touch panel". The touch sensor 180B can be arranged on the display screen 194, and the touch sensor 180B and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180B 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 180B can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0181] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0182] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting the SIM card interface 195 or pulling the SIM card interface 195 out. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. Each SIM card can correspond to a phone number.

[0183] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0184] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0185] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0186] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A communication method, characterized in that: The communication method is applied to a first electronic device, and the method includes: The first electronic device receives a first operation, where the first operation is used to dial a first telephone number of a second electronic device, or the first electronic device receives a first incoming call notification, where the first incoming call notification is used to indicate an incoming call to the first telephone number; When the first electronic device and the second electronic device are connected to a call, the first electronic device and the second electronic device establish a first data channel and a second data channel, wherein the first data channel is a data channel based on a cellular network, and the second data channel is a data channel based on wireless fidelity WiFi; The first electronic device sends a first call data packet to the second electronic device through the first data channel; When the call quality is abnormal when the first electronic device transmits a call data packet to the second electronic device in the first data channel, the first electronic device sends a second call data packet to the second electronic device through the first data channel, and sends the second call data packet to the second electronic device through the second data channel.

2. The method according to claim 1, characterized in that Before the first electronic device sends the second call data packet to the second electronic device through the first data channel and sends the second call data packet to the second electronic device through the second data channel, the method further includes: The first electronic device detects that an uplink packet loss rate of a Packet Data Convergence Protocol (PDCP) packet corresponding to the call data packet transmitted in the first data channel exceeds a first threshold, or, The first electronic device receives a first instruction from the second electronic device, where the first instruction is used to instruct the first electronic device to transmit a call data packet through the first data channel and the second data channel, or, The first electronic device detects that one or more of the plurality of signal quality parameters of the first data channel do not exceed corresponding thresholds.

3. The method according to claim 1 or 2, characterized in that: The method also includes: when the call quality is abnormal when the second electronic device transmits a call data packet to the first electronic device in the first data channel, the first electronic device receives a third call data packet from the second electronic device through the first data channel, and receives a fourth call data packet from the second electronic device through the second data channel, and the third call data packet and the fourth call data packet correspond to the same call content.

4. The method according to claim 3, characterized in that Before the first electronic device receives the third call data packet from the second electronic device through the first data channel and receives the fourth call data packet from the second electronic device through the second data channel, the method further includes: The first electronic device detects that a downlink packet loss rate of a PDCP packet corresponding to the call data packet transmitted in the first data channel exceeds a second threshold, or the first electronic device detects that one or more of a plurality of signal quality parameters of the first data channel do not exceed their corresponding thresholds; The first electronic device sends a second instruction to the second electronic device, where the second instruction is used to instruct the second electronic device to transmit a call data packet through the first data channel and the second data channel.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When the call quality when the first electronic device transmits the call data packet to the second electronic device in the first data channel returns to normal, the first electronic device transmits the call data packet to the second electronic device only through the first data channel.

6. The method according to claim 5, characterized in that Before the first electronic device transmits the call data packet to the second electronic device only through the first data channel, the method further includes: The first electronic device detects that the uplink packet loss rate of the PDCP packet corresponding to the call data packet transmitted in the first data channel does not exceed a third threshold, or, The first electronic device receives a third instruction from the second electronic device, wherein the third instruction is used to instruct the first electronic device to transmit a call data packet only through the first data channel, or, The first electronic device detects that multiple signal quality parameters of the first data channel all exceed their corresponding thresholds.

7. The method according to any one of claims 1 to 6, characterized in that The method also includes: when the call quality when the second electronic device transmits a call data packet to the first electronic device in the first data channel returns to normal, the first electronic device only receives the call data packet from the second electronic device through the first data channel.

8. The method according to claim 7, characterized in that Before the first electronic device receives the call data packet from the second electronic device only through the first data channel, the method further includes: The first electronic device detects that a downlink packet loss rate of a PDCP packet corresponding to the call data packet transmitted in the first data channel does not exceed a fourth threshold, or the first electronic device detects that multiple signal quality parameters of the first data channel all exceed their corresponding thresholds; The first electronic device sends a fourth instruction to the second electronic device, where the fourth instruction is used to instruct the second electronic device to transmit call data packets only through the first data channel.

9. The method according to any one of claims 1 to 8, characterized in that The plurality of signal quality parameters include a reference signal strength RSRP, a reference signal quality RSRQ and a signal-to-noise ratio SNR.

10. The method according to any one of claims 1 to 9, characterized in that The second data channel is a data channel based on a point-to-point P2P connection or a data channel based on a relay server.

11. An electronic device, characterized in that: The electronic device comprises: a memory and a processor coupled to the memory; the memory stores a computer program, and when the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 10.

12. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • System and device for assisting link to compensate call, and chip

    CN113395785A

  • Method for improving voice call quality

    CN114980152A

  • System, device and chip for assisting link to compensate conversation

    CN116390044A

  • P2P crossing method and device and storage medium

    CN116708358A

  • Data transmission method and apparatus

    EP3614786A1