Internet protocol multimedia subsystem service processing method and electronic equipment
By shutting down the IMS function and performing self-healing when an IMS service request response fails, the system solves the problems of increased device power consumption and service anomalies caused by inconsistent IMS network quality, thereby improving user experience.
Patent Information
- Application Number
- CN202410385569.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-03-29
AI Technical Summary
The quality of IMS networks for electronic devices varies greatly across the globe. This can lead to IMS service failures or anomalies in areas with poor network quality, increasing power consumption and creating a poor user experience.
When an IMS service request fails to respond, the electronic device shuts down the IMS function and performs self-healing processing through a timer or failure cause judgment to avoid frequent requests and increased power consumption.
This reduces the power consumption of electronic devices in abnormal IMS network conditions, avoids the poor user experience caused by abnormal IMS service execution, and improves user experience.
Smart Images

Figure CN120768879A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to an Internet protocol multimedia subsystem service processing method and electronic device. Background Art
[0002] Before leaving the factory, electronic devices can be configured with parameters related to the Internet-Protocol Multimedia Subsystem (IMS). This refers to configuring IMS parameters for different regions provided by multiple operators within the electronic device. This allows the electronic device to access the IMS in the corresponding region and perform IMS services (functions).
[0003] The configuration of the above-mentioned IMS-related parameters may include the configuration of IMS-related parameters for multiple regions. If the IMS-related parameters for region 1 are not configured in the electronic device, the electronic device will not attempt to access the IMS (i.e., register for the IMS) in region 1, nor will it be able to use IMS services. If the IMS-related parameters for region 2 are configured in the electronic device, when the electronic device is located in region 2, after accessing the IMS (i.e., completing the IMS registration), the electronic device can use IMS services in region 2. In order for electronic devices to be able to use IMS services in various regions, IMS-related parameters for multiple regions around the world can be configured in the electronic device.
[0004] However, the quality of IMS networks varies across the globe. When electronic devices are located in areas with poor network quality, IMS services may fail or become abnormal when executed by the electronic devices. Summary of the Invention
[0005] Embodiments of the present application provide an Internet Protocol Multimedia Subsystem service processing method and an electronic device. When an IMS service request response fails, the electronic device shuts down the IMS function of the electronic device and performs self-healing on the IMS function. This reduces the power consumption of the electronic device and also avoids a poor user experience caused by abnormal IMS service execution.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a method for processing Internet protocol multimedia subsystem services is provided, comprising:
[0008] The electronic device sends an IMS service request to a public land mobile network PLMN where an Internet Protocol Multimedia Subsystem IMS is located in the area.
[0009] If the IMS service request is the first IMS service request sent by the electronic device to the PLMN in the area where the electronic device is located, when the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device.
[0010] In the present application, when an electronic device confirms that an IMS service request is the first IMS service request sent by the electronic device to a PLMN, and the execution of the IMS service request fails, the electronic device shuts down the IMS function of the electronic device. If the execution of the IMS service request to the PLMN fails for the first time, it means that the electronic device has not previously sent an IMS-related service request to the PLMN in the area where it is located, the area where the electronic device is located does not support IMS services, or there is a high probability of an IMS network failure. In this case, if the electronic device fails to respond to the IMS service request, it will attempt to initiate the IMS service request again multiple times within a period of time. Such frequent initiation of IMS service requests that will not be successfully responded to will increase the communication response time of the electronic device and cause unnecessary increase in the power consumption of the electronic device. Executing IMS services in a scenario with poor IMS network quality is also very likely to cause abnormalities. Therefore, the electronic device shuts down the IMS function of the electronic device and performs self-healing on the IMS function. While reducing the power consumption of the electronic device, it can also avoid the poor user experience caused by abnormal execution of the IMS service when using the IMS service.
[0011] In a possible implementation of the first aspect, after the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in a region, the method further includes:
[0012] The electronic device starts a first timer.
[0013] Then, when the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, including:
[0014] If the electronic device does not receive a response to the IMS service request before the first timer expires, the electronic device disables the IMS function of the electronic device in a first manner, so that the electronic device is in a first state.
[0015] The electronic device is in the first state and needs to enable the IMS function of the electronic device by any of restarting the device, switching the airplane mode, and hot-swapping the card.
[0016] In the present application, a first timer can be set to detect whether the electronic device receives a response from the PLMN to the IMS service request before the first timer expires. If the electronic device does not receive a response to the IMS service request before the first timer expires, it means that there is an abnormality in the IMS network in the area where the electronic device is located, and the PLMN in the area where the electronic device is located is very likely to have never successfully responded to the IMS service request. In this case, strict self-healing of the IMS function is performed, and the IMS function of the electronic device is shut down in a first manner to put it in a first state. This can avoid the frequent initiation of unsuccessful IMS service requests, which will cause an increase in the power consumption of the electronic device. While reducing the power consumption of the electronic device, it can also avoid the poor user experience caused by abnormal execution of the IMS service when the user uses the IMS service.
[0017] In another possible implementation of the first aspect, after the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in a region, the method further includes:
[0018] The electronic device starts a second timer.
[0019] Then, when the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, including:
[0020] If the electronic device receives a response carrying a failure reason before the second timer expires, and the failure reason indicates an IMS network failure, the electronic device disables the IMS function of the electronic device in a first manner, placing the electronic device in a first state.
[0021] The electronic device is in the first state and needs to enable the IMS function of the electronic device by any of restarting the device, switching the airplane mode, and hot-swapping the card.
[0022] In this application, when an electronic device receives a request failure response, it can further perform IMS function self-healing on the electronic device based on the failure reason carried in the request failure response. For example, when the failure reason indicates an IMS network failure, strict IMS function self-healing is performed, shutting down the electronic device's IMS function and placing it in the first state. This can avoid frequent unsuccessful IMS service requests that would increase the electronic device's power consumption. While reducing the electronic device's power consumption, it can also avoid a poor user experience caused by abnormal IMS service execution when using the service.
[0023] In another possible implementation of the first aspect, when the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, further comprising:
[0024] If the failure reason does not indicate an IMS network failure, the electronic device starts a third timer and sends an IMS service request to the PLMN multiple times before the third timer expires. If the multiple IMS service requests all fail to be responded to before the third timer expires, the electronic device disables the IMS function of the electronic device in a first manner, placing the electronic device in a first state.
[0025] In the present application, if the cause of failure does not indicate an IMS network failure, the IMS service request can be re-initiated before the third timer expires. Multiple attempts can also increase the probability of success of the IMS service request, thereby avoiding the situation where the IMS service cannot be executed due to accidental abnormal reasons.
[0026] In another possible implementation of the first aspect, after the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in a region, the method further includes:
[0027] If the IMS service requesting electronic device does not send the IMS service request to the PLMN for the first time, the electronic device starts a fourth timer.
[0028] If all responses to the IMS service requests sent by the electronic device fail before the fourth timer expires, and the failure condition is met, the electronic device shuts down the IMS function of the electronic device in the second manner, so that the electronic device is in the second state.
[0029] The electronic device is in the second state, indicating that the IMS function of the electronic device is disabled when the IMS service request response fails, and is enabled after a preset first duration. The failure condition includes the number of IMS service request response failures reaching a preset threshold before the fourth timer expires, or the probability of the IMS service request response failing is greater than a preset probability threshold.
[0030] In the present application, when the current IMS service request electronic device is not sending an IMS service request to the PLMN in the area for the first time, in order to further confirm the ability of the area to support IMS / the network status of IMS, the electronic device can start a fourth timer. When the IMS service request response fails, it can further determine whether a certain degree of IMS service processing is required based on the area or whether the service request meets the failure conditions, thereby avoiding the situation where the IMS service execution is abnormal due to the abnormality of the IMS network in the area.
[0031] In another possible implementation of the first aspect, an IMS configuration list is pre-installed in the electronic device, where the IMS configuration list includes multiple regions, IMS configuration parameters corresponding to each region, and a network status of the IMS corresponding to each region; wherein the IMS network status includes a normal network or an abnormal network.
[0032] The method further includes:
[0033] The electronic device sends the operation data of the IMS service request generated in the area where it is located to the cloud; the operation data includes the operation data corresponding to the failure of the electronic device to send an IMS service request response to the PLMN in the area where it is located, or the operation data corresponding to the successful response to the IMS service request.
[0034] The electronic device receives the target IMS configuration list sent by the cloud; the target IMS configuration list is a list after the cloud updates the IMS configuration parameters corresponding to the region in the IMS configuration list and the network status of the IMS corresponding to the region based on the operation data.
[0035] The electronic device updates the preset number threshold in the failure condition and / or the preset probability threshold in the failure condition according to the target IMS configuration list.
[0036] In the present application, for regions where the IMS capability is disabled by default in the target IMS configuration list, the electronic device can still attempt to send an IMS service request when arriving in the region. In this case, the electronic device can adaptively reduce the preset number threshold involved in determining whether the failure condition is met during the IMS service processing in the region and reduce the preset probability threshold involved in determining whether the failure condition is met during the IMS service processing in the region, thereby reducing the number of attempts to perform IMS services in the region and minimizing the power consumption of the electronic device while attempting IMS services. In this embodiment, the cloud can update the default on or off status of the IMS function in each region based on the regional network status and the frequency and number of times users use IMS services in the region, making the IMS configuration list more accurate.
[0037] In another possible implementation of the first aspect, the IMS service request includes an IMS registration request and an IMS call request; and the method further includes:
[0038] The electronic device sends an IMS registration request to the PLMN where the IMS in the area is located.
[0039] After the electronic device receives a registration success response to the IMS registration request, the electronic device establishes a connection with the IMS.
[0040] The electronic device sends an IMS service request to the Public Land Mobile Network (PLMN) where the Internet Protocol Multimedia Subsystem (IMS) is located in the area, including:
[0041] The electronic device sends an IMS call request to the PLMN in the area where it is located.
[0042] If the IMS service request is the first IMS service request sent by the electronic device to the PLMN, when the IMS service request response fails, the electronic device disables the IMS function of the electronic device, including:
[0043] If the IMS call request is the first IMS call request sent by the electronic device to the PLMN, when the IMS call request response fails, the electronic device disables the IMS function of the electronic device in a first manner, so that the electronic device is in a first state; wherein, when the electronic device is in the first state, the IMS function of the electronic device needs to be enabled by any of the following methods: restarting the device, turning on or off airplane mode, or hot-swapping the card;
[0044] If the IMS call request electronic device does not send the IMS call request to the PLMN for the first time, when the IMS call request response fails and the IMS signal strength is less than the preset signal strength threshold, the electronic device shuts down the IMS function of the electronic device in a third manner, placing the electronic device in a third state.
[0045] Among them, the electronic device is in the first state, and the IMS function of the electronic device needs to be enabled by any of the following methods: restarting the device, switching the airplane mode, or hot-swapping the card; the electronic device is in the third state, which indicates that the IMS function of the electronic device is turned off when the IMS service request response fails, and the IMS function of the electronic device is enabled after a preset second time period.
[0046] In the present application, after the electronic device completes IMS registration, other IMS services are executed. For example, when making an IMS call request, a judgment is made on whether to perform self-healing processing of the IMS function when the maintenance and measurement information of the call failure is received. When it is determined that the maintenance and measurement information of the call failure represents the call failure of the first IMS call request, strict self-healing of the IMS function is executed, the IMS function of the electronic device is turned off, and the electronic device is placed in the first state. When it is determined that the maintenance and measurement information of the call failure represents the call failure of a non-first IMS call request, when it is determined that the signal strength of the IMS is less than the preset signal strength threshold, a low degree of self-healing of the IMS function is executed, and the IMS function of the electronic device is turned off in a third manner, and the electronic device is placed in the third state. For call failures in different scenarios, different degrees of self-healing of the IMS function are executed, which reduces the power consumption of the electronic device while more accurately realizing the switch control of the IMS function of the electronic device, thereby optimizing the user experience of using IMS services.
[0047] In a possible implementation form of the first aspect, after the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) of the region where the electronic device is located, the method further comprises:
[0048] The electronic device acquires geographical position information of the electronic device.
[0049] If the region where the electronic device is located is the first arrival region of the electronic device, the electronic device determines that the IMS service request is the first IMS service request sent to the PLMN.
[0050] In the present application, if the IMS service request is the first IMS service request sent to the PLMN by the electronic device in the region where the electronic device is located, that is, the electronic device has not performed IMS service in the region, if the first IMS service request fails to respond, it means that the region does not support IMS service or the probability of IMS network abnormality is extremely high; if the IMS service request is a non-first IMS service request sent to the PLMN by the electronic device in the region where the electronic device is located, that is, the electronic device has sent an IMS service request in the region before, the previous IMS service request may succeed or fail to respond, and the current IMS service request failing to respond cannot indicate that the region does not support IMS service or the IMS network is abnormal. Therefore, whether the IMS service request sent by the electronic device is the first IMS service request sent to the IMS in the region where the electronic device is located can be used as an important basis for judgment in the embodiment to indirectly confirm the IMS network status of the region.
[0051] In a second aspect, an electronic device is provided, which comprises a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the method of any one of the first aspect.
[0052] In a third aspect, a computer readable storage medium is provided, which stores instructions, and the computer program / instructions are executed by a processor to implement the steps of the method of any one of the first aspect.
[0053] In a fourth aspect, a computer program product is provided, which comprises instructions, and the computer program / instructions are executed by a processor to implement the steps of the method of any one of the first aspect.
[0054] In a fifth aspect, an embodiment of the present application provides a chip, which comprises a processor configured to invoke a computer program in a memory to execute the method of any one of the first aspect.
[0055] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0058] Figure 3 A flowchart of an IMS service processing method provided in an embodiment of the present application;
[0059] Figure 4 A flowchart of another IMS service processing method provided in an embodiment of the present application;
[0060] Figure 5 A flowchart of another IMS service processing method provided in an embodiment of the present application;
[0061] Figure 6 A flowchart of an IMS service processing method provided in an embodiment of the present application, taking an IMS service request as an IMS registration request as an example;
[0062] Figure 7 A flowchart of another IMS service processing method provided in an embodiment of the present application;
[0063] Figure 8 A flowchart of another IMS service processing method provided in an embodiment of the present application;
[0064] Figure 9 A flowchart of a more specific IMS service processing method provided in an embodiment of the present application, taking an IMS service request as a VoLTE call as an example;
[0065] Figure 10 A flowchart of a terminal updating an IMS configuration list provided in an embodiment of the present application;
[0066] Figure 11 A schematic structural diagram of another electronic device provided in an embodiment of the present application;
[0067] Figure 12 A schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the situation where A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.
[0069] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0070] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0071] Before leaving the factory, electronic devices can be configured with parameters related to the Internet-Protocol Multimedia Subsystem (IMS). This refers to configuring the IMS parameters within the electronic device for each region, as provided by the corresponding operator. This allows the electronic device to access the IMS in the corresponding region and perform IMS services based on the IMS parameters when the IMS function is enabled.
[0072] The electronic device can configure IMS related parameters for multiple regions. Figure 1 , Figure 1 A schematic diagram of an application scenario is given. Figure 1 In (a), when the electronic device is in region 1, if the IMS-related parameters for region 1 are not configured in the electronic device, the electronic device will not attempt to access the IMS (ie, perform IMS registration) in region 1 and will not be able to use IMS services. Figure 1 In (b), when the electronic device is in region 2, if IMS-related parameters for region 2 are configured in the electronic device, the electronic device can use IMS services in region 2 after accessing the IMS (i.e., completing IMS registration) while in region 2. To enable electronic devices to use IMS services in various regions, IMS-related parameters for multiple regions around the world can be configured in the electronic device.
[0073] For example, an IMS default activation list may be pre-set in an electronic device. The IMS default activation list includes multiple IMS parameter groups corresponding to public land mobile networks (PLMNs) of operators in multiple regions around the world. Pre-setting the IMS default activation list in an electronic device means that when the electronic device is in a region included in the IMS default activation list, the electronic device will, by default, enable the IMS function and send an IMS service request (e.g., an IMS registration request) to the IMS in the region.
[0074] However, the network quality of PLMNs in various regions around the world varies. After configuring IMS-related parameters for multiple regions in an electronic device, if there are compatibility issues between the IMS in the region where the electronic device is currently located and the IMS function of the electronic device, or if the IMS in the region where the electronic device is currently located has poor network quality, the electronic device will be unable to access the IMS. After the electronic device fails to register with the IMS for the first time, the electronic device will frequently initiate IMS registration requests, causing unnecessary increase in power consumption of the electronic device. Moreover, even if the electronic device successfully registers with the IMS, the electronic device may fail to execute IMS services or execute IMS services abnormally. For example, when the IMS service is an IMS call, problems such as failure to initiate the IMS call, abnormal IMS call connection, and poor IMS call communication quality may occur. This will give users of the electronic device a poor experience in which the electronic device has the IMS function enabled to provide IMS services, but is unable to execute IMS services normally.
[0075] The problems of the existing technology are illustrated with a specific scenario. For example, when an electronic device is in region 1, it initiates an IMS registration request to the PLMN network for the first time. If the registration is successful, it means that region 1 supports IMS and the electronic device can use IMS services in region 1. The probability of success of the electronic device performing an IMS registration after restarting the device in region 1 or other electronic devices starting up for the first time in region 1 is extremely high, so the probability of success in executing IMS services (for example, IMS calls) is also extremely high. On the contrary, if the electronic device fails to register with IMS for the first time or the IMS service is unavailable, it means that the IMS network in the current region is extremely likely to be poor. In order to avoid causing a poor experience for users using IMS services, the IMS function of the electronic device needs to be turned off in time. Avoid giving users the illusion that they can use IMS services in scenarios where IMS services are not supported in the region, which ultimately leads to problems such as users being unable to use IMS services or electronic devices performing IMS services abnormally.
[0076] An embodiment of the present application provides an Internet Protocol Multimedia Subsystem (IMS) service processing method. When an electronic device sends an IMS service request to an IMS in a region, if the IMS service request is the first IMS service request sent by the electronic device to a PLMN, and if the IMS service request fails to respond, the electronic device disables the IMS function of the electronic device. If the response to the first IMS service request to the PLMN fails, it means that the electronic device has not previously sent an IMS-related service request to the IMS in the region. The region in which the electronic device is located is likely to not support IMS services, or there is a network failure in the IMS in the region in which the electronic device is located. In this case, if the electronic device fails to respond to the IMS service request, it will attempt to re-initiate the IMS service request multiple times within a period of time. Such frequent initiation of IMS service requests that will not be successfully responded to will increase the power consumption of the electronic device. In addition, in scenarios where the IMS network quality is poor, even if the electronic device successfully registers with the IMS, the IMS service will likely execute abnormally. Therefore, the electronic device disables the IMS function of the electronic device and performs self-healing on the IMS function. This reduces the power consumption of the electronic device and avoids the poor user experience caused by abnormal IMS service execution when using the IMS service.
[0077] The IMS service processing method provided in the embodiment of the present application can be applied to electronic devices. In the embodiment of the present application, the electronic device can be any electronic device that can communicate with another electronic device through a wireless communication network (for example, a 5G network) and IMS. The electronic device can have a subscriber identification module (SIM) card interface so that the SIM card can be inserted into the electronic device and communicate with another electronic device through the SIM card. Alternatively, the electronic device can communicate with another electronic device through an embedded SIM (eSIM) card. The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality device, an augmented reality device, a wireless device in industrial control, a wireless device in unmanned driving, a wireless device in telemedicine, a wireless device in a smart grid, a wireless device in transportation safety, a wireless device in a smart city, a wireless device in a smart home, etc. The following embodiments do not impose any special restrictions on the specific form of the electronic device.
[0078] Figure 2 FIG. 1 is a schematic structural diagram of an electronic device 100 provided in this embodiment.
[0079] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0080] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0081] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics 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). The different processing units may be independent devices or integrated into one or more processors.
[0082] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0083] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency.
[0084] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0085] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a limitation on the structure of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
[0086] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 can charge the battery 142 and also supply power to the electronic device through the power management module 141.
[0087] The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be arranged in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be arranged in the same device.
[0088] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
[0089] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.
[0090] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0091] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is 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 an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0092] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0093] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. 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).
[0094] In this embodiment, the electronic device can establish a communication connection with the IMS through the mobile communication module and send an IMS service request to the PLMN, such as an IMS registration request, an IMS call request, an IMS roaming request, etc. The electronic device can also receive a response to the IMS service request through the mobile communication module, such as a registration success response to the IMS registration request, a call success response to the IMS call request, etc.
[0095] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0096] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0097] In some embodiments, when the electronic device turns off the IMS function of the electronic device, a prompt message for reminding the user that the IMS function has been turned off may be output on the display screen in the form of a floating window, a capsule control, a pop-up window, etc. When the electronic device turns on the IMS function of the electronic device, a prompt message for reminding the user that the IMS function has been turned on may be output on the display screen in the form of a floating window, a capsule control, a pop-up window, etc.
[0098] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0099] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0100] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, speakers, receivers, microphones, headphone jacks, and application processors.
[0101] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0102] In some embodiments, the electronic device disables the IMS function of the electronic device in some cases, placing the electronic device in the first state. In this case, the IMS function of the electronic device can be enabled by any of the following methods, such as restarting the electronic device, turning on or off airplane mode, or hot-swapping a SIM card. This is because the electronic device will enable / restart the IMS function by default each time it is turned on, restarted, turned on or off airplane mode, or hot-swapping a SIM card.
[0103] In some embodiments, when an electronic device detects a power-on, restart, airplane mode on / off, or hot-swap card event, it triggers the IMS function to be enabled / restarted. Simultaneously, the electronic device initiates an IMS registration request to the IMS of the local PLMN. The location of the electronic device may or may not support IMS services. If the electronic device is located in an area that does not support IMS services, or if the electronic device is located in an area that supports IMS services but the IMS network quality is poor, the electronic device initiates an IMS registration request. The IMS may be unable to respond to the IMS registration request due to a network anomaly, and the electronic device will not receive any response to the IMS registration request. Alternatively, the IMS may return a request failure response to the electronic device due to the network anomaly. The request failure response may include a Session Initiation Protocol (SIP) message. A SIP message such as a 403 message, which indicates a network failure, indicates that the IMS service request response failed. Whether the electronic device does not receive a response to the IMS registration request or receives a request failure response, it indicates that the IMS registration request has failed. In this case, the electronic device can re-initiate the IMS registration request. However, due to IMS network anomalies, there's a high probability that an electronic device will fail to register even if it initiates IMS registration requests multiple times. Furthermore, existing communication systems don't limit the number of times an electronic device can re-initiate IMS registration requests. Consequently, even if IMS registration fails, the electronic device frequently re-initiates IMS registration requests, increasing its power consumption. Alternatively, even if an electronic device successfully registers with IMS, the probability of IMS service execution failure or anomaly is high during IMS service execution due to IMS network anomalies. This results in a poor user experience due to IMS service execution anomalies, even though the user can use IMS services.
[0104] This embodiment provides an IMS service processing method. When an electronic device executes an IMS service, the electronic device can shut down the IMS function in time for different situations to implement the IMS service processing of the electronic device, thereby avoiding the electronic device repeatedly re-initiating IMS service requests when the IMS network is abnormal, which increases the response time of the electronic device communication and unnecessary power consumption, and avoids the electronic device from executing IMS services when the IMS network is abnormal. Figure 3 Shown, including:
[0105] S101: An electronic device sends an IMS service request to the PLMN where the IMS in the area is located.
[0106] The region refers to the current geographic location of the electronic device. The electronic device can be pre-set with the region where the IMS function is enabled by default. When the electronic device reaches the region where the IMS function is enabled by default, the electronic device will trigger the IMS function to be enabled / restarted upon detecting power-on, restart, airplane mode, or hot-swap events, triggering the electronic device to send an IMS service request to the PLMN in the current region.
[0107] Exemplarily, the IMS service request may include an IMS registration request, an IMS call request, roaming, etc. Among them, the IMS call request includes a WIFI voice bearer (voice over Wi-Fi, VoWi-Fi) call request, a VoNR (voice over new radio) call request, a VoLTE (voice over long-term evolution, long-term evolution voice bearer) call request, etc.
[0108] In some embodiments, the electronic device needs to perform IMS registration before executing the IMS call service. After the IMS registration is successful, the electronic device can continue to send other IMS service requests to the PLMN to execute the corresponding IMS service.
[0109] S102: The electronic device determines whether the service request is an IMS service request sent to the PLMN for the first time.
[0110] In this embodiment, if the IMS service request is the first IMS service request sent by the electronic device to the PLMN in the area where it is located, that is, the electronic device has not performed IMS services in the area where it is located, if the response to the first IMS service request fails, it means that the area does not support IMS services or there is a high probability that the IMS network is abnormal; and if the IMS service request is not the first IMS service request sent by the electronic device to the PLMN in the area where it is located, that is, the electronic device has previously sent an IMS service request in the area where it is located, the previous IMS service request may respond successfully or fail to respond, and the failure of the current IMS service request response does not mean that the area does not support IMS services or the IMS network is abnormal. Therefore, whether the IMS service request sent by the electronic device is the first IMS service request sent to the IMS in the area where it is located can be used as an important judgment basis in this embodiment to indirectly confirm the IMS network status of the area where it is located.
[0111] In this embodiment, the electronic device can obtain the IMS unregistered identifier corresponding to the electronic device in the area where it is located. When the IMS unregistered identifier is a first value (for example, 1 or true), it indicates that the electronic device has not performed IMS registration in the IMS in the area where it is located, nor has it executed other IMS services, and the IMS service request currently initiated is the first IMS service request sent by the electronic device to the PLMN in the area where it is located. When the IMS unregistered identifier is a second value (for example, 0 or false), it indicates that the electronic device has performed IMS registration in the IMS in the area where it is located, and may have executed other IMS services, and the IMS service request currently initiated is not the first IMS service request sent by the electronic device to the PLMN in the area where it is located.
[0112] In some other implementations, the electronic device may also determine whether it is the first time to reach the area based on the recorded historical geographic location. If the historical geographic location does not include the geographic location of the area, it is considered to be the first time to reach the area, and the IMS service request sent in the area is the first IMS service request.
[0113] Alternatively, the electronic device can also determine whether the PLMN in the current area is the PLMN that initiates the IMS service request for the first time based on the recorded historical PLMN address. If the historical PLMN address does not include the address of the PLMN in the area, the IMS service request sent to the PLMN in the area is considered to be the first IMS service request.
[0114] In some other implementations, whether the service request is the first IMS service request sent to the PLMN may be determined by other methods, which are not limited here.
[0115] S103: If the service request is an IMS service request sent to the PLMN for the first time, when the IMS service request response fails, the electronic device turns off the IMS function of the electronic device.
[0116] After determining that the currently initiated IMS service request is the first IMS service request sent by the electronic device to the PLMN in the area where it is located, if the IMS service request response fails, it indicates that the area where the electronic device is located does not support IMS services or there is a high probability of IMS network abnormality, and the electronic device shuts down its own IMS function.
[0117] An electronic device can confirm an IMS service request response failure in various ways. For example, if the electronic device does not receive a response to the IMS service request within a certain period of time, or if the electronic device receives a response carrying a SIP message within a certain period of time, both of which can confirm an IMS service request response failure. The SIP message may be a 403 message indicating a network failure.
[0118] After confirming the failure of the IMS service request response, the electronic device can turn off its IMS function, which can be turned off for a period of time and then turned on again after the period of time ends; or the electronic device can turn off the IMS function permanently, and the electronic device will turn on / restart the IMS function only when the electronic device is powered on, restarted, switched between flight modes, or hot-plugged. The electronic device can perform self-recovery of the IMS function to different degrees according to the initiation of the IMS service request and the specific situation of the network exception of the IMS, to achieve different effects of IMS service processing in different scenarios. For example, the IMS function of the electronic device is turned off in the first mode, and the electronic device is in a first state. When the electronic device is in the first state, the electronic device will turn on / restart the IMS function only when the electronic device is powered on, restarted, switched between flight modes, or hot-plugged. For example, the IMS function of the electronic device is turned off in the second mode, and the electronic device is in a second state. When the electronic device is in the second state, it means that the electronic device turns off the IMS function when the IMS service request response fails, and turns on the IMS function after a preset first time period. For example, the IMS function of the electronic device is turned off in the third mode, and the electronic device is in a third state. When the electronic device is in the third state, it means that the electronic device turns off the IMS function when the IMS service request response fails, and turns on the IMS function after a preset second time period. Among them, the IMS service processing degree of the first mode is higher than that of the second mode; when the first time period is longer than the second time period, the IMS service processing degree of the second mode is higher than that of the third mode, and when the second time period is longer than the first time period, the IMS service processing degree of the third mode is higher than that of the second mode. The number of levels of the IMS service processing degree is not limited in this embodiment, and the preset time period corresponding to different IMS service processing degrees is not limited, which can be determined according to actual conditions.
[0119] In this embodiment, if the electronic device confirms that the IMS service request is the first IMS service request sent by the electronic device to the PLMN, and if the execution of the IMS service request fails, the electronic device disables the IMS function of the electronic device. If the execution of the IMS service request to the PLMN fails, it indicates that the electronic device has not previously sent the relevant IMS service request to the PLMN in the area where the electronic device is located, the area where the electronic device is located does not support IMS services, or there is a high probability of an IMS network failure. In this case, if the electronic device fails to respond to the IMS service request, it will attempt to re-initiate the IMS service request multiple times within a period of time. Such frequent initiation of unsuccessful IMS service requests increases the communication response time of the electronic device and causes unnecessary power consumption of the electronic device. Executing IMS services in scenarios with poor IMS network quality is also likely to result in anomalies. Therefore, the electronic device disables the IMS function of the electronic device and performs self-healing of the IMS function. This reduces the power consumption of the electronic device and also avoids the poor user experience caused by abnormal IMS service execution.
[0120] In some optional embodiments, different degrees of IMS function self-healing may be performed according to the specific circumstances of the IMS service request response failure. Figure 4 As shown, another IMS service processing method is provided, including:
[0121] S201: The electronic device sends an IMS service request to the PLMN where the IMS in the area is located.
[0122] Refer to S101 in the above steps.
[0123] S202: The electronic device starts a first timer.
[0124] In this embodiment, the first timer may be started when the electronic device sends an IMS service request to the PLMN; or after the electronic device sends the IMS service request to the PLMN, the first timer may be started; or when the electronic device detects a power-on, restart, airplane mode, or hot-swap card event, which triggers the electronic device to send an IMS service request, the first timer may be started. The first timer is used to monitor the response status of the IMS service request sent for the first time.
[0125] S203: The electronic device determines whether the IMS service request is the first IMS service request sent by the electronic device to the PLMN.
[0126] Refer to S102 in the above steps.
[0127] S204: If the IMS service request is the first IMS service request sent by the electronic device to the PLMN, and no response to the IMS service request is received before the first timer expires, the electronic device disables the IMS function of the electronic device in a first manner, placing the electronic device in a first state.
[0128] In this embodiment, the first timer can also be understood as a set maximum duration for the PLMN to respond to the IMS service request. If the PLMN does not respond to the IMS service request before the first timer expires, it is considered that the PLMN's response time to the IMS service request exceeds the maximum response time, and the IMS service request response can be considered a failure.
[0129] The IMS service request is the first IMS service request, and the electronic device does not receive a response corresponding to the IMS service request before the first timer of the IMS expires. The PLMN's response time to the IMS service request exceeds the maximum response time, and the IMS service request response is considered to have failed.
[0130] In this embodiment, the electronic device is in the first state, and the IMS function of the electronic device needs to be enabled by any of restarting the device, switching the airplane mode, and hot-swapping the card.
[0131] In this embodiment, the IMS service request is the first IMS service request, and no response to the IMS service request is received within the maximum response time, which means that the region where the electronic device is located has never successfully responded to an IMS service request. In this case, the highest level of IMS self-healing of the IMS function of the electronic device is performed. That is, the electronic device shuts down the IMS function of the electronic device in a first manner, placing it in a first state. The electronic device being in the first state can also be understood as permanently shutting down the IMS function. The electronic device will only restart / enable / restore the IMS function when an event such as a device restart, device power-on, airplane mode on / off, or hot-swapping a card occurs in the electronic device.
[0132] In some embodiments, in addition to disabling the IMS function, the electronic device may also perform:
[0133] S205: The electronic device terminates the first timer.
[0134] In this embodiment, the current IMS service request response fails, and the first timer for monitoring the success or failure of the IMS service request response no longer functions. Therefore, the first timer can be terminated to save power consumption of the electronic device.
[0135] Optionally, after disabling the IMS function in the first manner, the electronic device may further display a prompt message on the display interface to inform the user that the IMS function has been disabled and that the IMS function needs to be re-enabled by restarting the device, turning on the device, turning airplane mode on or off, or hot-swapping a card. Accordingly, if the electronic device detects a device restart, device startup, turning airplane mode on or off, or hot-swapping a card, the electronic device may display a prompt message on the display interface to inform the user that the IMS function has been re-enabled.
[0136] S206: If the electronic device receives a response to the IMS service request before the first timer expires, the first timer is terminated.
[0137] After executing S202, if a response to the IMS service request is received before the first timer expires, it indicates that the IMS service request has been successfully responded to. For example, if the IMS service request is an IMS registration request, it indicates that the electronic device has successfully completed IMS registration. If the IMS service request is an IMS call request, it indicates that the electronic device can normally conduct IMS calls. In this case, the first timer used to monitor the success or failure of the IMS service request response is no longer effective, and the first timer can be terminated to save power consumption of the electronic device.
[0138] In this embodiment, a first timer may be set to detect whether the electronic device has received a response from the PLMN to the IMS service request before the first timer expires. If the electronic device does not receive a response to the IMS service request before the first timer expires, it indicates that there is an abnormality in the IMS network in the area where the electronic device is located, and the PLMN in the area where the electronic device is located is very likely to have never successfully responded to an IMS service request. In this case, strict self-healing of the IMS function is performed, and the IMS function of the electronic device is shut down in a first manner to place it in the first state. This can avoid the increase in power consumption of the electronic device caused by frequent initiation of unsuccessful IMS service requests. While reducing the power consumption of the electronic device, it can also avoid a poor user experience caused by abnormal execution of the IMS service when the user uses the IMS service.
[0139] In some optional embodiments, different degrees of IMS function self-healing can be performed from other aspects according to the specific circumstances of the IMS service request response failure. Figure 5 As shown, another IMS service processing method is provided, including:
[0140] S301: An electronic device sends an IMS service request to the PLMN where the IMS in the area is located.
[0141] Refer to S101 in the above steps.
[0142] S302, the electronic device starts a second timer.
[0143] In this embodiment, the second timer can be started when the electronic device sends the IMS service request to the PLMN, or after the electronic device sends the IMS service request to the PLMN, or when the electronic device detects the power-on, restart, switch flight mode, hot plug card event, and triggers the electronic device to send the IMS service request. The second timer is used to listen to the request failure response received after sending the IMS service request.
[0144] The first timer and the second timer have different functions, and the duration of the first timer and the duration of the second timer can be the same or different. Specifically, the duration of the first timer and the duration of the second timer are determined according to actual conditions.
[0145] S303, the electronic device determines whether the IMS service request is the first IMS service request sent by the electronic device to the PLMN.
[0146] Reference is made to S102 in the above steps.
[0147] S304, if the service request is the first IMS service request sent by the electronic device to the PLMN, and the request failure response of the IMS service request is received before the second timer expires, it is determined that the service request response fails.
[0148] The request failure response carries a failure reason.
[0149] In this embodiment, the second timer can also be understood as the maximum duration of the request failure response of the IMS service request returned by the set PLMN to the electronic device. If the electronic device receives the returned request failure response before the second timer expires, it is considered that the IMS service request response fails.
[0150] In some embodiments, the request failure response received by the electronic device can be a response carrying a SIP. The SIP is a session initiation protocol message fed back by the IMS to the electronic device. The SIP can indicate a failure cause. For example, the SIP is 1xx, indicating a temporary response; the SIP is 200, indicating a successful session; the SIP is 4xx, indicating a request failure. For example, the SIP is 401 (unauthorized), indicating an unauthorized request; the SIP is 402 (payment required), indicating a payment required request; the SIP is 403 (forbidden), indicating a forbidden request; the SIP is 404 (not found), indicating a not found request; the SIP is 405 (method not allowed), indicating a method not allowed request; the SIP is 406 (not acceptable), indicating a not acceptable request; the SIP is 407 (proxy authentication required), indicating a proxy authentication required request; the SIP is 408 (request timeout), indicating a request timeout; and the like.
[0151] In the case of determining that the IMS service request response fails, the electronic device can further determine the self-recovery degree of the IMS function according to the failure cause carried in the request failure response.
[0152] For example, in some embodiments, after S304 is performed, the following can also be performed:
[0153] S305, if the failure cause indicates an IMS network failure, the electronic device closes the IMS function of the electronic device in a first manner, so that the electronic device is in a first state.
[0154] In the first state, the IMS function of the electronic device needs to be started by any of the following manners: device restart, on-off flight mode, and hot plug card.
[0155] In the embodiment, when the SIP is 403 or the public data network (PDN) is rejected to indicate that the access point name (APN) is abnormal (208027 / 208028), the IMS network failure is indicated. That is, if the SIP carried in the request failure response is 403, 208027 or 208028, it is determined that the failure cause in the current request failure response indicates the IMS network failure. The failure cause indicating the IMS network failure means that the IMS network status in the region where the electronic device is located is very poor. In this case, the self-healing of the IMS function of the electronic device can be performed to the maximum extent. The electronic device closes the IMS function of the electronic device in the first mode, and the electronic device is in the first state. The electronic device in the first state can also be understood as permanently closing the IMS function. Only when the electronic device restarts, powers on, switches the flight mode, hot-plugs the card and the like, the electronic device restarts / starts / resumes the IMS function.
[0156] In some embodiments, the SIM code for indicating the IMS network failure can be self-defined. For example, in the embodiment, when the received SIP code is 403, 208027 or 208028 and the like, the self-healing of the IMS function of the electronic device is triggered, and the electronic device closes the IMS function of the electronic device in the first mode.
[0157] It can be understood that for different scenarios such as the IMS service request being the first sent IMS service request, the IMS service request being the non-first sent IMS service request, the IMS service request being the IMS registration request, or the IMS service request being other specific IMS service request (such as the VoLTE call request) executed after the IMS registration success, the SIP carried in the failure cause of the request failure response received by the electronic device can be flexibly configured according to the actual network status, to trigger the self-healing of the IMS function of the electronic device to different extents. In the embodiment, the specific configuration of the SIP carried in the failure cause and the degree of the self-healing of the IMS function of the electronic device corresponding to the SIP code are not limited.
[0158] In S306, if the failure cause does not indicate the IMS network failure, the electronic device starts a third timer, and re-sends the IMS service request multiple times before the third timer expires.
[0159] The failure cause not indicating the IMS network failure means that the IMS network status of the region where the electronic device is located does not cause network failure, and there can be other accidental abnormal situations. In this case, the electronic device can attempt to re-initiate the IMS service request. In order to avoid the electronic device continuously re-initiating the IMS service request, a timer can be set. For example, the electronic device starts a third timer, and sends the IMS service request multiple times before the third timer expires. The third timer is used to listen to the status of re-initiating the IMS service request when the failure cause is not indicative of the IMS network failure.
[0160] S307, if the IMS service request response fails, the electronic device closes the IMS function of the electronic device in the first mode, and the electronic device is in the first state.
[0161] The IMS service request response failure includes multiple cases.
[0162] If the electronic device has not received a response corresponding to the IMS service request before the third timer expires, or the electronic device receives a request failure response of the IMS service request before the third timer expires, it means that the IMS service request response fails. In this case, the maximum self-healing of the IMS function of the electronic device is performed. The electronic device closes its own IMS function in the first mode, and is in the first state.
[0163] Optionally, in some embodiments, if the IMS service request response succeeds before the third timer expires, a corresponding IMS service operation is performed. For example, if the IMS registration request response succeeds before the third timer expires, it means that the electronic device performs IMS registration successfully, and then other IMS services can be performed.
[0164] In this embodiment, when the electronic device receives the request failure response, the IMS function self-healing of the electronic device can be further performed according to the failure cause carried in the request failure response. For example, when the failure cause indicates the IMS network failure, strict self-healing of the IMS function is performed, the IMS function of the electronic device is closed to be in the first state, which can avoid the increase of power consumption of the electronic device caused by frequent initiation of the IMS service request which cannot be successful, reduce the power consumption of the electronic device, and avoid the poor experience caused by the abnormal execution of the IMS service by the user. If the failure cause is not indicative of the IMS network failure, the IMS service request can be re-initiated before the third timer expires, and multiple attempts can increase the probability of success of the IMS service request, and avoid the situation that the IMS service cannot be executed due to accidental abnormal reasons.
[0165] In some embodiments, Figure 6An IMS service processing method is provided, taking an IMS service request as an IMS registration request as an example, including:
[0166] S1. The electronic device monitors an IMS function activation event.
[0167] For example, electronic devices monitor whether events such as device restart, device power-on, switching airplane mode, and hot-swapping cards occur, which may trigger the activation of the IMS function.
[0168] S2. The electronic device starts timer T1.
[0169] When the electronic device detects the occurrence of an IMS function activation event, it starts a timer T1, which is the first timer in the above embodiment and is used to monitor whether the IMS registration is successful or failed.
[0170] S3. The electronic device determines whether it has not performed IMS registration. If so, execute S4; if not, execute S13.
[0171] When the electronic device detects an IMS function activation event, it determines whether it has been registered with the IMS in the region. Refer to S102 above. If it has not been registered with the IMS in the region, it executes S4 of the IMS service processing method provided in this embodiment. If it has been registered with the IMS in the region, it executes S13.
[0172] S4. The electronic device monitors the IMS registration status.
[0173] If it is determined that the electronic device has not performed IMS registration, the electronic device performs IMS function self-healing and monitors the IMS registration status, wherein monitoring the IMS registration status refers to monitoring the success or failure of the IMS registration before the timer T1 expires.
[0174] S5. The electronic device starts timer T2.
[0175] The timer T2 is the second timer in the above embodiment, and is used to monitor whether a request failure response is received after the IMS registration request is sent.
[0176] S6. If the electronic device receives an IMS registration success response before T1 expires, execute S7.
[0177] S7. The electronic device stops monitoring the IMS registration status; stops timer T1; and sets the IMS registration status to registered.
[0178] In the embodiment, if the electronic device receives the IMS registration success response, the current electronic device has successfully performed IMS registration, and thus it is not necessary to monitor the IMS registration state any more, and the timer T1 is also terminated. In addition, the electronic device can also update the IMS registration state of the IMS in the region where the electronic device is located from unregistered to registered.
[0179] S8, the electronic device does not receive the IMS registration success response before the timer T1 ends, and S11 is performed.
[0180] Alternatively, in another case:
[0181] S9, the electronic device receives the IMS registration failure response before the timer T2 ends.
[0182] The IMS registration failure response carries a failure cause.
[0183] In the embodiment, in the case that the IMS service is IMS registration, and the IMS registration request is the first sent IMS service request, when the SIP code is configured as 403, 208027 or 208028, the electronic device IMS function self-recovery is triggered, and the electronic device closes the IMS function of the electronic device in the first mode.
[0184] S10, the electronic device judges whether the failure cause indicates IMS network failure, and if yes, S11 is performed. If no, S13 is performed.
[0185] S11, the electronic device closes the IMS function of the electronic device in the first mode, and makes the electronic device in the first state.
[0186] Reference is made to S204 in the above steps.
[0187] S12, the electronic device sets the IMS registration state as registered, and terminates the timer T1 and the timer T2.
[0188] In the embodiment, after the electronic device closes the IMS function, the current electronic device cannot perform IMS registration, and thus it is not necessary to monitor the IMS registration state any more, and the timer T1 and the timer T2 are terminated. In addition, the electronic device can also update the IMS registration state of the IMS in the region where the electronic device is located from unregistered to registered.
[0189] S13, the IMS service processing method is not necessary to be processed.
[0190] The electronic device has performed IMS registration in the region where the electronic device is located, which means that the IMS registration is successful, and the probability of network failure of the IMS in the region where the electronic device is located is relatively small, and thus the IMS service processing method provided in the embodiment is not used for IMS service processing.
[0191] In the embodiment, the electronic device determines that the IMS registration request is the first IMS registration request sent by the electronic device, and the electronic device closes the IMS function of the electronic device in the case that the IMS registration request fails. If the first IMS registration request fails, it indicates that the electronic device has not sent an IMS service request to the PLMN in the region before, and the region where the electronic device is located does not support the IMS service or the probability of IMS network failure is extremely high. In this case, if the electronic device fails to respond to the IMS registration request, the electronic device will attempt to initiate the IMS registration request again for a period of time. Frequent initiation of the IMS registration request that fails to register will increase the power consumption of the electronic device. Therefore, the electronic device closes the IMS function of the electronic device, and the self-recovery of the IMS function can reduce the power consumption of the electronic device.
[0192] In some optional embodiments, the electronic device can further request the electronic device to send the IMS service request that is not the first IMS service request to perform different degrees of IMS service processing. Referring to FIG. 1, the method comprises the following steps. Figure 7
[0193] S401, the electronic device sends an IMS service request to the PLMN where the IMS is located in the region.
[0194] Refer to S101 in the above steps.
[0195] S402, the electronic device determines whether the IMS service request is the first IMS service request sent to the PLMN.
[0196] Refer to S102 in the above steps.
[0197] S403, if the IMS service request is the first IMS service request sent to the PLMN by the electronic device, the electronic device closes the IMS function of the electronic device in the first mode when the IMS service request fails, and the electronic device is in the first state.
[0198] Refer to S204 in the above steps.
[0199] S404, if the IMS service request is not the first IMS service request sent to the PLMN by the electronic device, the electronic device starts a fourth timer.
[0200] In the embodiment, the electronic device determines that the IMS service request is not the first IMS service request sent by the electronic device, and the fourth timer can be started. The fourth timer is used to listen to the response state of the current non-first IMS service request.
[0201] S405: If the IMS service request response fails before the fourth timer expires and the IMS service request meets the failure condition, the electronic device disables the IMS function of the electronic device in a second manner, placing the electronic device in a second state.
[0202] The electronic device being in the second state indicates that the IMS function of the electronic device is disabled when the service request response fails, and is enabled after a preset first duration. For example, the first duration can be 30 minutes, 1 hour, 2 hours, 3 hours, etc. The failure condition is satisfied if the number of IMS service request response failures reaches a preset threshold before the fourth timer expires; or the probability of the IMS service request response failure is greater than a preset probability threshold.
[0203] In this embodiment, if the electronic device does not receive a response to the IMS service request before the fourth timer expires, or if the electronic device receives a request failure response to the IMS service request before the fourth timer expires, it is determined that the IMS service request response has failed. The electronic device determines whether the IMS service request satisfies the failure condition.
[0204] In this embodiment, if the number of IMS service request response failures reaches a preset threshold before the fourth timer expires, or if the probability of an IMS service request response failure is greater than a preset probability threshold, the electronic device shuts down the IMS function of the electronic device, placing the electronic device in the second state. For example, the preset threshold can be 10 times. For example, if the number of IMS service request response failures reaches 10 times before the fourth timer expires, the electronic device shuts down the IMS function of the electronic device, placing the electronic device in the second state. The preset probability threshold can be 70%. For example, if the probability of an IMS service request response failure in the area where the electronic device is located is greater than 70%, the electronic device shuts down the IMS function of the electronic device in the second manner, placing the electronic device in the second state.
[0205] Optionally, after deactivating the IMS function in the second manner, the electronic device may further display a prompt message on the display interface to remind the user that the IMS function has been deactivated and to reactivate the IMS function after a preset first duration. Accordingly, at the end of the preset first duration, the electronic device may display a prompt message on the display interface to remind the user that the IMS function has been reactivated.
[0206] In this embodiment, when the current IMS service request electronic device is not sending an IMS service request to the PLMN in the area for the first time, in order to further confirm the ability of the area to support IMS / the network status of IMS, the electronic device can start a fourth timer. When the IMS service request response fails, it can further determine whether a certain degree of IMS service processing is required based on the area or whether the service request meets the failure condition, thereby avoiding the situation where the IMS service execution is abnormal due to the abnormality of the IMS network in the area.
[0207] In some optional embodiments, IMS services include voice over long-term evolution (VoLTE) and voice over Wi-Fi (VoWi-Fi). VoLTE includes IMS registration, IMS text messages, VoNR (voice over new radio) calls, VoLTE calls, VoNR roaming, etc.; VoWi-Fi includes VoWi-Fi registration, VoWi-Fi text messages, VoWi-Fi calls, switching between VoWi-Fi and VoLTE, VoWi-Fi roaming, etc.
[0208] If IMS registration fails, please refer to Figure 6 The given embodiment performs corresponding IMS service processing. After the IMS registration is successful, the electronic device can execute other IMS services. When executing other IMS services, it may also encounter IMS network failures / abnormalities in the area. Therefore, IMS service processing is also required for the IMS services executed after the IMS registration is successful to reduce the power consumption of the electronic device IMS. Figure 8 Taking VoLTE calls as an example, the IMS service includes:
[0209] S501: The electronic device sends an IMS registration request to the PLMN where the IMS in the area is located.
[0210] The electronic device can be pre-set with areas where the IMS function is enabled by default. When the electronic device reaches an area where the IMS function is enabled by default, the electronic device will trigger the IMS function to be enabled / restarted when it detects power-on, restart, airplane mode, or hot-swapped card events, triggering the electronic device to send a service IMS registration request to the IMS of the PLMN in the current area.
[0211] S502: The electronic device receives an IMS registration success response returned by the PLMN.
[0212] When the electronic device receives the IMS registration success response, it means that the electronic device has established a connection with the IMS.
[0213] S503: The electronic device sends a VoLTE call request to the PLMN.
[0214] The electronic device sends a VoLTE call request to the PLMN in the current area.
[0215] S504: The electronic device determines whether the VoLTE call request is the first VoLTE call request sent by the electronic device to the PLMN.
[0216] An electronic device can obtain a "no VoLTE call" flag corresponding to the area where the electronic device is located. When the "no VoLTE call" flag is true, it indicates that the electronic device has not made a VoLTE call in the IMS in the area where it is located, and the currently initiated VoLTE call request is the first VoLTE call request sent by the electronic device to the PLMN in the area where it is located. When the "no VoLTE call" flag is false, it indicates that the electronic device has made a VoLTE call in the area where it is located, and the currently initiated VoLTE call request is not the first VoLTE call request sent by the electronic device to the PLMN in the area where it is located.
[0217] In some other implementations, the electronic device can also determine whether it is the first time to reach the area based on the recorded historical geographic location. If the historical geographic location does not include the geographic location of the area, it is considered to be the first time to reach the area, and the VoLTE call request sent to the PLMN in the area is the first VoLTE call request.
[0218] Alternatively, the electronic device can also determine whether the PLMN in the current area is the PLMN that initiated the VoLTE call request for the first time based on the recorded historical PLMN address. If the historical PLMN address does not include the address of the PLMN in the area, the VoLTE call request sent to the PLMN in the area is considered to be the first VoLTE call request, and so on.
[0219] S505: If the VoLTE call request is the first VoLTE call request sent by the electronic device to the PLMN, and the VoLTE call request response fails, the electronic device turns off the VoLTE call function of the electronic device in a first manner, so that the electronic device is in a first state.
[0220] The VoLTE call request response failure situation includes that the electronic device does not receive a response to the VoLTE call request or the electronic device receives a VoLTE call request failure response.
[0221] After determining that the currently initiated VoLTE call request is the first VoLTE call request sent by the electronic device to the PLMN in the area where it is located, if the VoLTE call request response fails, it indicates that the area where the electronic device is located does not support IMS services or the probability of IMS network abnormality is very high, and the electronic device turns off its own VoLTE call function in a first manner, so that the electronic device is in a first state. In this embodiment, when targeting a specific IMS service, the specific IMS service can be turned off instead of the entire IMS function of the electronic device, which can avoid the impact of turning off the IMS function on other feasible IMS services. When the specific VoLTE call function is turned off, the electronic device is in the first state, which means that the electronic device will restart / turn on / restore the VoLTE call function when events such as device restart, device power on, switch flight mode, hot-swap card, etc. occur.
[0222] In this embodiment, in a scenario where the IMS service is a VoLTE call and the VoLTE call request is the first VoLTE call request sent, when the SIP code is configured to be any SIP code except the SIP code indicating that the network is normal, the electronic device's IMS function self-healing is triggered, and the device shuts down the electronic device's IMS function in the first manner. For example, the SIP code indicating that the network is normal may be 4, 27, 127, etc. If the SIP code carried in the failure reason is a SIP code other than 4, 27, 127, etc. indicating that the network is normal, the electronic device's IMS function self-healing is triggered, and the device shuts down the electronic device's IMS function in the first manner.
[0223] S506: If the VoLTE call requesting electronic device is not sending the VoLTE call request to the PLMN for the first time, when the VoLTE call request response fails, the electronic device determines whether the signal strength of the IMS is less than a preset signal strength threshold.
[0224] In this embodiment, if the VoLTE call request is not the first VoLTE call request sent to the PLMN, when the VoLTE call request response fails, the electronic device can perform IMS self-healing according to the network signal instruction of the IMS.
[0225] In this embodiment, when the IMS service is a VoLTE call and the VoLTE call request is not the first VoLTE call request sent, the SIP code can be configured as 503, 500, 580, etc. to trigger the electronic device's IMS function self-healing and the device to determine the signal strength.
[0226] S506: If the signal strength of the IMS is less than the preset signal strength threshold, the electronic device disables the VoLTE call function of the electronic device in a third manner, so that the electronic device is in a third state.
[0227] The preset signal strength threshold can be understood as a signal strength threshold. If the IMS signal strength is less than the preset signal strength threshold, the electronic device performs self-healing of the IMS function, shutting down the IMS function of the electronic device in a third manner, placing the electronic device in a third state. The third manner provides a lower level of IMS service processing than the first manner.
[0228] Exemplarily, the signal strength may be a reference signal receiving power (RSRP). For example, when RSRP <-120, the self-healing of the IMS function of the electronic device is performed, the IMS function of the electronic device is turned off, and the electronic device is placed in the third state. Alternatively, the signal strength may also be a reference signal receiving quality (RSRQ). For example, when RSRQ <= -3, the self-healing of the IMS function of the electronic device is performed, the VoLTE call function of the electronic device is turned off, and the electronic device is placed in the third state.
[0229] In the case of disabling a specific VoLTE call function, the electronic device being in the third state means that the VoLTE call function is disabled when the service request response fails, and the VoLTE call function of the electronic device is enabled after a preset second duration. For example, the second duration can be 30 minutes, 1 hour, 2 hours, 3 hours, etc. In some embodiments, the first duration for disabling the IMS function of the electronic device due to an IMS registration service failure is greater than the second duration for disabling the IMS function of the electronic device due to a non-IMS registration service (such as a VoLTE call).
[0230] Optionally, after deactivating the VoLTE calling function in the third manner, the electronic device may further display a prompt message on the display interface to remind the user that the VoLTE calling function has been deactivated and that the VoLTE calling function will be reactivated after a preset second time period. Correspondingly, at the end of the preset second time period, the electronic device may display a prompt message on the display interface to remind the user that the VoLTE calling function has been reactivated.
[0231] In this embodiment, if the VoLTE call request is a request initiated for the first time, that is, the VoLTE call is the first call, if the first call fails and the failure reason indicates an IMS network failure, strict self-healing of the IMS function is performed, that is, the IMS function is permanently shut down; if the first call is successful, the current VoLTE call is not a request initiated for the first time, and the IMS function of the electronic device is self-healed only when the signal strength of the IMS is lower than the threshold, so as to avoid a poor experience caused by the user using the VoLTE call but the VoLTE call is executed abnormally.
[0232] In some embodiments, Figure 9 A more specific IMS service processing method is provided, taking a VoLTE call as an example, including:
[0233] S601: The electronic device receives call failure maintenance information.
[0234] Maintenance information refers to the information received by an electronic device when a call request fails. Maintenance information can also be understood as the request failure response returned by the IMS to the electronic device. Maintenance information can include the SIP address of the call failure, which can indicate the reason for the failure.
[0235] S602: The electronic device determines whether it is a VoLTE call or a circuit switched (CS) network replay.
[0236] The electronic device determines whether the maintenance information of the call failure indicates a VoLTE call, and if so, executes S603; or the electronic device determines whether the maintenance information of the call failure indicates a CS replay call, and if so, executes S603.
[0237] If the call failure maintenance information indicates that the call is not a VoLTE call and is not a CS redial call, the IMS service processing method will not be used.
[0238] S603: The electronic device determines whether the flag indicating that a VoLTE call has not been made is true.
[0239] In this embodiment, the electronic device determines whether a VoLTE call has been made. If the "No VoLTE Call Has Been Made" flag is true, it means the electronic device has not previously made a VoLTE call. If the "No VoLTE Call Has Been Made" flag is false, it means the electronic device has previously made a VoLTE call. For the specific determination process, refer to S504 above.
[0240] S604: If yes, that is, the flag indicating that a VoLTE call has never been made is true, the electronic device updates the flag indicating that a VoLTE call has never been made to false.
[0241] In this embodiment, the "No VoLTE Call Conducted" flag is set to true, indicating that the electronic device had not conducted a VoLTE call before receiving the call failure maintenance information. Since the maintenance information received this time may be maintenance information indicating a failed VoLTE call, the "No VoLTE Call Conducted" flag needs to be updated to false.
[0242] S605: The electronic device determines whether the failure reason of the call failure indicates an IMS network failure.
[0243] In this embodiment, the electronic device can obtain the failure cause from the call failure maintenance information and determine whether the failure cause meets the requirements. Whether the failure cause indicates an IMS network failure can be understood as whether the failure cause includes a normal check code (CHR) cause value. Normal CHR values include 4, 27, etc. If the failure cause includes a cause value other than 4 or 27, it indicates that it does not indicate an IMS network failure.
[0244] If the failure reason does not indicate an IMS network failure, the IMS function self-healing process is not performed.
[0245] S606: If yes, that is, the failure reason indicates an IMS network failure, the electronic device disables the VoLTE call function of the electronic device in a first manner, so that the electronic device is in a first state.
[0246] In this embodiment, the received call failure maintenance information is maintenance information generated when the electronic device makes its first VoLTE call. If the first call fails and the failure reason indicates an IMS network failure, the electronic device performs maximum self-healing of the IMS function. That is, the electronic device disables the VoLTE call function of the electronic device in a first manner, placing it in a first state. The electronic device being in the first state can also be understood as permanently disabling the VoLTE call function. The electronic device will only restart / enable / restore the VoLTE call function if an event such as a device restart, device power-on, airplane mode on / off, or hot-swapping a card occurs.
[0247] S607: If not, that is, the VoLTE call has not been conducted and the flag is false, the electronic device determines whether it is a normal call or a CS replay.
[0248] The electronic device further determines whether the maintenance information of the failed call indicates that the VoLTE call is abnormal. If the VoLTE call is abnormal, that is, the VoLTE call is not a normal call, then execute S608; or if the maintenance information is not information generated by CS redialing, then execute S608.
[0249] S608: If it is not a normal call, or it is not a CS replay, the electronic device determines whether the signal strength of the IMS is less than a preset signal strength threshold.
[0250] In this embodiment, the VoLTE call is not a normal call, that is, the VoLTE call fails. In this case, the electronic device further detects the network signal strength of the IMS and performs self-healing processing on the IMS capability if the IMS signal strength is less than a preset signal strength threshold.
[0251] In some embodiments, if the call is normal or not a CS replay, the IMS service processing method is not performed.
[0252] S609: If the signal strength of the IMS is less than the preset signal strength threshold, the electronic device disables the VoLTE call capability of the electronic device in a third manner, so that the electronic device is in a third state.
[0253] Refer to the above embodiment S506.
[0254] In some other feasible embodiments, the electronic device may disable IMS call capabilities (VoLTE call capabilities). That is, during the processing of a specific IMS service, the IMS function self-healing can be targeted at the specific IMS service, rather than self-healing the entire IMS capability of the electronic device. This ensures that the failed IMS service is not executed again without affecting other IMS services that have not been executed or have been successfully executed.
[0255] In some embodiments, if the signal strength of the IMS is greater than a preset signal strength threshold, the IMS service processing method is not performed.
[0256] In this embodiment, after the electronic device completes IMS registration, other IMS services are executed. For example, when making a VoLTE call, a judgment is made on whether to perform self-healing processing of the IMS function when the maintenance and measurement information of the call failure is received. When it is determined that the maintenance and measurement information of the call failure represents the failure of the first VoLTE call, strict self-healing of the IMS function is executed, the IMS function of the electronic device is turned off, and the electronic device is placed in the first state. When it is determined that the maintenance and measurement information of the call failure represents the failure of a non-first VoLTE call, when it is determined that the signal strength of the IMS is less than the preset signal strength threshold, a low degree of self-healing of the IMS function is executed, the IMS function of the electronic device is turned off in a third manner, and the electronic device is placed in the third state. For call failures in different scenarios, different degrees of self-healing of the IMS function are executed, which reduces the power consumption of the electronic device while more accurately realizing the on-off control of the IMS function of the electronic device, thereby optimizing the user experience of using IMS services.
[0257] It is understandable that the above embodiments Figure 3-Figure 9The IMS service processing method can be applied to the processing of any IMS service. For different IMS services, the parameters involved in the IMS service processing method can be adaptively set, such as the corresponding timer, failure condition, preset signal strength threshold, the duration of shutting down the IMS function, etc. In some embodiments, priority or independent self-healing control can also be performed for IMS services of different priorities to achieve more accurate self-healing control of IMS services by electronic devices. While reducing the power consumption generated by electronic devices performing IMS services, the self-healing of IMS capabilities is achieved as close to the user's actual usage as possible to optimize the user's experience of using IMS services.
[0258] In some optional embodiments, an IMS configuration list is pre-installed in the electronic device. The IMS configuration list includes multiple regions, IMS configuration parameters corresponding to each region, and the network status of the IMS corresponding to each region. The IMS network status includes whether the IMS network status is normal or the IMS network status is abnormal. The IMS configuration list can also be called an IMS function default activation list. When the electronic device reaches a region included in the list, the IMS function needs to be activated by default. When the electronic device detects an event that triggers the activation of the IMS function, such as a device restart, device power-on, airplane mode, or hot-swappable card, the IMS function is activated.
[0259] In some embodiments, the electronic device performs the above-mentioned embodiment in a certain area. Figure 3-Figure 9 The operation data (self-healing data) corresponding to the IMS function generated by the IMS business processing method can be sent to the cloud for data analysis, and then the cloud will update the status of the IMS function in each region in the IMS configuration list (default on or default off), the IMS network status (network normal or network abnormal), etc.
[0260] The operation data corresponding to the IMS function may include the number of IMS service failures generated by each execution of an IMS service request, the failure reason of the IMS service, the failure probability of the IMS service, and the like.
[0261] The cloud can periodically obtain operational data corresponding to IMS functions in different regions from the electronic device; or, when the geographic location of the electronic device is updated, receive operational data corresponding to the IMS functions in the region before the geographic location update, sent by the electronic device. Alternatively, when the electronic device is powered on, restarted, in airplane mode, or a card is hot-swapped, the cloud can receive operational data corresponding to the IMS functions in the current region, sent by the electronic device.
[0262] The cloud updates the status of each region's IMS functions based on the received operational data and the preset boundary conditions for each region. These boundary conditions may include the IMS configuration parameters and network status of the region. For example, these boundary conditions include the region's IMS network coverage, 2G / 3G network deprecation area coverage, IMS capability maturity, IMS network signal status, user usage frequency and number of other IMS services such as CS / VoLTE calls / VoWiFi calls / VoNR calls / VoLTE calls / IMS roaming, and user usage habits.
[0263] The cloud can weight these preset boundary conditions and adaptively adjust the average time T for disabling terminal IMS service capabilities. This can identify regions where operators' PLMNs do not support IMS registration or IMS calls (such as VoLTE calls), or where network signal quality is poor, resulting in a high probability of anomalies when electronic devices perform IMS registration and IMS calls in these areas. The cloud can then disable IMS registration and IMS call capabilities for electronic devices in these regions to ensure the user experience is not compromised.
[0264] In some embodiments, reference Figure 10 A flowchart of the terminal updating the IMS configuration list is given. If the cloud does not receive the operating data sent by the electronic device within T time, the IMS service in the area will be kept in strict self-healing mode; if the cloud receives the operating data sent by the electronic device within T time, it will determine whether each area meets the conditions for shutting down the IMS capability based on the operating data and the preset boundary conditions for each area. If so, the state of the IMS capability of the electronic device in the area will be updated to the default state of shutting down; if not, the state of the IMS capability of the electronic device in the area will be updated to the default state of opening.
[0265] The preset boundary conditions for each region include:
[0266] Condition 1: Whether the coverage of the 2\3G network withdrawal area in the region is greater than the preset coverage threshold; if so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is A.
[0267] Condition 2: Is the 2G / 3G service success rate in the region greater than the corresponding preset success rate threshold? If so, item = 1; if not, item = 0. The weight corresponding to condition 1 is B.
[0268] Condition 3: Is the network signal strength of the IMS in the area greater than the preset signal strength threshold? If so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is C.
[0269] Condition 4: Is the success rate of the IMS service in the area greater than the corresponding preset success rate threshold? If so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is D.
[0270] …
[0271] Condition N: ..., the weight corresponding to condition N is N.
[0272] In this embodiment, the cloud calculates the IMS capability value for each region using a weighted summation method based on the preset boundary conditions corresponding to each region and the weights corresponding to each condition. If the IMS capability value is greater than a preset threshold, the IMS capability status of the region is determined to be enabled by default; otherwise, the IMS capability status of the region is determined to be disabled by default.
[0273] Alternatively, in some embodiments, the cloud may use the operating data reported by the electronic device as one of the conditions for determining whether each region meets the requirements for disabling the IMS capability.
[0274] For example, the preset boundary conditions for each region include:
[0275] Condition 1: whether the region receives the self-healing data of multiple IMS registrations reported by the electronic device; if so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is A.
[0276] The IMS registration self-healing data refers to the operation data generated when an IMS registration request fails during IMS registration in the region.
[0277] Condition 2: whether the region receives self-healing data of multiple IMS calls reported by electronic devices; if so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is B.
[0278] The IMS registered self-healing data refers to the operational data generated when an IMS call request fails during an IMS call in the region.
[0279] Condition 3: Whether the coverage of the 2\3G network withdrawal area in the region is greater than the preset coverage threshold; if so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is C.
[0280] Condition 4: Is the 2G / 3G service success rate in the region greater than the corresponding preset success rate threshold? If so, item = 1; if not, item = 0. The weight corresponding to condition 1 is D.
[0281] Condition 5: Is the network signal strength of the IMS in the area greater than the preset signal strength threshold? If so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is E.
[0282] Condition 6: Is the success rate of the IMS service in the area greater than the corresponding preset success rate threshold? If so, item = 1, if not, item = 0, and the weight corresponding to condition 1 is F.
[0283] …
[0284] Condition N: ..., the weight corresponding to condition N is N.
[0285] Similarly, in this embodiment, the cloud calculates the IMS capability value for each region using a weighted summation method based on the preset boundary conditions corresponding to each region and the weights corresponding to each condition. If the IMS capability value is greater than a preset threshold, the IMS capability status of the region is determined to be enabled by default; otherwise, the IMS capability status of the region is determined to be disabled by default.
[0286] Through the above method, the cloud can update the status of the IMS capability of each region in the IMS configuration list to be enabled or disabled by default, so as to generate a target IMS configuration list, and send the target IMS configuration list to the electronic device.
[0287] After receiving the target IMS configuration list, the electronic device may perform a default enabling or default disabling operation of the corresponding IMS capability according to the status of the IMS capability corresponding to each region indicated in the target IMS configuration list.
[0288] In some embodiments, for regions where IMS capabilities are disabled by default in the target IMS configuration list, the electronic device may still attempt to send an IMS service request upon arrival in the region. In this case, the electronic device may adaptively reduce a preset number threshold for determining whether a failure condition is satisfied during IMS service processing in the region, as well as a preset probability threshold for determining whether a failure condition is satisfied during IMS service processing in the region, thereby reducing the number of IMS service attempts in the region and minimizing the power consumption of the electronic device while attempting IMS services. In this embodiment, the cloud can adjust the weights of the boundary conditions based on the regional network status, the frequency and number of times users use IMS services in the region, and user usage habits, and then update the default enabling or disabling of IMS functions for the electronic device corresponding to each region, thereby making the IMS configuration list more accurate.
[0289] Figure 11 A possible structural diagram of the electronic device involved in the above embodiments is shown. Figure 11 The electronic device 1000 shown includes a processing module 1001 , a communication module 1002 , and a storage module 1003 .
[0290] The processing module 1001 may be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may include an application processor and a baseband processor. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0291] For example, the processing module 1001 may be as follows Figure 2 The processor 110 shown; the communication module 1002 can be as follows Figure 2 The mobile communication module 150 and / or wireless communication module 160 shown; the storage module 1003 can be as follows Figure 2 The internal memory 121 shown. The electronic device provided in the embodiment of the present application can be Figure 2 The electronic device 100 is shown.
[0292] The present application also provides a chip system (eg, a system on a chip (SoC)). Figure 12 As shown, the chip system includes at least one processor 701 and at least one interface circuit 702. The processor 701 and the interface circuit 702 can be interconnected via lines. For example, the interface circuit 702 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 702 can be used to send signals to other devices (such as a processor 701 or a camera of an electronic device). Exemplarily, the interface circuit 702 can read an instruction stored in the memory and send the instruction to the processor 701. When the instruction is executed by the processor 701, the electronic device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiments of the present application.
[0293] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes the various functions or steps executed by the electronic device 100 in the above-mentioned method embodiment.
[0294] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the electronic device 100 in the above method embodiment. For example, the computer may be the above electronic device 100.
[0295] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0296] It should be noted that the personal information used in the technical solution of this application is limited to information for which the individual’s separate consent has been obtained, including but not limited to notifying and reminding the user to read the relevant user agreement (notification) and sign the agreement (authorization) including authorization of relevant user information before the user uses the function.
[0297] In the technical solutions disclosed in this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0298] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0299] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0300] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0301] The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0302] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for processing Internet protocol multimedia subsystem services, characterized in that: include: The electronic device sends an IMS service request to the Public Land Mobile Network (PLMN) where the Internet Multimedia Subsystem (IMS) is located in the area; If the IMS service request is the first IMS service request sent by the electronic device to the PLMN in the area, when the IMS service request response fails, the electronic device disables the IMS function of the electronic device.
2. The method according to claim 1, characterized in that After the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in the area, the method further includes: The electronic device starts a first timer; When the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, including: If the electronic device does not receive a response to the IMS service request before the first timer expires, the electronic device disables the IMS function of the electronic device in a first manner, so that the electronic device is in a first state; The electronic device is in the first state and needs to enable the IMS function of the electronic device by any of restarting the device, switching the airplane mode, and hot-swapping the card.
3. The method according to claim 1 or 2, characterized in that After the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in the area, the method further includes: The electronic device starts a second timer; When the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, including: If the electronic device receives a response carrying a failure reason before the second timer expires, and the failure reason indicates an IMS network failure, the electronic device disables the IMS function of the electronic device in a first manner, so that the electronic device is in the first state; The electronic device is in the first state and needs to enable the IMS function of the electronic device by any of restarting the device, switching the airplane mode, and hot-swapping the card.
4. The method according to claim 3, characterized in that When the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, further comprising: If the failure reason does not indicate an IMS network failure, the electronic device starts a third timer and sends the IMS service request to the PLMN multiple times before the third timer expires; If multiple responses to the IMS service requests fail before the third timer expires, the electronic device disables the IMS function of the electronic device in the first manner, so that the electronic device is in the first state.
5. The method according to any one of claims 1 to 4, characterized in that After the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in the area, the method further includes: If the IMS service request is not the first IMS service request sent by the electronic device to the PLMN, the electronic device starts a fourth timer; If, before the fourth timer expires, all responses to the IMS service requests sent by the electronic device fail, and the failure condition is met, the electronic device disables the IMS function of the electronic device in a second manner, placing the electronic device in a second state; The electronic device is in the second state, which indicates that the IMS function of the electronic device is turned off when the IMS service request response fails, and the IMS function of the electronic device is turned on after a preset first time period; The failure condition is satisfied when the number of IMS service request response failures reaches a preset number threshold before the fourth timer expires, or when the probability of the IMS service request response failure is greater than a preset probability threshold.
6. The method according to claim 5, characterized in that The electronic device is pre-installed with an IMS configuration list, the IMS configuration list including multiple regions, IMS configuration parameters corresponding to each region, and the IMS network status corresponding to each region; wherein the IMS network status includes network normal or network abnormal; The method further comprises: The electronic device transmits operation data of the IMS service request generated in the region to the cloud; the operation data includes operation data corresponding to a failure of the electronic device to send a response to the IMS service request to the PLMN in the region, or operation data corresponding to a successful response to the IMS service request; The electronic device receives a target IMS configuration list issued by the cloud; the target IMS configuration list is a list obtained by updating the IMS configuration parameters corresponding to the region and the IMS network status corresponding to the region in the IMS configuration list based on the operation data by the cloud; The electronic device updates the preset number threshold in the failure condition and / or updates the preset probability threshold in the failure condition according to the target IMS configuration list.
7. The method according to any one of claims 1 to 6, characterized in that The IMS service request includes an IMS registration request and an IMS call request; the method further includes: The electronic device sends the IMS registration request to the PLMN where the IMS is located in the area; After the electronic device receives a registration success response to the IMS registration request, the electronic device establishes a connection with the IMS; The electronic device sends an IMS service request to a public land mobile network PLMN where an Internet Multimedia Subsystem IMS is located in the area, including: The electronic device sends the IMS call request to the PLMN in the area; If the IMS service request is an IMS service request sent by the electronic device to the PLMN for the first time, when the IMS service request response fails, the electronic device shuts down the IMS function of the electronic device, including: If the IMS call request is the first IMS call request sent by the electronic device to the PLMN, when the IMS call request response fails, the electronic device disables the IMS function of the electronic device in a first manner, so that the electronic device is in a first state; wherein, when the electronic device is in the first state, the IMS function of the electronic device needs to be enabled by any of the following methods: restarting the device, turning on or off airplane mode, or hot-swapping a card; If the IMS call request is not the first IMS call request sent by the electronic device to the PLMN, when the IMS call request response fails and the signal strength of the IMS is less than a preset signal strength threshold, the electronic device disables the IMS function of the electronic device in a third manner, so that the electronic device is in a third state; Among them, the electronic device is in the first state and needs to enable the IMS function of the electronic device by any of restarting the device, switching the airplane mode, and hot-swapping the card; the electronic device is in the third state, which indicates that the IMS function of the electronic device is turned off when the IMS service request response fails, and the IMS function of the electronic device is enabled after a preset second time period.
8. The method according to any one of claims 1 to 7, characterized in that After the electronic device sends an IMS service request to a public land mobile network (PLMN) where an Internet Protocol Multimedia Subsystem (IMS) is located in the area, the method further includes: The electronic device obtains geographical location information of the electronic device; If the area indicated by the geographical location information is the area that the electronic device arrives at for the first time, the electronic device determines that the IMS service request is the first IMS service request sent to the PLMN.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory, wherein: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
IMS network registration method and device, storage medium and terminal equipment
CN111147493A
Method for initiating IMS (IP Multimedia Subsystem) registration by user equipment and corresponding user equipment
CN115568011A
Method for establishing communication connection and electronic apparatus capable of establishing communication connection
US20240007508A1