CN114980152A - Method for improving voice call quality - Google Patents

Method for improving voice call quality Download PDF

Info

Publication number
CN114980152A
CN114980152A CN202110218667.9A CN202110218667A CN114980152A CN 114980152 A CN114980152 A CN 114980152A CN 202110218667 A CN202110218667 A CN 202110218667A CN 114980152 A CN114980152 A CN 114980152A
Authority
CN
China
Prior art keywords
electronic device
network
voice
downlink
uplink
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110218667.9A
Other languages
Chinese (zh)
Inventor
郑文文
姜印清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110218667.9A priority Critical patent/CN114980152A/en
Publication of CN114980152A publication Critical patent/CN114980152A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method for improving voice call quality. The method comprises the following steps: the first electronic equipment and the second electronic equipment establish an ims voice call. The first electronic equipment sends a voice packet to the second electronic equipment through an uplink, and receives the voice packet sent by the second electronic equipment through a downlink. If the ratio of the number of voice packets received by the first electronic device through the downlink within the first time threshold to the predetermined number of voice packets is smaller than a first preset value, the first electronic device determines that the call quality is poor. And then, if the first electronic device determines that the packet loss rate of the voice packet of the uplink is greater than a second preset value or the receiving rate of the voice packet of the downlink is less than a fourth preset value, the first electronic device determines that the call quality is poor due to network abnormality. Thus, the first electronic device can determine that the call quality is poor due to a network problem.

Description

Method for improving voice call quality
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for improving voice call quality.
Background
Voice over long-term evolution (VoLTE) is a high-speed wireless communication standard for mobile phones and data terminals. Based on an IP Multimedia Subsystem (IMS), the LTE uses configuration files that are tailored to the control plane, the media plane for sip signaling and voice services, and the udp/IP protocol, so that voice services (control and media planes) are transmitted as data streams in the LTE data bearer network without maintaining and relying on the traditional circuit-switched voice network. The vonr (voice over new radio), VoWiFi and VoLTE processing implementation mechanisms are similar, and all data interaction is respectively on the NR data carrying network and the WiFi data carrying network.
When two electronic devices establish a voice call through a VoLTE network or a VoNR network or a VoWiFi network, the call quality of the electronic device on one side is poor. Currently, in one aspect, an electronic device improves call quality by reducing the transmission rate of voice packets at a local terminal or requesting a device at an opposite terminal to reduce the transmission rate of voice packets. On the other hand, the electronic device analyzes whether the media parameter format of the received voice packet is consistent with the preset media parameter format, if not, the electronic device judges that the voice call quality is not good due to the media parameter format error of the voice packet, and the electronic device improves the call quality by renegotiating the media parameter with the electronic device at the opposite end.
However, none of the above methods can determine that the call quality is poor due to a network problem.
Disclosure of Invention
The application provides a method for improving voice call quality, which realizes that electronic equipment adopts all-around detection measures to detect the problem of poor call quality and adopts a response strategy to solve the call quality problem, and improves user experience.
In a first aspect, the present application provides a method for improving voice call quality, including a first electronic device, a first network device and a second electronic device, where the first network device provides a first network for a first service area, and the method includes: the first electronic equipment establishes an ims voice call with the second electronic equipment through the first network, the first electronic equipment sends a voice packet to the second electronic equipment through a first uplink, and the first electronic equipment receives the voice packet sent by the second electronic equipment through a first downlink; if the first electronic device determines that the network of the first uplink is abnormal or the first electronic device determines that the network of the first downlink is abnormal, the first electronic device determines that the communication quality between the first electronic device and the second electronic device is poor due to the first network abnormality. The method can judge that the call quality caused by the network problem is not good, and adopt corresponding measures to improve the call quality and improve the user experience.
With reference to the first aspect, in a possible implementation manner, when the first network is a VoNR network or a VoLTE network, the determining, by the first electronic device, that the network abnormality of the first uplink is determined specifically includes: the first electronic device determines that the first electronic device sends the number of voice packets and discards the number of voice packets through the first uplink within a second time threshold; the first electronic device calculating a ratio of the number of dropped voice packets to the number of sent voice packets; and if the ratio of the number of the discarded voice packets to the number of the sent voice packets is greater than a second preset value, the first electronic equipment judges that the network of the first uplink is abnormal.
With reference to the first aspect, in a possible implementation manner, when the first network is the VoWiFi network, the determining, by the first electronic device, that the network of the first uplink is abnormal specifically includes: the first electronic device establishing a second uplink with the first network device; the first electronic device sends a connection establishment request to the first network device, and if the first electronic device does not receive a first response message of the first network device within a third time threshold, the first electronic device judges that the network of the first uplink is abnormal; if the first electronic device receives the first response message within the third time threshold, the first electronic device determines the number of voice packets received within a fourth time threshold, wherein the number of voice packets is sent by the first network device; and the first electronic device calculates the ratio of the number of the voice packets received from the first network device to the number of preset voice packets within the fourth time threshold, and if the ratio is smaller than a third preset value, the first electronic device determines that the network of the first uplink is abnormal.
With reference to the first aspect, in a possible implementation manner, the determining, by the first electronic device, that the network abnormality of the first downlink specifically includes: the first electronic device establishing a second downlink with the first network device; the first electronic device sends a connection establishment request to the first network device, and if the first electronic device does not receive a second response message of the first network device within a fifth time threshold, the first electronic device judges that the network of the first downlink is abnormal; if the first electronic device receives the second response message within the fifth time threshold, the first electronic device determines that the number of voice packets sent by the first network device is received within a sixth time threshold; and the first electronic device calculates the ratio of the number of the voice packets received from the first network device to the number of preset voice packets within the sixth time threshold, and if the ratio is smaller than a fourth preset value, the first electronic device determines that the network of the first downlink is abnormal.
With reference to the first aspect, in a possible implementation manner, when the first network is a VoNR network or a VoLTE network, after the first electronic device determines that the network of the first uplink is abnormal or the network of the first downlink is abnormal, the method further includes: the first electronic device switches the first network of the first service area to a second network of the first service area through the first network device, or the first electronic device switches the first network of the first service area to the first network of a second service area through the first network device, or the first electronic device switches the first network of the first service area to a third network; wherein the first network, the second network, and the third network are different.
With reference to the first aspect, in a possible implementation manner, when the first network is the volr network, the second network is the VoLTE network, and the third network is a VoWiFi network;
when the first network is the VoLTE network, the second network is the VoNR network, and the third network is the VoWiFi network.
With reference to the first aspect, in a possible implementation manner, when the first network is the VoWiFi network, after the first electronic device determines that the network of the first uplink is abnormal or the network of the first downlink is abnormal, the method further includes: the first electronic device switches the first network of the first service area to a second network of the first service area, the second network being a VoNR network or a VoLTE network.
With reference to the first aspect, in a possible implementation manner, after the first electronic device determines that the network of the first uplink is normal and the first electronic device determines that the network of the first downlink is normal, the method further includes: the first electronic judges whether the media parameter format of the first voice packet received through the first downlink is consistent with a preset media parameter format; if the media parameter format of the first voice packet is not consistent with the preset media parameter format, the first electronic device and the second electronic device communicate by adopting the media parameter format after renegotiation.
With reference to the first aspect, in a possible implementation manner, after the first electronic device determines that a media parameter format of the received first voice packet is consistent with the preset media parameter format, the method further includes: the first electronic device decreases the transmission rate of the first uplink voice packet, or the first electronic device sends request information to the second electronic device, where the request information is used to request the second electronic device to decrease the transmission rate of the first downlink voice packet.
With reference to the first aspect, in a possible implementation manner, the format of the media parameter after renegotiation is consistent with the preset format of the media parameter or the format of the media parameter after renegotiation is inconsistent with the preset format of the media parameter.
With reference to the first aspect, in a possible implementation manner, the media parameter may include any one or more of the following: coding type of voice packet, coding rate of voice packet, media channel parameter.
In a second aspect, the present application provides an electronic device comprising one or more processors, one or more memories; the one or more memories are coupled to the one or more processors and the one or more memories are configured to store computer program code comprising computer instructions that are invoked by the one or more processors to cause the electronic device to perform a method for improving voice call quality as provided by any one of the possible implementations of the first aspect.
In a third aspect, the present application provides a computer storage medium including instructions, which when executed on a computer, cause the computer to perform a method for improving voice call quality as provided in any one of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic architecture diagram of a communication system 10 according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a network device 300 according to an embodiment of the present application;
fig. 5 is a flowchart of a method for determining whether an uplink network is abnormal by the electronic device 100 according to an embodiment of the present application;
fig. 6 is a flowchart of a method for determining whether a network of a downlink is abnormal by the electronic device 100 according to an embodiment of the present application;
fig. 7 is a flowchart of another method for determining whether an uplink network is abnormal by the electronic device 100 according to an embodiment of the present application;
fig. 8 is a flowchart of another method for determining whether a network of a downlink is abnormal by the electronic device 100 according to an embodiment of the present application;
fig. 9 is a flowchart of a method for determining whether an uplink network is abnormal by the electronic device 100 according to an embodiment of the present application;
fig. 10 is a flowchart of a method for determining whether a downlink network is abnormal by the electronic device 100 according to an embodiment of the present application;
fig. 11 is a flowchart of a method for improving voice call quality according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present application will be described in detail and removed with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
To facilitate understanding of the present application, first, a chinese explanation corresponding to english abbreviations referred to in the following embodiments of the present application will be described.
Figure BDA0002954979080000041
Figure BDA0002954979080000051
As shown in fig. 1, fig. 1 illustrates an architecture diagram of a communication system 10 provided in an embodiment of the present application.
As shown in fig. 1, there are three access network devices near the electronic device 100, which are a 5G base station 301, a 4G base station 304, and a WIFI access network device 307.
The 5G base station 301 is a next generation base station (gNB) in the 5G network. Electronic device 100 may connect to 5G base station 301 and communicate with 5G base station 301 using a New Radio (NR) access technology. In other words, the electronic device 100 and the 5G base station 301 communicate through the NR link. As shown in fig. 1, a 5G base station 301 is connected to a 5G core network (5 GC)302, and the 5G base station 301 and the 5GC 302 form a 5G system (5G system, 5 GS). The 5GS is connected to the IMS 303.
The 5GC 302 is used to exchange, forward, splice, route data. Network elements in 5GC 302 are functional virtual units that may include, but are not limited to: a unit (AMF) for access and mobility management functions, a unit (SMF) for session management functions, a network element (UDM) for unified data management, and the like.
The IMS303 manages IP voice packets into which multimedia data such as voice and video are packetized, distinguishes signaling portions and multimedia data portions of the IP voice packets, and transmits the multimedia data portions of the IP voice packets between the electronic device 100 and a called terminal of a call thereof, thereby providing audio and video services to the electronic device 100. The IMS303 may mainly include a Call Session Control Function (CSCF) and a Home Subscriber Server (HSS). The CSCF is used to control signaling, authentication, coordinate with other network entities to control sessions, etc. in the multimedia call session. The HSS is used to manage user data.
Understandably, since the 5GS is connected to the IMS303, the 5GS can package the multimedia data in the process of initiating a call and communicating with the called terminal of the electronic device 100 as an IP voice packet, and transmit the IP voice packet to the other terminal through the IMS 303. That is, the 5GS can provide IMS-based audio video services over circuit switched (PS) sessions, i.e., the 5GS supports VoNR. The V o nr means that control plane signaling (imssignling) and user plane data (IMS traffic) involved in a call process of two or more electronic devices are both packaged into IP voice packets, and the IP voice packets are transmitted between the electronic devices through the 5GS and the IMS 303. The IP voice packets are transported at the network layer.
The 4G base station 304 is an evolved Node B (eNB) in a 4G/LTE network. The electronic device 100 may be connected to the 4G base station 304 and communicate with the 4G base station 304 using an Orthogonal Frequency Division Multiplexing (OFDM) air interface technology. In other words, the electronic device 100 and the 4G base station 304 communicate over an LTE link. As shown in fig. 1, the 4G base station 304 is connected to a 4G core (EPC) 305, and the 4G base station 304 and the EPC305 form a 4G system (EPS). The EPS connects to the IMS 306.
The EPC305 mainly includes the following network elements: a Mobility Management Entity (MME), a Serving Gateway (SGW), a packet data network gateway (PGW), a Home Subscriber Server (HSS), an application server, and the like. The main functions of the MME include access control, mobility management, attach and detach, session management (e.g., establishment, modification, and release of bearers), and the like. SGW is mainly used for routing and forwarding voice packets. The main functions of the PGW include a user-based packet filtering function, a lawful interception function IP address assignment function, and the like. The HSS is used to store user subscription information, subscription data of a user, location information of a mobile user, and the like.
The structure and function of the IMS306 are similar to those of the IMS303, and reference is made to the description relating to the IMS 303. The IMS306 and the IMS303 may be the same IMS or different IMS, which is not limited in this embodiment of the present invention.
Understandably, since the EPS is connected to the IMS306, the EPS may package multimedia data in a process of initiating a call and communicating to a called terminal of the call by the electronic device 100 into IP voice packets, and transmit the IP voice packets to the called terminal of the call through the IMS 306. That is, the EPS is capable of providing IMS-based audio video services over PS sessions, i.e., the EPS306 supports VoLTE. VoLTE means that control plane signaling and user plane data involved in a call process of two or more electronic devices are both packaged into IP voice packets, and these IP voice packets are transmitted between the electronic devices through EPS and IMS 306.
The electronic device 100 may connect to the WiFi access network device 307 and communicate with the WiFi access network device 307 over a WiFi link. As shown in fig. 1, a WiFi access network device 307 is connected to a WiFi core network 308, and the WiFi access network device 307 and the WiFi core network 308 form a WiFi system. The WiFi system is connected to the IMS 309.
The IMS309 is similar in structure and function to the IMS303 and reference is made to the description relating to the IMS 303. The IMS309 and the IMS303 may be the same IMS or different IMS, which is not limited in this embodiment of the present application.
Referring to fig. 1, the communication system 10 may also include an electronic device 200 and a network 20. The electronic device 200 is connected to the network 20. The network 20 is connected to an IMS303, an IMS306, and an IMS 309. The network 20 may include, but is not limited to, a WiFi network, an LTE network, a 5G SA network, an IMS or Public Switched Telephone Network (PSTN), and the like, which is not limited in the embodiment of the present application. The signaling and data received or sent by the electronic device 200 are transmitted through the network 20. For simplicity of description, the following embodiments do not describe the process of transmitting signaling and data by the network 20 again.
It will be appreciated that the 5G base station 301 may operate with different transmit and receive capabilities, thereby creating service areas of different sizes. As shown in fig. 1, service area 1 is a service area created by 5G base station 301.
It will be appreciated that the 4G base stations 304 may operate with different transmit and receive capabilities, thereby creating service areas of different sizes. As shown in fig. 1, service area 2 is the service area created by 4G base station 304.
It will be appreciated that the WiFi access network device 307 may operate with different transmit and receive capabilities, thereby creating service areas of different sizes. As shown in fig. 1, service area 2 is also a service area created for WiFi access network device 307.
As can be seen from fig. 1, the electronic device 100 is located in both the service area 1 and the service area 2.
The following embodiments will describe the IMS call method provided in the embodiments of the present application by taking the electronic device 100 as an example to initiate a call to the electronic device 200.
In an embodiment of the present application, after a call initiated by the electronic device 100 to the electronic device 200 using the VoNR network fails, the electronic device 100 may initiate a call to the electronic device 200 again using the VoLTE network, and after a call initiated by the electronic device 100 to the electronic device 200 using the VoLTE network fails, the electronic device 100 may initiate a call to the electronic device 200 again using the VoWiFi network.
VoNR means that during a call, 5GS carries call data. The electronic device 100 calling the electronic device 200 through the VoNR network means that the electronic device 100 requests to pack and transmit control plane signaling (IMS signaling) and user plane data (IMS traffic) involved in a call between the electronic device 100 and the electronic device 200 into IP voice packets through the 5GS and the IMS 303. In this case, the service data and the voice data related to the electronic device 100 are transmitted in the form of voice over IP packets.
VoLTE refers to that the EPS network carries call data during a call. The electronic device 100 calling the electronic device 200 through the VoLTE network means that the electronic device 100 requests to pack and transmit control plane signaling (IMS signaling) and user plane data (IMS traffic) involved in a call process between the electronic device 100 and the electronic device 200 into an IP voice packet through the EPS and the IMS 306. In this case, the service data and the voice data related to the electronic device 100 are transmitted in the form of voice over IP packets.
VoWiFi refers to the fact that call data are carried by a WiFi system in the call process. The electronic device 100 calling the electronic device 200 through the WiFi network means that the electronic device 100 requests to pack and transmit control plane signaling (IMS signaling) and user plane data (IMS traffic) involved in the conversation between the electronic device 100 and the electronic device 200 into an IP voice packet through the WiFi system and the IMS 309. In this case, the service data and the voice data related to the electronic device 100 are transmitted in the form of voice over IP packets.
Fig. 2 shows a schematic structural diagram of the electronic device 100.
The following describes an embodiment specifically by taking the electronic device 100 as an example. The device types of the electronic device 100 may include a mobile phone, a television, a tablet computer, a speaker, a watch, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a Personal Digital Assistant (PDA), an Augmented Reality (AR)/Virtual Reality (VR) device, etc. The embodiment of the present application does not particularly limit the type of the electronic device 100.
It should be understood that the electronic device 100 shown in fig. 2 is merely an example, and that the electronic device 100 may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. The various components shown in the figures 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.
The electronic device 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (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. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, a bus or Universal Serial Bus (USB) interface, and the like.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to implement the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as the display screen 194, the camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. Processor 110 and display screen 194 communicate via a DSI interface to implement display functions of electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used 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 charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication 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), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (WiFi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, 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).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an 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 alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability 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. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into a sound signal. When the electronic apparatus 100 receives a call or voice information, it is possible to receive voice by placing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending voice information, the user can input a voice signal into the microphone 170C by uttering a voice signal by the mouth of the user near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for identifying the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone block vibrated by the sound part obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so that the heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
It should be noted that, please refer to the description of the hardware structure of the electronic device 100 in fig. 2 for the hardware structure of the electronic device 200, which is not described herein again.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100.
Fig. 3 is a block diagram of the software configuration of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions for the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Please refer to the description of the software structure of the electronic device 100 in fig. 3 for the software structure of the electronic device 200, which is not described herein again.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a network device 300 according to an embodiment of the present application. The network device 300 may be the 5G base station 301, the 4G base station 304, the WiFi access network device 307 shown in fig. 1.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a network device 300 according to an embodiment of the present application. Network device 300 may include: network device processor 301, memory 302, communication interface 303, transmitter 305, receiver 306, coupler 307, and antenna 308. These components may be connected by a bus 304 or otherwise, as illustrated in FIG. 4 by a bus connection. Wherein:
the communication interface 303 may be used for the network device 300 to communicate with other communication devices, such as terminal devices or other network devices. Specifically, the communication interface 303 may be a 5G or other communication interface. Not limited to wireless communication interfaces, network device 300 may also be configured with a wired communication interface 303 to support wired communication, e.g., a backhaul link between one network device 300 and other network devices may be a wired communication connection.
In some embodiments of the present application, the transmitter 305 and the receiver 306 may be considered as one wireless modem. The transmitter 305 may be used to transmit signals output by the network device processor 301. Receiver 306 may be used to receive signals. In the network device 300, the number of the transmitters 305 and the receivers 306 may be one or more. Antenna 308 may be used to convert electromagnetic energy in transmission line to electromagnetic wave in free space or vice versa. Coupler 307 may be used to multiplex the mobile communications signal to a plurality of receivers 306. It is to be appreciated that the antenna 308 of the network device can be implemented as a massive antenna array.
Memory 302 is coupled to network device processor 301 for storing various software programs and/or sets of instructions. In particular, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
The memory 302 may store an operating system (hereinafter, referred to as a system), such as an embedded operating system like uCOS, VxWorks, RTLinux, etc. The memory 302 may also store a network communication program that may be used to communicate with one or more additional devices, one or more electronic devices, one or more network devices.
In embodiments of the present application, the network device processor 301 may be configured to read and execute computer readable instructions. Specifically, the network device processor 301 may be configured to call a program stored in the memory 302, for example, an implementation program of the network identifier display method provided in one or more embodiments of the present application on the network device 300 side, and execute instructions contained in the program.
It should be noted that the network device 300 shown in fig. 4 is only one implementation manner of the embodiment of the present application, and in practical applications, the network device 300 may further include more or less components, which is not limited herein.
The following embodiments of the present application provide a method for improving voice call quality. The method comprises the following steps: the first electronic equipment sends a voice packet to the second electronic equipment through an uplink, and receives the voice packet sent by the second electronic equipment through a downlink. If the ratio of the number of voice packets received by the first electronic device through the downlink within the first time threshold to the predetermined number of voice packets is smaller than a first preset value, the first electronic device determines that the call quality is poor. And then, if the first electronic device determines that the packet loss rate of the voice packet of the uplink is greater than a second preset value or the receiving rate of the voice packet of the downlink is less than a fourth preset value, the first electronic device determines that the call quality is poor due to network abnormality. Thus, the first electronic device can determine that the call quality is poor due to a network problem.
The application is not limited to the electronic device 100 and the electronic device 200 establishing a voice call with the electronic device 200 through a VoLTE network or a VoNR network or a VoWiFi network. After the electronic device 100 and the electronic device 200 adopt other networks to establish the ims voice call, which falls within the protection scope of the present application, the present application does not limit the manner in which the electronic device 100 and the electronic device 200 establish the ims voice call.
In the following, the embodiment of the present application takes the example that the electronic device 100 and the electronic device 200 establish an ims voice call with the electronic device 200 through a VoLTE network, a VoNR network, or a VoWiFi network.
When the electronic apparatus 100 establishes a voice call with the electronic apparatus 200 through the VoLTE network, the electronic apparatus 100 side voice call quality is not good (e.g., silent condition, etc.). Firstly, the electronic device may detect whether an uplink is abnormal, if the uplink is abnormal, the electronic device 100 may be connected to a VoLTE network of another service area through a 4G base station, or when there is a VoWiFi network or a VoNR network in a current service area, the electronic device 100 switches the VoLTE network to the VoWiFi network or the electronic device 100 switches the VoLTE network to the VoWiFi network through the 4G base station; if the uplink is normal, the electronic device 100 may detect whether the downlink is abnormal, and if the downlink is abnormal, the electronic device 100 may connect to the VoLTE network in another service area through the 4G base station, or the VoWiFi network or the VoNR network exists in the current service area, the electronic device 100 may switch the VoLTE network to the volga network or the electronic device 100 may switch the VoLTE network to the VoWiFi network through the 4G base station. If the downlink is also normal, the electronic device 100 analyzes whether the voice packet received in the downlink is normal, and if the electronic device 100 determines that the coding type and/or rate of the received voice packet is not consistent with the coding type and/or rate negotiated with the electronic device 200 when the connection is initially established, the electronic device 100 negotiates the coding type and/or rate of the voice packet with the electronic device 200 in an sip renegotiation manner, and codes and transmits the voice packet according to the coding type and/or rate after renegotiation.
When the electronic apparatus 100 establishes a voice call with the electronic apparatus 200 through the VoNR network, the voice call quality on the side of the electronic apparatus 100 is poor (e.g., silent condition, etc.). Firstly, the electronic device detects whether an uplink is abnormal, if the uplink is abnormal, the electronic device 100 may be connected to a VoNR network of another service area through a 5G base station, or when there is a VoWiFi network or a VoLTE network in a current service area, the electronic device 100 switches the VoNR network to the VoWiFi network through the 5G base station, or the electronic device 100 switches the VoNR network to the VoWiFi network; if the uplink is normal, the electronic device 100 may detect whether the downlink is abnormal, and if the downlink is abnormal, the electronic device 100 may connect to the VoNR network of another service area through the 5G base station, or when the current service area has the VoWiFi network or the VoLTE network, the electronic device 100 may switch the VoNR network to the VoWiFi network through the 5G base station, or the electronic device 100 switches the VoNR network to the VoWiFi network. If the downlink is also normal, the electronic device 100 analyzes whether the voice packet received in the downlink is normal, and if the electronic device 100 determines that the coding type and/or rate of the received voice packet is not consistent with the coding type and/or rate negotiated with the electronic device 200 when the connection is initially established, the electronic device 100 negotiates the coding type and/or rate of the voice packet with the electronic device 200 in an sip renegotiation manner, and transmits the voice packet with the coding type and/or rate after renegotiation. In this way, the notification quality of the electronic apparatus 100 and the electronic apparatus 200 can be improved.
When the electronic apparatus 100 establishes a voice call with the electronic apparatus 200 through the VoWiFi network, the voice call quality on the side of the electronic apparatus 100 is poor (e.g., silent condition, etc.). Firstly, the electronic device will detect whether the uplink is abnormal, and if the current service area has a VoLTE network or a VoNR network, the electronic device 100 switches the volga network to the VoLTE network or the VoNR network; if the uplink is normal, the electronic device 100 may detect whether the downlink is abnormal, and if the downlink is abnormal, if the current service area has the VoLTE network or the VoNR network, the electronic device 100 switches the VoWiFi network to the VoLTE network or the VoNR network. If the downlink is also normal, the electronic device 100 analyzes whether the voice packet received in the downlink is normal, and if the electronic device 100 determines that the coding type and/or rate of the received voice packet is not consistent with the coding type and/or rate negotiated with the electronic device 200 when the connection is initially established, the electronic device 100 negotiates the coding type and/or rate of the voice packet with the electronic device 200 by means of sip renegotiation, and transmits the voice packet with the coding type and/or rate after renegotiation.
In this way, the electronic device 100 can determine the voice call quality problem according to the uplink, the downlink and the received voice packet, and take corresponding measures to solve the voice quality problem. Thus, the call quality between the electronic apparatus 100 and the electronic apparatus 200 can be improved.
Before the electronic device 100 establishes a voice call with the electronic device 200 through the VoLTE network, the VoNR network, or the VoWiFi network, the electronic device 100 and the electronic device 200 need to negotiate media parameters, which include but are not limited to a coding type of voice data, a coding rate of voice packets, a PT value, and a media channel parameter.
Specifically, before the electronic device 100 establishes a voice call with the electronic device 200, the electronic device 100 uses the SIP protocol as a signaling negotiation protocol, and completes media parameter negotiation using the SDP protocol in cooperation with the SIP protocol. The electronic device 100 completes media negotiation by using the offer/answer mechanism through the SIP protocol, that is, the electronic device 100 transmits formats of all supported media parameters to the electronic device 200, and the electronic device 200 receives the formats of all supported media parameters transmitted by the electronic device 100 and selects one or more formats of media parameters supported by the electronic device 200 to transmit to the electronic device 100. After receiving the information fed back by the electronic device 200, the electronic device 100 establishes a communication connection according to the format of the media parameters supported by the electronic device 200.
Illustratively, the partial media parameters are described as follows:
c=IN IP6 XX09:XXXX:XX98
c denotes media link state information of the electronic device 100. The structure of the media link status information is < network type > < address type > < connection type >. Where "IN" indicates that the currently defined network type is internet, and "IP 6" indicates that the address type is IP 6.
b=AS:49
The format of b is < modifier >: < bandwidth value >. And b, when the modifier is AS, the bandwidth is 49.
b=RR:1837
The format of b is < modifier >: < bandwidth value >. As shown in b, when the modifier is RR, the bandwidth takes 1837.
b=RS:612
The format of b is < modifier >: < bandwidth value >. As shown in b, when the modifier is RS, the bandwidth is 612.
m=audio31002RTP/AVP107 101
The format of m is < media name > < port number > < transport protocol > < media type list >, which here means that the media name is audio (audio), the port number is 31002, the transport protocol is RTP/AVP, and the media payload type (PT value) support 107 and 101.
a=rtpmap:107AMR-WB/16000/1
The format of a is < payload type > < encoding name > < clock rate > < encoding parameter >. Where the RTP payload type is 107, the coding name is AMR-WB, the clock rate is 16000, and the coding parameter is 1.
The type is 1010-15.
a=ptime:20
a denotes a packet time, i.e., one packet time is 20 msec at maximum.
a=fmtp:107mode-change-capability=2;max-red=0
a denotes that the FMTP payload type is 107 and the code name is mode-change-capability ═ 2.
a=rtpmap:101telephone-event/16000
a denotes that the RTP payload type is 101, the code name is telephone-event, and the clock rate is 16000.
a=fmtp:101 0-15
a indicates that the FMTP load is 1010-15.
a represents a packet time. I.e. the number of allowed media milliseconds in a packet, e.g. the number of media milliseconds may be 20.
a=maxptime:240
a denotes a maximum packet time. I.e. the maximum number of milliseconds of allowed media in a packet, e.g. 240.
The above examples are illustrative of some media parameters and should not be construed as limiting.
First, it is described that after the electronic device 100 establishes a voice call with the electronic device 200 through the VoLTE network of the first service area (or the first cell), the call quality between the electronic device 100 and the electronic device 200 is poor, for example, there is no voice or jamming on the electronic device 100 side. The electronic device 100 will determine the voice call quality problem based on the uplink, the downlink and the received voice packet, and take corresponding measures to solve the voice quality problem.
The electronic device 100 determines a ratio of the number of the received voice packets to the predetermined number of the voice packets via the first downlink within the first time threshold, and if the ratio of the number of the received voice packets to the predetermined number of the voice packets is smaller than a first preset value, the electronic device 100 determines that the communication quality between the electronic device 100 and the electronic device 200 is poor.
First, the electronic device 100 may determine whether the uplink network is abnormal according to the packet congestion and packet discard rate of the PDCP layer voice packet.
Referring to fig. 5, fig. 5 is a flowchart of a method for determining whether an uplink network is abnormal by the electronic device 100.
S501, the electronic device 100 and the electronic device 200 establish an IP Multimedia System (IMS) voice call through the VoLTE network.
After the electronic device 100 and the electronic device 200 establish an IMS voice call connection through the VoLTE network, the electronic device 100 encodes and packages the acquired data into voice packets by using a negotiated encoding type (for example, a first encoding type), and then the electronic device 100 forms a transmission queue according to a generation sequence of the voice packets. After that, the electronic device 100 transmits the voice packets in the transmission queue to the 4G base station in the first service area through the uplink in the generation order, and the 4G base station in the first service area transmits the voice packets to the electronic device 200.
S502, the electronic device 100 detects whether a packet loss rate of the PDCP layer within the second time threshold is greater than a first preset value?
At an initial stage of establishing a call connection between the electronic device 100 and the electronic device 200, the electronic device 100 configures a corresponding discard timer (discard time) for each voice packet packed by the PDCP layer through RRC reconfiguration signaling.
The drop timer is used to assign a lifetime to each voice packet in the transmit queue that transmits the voice packet. If more voice packets than can be transmitted enter the transmit queue, the excess voice packets may be deleted if they are not transmitted to the 4G base stations of the first service area before their respective discard timers expire. When a voice packet is dropped in a transmission queue due to a drop timer, a gap is generated in voice data. For example, five consecutive voice packets of the data stream may be voice packet 1, voice packet 2, voice packet 3, voice packet 4, and voice packet 5 input to the transmission queue. For example, if the drop timer for voice packet 3 expires before voice packet 3 is transmitted from the transmission queue to the 4G base station of the first service area, voice packet 3 is dropped. Meanwhile, if voice packet 1, voice packet 2, voice packet 4, and voice packet 5 are all output from the transmission queue before their respective drop timers expire, four voice packets will be transmitted from the electronic device 100.
When the electronic device 100 starts to collect voice data, and encodes and packetizes the voice data according to the negotiated encoding type (e.g., the first encoding type) into a voice packet, the electronic device 100 generates a transmission sequence for the voice packet according to the generation order, and starts a discard timer (e.g., 2 seconds) corresponding to the voice packet from the voice packet entering the transmission queue. If the time from the beginning of the voice packet entering the transmission queue to the time of being transmitted is less than the time of the discard timer, the voice packet is successfully transmitted. If the time before the voice packet enters the transmission queue is longer than the time of the discard timer, the transmission time of the voice packet is over, and the electronic device 100 discards the voice packet.
S503, the electronic device 100 determines whether the packet loss ratio of the PDCP layer within the second time threshold is greater than the first preset value, and the electronic device 100 reports the inter-frequency measurement result to the RRC layer through the PDCP layer.
The electronic device 100 calculates a ratio of the number of dropped voice packets due to the timeout of the voice packet transmission time within the second time threshold (e.g., three seconds) to the number of successfully transmitted voice packets within the second time threshold (e.g., three seconds), and if the ratio is greater than a preset ratio, the electronic device 100 determines that the uplink network is abnormal.
After the electronic device 100 determines that the network of the uplink is abnormal, the electronic device 100 reports the network abnormality result of the uplink to the RRC layer through the PDCP layer.
S504, the RRC layer of the electronic device 100 receives the result of the bad network, the electronic device 100 reports the inter-frequency measurement result to the 4G base station through the RRC layer, the electronic device 100 switches the VoLTE network of the first service area to the VoLTE network of the second service area through the 4G base station, or the electronic device 100 reports the inter-system measurement result to the 4G base station through the RRC layer, and the electronic device 100 switches the VoLTE network of the first service area to the VoNR network of the first service area through the 4G base station, or the electronic device 100 switches the VoLTE network of the first service area to the VoWiFi network.
After receiving the network abnormal result of the uplink reported by the PDCP layer, the RRC layer can improve the network problem of the uplink according to any one of the following manners.
The first method is as follows: the electronic device 100 reports the inter-frequency measurement result to the 4G base station through the RRC layer, and if the first service area where the electronic device 100 is located has the VoNR network, the electronic device 100 switches the VoLTE network to the VoNR network through the 4G base station.
The second method comprises the following steps: the electronic device 100 reports the inter-system measurement result to the 4G base station through the RRC layer, and if the electronic device 100 is in the second service area at the same time, if the second service area has the VoLTE network, the electronic device 100 may switch the service area, that is, the electronic device switches the VoLTE network of the first service area to the VoLTE network of the second service area through the 4G base station.
The third method comprises the following steps: if the first service area where the electronic device 100 is located has the VoWiFi network, the electronic device 100 switches the VoLTE network to the VoWiFi network.
If the electronic device 100 determines that the uplink network is normal, the electronic device 100 determines whether the downlink network is abnormal.
As shown in fig. 6, fig. 6 is a flowchart of a method for determining whether a downlink network is abnormal by the electronic device 100.
S601, the electronic device 100 and the 4G base station establish a second downlink.
Specifically, first, the electronic device 100 establishes a new downlink (second downlink) with the 4G base station based on the original downlink (first downlink). The electronic device 100 establishes the second downlink according to the home address and the remote address of the first downlink.
S602, does the electronic device 100 initiate a connection request to the 4G base station through the second downlink, and whether a response message (second response message) from the 4G base station is received within a fifth time threshold (i?
After that, the electronic device 100 sends a connection request to the 4G base station, and if the electronic device 100 does not receive a response message from the 4G base station within the fifth time threshold, the connection fails, and the electronic device 100 executes S605. Specifically, the electronic device 100 sends a SYN message to the 4G base station, and meanwhile, the electronic device 100 initiates a timer with a certain time threshold (for example, 1.5 seconds). After the 4G base station receives the SYN message sent by the electronic device 100, the 4G base station responds to the SYN message sent by the electronic device 100, and the 4G base station sends an ACK message to the electronic device 100. If the electronic device 100 does not receive the ACK packet sent by the 4G base station within the fifth time threshold (e.g., 1.5 seconds), the connection between the electronic device 100 and the 4G base station fails, that is, the electronic device 100 determines that the network of the downlink is abnormal.
S603, after the electronic device 100 receives the response message of the 4G base station within the fifth time threshold, the electronic device 100 receives the voice packet sent by the 4G base station within the sixth time threshold, and determines the number of the received voice packets and the preset number of the voice packets to calculate the packet loss rate.
If the electronic device 100 receives the ACK packet sent by the 4G base station within the fifth time threshold (e.g., 1.5 seconds), the electronic device 100 and the 4G base station are successfully established. After the electronic device 100 and the 4G base station successfully establish the connection, the electronic device 100 and the 4G base station will send out packet probes to determine whether the downlink network is abnormal. Specifically, the electronic device and the 4G base station agree to send the sounding voice packet with a fixed size within a sixth time threshold (e.g. 3 seconds), that is, the 4G base station sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the sixth time threshold (e.g. 3 seconds). The electronic device 100 calculates a ratio of the number of the voice packets sent by the 4G base station to the fixed number of the sounding voice packets within the sixth time threshold, and if the ratio is smaller than a fourth preset value (or the packet loss ratio is greater than the preset value), the electronic device 100 determines that the network of the downlink is abnormal.
S604, if the electronic device 100 determines that the packet loss rate is greater than the preset value?
If the packet loss rate is greater than the preset value, the electronic device 100 executes S605.
S605, the RRC layer of the electronic device 100 receives the result of the bad network, the electronic device 100 reports the inter-frequency measurement result to the 4G base station through the RRC layer, the electronic device 100 switches the VoLTE network of the first service area to the VoLTE network of the second service area through the 4G base station, or the electronic device 100 reports the inter-system measurement result to the 4G base station through the RRC layer, and the electronic device 100 switches the VoLTE network of the first service area to the VoNR network of the first service area through the 4G base station, or the electronic device 100 switches the VoLTE network to the VoWiFi network.
If the electronic device 100 determines that the packet loss ratio is greater than the preset value, the electronic device 100 determines that the network of the downlink is abnormal. After the electronic device 100 determines the network abnormality of the downlink, the electronic device 100 may improve the network problem of the uplink according to any one of the following manners.
The first method is as follows: the electronic device 100 reports the inter-frequency measurement result to the 4G base station through the RRC layer, and if the first service area where the electronic device 100 is located has the VoNR network, the electronic device 100 switches the VoLTE network to the VoNR network through the 4G base station.
The second method comprises the following steps: the electronic device 100 reports the inter-system measurement result to the 4G base station through the RRC layer, and if the electronic device 100 is in the second service area at the same time, if the second service area has the VoLTE network, the electronic device 100 may switch the service area, that is, the electronic device switches the VoLTE network of the first service area to the VoLTE network of the second service area through the 4G base station.
The third method comprises the following steps: if the first service area where the electronic device 100 is located has the VoWiFi network, the electronic device 100 switches the VoLTE network to the VoWiFi network.
If the electronic device 100 determines that the packet loss ratio is smaller than the preset value, the electronic device 100 determines that the network of the downlink is normal.
If the electronic device determines that the uplink and downlink networks are both normal, the electronic device 100 detects the first voice packet received by the downlink, that is, the electronic device 100 decodes the received first voice packet, records the media parameter of the first voice packet, and if the media parameter of the first voice packet is not consistent with the negotiated media parameter, the electronic device 100 renegotiates the media parameter with the electronic device 200, thereby improving the communication quality.
When the electronic device 100 decodes the received first voice packet, the following situation may occur in which the call quality is poor due to the problem of the first voice packet.
The first situation is as follows: the Payload Type (PT) value of the first voice packet is not consistent with the PT value of the negotiated voice packet.
Case two: the coding type of the first speech packet does not correspond to the coding type of the negotiated speech packet.
For example, the coding type of the first speech packet is AMR-NB, while the coding type of the negotiated speech packet is AMR-WB.
Case three: the coding rate of the first speech packet is not identical to the negotiated coding rate of the speech packet.
For example, the coding rate of the first speech packet is 23.85kbit/s, while the coding rate of the negotiated speech packet is 6.60 kbit/s-12.65 kbit/s.
Case four: the checksum (check sum) of the first voice packet is continuously 0 and the decoded voice packet cannot be used normally.
The present application only exemplifies some situations where the voice packet has an error, and may also include more situations, and the present application is not limited herein.
When the electronic device 100 determines that the media parameter of the first voice packet is not consistent with the negotiated media parameter, which results in poor call quality, the electronic device 100 may renegotiate the media parameter with the electronic device 200, and perform a call by using the renegotiated media parameter, so that the problem of voice quality due to a voice packet error may be solved.
Specifically, the electronic device 100 uses the SIP protocol as a signaling negotiation protocol, and uses the SDP protocol in cooperation with the SIP protocol to complete media parameter renegotiation. The electronic device 100 completes the media parameter renegotiation using the offer/answer mechanism through the SIP protocol.
Specifically, for the case one, the electronic device 100 may negotiate with the electronic device 200 using the PT value of the first voice packet or using a PT value different from the PT value of the first voice packet, and perform a call using the negotiated PT value.
In the second case, the electronic device 100 may negotiate with the electronic device 200 using the coding type of the first voice packet or using a coding type different from the coding type of the first voice packet, and use the coding type after negotiation to perform a call.
For example, the encoding type of the first voice packet is AMR-NB, and the electronic device 100 may negotiate with the electronic device 200 using the encoding type of AMR-NB and use the encoding type of AMR-NB for a call.
Alternatively, the coding type of the first voice packet is AMR-NB, and the electronic device 100 may adopt the coding type as AMR-WB and use the coding type as AMR-WB for conversation.
For the third case, the electronic device 100 may negotiate with the electronic device 200 using the coding rate of the first voice packet or using a coding rate different from the coding rate of the first voice packet, and perform a call using the negotiated coding rate.
For the fourth situation, the checksum of the first voice packet decoded by the electronic device 100 is 0, and the electronic device 100 renegotiates the checksum with the electronic device 200.
When the electronic device 100 determines that there is no problem in the quality of the voice packets received by the uplink network, the downlink network, and the downlink, the electronic device 100 may decrease the transmission rate of the voice packets of the segment, or the electronic device 100 may request the electronic device 200 to decrease the transmission rate of the voice packets, so as to adjust the voice call quality.
Next, it is described that after the electronic device 100 establishes a voice call with the electronic device 200 through the VoNR network of the first service area (or the first cell), the call quality between the electronic device 100 and the electronic device 200 is poor, for example, the electronic device 100 side has no voice or is stuck. The electronic device 100 will determine the voice call quality problem based on the uplink, the downlink and the received voice packet, and take corresponding measures to solve the voice quality problem.
If the ratio of the number of voice packets received by the electronic device 100 through the downlink within the first time threshold to the predetermined number of voice packets is smaller than the first preset value, the electronic device 100 determines that the call quality is not good.
First, the electronic device 100 may determine whether the uplink network is abnormal according to the packet congestion and packet discard rate of the PDCP layer voice packet.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for determining whether an uplink network is abnormal by the electronic device 100.
S701, the electronic device 100 and the electronic device 200 establish an IMS voice call through a VoNR network.
After the electronic device 100 and the electronic device 200 establish an IMS voice call connection through the VoNR network, the electronic device 100 encodes and packages the acquired data into voice packets by using a negotiated encoding type (for example, a first encoding type), and then the electronic device 100 forms a transmission queue according to a generation sequence of the voice packets. Then, the electronic device 100 transmits the voice packets in the transmission queue to the 5G base station in the first service area through the uplink in the generation order, and the 5G base station in the first service area transmits the voice packets to the electronic device 200.
S702, the electronic device 100 detects whether a packet loss rate of the PDCP layer within a second time threshold is greater than a first preset value?
At an initial stage of establishing a call connection between the electronic device 100 and the electronic device 200, the electronic device 100 configures a corresponding discard timer (discard time) for each voice packet packed by the PDCP layer through RRC reconfiguration signaling.
The drop timer is used to assign a lifetime to each voice packet in the transmit queue that transmits the voice packet. If more voice packets than can be transmitted enter the transmit queue, the excess voice packets may be deleted if they are not transmitted to the 5G base stations of the first service area before their respective discard timers expire. When a voice packet is dropped in a transmission queue due to a drop timer, a gap is generated in voice data. For example, five consecutive voice packets of the data stream may be voice packet 1, voice packet 2, voice packet 3, voice packet 4, and voice packet 5 input to the transmission queue. For example, if the drop timer for voice packet 3 expires before voice packet 3 is transmitted from the transmission queue to the 5G base station of the first service area, voice packet 3 is dropped. Meanwhile, if voice packet 1, voice packet 2, voice packet 4, and voice packet 5 are all output from the transmission queue before their respective drop timers expire, four voice packets will be transmitted from the electronic device 100.
When the electronic device 100 starts to collect voice data, and encodes and packetizes the voice data into a voice packet according to the negotiated encoding type (e.g., the first encoding type), the electronic device 100 generates a transmission sequence for the voice packet according to the generation order, and starts a discard timer (e.g., 2 seconds) corresponding to the voice packet from the voice packet entering the transmission queue. If the time from the beginning of the voice packet entering the transmission queue to the time of being transmitted is less than the time of the discard timer, the voice packet is successfully transmitted. If the time before the voice packet enters the transmission queue is longer than the time of the discard timer, the transmission time of the voice packet is over, and the electronic device 100 discards the voice packet.
S703, the electronic device 100 determines whether the packet loss ratio of the PDCP layer within the second time threshold is greater than the first preset value, and the electronic device 100 reports the inter-frequency measurement result to the RRC layer through the PDCP layer.
The electronic device 100 calculates a ratio of the number of dropped voice packets due to the timeout of the voice packet transmission time within the second time threshold (e.g., three seconds) to the number of successfully transmitted voice packets within the second time threshold (e.g., three seconds), and if the ratio is greater than the second preset value, the electronic device 100 determines that the uplink network is abnormal.
After the electronic device 100 determines that the network of the uplink is abnormal, the electronic device 100 reports the network abnormality result of the uplink to the RRC layer through the PDCP layer.
S704, the electronic device 100 reports the inter-frequency measurement result to the 5G base station through the RRC layer, the electronic device 100 switches the VoNR network of the first service area to the VoNR network of the second service area through the 5G base station, or the electronic device 100 reports the inter-system measurement result to the 5G base station through the RRC layer, the electronic device 100 switches the VoNR network of the first service area to the VoLTE network of the first service area through the 5G base station, or the electronic device 100 switches the VoNR network of the first service area to the VoWiFi network.
After receiving the network abnormal result of the uplink reported by the PDCP layer, the RRC layer can improve the network problem of the uplink according to any one of the following manners.
The method I comprises the following steps: the electronic device 100 reports the inter-system measurement result to the 5G base station through the RRC layer, and if the first service area where the electronic device 100 is located has the VoLTE network, the electronic device 100 switches the volr network to the VoLTE network through the 5G base station.
The second method comprises the following steps: the electronic device 100 reports the inter-frequency measurement result to the 5G base station through the RRC layer, and if the electronic device 100 is in the second service area at the same time, if the second service area has the VoNR network, the electronic device 100 may switch the service area, that is, the electronic device switches the VoNR network of the first service area to the VoNR network of the second service area through the 5G base station.
The third method comprises the following steps: if the first service area where the electronic device 100 is located has a VoWiFi network, the electronic device 100 switches the VoNR network to the VoWiFi network.
If the electronic device 100 determines that the uplink network is normal, the electronic device 100 determines whether the downlink network is abnormal.
As shown in fig. 8, fig. 8 is a flowchart of a method for determining whether a downlink network is abnormal by the electronic device 100.
S801, the electronic device 100 and the 5G base station establish a second downlink.
Specifically, first, the electronic device 100 establishes a new downlink (second downlink) with the 5G base station on the basis of the original downlink (first downlink). The electronic device 100 establishes the second downlink according to the home address and the remote address of the first downlink.
S802, the electronic device 100 initiates a connection request to the 5G base station through the second downlink, and determines whether a response message (second response message) of the 5G base station is received within a fifth time threshold?
Thereafter, the electronic device 100 sends a connection request to the 5G base station, and if the electronic device 100 does not receive the response message of the 5G base station, the connection fails, and the electronic device 100 executes S805. Specifically, the electronic device 100 sends a SYN message to the 5G base station, and at the same time, the electronic device 100 initiates a timer of a third time threshold (e.g., 1.5 seconds). After the 5G base station receives the SYN message sent by the electronic device 100, the 5G base station responds to the SYN message sent by the electronic device 100, and the 5G base station sends an ACK message to the electronic device 100. If the electronic device 100 does not receive the ACK packet sent by the 5G base station within the fifth time threshold (e.g., 1.5 seconds), the connection between the electronic device 100 and the 5G base station fails, that is, the electronic device 100 determines that the network of the downlink is abnormal.
S803, after the electronic device 100 receives the response message of the 5G base station within the fifth time threshold, the electronic device 100 receives the voice packet sent by the 5G base station within the sixth time threshold, and determines the number of the received voice packet and the preset number of the voice packets to calculate the packet loss rate.
If the electronic device 100 receives the ACK packet sent by the 5G base station within the fifth time threshold (e.g., 1.5 seconds), the electronic device 100 and the 5G base station are successfully established. After the electronic device 100 and the 5G base station successfully establish the connection, the electronic device 100 and the 5G base station will send a packet probe to determine whether the downlink network is abnormal. Specifically, the electronic device and the 5G base station agree to send the sounding voice packet with a fixed size within a sixth time threshold (e.g. 3 seconds), that is, the 5G base station sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the sixth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value or the ratio of the number of the voice packets sent by the 5G base station to the fixed number of the sounding voice packets is less than a fourth preset value, the electronic device 100 determines that the network of the downlink is abnormal.
S804, if the electronic device 100 determines that the packet loss rate is greater than the preset value?
If the packet loss rate is greater than the preset value, the electronic device 100 executes S805.
S805, the electronic device 100 reports the inter-frequency measurement result to the 5G base station through the RRC layer, the electronic device 100 switches the VoNR network of the first service area to the VoNR network of the second service area through the 5G base station, or the electronic device 100 reports the inter-system measurement result to the 5G base station through the RRC layer, the electronic device 100 switches the VoNR network of the first service area to the VoLTE network of the first service area through the 5G base station, or the electronic device 100 switches the VoNR network of the first service area to the VoWiFi network.
After the electronic device 100 determines the network abnormality of the downlink, the electronic device 100 may improve the network problem of the uplink according to any one of the following manners.
The first method is as follows: the electronic device 100 reports the inter-system measurement result to the 5G base station through the RRC layer, and if the first service area where the electronic device 100 is located has the VoLTE network, the electronic device 100 switches the volr network to the VoLTE network through the 5G base station.
The second method comprises the following steps: the electronic device 100 reports the inter-frequency measurement result to the 5G base station through the RRC layer, and if the electronic device 100 is in the second service area at the same time, if the second service area has the VoNR network, the electronic device 100 may switch the service area, that is, the electronic device 100 switches the VoNR network of the first service area to the VoNR network of the second service area through the 5G base station.
The third method comprises the following steps: if the first service area where the electronic device 100 is located has a VoWiFi network, the electronic device 100 switches the VoNR network of the first service area to the VoWiFi network.
If the electronic device 100 determines that the packet loss ratio is smaller than the preset value, the electronic device 100 determines that the network of the downlink is normal.
If the electronic device determines that the uplink and downlink networks are both normal, the electronic device 100 detects the first voice packet received by the downlink, that is, the electronic device 100 decodes the received first voice packet, records the media parameter of the first voice packet, and if the media parameter of the first voice packet is not consistent with the negotiated media parameter, the electronic device 100 renegotiates the media parameter with the electronic device 200, thereby improving the communication quality.
When the electronic device 100 decodes the received first voice packet, the following situation may occur in which the call quality is poor due to the problem of the first voice packet.
The first situation is as follows: the Payload Type (PT) value of the first voice packet is not consistent with the PT value of the negotiated voice packet.
Case two: the coding type of the first speech packet does not correspond to the coding type of the negotiated speech packet.
For example, the coding type of the first speech packet is AMR-NB, while the coding type of the negotiated speech packet is AMR-WB.
Case three: the coding rate of the first speech packet is not identical to the negotiated coding rate of the speech packet.
For example, the coding rate of the first speech packet is 23.85kbit/s, while the coding rate of the negotiated speech packet is 6.60 kbit/s-12.65 kbit/s.
Case four: the checksum (check sum) of the first voice packet is continuously 0 and the decoded voice packet cannot be used normally.
The present application only exemplifies some situations where the voice packet has an error, and may also include more situations, and the present application is not limited herein.
When the electronic device 100 determines that the media parameter of the first voice packet is not consistent with the negotiated media parameter, which results in poor call quality, the electronic device 100 may renegotiate the media parameter with the electronic device 200, and perform a call by using the renegotiated media parameter, so that the problem of voice quality due to a voice packet error may be solved.
Specifically, the electronic device 100 uses the SIP protocol as a signaling negotiation protocol, and uses the SDP protocol in cooperation with the SIP protocol to complete media parameter renegotiation. The electronic device 100 completes the media parameter renegotiation using the offer/answer mechanism through the SIP protocol.
Specifically, for the case one, the electronic device 100 may negotiate with the electronic device 200 using the PT value of the first voice packet or using a PT value different from the PT value of the first voice packet, and perform a call using the negotiated PT value.
For the second case, the electronic device 100 may negotiate with the electronic device 200 using the coding type of the first voice packet or using a coding type different from the coding type of the first voice packet, and perform a call using the coding type after negotiation.
For example, the encoding type of the first voice packet is AMR-NB, and the electronic device 100 may negotiate with the electronic device 200 using the encoding type of AMR-NB and use the encoding type of AMR-NB for a call.
Alternatively, the coding type of the first voice packet is AMR-NB, and the electronic device 100 may adopt the coding type as AMR-WB and use the coding type as AMR-WB for calling.
For the third case, the electronic device 100 may negotiate with the electronic device 200 using the coding rate of the first voice packet or using a coding rate different from the coding rate of the first voice packet, and perform a call using the negotiated coding rate.
For the fourth situation, the checksum of the first voice packet decoded by the electronic device 100 is 0, and the electronic device 100 renegotiates the checksum with the electronic device 200.
When the electronic apparatus 100 determines that there is no problem with the quality of the voice packet received by the uplink network, the downlink network, and the downlink, the electronic apparatus 100 may decrease the transmission rate of the voice packet of the segment, or the electronic apparatus 100 may request the electronic apparatus 200 to decrease the transmission rate of the voice packet, so as to adjust the voice call quality.
Next, it is described that after the electronic device 100 establishes a voice call with the electronic device 200 through the VoWiFi network in the first service area (or the first cell), the call quality between the electronic device 100 and the electronic device 200 is poor, for example, the electronic device 100 side has no voice or is stuck. The electronic device 100 will determine the voice call quality problem based on the uplink, the downlink and the received voice packet, and take corresponding measures to solve the voice quality problem.
If the ratio of the number of voice packets received by the electronic device 100 through the downlink within the first time threshold to the predetermined number of voice packets is smaller than the first preset value, the electronic device 100 determines that the call quality is not good.
First, the electronic apparatus 100 determines whether the network of the uplink is abnormal.
As shown in fig. 9, fig. 9 is a flowchart of a method for determining whether an uplink network is abnormal by the electronic device 100.
S901, the electronic device 100 establishes a second uplink with the WiFi access network device.
Specifically, first, the electronic device 100 will establish an uplink (second uplink) with the WiFi access network device based on the original uplink (first uplink). The electronic device 100 establishes a second uplink based on the home address (address of the electronic device 100) and the remote address (WiFi access network device) of the first uplink.
S902, does the electronic device 100 initiate a connection request to the WiFi access network device through the second uplink, and determine whether a response message (second response message) of the WiFi access network device is received within a third time threshold (i?
If the electronic device 100 does not receive the response message (second response message) from the WiFi access network device within the third time threshold, S905 is performed. If the electronic device 100 receives the response message (second response message) of the WiFi access network device within the third time threshold, S903 is executed.
Then, the electronic device 100 sends a connection request to the WiFi access network device, and if the electronic device 100 does not receive a response message from the WiFi access network device, the connection fails. Specifically, the electronic device 100 sends a SYN packet to the WiFi access network device, and meanwhile, the electronic device 100 initiates a timer of a third time threshold (for example, 1.5 seconds). After the WiFi access network device receives the SYN message sent by the electronic device 100, the WiFi access network device responds to the SYN message sent by the electronic device 100, and the WiFi access network device sends an ACK message to the electronic device 100. If the electronic device 100 does not receive the ACK packet sent by the WiFi access network device within the third time threshold (e.g., 1.5 seconds), the connection establishment between the electronic device 100 and the WiFi access network device fails, that is, the electronic device 100 determines that the uplink network is abnormal.
S903, after the electronic device 100 receives the response message of the WiFi access network device within the third time threshold, the electronic device 100 receives the voice packet sent by the WiFi access network device within the fourth time threshold, and calculates a packet loss rate by determining the number of the received voice packets and the preset number of the voice packets.
If the electronic device 100 receives the ACK packet sent by the WiFi access network device within the third time threshold (e.g., 1.5 seconds), the electronic device 100 and the WiFi access network device are successfully connected. After the electronic device 100 successfully establishes the connection with the WiFi access network device, the electronic device 100 and the WiFi access network device will send a packet to detect to determine whether the uplink network is abnormal. Specifically, the electronic device and the WiFi access network device agree to send a fixed-size sounding voice packet within a fourth time threshold (e.g. 3 seconds), that is, the WiFi access network device sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the fourth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value, or if the ratio of the number of the voice packets received by the electronic device 100 within a fourth time threshold and sent by the WiFi access network device to the fixed number of the sounding voice packets is smaller than a third preset value, the electronic device 100 determines that the uplink network is abnormal.
S904, if the electronic device 100 determines that the packet loss rate is greater than the preset value?
S905, the electronic device 100 determines that the packet loss ratio is greater than the preset value, and the RRC layer of the electronic device 100 receives the pilot frequency measurement result, and switches the VoWiFi network of the first service area to the VoNR network or the VoLTE network of the first service area.
After the electronic device 100 determines the network abnormality of the uplink, the electronic device 100 may improve the network problem of the uplink according to any one of the following manners.
The first method is as follows: if the first service area where the electronic device 100 is located has a VoNR network, the electronic device 100 switches the VoWiFi network to the VoNR network.
The second method comprises the following steps: if the first service area where the electronic device 100 is located has the VoLTE network, the electronic device 100 switches the volga network to the VoLTE network.
If the electronic device 100 determines that the packet loss rate is smaller than the preset value, the electronic device 100 determines that the network of the uplink is normal.
After that, the electronic device 100 will determine whether the network of the downlink is abnormal according to the packet loss rate of the downlink voice packet.
As shown in fig. 10, fig. 10 is a flowchart of a method for determining whether a downlink network is abnormal by the electronic device 100.
S1001, the electronic device 100 and the WiFi access network device establish a second downlink.
Specifically, first, the electronic device 100 will establish a new downlink (second downlink) with the WiFi access network device based on the original downlink (first downlink). The electronic device 100 establishes the second downlink according to the home address (address of the electronic device 100) and the remote address (WiFi access network device) of the first downlink.
S1002, the electronic device 100 initiates a connection request to the WiFi access network device through the second downlink, and determines whether a response message (second response message) of the WiFi access network device is received within a fifth time threshold?
If the electronic device 100 does not receive the response message (second response message) from the WiFi access network device within the fifth time threshold, S1005 is executed. If the electronic device 100 receives the response message (the second response message) of the WiFi access network device within the fifth time threshold, S1003 is executed.
Then, the electronic device 100 sends a connection request to the WiFi access network device, and if the electronic device 100 does not receive a response message from the WiFi access network device, the connection fails. Specifically, the electronic device 100 sends a SYN packet to the WiFi access network device, and meanwhile, the electronic device 100 initiates a timer of a sixth time threshold (for example, 1.5 seconds). After the WiFi access network device receives the SYN message sent by the electronic device 100, the WiFi access network device responds to the SYN message sent by the electronic device 100, and the WiFi access network device sends an ACK message to the electronic device 100. If the electronic device 100 does not receive the ACK packet sent by the WiFi access network device within the sixth time threshold (for example, 1.5 seconds), the connection between the electronic device 100 and the WiFi access network device fails, that is, the electronic device 100 determines that the network of the downlink is abnormal.
S1003, after the electronic device 100 receives the response message of the WiFi access network device within the fifth time threshold, the electronic device 100 receives the voice packet sent by the WiFi access network device within the sixth time threshold, and determines the number of the received voice packet and the preset number of the voice packet to calculate the packet loss rate.
If the electronic device 100 receives the ACK packet sent by the WiFi access network device within a fifth time threshold (for example, 1.5 seconds), the electronic device 100 and the WiFi access network device are successfully established. After the electronic device 100 and the WiFi access network device successfully establish the connection, the electronic device 100 and the WiFi access network device will detect the packet to determine whether the downlink network is abnormal. Specifically, the electronic device and the WiFi access network device agree to send a fixed-size sounding voice packet within a sixth time threshold (e.g. 3 seconds), that is, the WiFi access network device sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the sixth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value, or if the ratio of the number of the voice packets received by the electronic device 100 and sent by the WiFi access network device within a sixth time threshold to the number of the preset voice packets is smaller than a fourth preset value, the electronic device 100 determines that the network of the downlink is abnormal.
S1004, if the electronic device 100 determines that the packet loss rate is greater than a preset value?
S1005, the electronic device 100 determines that the packet loss ratio is greater than the preset value, and the RRC layer of the electronic device 100 receives the pilot frequency measurement result, and switches the VoWiFi network of the first service area to the VoNR network or the VoLTE network of the first service area.
After the electronic device 100 determines the network abnormality of the downlink, the electronic device 100 may improve the network problem of the downlink according to any one of the following manners.
The first method is as follows: if the first service area where the electronic device 100 is located has a VoNR network, the electronic device 100 switches the VoWiFi network to the VoNR network.
The second method comprises the following steps: if the first service area in which the electronic device 100 is located has a VoLTE network, the electronic device 100 switches the volga network to the VoLTE network.
If the electronic device 100 determines that the packet loss ratio is smaller than the preset value, the electronic device 100 determines that the network of the downlink is normal.
If the electronic device determines that the uplink and downlink networks are both normal, the electronic device 100 detects the first voice packet received by the downlink, that is, the electronic device 100 decodes the received first voice packet, records the media parameter of the first voice packet, and if the media parameter of the first voice packet is not consistent with the negotiated media parameter, the electronic device 100 renegotiates the media parameter with the electronic device 200, thereby improving the communication quality.
When the electronic device 100 decodes the received first voice packet, the following situation may occur in which the call quality is poor due to the problem of the first voice packet.
The first situation is as follows: the Payload Type (PT) value of the first voice packet is not consistent with the PT value of the negotiated voice packet.
Case two: the coding type of the first speech packet does not correspond to the coding type of the negotiated speech packet.
For example, the coding type of the first speech packet is AMR-NB, while the coding type of the negotiated speech packet is AMR-WB.
Case three: the coding rate of the first speech packet is not identical to the negotiated coding rate of the speech packet.
For example, the coding rate of the first speech packet is 23.85kbit/s, while the coding rate of the negotiated speech packet is 6.60 kbit/s-12.65 kbit/s.
Situation four: the checksum (check sum) of the first voice packet is continuously 0 and the decoded voice packet cannot be used normally.
The present application only exemplifies some situations where the voice packet has an error, and may also include more situations, and the present application is not limited herein.
When the electronic device 100 determines that the media parameter of the first voice packet is not consistent with the negotiated media parameter, which results in poor call quality, the electronic device 100 may renegotiate the media parameter with the electronic device 200, and perform a call by using the renegotiated media parameter, so that the problem of voice quality due to a voice packet error may be solved.
Specifically, the electronic device 100 uses the SIP protocol as a signaling negotiation protocol, and uses the SDP protocol in cooperation with the SIP protocol to complete media parameter renegotiation. The electronic device 100 completes the media parameter renegotiation using the offer/answer mechanism through the SIP protocol.
Specifically, for the case one, the electronic device 100 may negotiate with the electronic device 200 using the PT value of the first voice packet or using a PT value different from the PT value of the first voice packet, and perform a call using the negotiated PT value.
For the second case, the electronic device 100 may negotiate with the electronic device 200 using the coding type of the first voice packet or using a coding type different from the coding type of the first voice packet, and perform a call using the coding type after negotiation.
For example, the encoding type of the first voice packet is AMR-NB, and the electronic device 100 may negotiate with the electronic device 200 using the encoding type of AMR-NB and use the encoding type of AMR-NB for a call.
Alternatively, the coding type of the first voice packet is AMR-NB, and the electronic device 100 may adopt the coding type as AMR-WB and use the coding type as AMR-WB for conversation.
For the third case, the electronic device 100 may negotiate with the electronic device 200 using the coding rate of the first voice packet or using a coding rate different from the coding rate of the first voice packet, and perform a call using the negotiated coding rate.
For the fourth situation, the checksum of the first voice packet decoded by the electronic device 100 is 0, and the electronic device 100 renegotiates the checksum with the electronic device 200.
When the electronic device 100 determines that there is no problem in the quality of the voice packets received by the uplink network, the downlink network, and the downlink, the electronic device 100 may decrease the transmission rate of the voice packet at the local end, or the electronic device 100 may request the electronic device 200 to decrease the transmission rate of the voice packet, so as to adjust the voice call quality.
As shown in fig. 11, fig. 11 is a flowchart of a method for improving voice call quality according to an embodiment of the present application.
S1101, the electronic device 100 establishes an ims voice call with the electronic device 200 through a first network of a first service area, the electronic device 100 sends a voice packet to the electronic device 200 through a first uplink, and the electronic device 200 receives the voice packet sent by the electronic device 200 through a first downlink.
Dividing a service area of a first network into a first service area (or first cell) according to transmission and reception capabilities of the first network
The first network of the first service area may be any one of a VoNR network or a VoLTE network or a VoWiFi network.
When the first network is a VoNR network, the electronic apparatus 100 performs information transmission with the electronic apparatus 200 through a 5G base station. That is, the electronic device 100 establishes a first uplink with the 5G base station, the electronic device 100 packages the collected voice data into a voice packet, and sends the voice packet to the 5G base station through the first uplink, and the 5G base station transmits the voice packet sent by the electronic device 100 to the electronic device 200. The electronic device 100 and the 5G base station establish a first downlink, the electronic device 200 packages the collected voice data into a voice packet and sends the voice packet to the 5G base station, and the 5G base station transmits the voice packet sent by the electronic device 200 to the electronic device 100 through the first downlink.
When the first network is a VoLTE network, the electronic device 100 performs information transmission with the electronic device 200 through the 4G base station. That is, the electronic device 100 and the 4G base station establish a first uplink, the electronic device 100 packages the collected voice data into a voice packet, and sends the voice packet to the 4G base station through the first uplink, and the 4G base station transmits the voice packet sent by the electronic device 100 to the electronic device 200. The electronic device 100 and the 4G base station establish a first downlink, the electronic device 200 packages the collected voice data into a voice packet and sends the voice packet to the 4G base station, and the 4G base station transmits the voice packet sent by the electronic device 200 to the electronic device 100 through the first downlink.
When the first network is a VoWiFi network, the electronic device 100 performs information transmission with the electronic device 200 through the WiFi access network device. That is, a first uplink is established between the electronic device 100 and the WiFi access network device, the electronic device 100 packs the collected voice data into a voice packet, and sends the voice packet to the WiFi access network device through the first uplink, and the WiFi access network device transmits the voice packet sent by the electronic device 100 to the electronic device 200. The electronic device 100 and the WiFi access network device establish a first downlink, the electronic device 200 packages the collected voice data into a voice packet and sends the voice packet to the WiFi access network device, and the WiFi access network device transmits the voice packet sent by the electronic device 200 to the electronic device 100 through the first downlink.
If the ratio of the number of voice packets received by the electronic device 100 through the downlink within the first time threshold to the predetermined number of voice packets is smaller than the first preset value, the electronic device 100 determines that the call quality is not good.
S1102, is the electronic device 100 determine that the network of the first uplink is abnormal?
When the first network is a VoNR network, the electronic apparatus 100 may determine the network abnormality of the first uplink in the following manner.
Specifically, after the electronic device 100 establishes the voice call connection with the electronic device 200, the electronic device 100 encodes and packs the collected data into the voice packet by using the negotiated encoding type (for example, the first encoding type), and then the electronic device 100 forms a transmission queue according to the generation sequence of the voice packet, and starts a discard timer (for example, 2 seconds) corresponding to the voice packet from the voice packet entering the transmission queue. If the time from the beginning of the voice packet entering the transmission queue to the time of being transmitted is less than the time of the discard timer, the voice packet is successfully transmitted. If the time before the voice packet enters the transmission queue is longer than the discard timer, the transmission time of the voice packet is over and the electronic device 100 will discard the voice packet.
The electronic device 100 may calculate a ratio between the number of dropped voice packets due to the timeout of the voice packet transmission time in the second time threshold (e.g., three seconds) and the number of successfully transmitted voice packets in the second time threshold (e.g., three seconds), and if the ratio is greater than a second preset value, the electronic device 100 determines that the network of the first uplink is abnormal.
When the first network is a VoLTE network, the electronic device 100 may determine the network abnormality of the first uplink in the following manner.
Specifically, after the electronic device 100 establishes the voice call connection with the electronic device 200, the electronic device 100 encodes and packages the acquired data into the voice packet by using the negotiated encoding type (for example, the first encoding type), and then the electronic device 100 forms a transmission queue according to the generation sequence of the voice packet, and starts a discard timer (for example, 2 seconds) corresponding to the voice packet from the time the voice packet enters the transmission queue. If the time from the beginning of the voice packet entering the transmission queue to the time of being transmitted is less than the time of the discard timer, the voice packet is successfully transmitted. If the time before the voice packet enters the transmission queue is longer than the discard timer, the transmission time of the voice packet is over and the electronic device 100 will discard the voice packet.
The electronic device 100 may calculate a ratio between the number of dropped voice packets due to the timeout of the voice packet transmission time in the second time threshold (e.g., three seconds) and the number of successfully transmitted voice packets in the second time threshold (e.g., three seconds), and if the ratio is greater than a second preset value, the electronic device 100 determines that the network of the first uplink is abnormal.
When the first network is a VoWiFi network, the electronic device 100 may determine the network abnormality of the first uplink in the following manner.
Specifically, the electronic device 100 establishes a second uplink with the electronic device 200. Then, the electronic device 100 sends a connection request to the WiFi access network device through the second uplink, and if the electronic device 100 does not receive a response message from the WiFi access network device within a third time threshold (for example, 1.5 seconds), the connection fails, that is, the electronic device 100 determines that the network of the first uplink is abnormal.
If the electronic device 100 receives the response message sent by the WiFi access network device within a third time threshold (for example, 1.5 seconds), the electronic device 100 and the WiFi access network device are successfully connected. After the electronic device 100 successfully establishes the connection with the WiFi access network device, the electronic device 100 and the WiFi access network device will send a packet to detect to determine whether the uplink network is abnormal. Specifically, the electronic device and the WiFi access network device agree to send a fixed-size sounding voice packet within a fourth time threshold (e.g. 3 seconds), that is, the WiFi access network device sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the fourth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value, or if the number of the voice packets received by the electronic device 100 within a fourth time threshold and the fixed number of the sounding voice packets sent by the WiFi access network device are less than a third preset value, the electronic device 100 determines that the network of the first uplink is abnormal.
If the electronic device 100 determines that the network of the first uplink is abnormal, the electronic device 100 executes S1103; otherwise, the electronic device 100 performs S1106.
S1103, the electronic device 100 determines that the network of the first uplink is abnormal, and the electronic device 100 determines whether the first network is a VoWiFi network?
If the electronic device 100 determines that the first network is a VoWiFi network, the electronic device 100 executes S1104; otherwise, the electronic apparatus 100 performs S1105.
S1104, the electronic device 100 switches the first network of the first service area to the second network of the first service area.
When the first network is a VoWiFi network, and when the electronic device 100 determines that the network of the first uplink is abnormal, the electronic device 100 may switch the VoWiFi network of the first service area to a second network of the first service area, where the second network may be any one of a VoNR network and a VoLTE network.
S1105, the electronic device 100 reports the inter-frequency measurement result to the first network device through the RRC layer, the electronic device 100 switches the first network of the first service area to the first network of the second service area through the first network device, or the electronic device 100 reports the inter-system measurement result to the first network device through the RRC layer, and the electronic device 100 switches the first network of the first service area to the second network of the first service area through the first network device, or the electronic device 100 switches the first network of the first service area to the third network.
The first network is different from the second network and the third network. For example, when the first network is a VoNR network, the second network may be a VoLTE network, and the third network is a VoWiFi network; when the first network is a VoLTE network, the second network may be a VoNR network, a VoWiFi network, and the third network is a VoWiFi network.
When the first network is a volr network, the electronic device 100 determines that the first uplink network is abnormal, the electronic device 100 reports the inter-frequency measurement result to the first network device (e.g., 5G base station) through the RRC layer, and switches the volr network of the first service area to a second network of the first service area through the first network device (e.g., 5G base station), where the second network may be a VoLTE network, a VoWiFi network. Alternatively, the electronic device 100 reports the inter-system measurement result to the first network device (e.g., 5G base station) through the RRC layer, and switches the VoNR network of the first service area to the VoNR network of the second service area through the first network device (e.g., 5G base station), or the electronic device 100 switches the VoNR network of the first service area to the VoWiFi network.
When the first network is a VoLTE network, and when the electronic device 100 determines that the network of the first uplink is abnormal, the electronic device 100 reports the inter-frequency measurement result to the first network device (e.g., a 4G base station) through the RRC layer, and switches the VoLTE network of the first service area to a second network of the first service area through the first network device (e.g., a 4G base station), where the second network may be a volr network, a VoWiFi network. Alternatively, the electronic device 100 reports the inter-system measurement result to the first network device (e.g., 4G base station) through the RRC layer, and switches the VoLTE network of the first service area to the VoLTE network of the second service area through the first network device (e.g., 4G base station), or the electronic device 100 switches the VoLTE network of the first service area to the VoWiFi network.
S1106, the electronic device 100 determines that the network of the first uplink is normal, and the electronic device 100 determines that the network of the first downlink is abnormal?
Specifically, when the first network is a VoNR network, the electronic device 100 may determine the network abnormality of the first downlink in the following manner.
The electronic apparatus 100 establishes the second downlink with the electronic apparatus 200. After that, the electronic device 100 sends a connection request to the 5G base station through the second downlink, and if the electronic device 100 does not receive a response message from the 5G base station within a fifth time threshold (e.g., 1.5 seconds), the connection fails, that is, the electronic device 100 determines that the network of the first downlink is abnormal.
If the electronic device 100 receives the response message sent by the 5G base station within the fifth time threshold (e.g., 1.5 seconds), the electronic device 100 and the 5G base station are successfully connected. After the electronic device 100 and the 5G base station successfully establish the connection, the electronic device 100 and the 5G base station will send a packet probe to determine whether the downlink network is abnormal. Specifically, the electronic device and the 5G base station agree to send the sounding voice packet with a fixed size within a sixth time threshold (e.g. 3 seconds), that is, the 5G base station sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the sixth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value, or if the number of the voice packets received by the electronic device 100 in the sixth time threshold and the fixed number of the sounding voice packets sent by the WiFi access network device are less than a fourth preset value, the electronic device 100 determines that the network of the first downlink is abnormal.
When the first network is a VoLTE network, the electronic device 100 may determine the network abnormality of the first downlink in the following manner.
The electronic apparatus 100 establishes the second downlink with the electronic apparatus 200. After that, the electronic device 100 sends a connection request to the 4G base station through the second downlink, and if the electronic device 100 does not receive a response message from the 4G base station within a fifth time threshold (for example, 1.5 seconds), the connection fails, that is, the electronic device 100 determines that the network of the first downlink is abnormal.
If the electronic device 100 receives the response message sent by the 4G base station within the fifth time threshold (e.g., 1.5 seconds), the electronic device 100 and the 4G base station are successfully connected. After the electronic device 100 and the 4G base station successfully establish the connection, the electronic device 100 and the 4G base station will send a packet probe to determine whether the network of the downlink is abnormal. Specifically, the electronic device and the 4G base station agree to send the sounding voice packet with a fixed size within a fourth time threshold (e.g. 3 seconds), that is, the 4G base station sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within a sixth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value, or if the number of the voice packets received by the electronic device 100 in a sixth time threshold and the fixed number of the sounding voice packets are smaller than a fourth preset value, the electronic device 100 determines that the network of the first downlink is abnormal.
When the first network is a VoWiFi network, the electronic device 100 may determine the network abnormality of the first downlink in the following manner.
The electronic apparatus 100 establishes the second downlink with the electronic apparatus 200. Then, the electronic device 100 sends a connection request to the WiFi access network device through the second downlink, and if the electronic device 100 does not receive a response message of the WiFi access network device within a fifth time threshold (for example, 1.5 seconds), the connection fails, that is, the electronic device 100 determines that the network of the first downlink is abnormal.
If the electronic device 100 receives the response message sent by the WiFi access network device within a fifth time threshold (e.g., 1.5 seconds), the electronic device 100 and the WiFi access network device establish a connection successfully. After the electronic device 100 successfully establishes the connection with the WiFi access network device, the electronic device 100 and the WiFi access network device will send a packet to detect to determine whether the network of the downlink is abnormal. Specifically, the electronic device and the WiFi access network device agree to send a fixed-size sounding voice packet within a sixth time threshold (e.g. 3 seconds), that is, the WiFi access network device sends a fixed number of sounding voice packets (e.g. 10 sounding voice packets) to the electronic device 100 within the sixth time threshold (e.g. 3 seconds). The electronic device 100 calculates a packet loss rate according to the number of the received sounding voice packets, and if the packet loss rate is greater than a preset value, or if the number of the voice packets received by the electronic device 100 in the sixth time threshold and the fixed number of the sounding voice packets sent by the WiFi access network device are less than a fourth preset value, the electronic device 100 determines that the network of the first downlink is abnormal.
After the electronic device 100 determines that the network of the first downlink is abnormal, the electronic device 100 performs S1103, that is, determines whether the first network is a VoWiFi network.
If the electronic device 100 determines that the first network is a VoWiFi network, the electronic device 100 performs S1104; otherwise, the electronic apparatus 100 performs S1105.
S1107, after the electronic device 100 determines that the networks of the first uplink and the first downlink are normal, the electronic device 100 will determine that the pre-set media parameters of the first voice packet received by the first downlink are not consistent?
Before the electronic apparatus 100 establishes a voice call with the electronic apparatus 200, the electronic apparatus 100 uses the SIP protocol as a signaling negotiation protocol, and completes media parameter negotiation using the SDP protocol in cooperation with the SIP protocol. The electronic device 100 completes media negotiation by using the offer/answer mechanism through the SIP protocol, that is, the electronic device 100 transmits formats of all supported media parameters to the electronic device 200, and the electronic device 200 receives the formats of all supported media parameters transmitted by the electronic device 100 and selects one or more formats of media parameters supported by the electronic device 200 to transmit to the electronic device 100. After receiving the information fed back by the electronic device 200, the electronic device 100 establishes a communication connection according to the format of the media parameters supported by the electronic device 200. The media parameters of the voice packet negotiated by the electronic device 100 and the electronic device 200 are referred to as preset media parameters. The media parameter of the voice packet may be any one or more of an encoding type of the voice packet, an encoding rate of the voice packet, a PT value, and a media channel parameter.
If the electronic device determines that the uplink network and the downlink network are both normal, the electronic device 100 detects the first voice packet received by the downlink, that is, the electronic device 100 decodes the received first voice packet, records the media parameter of the first voice packet, and if the media parameter of the first voice packet is inconsistent with the preset media parameter, the electronic device 100 determines that the media parameter of the voice packet is inconsistent with the preset media parameter, which results in poor call quality. The electronic apparatus 100 executes S1108.
S1108, the electronic device 100 renegotiates the media parameter with the electronic device 200.
After the electronic device 100 determines that the media parameter of the voice packet is inconsistent with the preset media parameter, which results in poor communication quality, the electronic device 100 renegotiates the media parameter of the voice packet with the electronic device 200, and performs a call by using the negotiated media parameter of the voice packet. The media parameter of the negotiated voice packet may be the same as the preset media parameter or different from the preset media parameter, which is not limited in this application. Please refer to the above embodiments for the electronic device 100 and the electronic device 200 to renegotiate the media parameter, which is not described herein again.
The electronic device 100 determines that the media parameter of the first voice packet is consistent with the preset media parameter, and the electronic device 100 executes S1109.
S1109, the electronic device 100 will decrease the transmission rate of the voice packet of the local end, or the electronic device 100 requests the electronic device 200 to decrease the transmission rate of the voice packet.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (13)

1. A method for improving voice call quality, comprising a first electronic device, a first network device and a second electronic device, wherein the first network device provides a first network for a first service area, the method comprising:
the first electronic equipment establishes an ims voice call with the second electronic equipment through the first network, the first electronic equipment sends a voice packet to the second electronic equipment through a first uplink, and the first electronic equipment receives the voice packet sent by the second electronic equipment through a first downlink;
if the first electronic device determines that the network of the first uplink is abnormal or the first electronic device determines that the network of the first downlink is abnormal, the first electronic device determines that the communication quality between the first electronic device and the second electronic device is poor due to the first network abnormality.
2. The method according to claim 1, wherein when the first network is a VoNR network or a VoLTE network, the determining, by the first electronic device, that the first uplink network is abnormal specifically includes:
the first electronic device determines that the first electronic device sends the number of voice packets and discards the number of voice packets through the first uplink within a second time threshold;
the first electronic device calculating a ratio of the number of dropped voice packets to the number of sent voice packets;
and if the ratio of the number of the discarded voice packets to the number of the sent voice packets is greater than a second preset value, the first electronic equipment judges that the network of the first uplink is abnormal.
3. The method according to claim 1, wherein when the first network is the VoWiFi network, the determining, by the first electronic device, that the first uplink is abnormal includes:
the first electronic device establishing a second uplink with the first network device;
the first electronic device sends a connection establishment request to the first network device, and if the first electronic device does not receive a first response message of the first network device within a third time threshold, the first electronic device judges that the network of the first uplink is abnormal;
if the first electronic device receives the first response message within the third time threshold, the first electronic device determines the number of voice packets received within a fourth time threshold, wherein the number of voice packets is sent by the first network device;
and the first electronic device calculates the ratio of the number of the voice packets received from the first network device to the number of preset voice packets within the fourth time threshold, and if the ratio is smaller than a third preset value, the first electronic device determines that the network of the first uplink is abnormal.
4. The method according to any one of claims 1 to 3, wherein the determining, by the first electronic device, the network anomaly of the first downlink specifically includes:
the first electronic device establishing a second downlink with the first network device;
the first electronic device sends a connection establishment request to the first network device, and if the first electronic device does not receive a second response message of the first network device within a fifth time threshold, the first electronic device determines that the network of the first downlink is abnormal;
if the first electronic device receives the second response message within the fifth time threshold, the first electronic device determines that the number of voice packets sent by the first network device is received within a sixth time threshold;
and the first electronic device calculates the ratio of the number of the voice packets received from the first network device to the number of preset voice packets within the sixth time threshold, and if the ratio is smaller than a fourth preset value, the first electronic device determines that the network of the first downlink is abnormal.
5. The method according to any one of claims 2 or 4, wherein after the first electronic device determines the network abnormality of the first uplink or the network abnormality of the first downlink when the first network is a VoNR network or a VoLTE network, the method further comprises:
the first electronic device switches the first network of the first service area to a second network of the first service area through the first network device, or the first electronic device switches the first network of the first service area to the first network of a second service area through the first network device, or the first electronic device switches the first network of the first service area to a third network; wherein the first network, the second network, and the third network are different.
6. The method of claim 5, wherein when the first network is the VoNR network, the second network is the VoLTE network, and the third network is a VoWiFi network;
when the first network is the VoLTE network, the second network is the VoNR network, and the third network is the VoWiFi network.
7. The method according to any one of claims 1 or 3, wherein when the first network is the VoWiFi network, after the first electronic device determines that the network of the first uplink is abnormal or the network of the first downlink is abnormal, the method further comprises:
the first electronic device switches the first network of the first service area to a second network of the first service area, the second network being a VoNR network or a VoLTE network.
8. The method according to any of claims 1-7, wherein after the first electronic device determines that the network of the first uplink is normal and the first electronic device determines that the network of the first downlink is normal, the method further comprises:
the first electronic judges whether the media parameter format of the first voice packet received through the first downlink is consistent with a preset media parameter format;
if the media parameter format of the first voice packet is not consistent with the preset media parameter format, the first electronic device and the second electronic device communicate by adopting the media parameter format after renegotiation.
9. The method according to claim 8, wherein after the first electronic determination that the media parameter format of the received first voice packet is consistent with the preset media parameter format, the method further comprises:
the first electronic device decreases the transmission rate of the first uplink voice packet, or the first electronic device sends request information to the second electronic device, where the request information is used to request the second electronic device to decrease the transmission rate of the first downlink voice packet.
10. The method of claim 9, wherein the format of the media parameter after renegotiation is consistent with the preset format of the media parameter or the format of the media parameter after renegotiation is inconsistent with the preset format of the media parameter.
11. The method according to any of claims 1-10, wherein the media parameters may include any one or more of: coding type of voice packet, coding rate of voice packet, media channel parameter.
12. An electronic device comprising one or more processors, one or more memories; the one or more memories coupled with the one or more processors for storing computer program code, the computer program code comprising computer instructions that are invoked by the one or more processors to cause the electronic device to perform the method of any of claims 1-11.
13. Computer storage medium comprising instructions, characterized in that, when run on a computer, cause the computer to perform the method according to any of claims 1 to 11.
CN202110218667.9A 2021-02-26 2021-02-26 Method for improving voice call quality Pending CN114980152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110218667.9A CN114980152A (en) 2021-02-26 2021-02-26 Method for improving voice call quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110218667.9A CN114980152A (en) 2021-02-26 2021-02-26 Method for improving voice call quality

Publications (1)

Publication Number Publication Date
CN114980152A true CN114980152A (en) 2022-08-30

Family

ID=82973869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110218667.9A Pending CN114980152A (en) 2021-02-26 2021-02-26 Method for improving voice call quality

Country Status (1)

Country Link
CN (1) CN114980152A (en)

Similar Documents

Publication Publication Date Title
CN111316598B (en) Multi-screen interaction method and equipment
EP4319169A1 (en) Screen projection method for electronic device, and electronic device
JP7235871B2 (en) Data transmission method and electronic device
CN111866950B (en) Method and communication device for data transmission in MEC
CN113438354B (en) Data transmission method and device, electronic equipment and storage medium
CN113169915B (en) Wireless audio system, audio communication method and equipment
EP4156625A1 (en) Data synchronization method, electronic device, and computer readable storage medium
KR102491006B1 (en) Data Transmission Methods and Electronic Devices
CN115334138A (en) QUIC data transmission method, device, client and server
JP7193647B2 (en) Connection establishment method and terminal device
CN115237359A (en) Projection screen display parameter adjusting method
CN114885395A (en) Data communication method, electronic device, and computer storage medium
CN114338913B (en) Fault diagnosis method, electronic device and readable storage medium
US11792631B2 (en) Emergency call method and user terminal
CN113810451A (en) Method and device for establishing point-to-point link, server and terminal equipment
CN114006712A (en) Method, electronic equipment and system for acquiring verification code
EP4293997A1 (en) Display method, electronic device, and system
WO2022170854A1 (en) Video call method and related device
CN114928900A (en) Method and apparatus for transmission over a WiFi direct connection
CN114980152A (en) Method for improving voice call quality
CN114979261A (en) Service interaction method, terminal, server and system
CN114489876A (en) Text input method, electronic equipment and system
CN114827098A (en) Method and device for close shooting, electronic equipment and readable storage medium
EP4290360A1 (en) Screen projection method, electronic device, and system
US11997736B2 (en) Connection establishment method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination