Abnormal SIM card processing method and device, equipment, medium and program product

By identifying and judging the serviceless duration of an abnormal SIM card, disabling an abnormal secondary card to reduce power loss and resource conflicts, solving the power consumption and resource conflicts caused by abnormal SIM card, achieving longer terminal battery life and more stable multi-card service operation.

CN119584100APending Publication Date: 2025-03-07SHANGHAI WINGTECH ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411679077.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

Abnormal SIM cards cause mobile terminals to consume power and affect the service operation of multiple card terminals. The prior art cannot completely avoid the problems of power consumption loss and resource conflicts.

Method used

By identifying the abnormal SIM card, determine whether its service-free time is greater than or equal to the preset threshold. If so, determine that it is the main card or secondary card. If it is a secondary card, disable the SIM card and display the prompt information to avoid it from searching the Internet by itself.

Benefits of technology

It effectively reduces the power loss caused by abnormal SIM cards in the terminal, avoids resource conflicts between multiple cards, and extends the terminal's battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119584100A_ABST
    Figure CN119584100A_ABST
Patent Text Reader

Abstract

The invention relates to an abnormal SIM card processing method and device, equipment, a medium and a program product, and particularly relates to the technical field of terminals. Comprising the following steps: when an abnormal SIM card is identified, judging whether the no-service duration of the abnormal SIM card is greater than or equal to a first duration threshold; if the no-service duration is greater than or equal to a first duration threshold, judging whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is the auxiliary card, the abnormal SIM card is disabled and first prompt information is displayed, and the first prompt information is used for reminding a user that the abnormal SIM card consuming power is closed. Therefore, the abnormal SIM card is prevented from searching the network by itself under the condition that the user does not perceive, the abnormal power consumption is reduced, and the resource conflict during multi-card service execution is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method, device, equipment, medium and program product for processing an abnormal SIM card. Background Art

[0002] Mobile terminals usually have to be equipped with a carrier's Subscriber Identity Module (SIM card) for voice calls or network communications. However, when a SIM card fails to stay on the network, it is not easy for the user to notice or the user does not know that the abnormal SIM card will cause serious power consumption, so no corresponding processing will be done. However, the mobile terminal will still frequently search for the network for this SIM card, which will cause the mobile terminal to consume power and affect the service operation of other SIM cards in the multi-card terminal.

[0003] The current technology is that after the terminal identifies an abnormal SIM card and determines that the power consumption optimization conditions are met, it optimizes the network search process of the SIM card, such as restricting the network search process, extending the network search cycle, etc. However, the terminal will still perform the network search action, and it is still impossible to completely avoid the power consumption loss and multi-card resource conflict caused by the abnormal SIM card. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a method, device, equipment, medium and program product for processing abnormal SIM cards, which can reduce the power loss of the terminal caused by SIM card abnormality and avoid resource conflicts between multiple cards.

[0005] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:

[0006] In a first aspect, the present application provides a method for processing an abnormal SIM card, comprising: when an abnormal SIM card is identified, determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold; if the out-of-service duration is greater than or equal to the first duration threshold, determining whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, disabling the abnormal SIM card and displaying a first prompt message, the first prompt message being used to remind the user that the abnormal SIM card that consumes power has been turned off.

[0007] As an optional implementation of the embodiment of the present application, when an abnormal SIM card is identified, before determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method further includes: obtaining network information of the SIM card to be tested, the network information including the network standard, signal strength and signal quality; determining whether the SIM card to be tested enters an out-of-service state according to the network information; if so, determining that the SIM card to be tested is an abnormal SIM card.

[0008] As an optional implementation of the embodiment of the present application, when an abnormal SIM card is identified, after determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method also includes: if the out-of-service duration of the abnormal SIM card is less than the first duration threshold, determining whether the out-of-service duration is greater than or equal to a second duration threshold; the second duration threshold is less than the first duration threshold; if so, determining a network search strategy for the abnormal SIM card, the network search strategy indicating that a network search for the abnormal SIM card is prohibited when the terminal screen is on, and a network search for the abnormal SIM card is performed within a preset time when the terminal screen is off; executing the network search strategy, and displaying a second prompt message, the second prompt message being used to remind the user that the abnormal SIM card is consuming abnormal power.

[0009] As an optional implementation of the embodiment of the present application, if the out-of-service duration is greater than or equal to the first duration threshold, after determining whether the abnormal SIM card is a primary card or a secondary card, the method also includes: if the abnormal SIM card is the primary card, disabling the abnormal SIM card and switching the secondary card to search the network, and displaying a first prompt message.

[0010] In a second aspect, the present application provides a device for processing an abnormal SIM card, the device comprising:

[0011] A first judgment module is used to judge whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold when an abnormal SIM card is identified;

[0012] The second judgment module is used to judge whether the abnormal SIM card is a primary card or a secondary card if the out-of-service time is greater than or equal to the first time threshold;

[0013] The processing module is used to disable the abnormal SIM card and display a first prompt message if the abnormal SIM card is a secondary card. The first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off.

[0014] As an optional implementation of the embodiment of the present application, the first judgment module, when an abnormal SIM card is identified, determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold, and is also used to: obtain the network information of the SIM card to be tested, the network information including the network standard, signal strength and signal quality; determine whether the SIM card to be tested enters a no-service state according to the network information; if so, determine that the SIM card to be tested is an abnormal SIM card.

[0015] As an optional implementation of the embodiment of the present application, the first judgment module, when an abnormal SIM card is identified, determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, and is also used to: if the out-of-service duration of the abnormal SIM card is less than the first duration threshold, then determine whether the out-of-service duration is greater than or equal to a second duration threshold; the second duration threshold is less than the first duration threshold; if so, determine the network search strategy of the abnormal SIM card, the network search strategy indicates that it is prohibited to search the network for the abnormal SIM card when the terminal screen is on, and to search the network for the abnormal SIM card within a preset time when the terminal screen is off; execute the network search strategy, and display a second prompt message, the second prompt message is used to remind the user that the abnormal SIM card consumes abnormal power.

[0016] As an optional implementation of the embodiment of the present application, the second judgment module, after judging whether the abnormal SIM card is the main card or the secondary card if the out-of-service duration is greater than or equal to the first duration threshold, is also used to: if the abnormal SIM card is the main card, disable the abnormal SIM card and switch the secondary card to search the network, and display the first prompt information.

[0017] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for processing an abnormal SIM card as described in the first aspect or any one of its optional embodiments.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for processing an abnormal SIM card as described in the first aspect or any optional embodiment thereof is implemented.

[0019] In a fifth aspect, the present application provides a computer program product, including: the computer program product includes a computer program, when the computer program is run on a computer, the computer implements the method for processing an abnormal SIM card as described in the first aspect or any one of its optional embodiments.

[0020] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:

[0021] The disclosed embodiment provides a method, device, equipment, medium and program product for processing an abnormal SIM card, wherein the method first determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold when an abnormal SIM card is identified; if the out-of-service duration is greater than or equal to the first duration threshold, determines whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, and the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off. This prevents the abnormal SIM card from searching the network without the user's awareness, reduces abnormal power consumption, and avoids resource conflicts when executing multi-card services. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0024] Figure 1 A schematic diagram of a method for handling an abnormal SIM card provided in an embodiment of the present application Figure 1 ;

[0025] Figure 2 A schematic diagram of a method for handling an abnormal SIM card provided in an embodiment of the present application Figure 2 ;

[0026] Figure 3 A schematic diagram of the structure of a device for processing an abnormal SIM card provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of the structure of an electronic device described in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the technical terms required to be used in the embodiments or the prior art description are briefly introduced below:

[0029] Network search refers to the process of actively searching and identifying available mobile networks around the modem when it is turned on or enters a network area from a no-network state. First, the modem will scan the frequency band within the frequency band it supports. When a signal is detected on the frequency band, the modem will perform preliminary detection and identification of the signal to determine which network standard the signal belongs to. After identifying the network standard, the modem will further obtain relevant parameters of the network. These parameters include base station identification (such as PCI-physical cell identification in LTE), signal strength (such as RSRP), signal quality (such as RSRQ) and other information. At the same time, the system information of the network, such as frequency, bandwidth, etc., will also be obtained. Based on the obtained signal strength, quality and network parameters, the modem will select and sort the detected cells. Priority will be given to cells with high signal strength, good quality and support for required services (such as voice, data, etc.).

[0030] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0032] In order to solve some or all of the technical problems existing in the related art, the embodiment of the present application provides a method, device, equipment, medium and program product for processing an abnormal SIM card, wherein the method first determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold when the abnormal SIM card is identified; if the out-of-service duration is greater than or equal to the first duration threshold, determines whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, and the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off. This prevents the abnormal SIM card from searching the network without the user's perception, reduces abnormal power consumption, and avoids resource conflicts when executing multi-card services.

[0033] A method for processing an abnormal SIM card provided in an embodiment of the present application can be implemented by a processing device or electronic device of the abnormal SIM card, and the electronic device includes but is not limited to a personal computer, a laptop computer, a tablet computer, a smart phone, etc. The operating system of the electronic device may include Android (Android), a mobile operating system (iOS) developed by Apple, an operating system (Windows) developed by Microsoft Corporation of the United States, etc., and the embodiment of the present application does not limit this. The electronic device can be run alone to implement the present application, or it can be connected to the network and implemented by interactive operations with other computer devices in the network. Among them, the network in which the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN) network, etc.

[0034] It should be noted that the protection scope of the method for processing an abnormal SIM card described in the embodiment of the present application is not limited to the execution order of the steps listed in the present embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.

[0035] like Figure 1 As shown, Figure 1 A schematic diagram of a method for handling an abnormal SIM card according to an embodiment of the present application Figure 1 The method can be executed by a processing device for an abnormal SIM card, wherein the device can be implemented by software and / or hardware and can generally be integrated in. The method mainly includes the following steps S101 to S103:

[0036] S101. When an abnormal SIM card is identified, determine whether a no-service duration of the abnormal SIM card is greater than or equal to a first duration threshold.

[0037] Among them, abnormal SIM cards include but are not limited to: SIM cards with overdue payments, discarded SIM cards, or SIM cards that are used abroad without international roaming services. Abnormal SIM cards cannot obtain various network services.

[0038] In some embodiments, before executing step S101, it is first identified whether the SIM card to be tested inserted in the terminal is abnormal. In this process, the network information of the SIM card to be tested is first obtained, including the network standard, signal strength and signal quality; then, it is determined according to the network information whether the SIM card to be tested enters a no service state. If so, it is determined that the SIM card to be tested is an abnormal SIM card.

[0039] Among them, the network standard refers to the communication technology standard or network type used by mobile devices (such as mobile phones, Internet of Things devices, etc.) when establishing a connection (networking) with the mobile network. Network standard types include but are not limited to: fourth-generation mobile communication technology (4G) and fifth-generation mobile communication technology (5G). Signal strength (Reference Signal Received Power, RSRP) indicates the power level of the base station reference signal received by the mobile device within a certain bandwidth, and the unit is usually dBm (decibel milliwatt). Signal quality (Reference Signal Received Quality, RSRQ) is calculated by the ratio of the reference signal received power (RSRP) to the total received signal power (including interference and noise), and the unit is generally dB (decibel).

[0040] Out of Service (OOS) is a status indication that a mobile device (such as a mobile phone, tablet, etc.) is currently unable to connect to any mobile network service. This means that the device cannot make normal voice calls, send text messages, or use mobile data services.

[0041] According to the network standard, signal strength and signal quality, it is determined whether the SIM card to be tested has entered the out-of-service state. If so, it means that the SIM card to be tested is abnormal, and step S101 is continued; if not, it means that the SIM card to be tested is normal, and this application does not process this.

[0042] The out-of-service duration refers to the duration of time that the SIM card enters the out-of-service state. The first duration threshold is pre-set to determine whether the SIM card is abnormal for a long time. Exemplarily, the first duration threshold is 72 hours.

[0043] After executing step S101, if the out-of-service duration of the abnormal SIM card is less than the first duration threshold, it is determined whether the out-of-service duration of the abnormal SIM card is greater than or equal to the second duration threshold, and the second duration threshold is less than the first duration threshold; if so, it means that the out-of-service duration of the abnormal SIM card is greater than or equal to the second duration threshold and less than the first duration threshold, and the abnormal SIM card is abnormal for a short period of time, then the network search strategy of the abnormal SIM card is determined. The network search strategy instructs the terminal not to search the network when the screen is on, and to search the network within a preset time when the screen is off. To execute the network search strategy, and display the second prompt information, thereby reminding the user that the abnormal SIM consumes abnormal power. Among them, the preset time can be 1 minute. Optionally, the second prompt information can be in the form of a pop-up window; the second prompt information can also include a solution strategy, and the solution strategy is used to suggest the user to check the abnormal SIM card, or check the local network status.

[0044] In some embodiments, if the out-of-service duration of the abnormal SIM card is less than the second duration threshold, it means that the SIM card is temporarily out of service, and the out-of-service duration of the abnormal SIM card continues to be monitored.

[0045] In some embodiments, if no network is found within a preset time period according to the network search strategy, the control terminal searches for the abnormal SIM card according to a preset period and displays a second prompt message, wherein the preset period may be 1200 seconds.

[0046] S102: If the out-of-service duration is greater than or equal to a first duration threshold, determine whether the abnormal SIM card is a primary card or a secondary card.

[0047] If the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold, it means that the abnormal SIM card is abnormal for a long time, and then it is further determined whether the abnormal SIM card is a primary card or a secondary card.

[0048] S103: If the abnormal SIM card is a secondary card, disable the abnormal SIM card and display a first prompt message.

[0049] The first prompt information is used to remind the user that the abnormal SIM card that consumes power has been turned off. Optionally, the first prompt information also includes an option to enable the abnormal SIM card, so that the user can quickly enable the abnormal SIM card when the abnormal SIM card must be used. The first prompt information can be displayed periodically.

[0050] If the SIM card that has been abnormal for a long time is a secondary card, since the main card is usually the default Internet access card, the abnormal SIM card will be directly disabled, and the main card will provide Internet access normally. The first prompt message will be displayed to remind the user that the secondary card abnormality has been turned off. This prevents the secondary card from continuing to search the network and consuming power in the case of abnormality, thereby extending the battery life of the terminal.

[0051] In some embodiments, in response to the user's operation of activating the abnormal SIM card, the out-of-service duration of the abnormal SIM card is re-timed, and the process returns to step S101. The timer starts at the moment when the abnormal SIM card is re-activated, and the new out-of-service duration is used for comparison with the first duration threshold and the second duration threshold.

[0052] In some embodiments, after executing step S102, if the abnormal SIM card is the primary card, since the primary card is the default network card, the abnormal SIM card is disabled and the secondary card is switched to search the network, and the first prompt information is displayed.

[0053] In some embodiments, a timer is set for the first prompt message. If the timing duration of the timer exceeds the preset duration, the first prompt message is redisplayed to remind the user that a SIM card has been disabled and not to forget it. If the timing duration of the timer does not exceed the preset duration, the abnormal SIM card remains disabled.

[0054] In summary, the embodiment of the present application provides a method for processing an abnormal SIM card. First, when an abnormal SIM card is identified, it is determined whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold; if the out-of-service duration is greater than or equal to the first duration threshold, it is determined whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, and the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off. This prevents the abnormal SIM card from searching the network without the user's awareness, reduces abnormal power consumption, and avoids resource conflicts when executing multi-card services.

[0055] like Figure 2 As shown, Figure 2 A schematic diagram of a method for handling an abnormal SIM card provided in an embodiment of the present application Figure 2 , the method comprises the following steps:

[0056] S201: Obtain the network information of the SIM card to be tested.

[0057] The network information includes network type, signal strength and signal quality.

[0058] S202: Determine whether the SIM card to be tested enters a no-service state according to the network information.

[0059] If yes, execute step S203;

[0060] If not, it means the SIM card to be tested is a normal SIM card, and continue to monitor its network information.

[0061] S203: Determine whether the SIM card to be tested is an abnormal SIM card.

[0062] S204: When an abnormal SIM card is identified, determine whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold.

[0063] The out-of-service duration of the abnormal SIM card refers to the duration of time that the abnormal SIM card enters the out-of-service state. The first duration threshold is pre-set to determine whether the SIM card is abnormal for a long time. Exemplarily, the first duration threshold is 72 hours.

[0064] If not, execute step S205a;

[0065] If yes, it means that the abnormal SIM card is abnormal for a long time, then execute step S205b;

[0066] S205a: Determine whether the out-of-service duration of the abnormal SIM card is greater than or equal to a second duration threshold.

[0067] The second time threshold is preset to determine whether the SIM card is abnormal for a short period of time. The second time threshold is smaller than the first time threshold. An exemplary second time threshold is 24 hours.

[0068] If yes, it means that the out-of-service duration of the abnormal SIM card is greater than or equal to the second duration threshold and less than the first duration threshold, and the abnormal SIM card is abnormal for a short period of time, then executing step S206a;

[0069] If not, it means that the out-of-service duration of the abnormal SIM card is less than the second duration threshold, and monitoring will continue.

[0070] S206a: Determine the network search strategy for the abnormal SIM card.

[0071] The network search policy instructs the terminal not to search the network when the screen is on, and to search the network within a preset time when the screen is off. The preset time can be 1 minute.

[0072] Exemplarily, the modem is restricted from searching the network when the screen is on, and a one-minute network search is performed when the screen is off.

[0073] S207a, executing the network search strategy and displaying the second prompt information.

[0074] The second prompt information is used to remind the user that the abnormal SIM card consumes abnormal power. The second prompt information may also include a solution strategy, which is used to suggest the user to check the abnormal SIM card or check the local network status.

[0075] Optionally, if the network is not found within a preset time according to the network search strategy, the control terminal searches for the abnormal SIM card according to a preset period and displays a second prompt message. Using the above example, if the network cannot be found within 1 minute, the network is searched periodically with a network search period of 1200 seconds.

[0076] In response to the user's operation of checking the abnormal SIM card or checking the local network status, it is identified whether the abnormal SIM card has resumed normal network operation. If so, the process returns to step S201; if not, the process continues to record the out-of-service duration of the abnormal SIM and returns to step S204.

[0077] S205b: Determine whether the abnormal SIM card is a primary card or a secondary card.

[0078] When the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold, indicating a long-term abnormality, it is determined whether it is a primary card or a secondary card.

[0079] S206b: If the abnormal SIM card is a secondary card, disable the abnormal SIM card and display a first prompt message.

[0080] If the abnormal SIM card is a secondary card, you can disable the abnormal SIM card by turning off the SIM card enable switch.

[0081] The first prompt information is used to remind the user that the abnormal SIM card that consumes power has been turned off. Optionally, the first prompt information also includes an option to enable the abnormal SIM card, so that the user can quickly enable the abnormal SIM card when the abnormal SIM card must be used. The first prompt information can be displayed periodically.

[0082] Exemplarily, the first prompt message may include the following content: "Due to abnormal power consumption of the SIM card, the abnormal SIM card function has been automatically disabled for you; if you need to enable it, please turn on the SIM card activation switch in Settings - Mobile Network - SIM Card Information."

[0083] In response to the user's operation of activating the abnormal SIM card, a timer is set to re-time the out-of-service duration of the abnormal SIM card, and the process returns to step S204.

[0084] S207b: If the abnormal SIM card is the primary card, disable the abnormal SIM card and switch to the secondary card to search the network, and display the first prompt information.

[0085] In the above steps S206b and S206c, a timer for the first prompt message is set. If the timing duration of the timer does not exceed the preset duration, the disabled state of the abnormal SIM card is maintained; if the timing duration of the timer exceeds the preset duration, the first prompt message is redisplayed to remind the user that a SIM card is disabled and not to forget it.

[0086] like Figure 3 As shown, Figure 3 An abnormal SIM card processing device provided in an embodiment of the present application includes:

[0087] The first judgment module 301 is used to judge whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold when an abnormal SIM card is identified;

[0088] The second judgment module 302 is used to judge whether the abnormal SIM card is a primary card or a secondary card if the out-of-service time is greater than or equal to the first time threshold;

[0089] The processing module 303 is used to disable the abnormal SIM card and display a first prompt message if the abnormal SIM card is a secondary card. The first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off.

[0090] As an optional implementation of the embodiment of the present application, the first judgment module 301, when an abnormal SIM card is identified, before judging whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold, is also used to: obtain the network information of the SIM card to be tested, the network information including the network standard, signal strength and signal quality; judge whether the SIM card to be tested enters the out-of-service state according to the network information; if so, determine that the SIM card to be tested is an abnormal SIM card.

[0091] As an optional implementation of the embodiment of the present application, the first judgment module 301, when an abnormal SIM card is identified, determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold, and is also used to: if the out-of-service duration of the abnormal SIM card is less than the first duration threshold, then determine whether the out-of-service duration is greater than or equal to the second duration threshold; the second duration threshold is less than the first duration threshold; if so, determine the network search strategy of the abnormal SIM card, the network search strategy indicates that the network search for the abnormal SIM card is prohibited when the terminal screen is on, and the network search for the abnormal SIM card is performed within a preset time when the terminal screen is off; execute the network search strategy, and display a second prompt message, the second prompt message is used to remind the user that the abnormal SIM card consumes abnormal power.

[0092] As an optional implementation of the embodiment of the present application, the second judgment module 302, after judging whether the abnormal SIM card is a primary card or a secondary card if the out-of-service duration is greater than or equal to the first duration threshold, is also used to: if the abnormal SIM card is the primary card, disable the abnormal SIM card and switch the secondary card to search the network, and display the first prompt information.

[0093] In summary, the embodiment of the present application provides a processing device for an abnormal SIM card. The device first determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold when the abnormal SIM card is identified; if the out-of-service duration is greater than or equal to the first duration threshold, it determines whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, and the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off. This prevents the abnormal SIM card from searching the network without the user's awareness, reduces abnormal power consumption, and avoids resource conflicts when executing multi-card services.

[0094] For the specific definition of the abnormal SIM card processing device, please refer to the definition of the abnormal SIM card processing method above, which will not be repeated here. Each module in the above-mentioned abnormal SIM card processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0095] In one embodiment, the present application provides an electronic device, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for processing an abnormal SIM card is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0096] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0097] In one embodiment, the abnormal SIM card processing device provided in the present application can be implemented in the form of a computer program. The computer program can be used in Figure 4 The memory of the electronic device may store various program modules constituting the processing device of the abnormal SIM card, for example, Figure 3 The first judgment module 301, the second judgment module 302 and the processing module 303 are shown. The computer program composed of various program modules enables the processor to execute the steps of the abnormal SIM card processing method of each embodiment of the present application described in this specification.

[0098] For example, Figure 4 The electronic device shown can be Figure 3The first judgment module 301 in the processing device of the abnormal SIM card shown executes, when an abnormal SIM card is identified, to determine whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold; the second judgment module 302 executes, if the out-of-service duration is greater than or equal to the first duration threshold, to determine whether the abnormal SIM card is a primary card or a secondary card; the processing module 303 executes, if the abnormal SIM card is a secondary card, to disable the abnormal SIM card and display a first prompt message, the first prompt message being used to remind the user that the abnormal SIM card that consumes power has been turned off.

[0099] In one embodiment, the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0100] When an abnormal SIM card is identified, determine whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold; if the out-of-service duration is greater than or equal to the first duration threshold, determine whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, disable the abnormal SIM card and display a first prompt message, wherein the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off.

[0101] In one embodiment, the processor further implements the following steps when executing the computer program: when an abnormal SIM card is identified, before determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method further includes: obtaining network information of the SIM card to be tested, the network information including the network standard, signal strength and signal quality; determining whether the SIM card to be tested enters an out-of-service state according to the network information; if so, determining that the SIM card to be tested is an abnormal SIM card.

[0102] In one embodiment, the processor further implements the following steps when executing the computer program: when an abnormal SIM card is identified, after determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method further includes: if the out-of-service duration of the abnormal SIM card is less than the first duration threshold, determining whether the out-of-service duration is greater than or equal to a second duration threshold; the second duration threshold is less than the first duration threshold; if so, determining a network search strategy for the abnormal SIM card, the network search strategy indicating that a network search for the abnormal SIM card is prohibited when the terminal screen is on, and a network search for the abnormal SIM card is performed within a preset duration when the terminal screen is off; executing the network search strategy, and displaying a second prompt message, the second prompt message being used to remind the user that the abnormal SIM card consumes abnormal power.

[0103] In one embodiment, the processor further implements the following steps when executing the computer program: if the out-of-service duration is greater than or equal to the first duration threshold, after determining whether the abnormal SIM card is a primary card or a secondary card, the method further includes: if the abnormal SIM card is the primary card, disabling the abnormal SIM card and switching the secondary card to search the network, and displaying a first prompt message.

[0104] When the processor in the electronic device provided by the present application executes the computer program, it first determines whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold when an abnormal SIM card is identified; if the out-of-service duration is greater than or equal to the first duration threshold, it determines whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, and the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off. This prevents the abnormal SIM card from searching the network without the user's awareness, reduces abnormal power consumption, and avoids resource conflicts when executing multi-card services.

[0105] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by the computer program, the following steps are implemented:

[0106] When an abnormal SIM card is identified, determine whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold; if the out-of-service duration is greater than or equal to the first duration threshold, determine whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, disable the abnormal SIM card and display a first prompt message, wherein the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off.

[0107] In one embodiment, the computer program further implements the following steps when executing the computer program: when an abnormal SIM card is identified, before determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method further includes: obtaining network information of the SIM card to be tested, the network information including the network standard, signal strength and signal quality; judging whether the SIM card to be tested enters an out-of-service state according to the network information; if so, determining that the SIM card to be tested is an abnormal SIM card.

[0108] In one embodiment, the computer program further implements the following steps when executing the computer program: when an abnormal SIM card is identified, after determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method also includes: if the out-of-service duration of the abnormal SIM card is less than the first duration threshold, determining whether the out-of-service duration is greater than or equal to a second duration threshold; the second duration threshold is less than the first duration threshold; if so, determining a network search strategy for the abnormal SIM card, the network search strategy indicating that a network search for the abnormal SIM card is prohibited when the terminal screen is on, and a network search for the abnormal SIM card is performed within a preset duration when the terminal screen is off; executing the network search strategy, and displaying a second prompt message, the second prompt message being used to remind the user that the abnormal SIM card consumes abnormal power.

[0109] In one embodiment, when the computer program executes the computer program, the following steps are also implemented: if the out-of-service duration is greater than or equal to the first duration threshold, after determining whether the abnormal SIM card is a primary card or a secondary card, the method also includes: if the abnormal SIM card is the primary card, disabling the abnormal SIM card and switching the secondary card to search the network, and displaying a first prompt message.

[0110] When the computer program in the computer-readable storage medium provided by the present application executes the computer program, first, when an abnormal SIM card is identified, it is determined whether the out-of-service duration of the abnormal SIM card is greater than or equal to the first duration threshold; if the out-of-service duration is greater than or equal to the first duration threshold, it is determined whether the abnormal SIM card is a primary card or a secondary card; if the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, and the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off. This prevents the abnormal SIM card from searching the network without the user's awareness, reduces abnormal power consumption, and avoids resource conflicts when executing multi-card services.

[0111] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.

[0112] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0113] In the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0114] In this application, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0115] In this application, computer-readable media includes permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0116] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0117] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for processing an abnormal SIM card, characterized in that: include: In the case of identifying an abnormal SIM card, determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold; If the out-of-service duration is greater than or equal to the first duration threshold, determining whether the abnormal SIM card is a primary card or a secondary card; If the abnormal SIM card is a secondary card, the abnormal SIM card is disabled and a first prompt message is displayed, where the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off.

2. The method according to claim 1, characterized in that In the case where an abnormal SIM card is identified, before determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method further includes: Obtaining the network information of the SIM card to be tested, wherein the network information includes the network standard, signal strength and signal quality; According to the network information, determining whether the SIM card to be tested enters a no-service state; If yes, it is determined that the SIM card to be tested is the abnormal SIM card.

3. The method according to claim 1, characterized in that: In the case where an abnormal SIM card is identified, after determining whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold, the method further includes: If the out-of-service duration of the abnormal SIM card is less than the first duration threshold, determining whether the out-of-service duration is greater than or equal to a second duration threshold; the second duration threshold is less than the first duration threshold; If yes, determine the network search strategy of the abnormal SIM card, the network search strategy indicates that the abnormal SIM card is prohibited from searching the network when the terminal screen is on, and the abnormal SIM card is searched within a preset time when the terminal screen is off; The network search strategy is executed, and a second prompt message is displayed, where the second prompt message is used to remind the user that the abnormal SIM card consumes abnormal power.

4. The method according to claim 1, characterized in that If the out-of-service duration is greater than or equal to the first duration threshold, after determining whether the abnormal SIM card is a primary card or a secondary card, the method further includes: If the abnormal SIM card is a primary card, the abnormal SIM card is disabled and the secondary card is switched to search the network, and the first prompt information is displayed.

5. A device for processing abnormal SIM cards, characterized in that: include: A first judgment module is used to judge whether the out-of-service duration of the abnormal SIM card is greater than or equal to a first duration threshold when an abnormal SIM card is identified; A second judgment module is used to judge whether the abnormal SIM card is a primary card or a secondary card if the out-of-service duration is greater than or equal to the first duration threshold; The processing module is used for disabling the abnormal SIM card and displaying a first prompt message if the abnormal SIM card is a secondary card, wherein the first prompt message is used to remind the user that the abnormal SIM card that consumes power has been turned off.

6. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for processing an abnormal SIM card as claimed in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing an abnormal SIM card according to any one of claims 1 to 4 is implemented.

8. A computer program product, characterized in that include: The computer program product comprises a computer program, and when the computer program is run on a computer, the computer is enabled to implement the method for processing an abnormal SIM card according to any one of claims 1 to 4.