CN110445932B - Abnormal card dropping processing method and device, storage medium and terminal - Google Patents

Abnormal card dropping processing method and device, storage medium and terminal Download PDF

Info

Publication number
CN110445932B
CN110445932B CN201910716119.1A CN201910716119A CN110445932B CN 110445932 B CN110445932 B CN 110445932B CN 201910716119 A CN201910716119 A CN 201910716119A CN 110445932 B CN110445932 B CN 110445932B
Authority
CN
China
Prior art keywords
card
sim card
abnormal
modem
sim
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910716119.1A
Other languages
Chinese (zh)
Other versions
CN110445932A (en
Inventor
吴楚彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201910716119.1A priority Critical patent/CN110445932B/en
Publication of CN110445932A publication Critical patent/CN110445932A/en
Application granted granted Critical
Publication of CN110445932B publication Critical patent/CN110445932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the application discloses an abnormal card drop processing method, an abnormal card drop processing device, a storage medium and a terminal, and relates to the technical field of communication. Firstly, obtaining SIM card abnormal information sent by a modem, and then judging whether the SIM card is in an abnormal card dropping state, and obtaining a card slot position corresponding to the abnormal SIM card; if the number of the card slot positions corresponding to the abnormal SIM cards is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM cards in the N card slot positions, and then recovering the normal work of the SIM cards; or if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, the problem of the modem is described, the normal work of the SIM card can be recovered by executing a reset process on the modem, and the quick processing of the abnormal SIM card falling is realized. When all the abnormal SIM cards are abnormal, the card detection process is only executed on the abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.

Description

Abnormal card dropping processing method and device, storage medium and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for processing an abnormal card drop.
Background
With the development of science and technology, people's lives are becoming more and more undisclosed from various terminal devices, some of which need to be equipped with a Subscriber Identity Module (SIM) card for normal use, and the SIM card is an important tool for showing the legal Identity of a user to a network.
When the terminal interacts with the SIM card, the SIM card may be subjected to radio frequency interference or other reasons, which may cause the SIM card to fail to work normally, so that the terminal may drop the card abnormally. In the related art, for the processing of the terminal abnormal card dropping, a method of restarting the terminal is generally adopted.
Disclosure of Invention
The embodiment of the application provides an abnormal card drop processing method, an abnormal card drop processing device, a storage medium and a terminal, and can solve the technical problems that the abnormal card drop of the terminal is solved by a method for restarting the terminal in the related art, the consumed time is too long, and the use of a non-abnormal SIM card is influenced.
In a first aspect, an embodiment of the present application provides an abnormal card dropping processing method, which is applied to a terminal, where the terminal has M card slot positions, where M is a positive integer not less than two, and the method includes:
obtaining SIM card abnormal information sent by a modem, and judging whether the SIM card is in an abnormal card dropping state or not;
if the SIM card is in an abnormal card dropping state, acquiring a card slot position corresponding to the abnormal SIM card;
if the number of the slot positions corresponding to the abnormal SIM card is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM card in the N slot positions;
and if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a reset process on the modem.
In a second aspect, an embodiment of the present application provides an abnormal card drop processing apparatus, which is applied to a terminal, where the terminal has M card slot positions, and the apparatus includes:
the abnormal card dropping judgment module is used for acquiring the abnormal information of the SIM card sent by the modem and judging whether the SIM card is in an abnormal card dropping state;
the card slot position acquisition module is used for acquiring a card slot position corresponding to an abnormal SIM card if the SIM card is in an abnormal card dropping state;
the first reset module is used for controlling the modem to execute a card detection process on the abnormal SIM card in the card slot position if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M;
and the second reset module is used for executing a reset process on the modem if the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M.
In a third aspect, an embodiment of the present application provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to execute steps implementing the above-mentioned method.
In a fourth aspect, embodiments of the present application provide a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method described above.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, first, SIM card abnormal information sent by a modem is obtained, and whether a SIM card is in an abnormal card dropping state is determined; then judging whether the SIM card is in an abnormal card dropping state or not, and acquiring a card slot position corresponding to the abnormal SIM card; if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M, the problem of the SIM card is shown, and the modem is controlled to execute a card detection process on the abnormal SIM card in the N card slot positions, so that the normal work of the SIM card can be recovered; or if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, the problem of the modem is described, the normal work of the SIM card can be recovered by executing a reset process on the modem, and the quick processing of the abnormal SIM card falling is realized. When all the abnormal SIM cards are abnormal, the card detection process is only executed on the abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a system interaction diagram of an abnormal card dropping processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an abnormal card dropping processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an abnormal card dropping processing method according to another embodiment of the present application;
fig. 4 is a schematic flowchart of an abnormal card dropping processing method according to another embodiment of the present application;
fig. 5 is a schematic diagram illustrating a prompt message display of an abnormal card-dropping processing method according to another embodiment of the present application;
fig. 6 is a schematic diagram illustrating another prompt message display of an abnormal card drop processing method according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an abnormal card-dropping processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an abnormal card-dropping processing apparatus according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of an abnormal card-dropping processing apparatus according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the purpose, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the embodiments of the present application, it is to be understood that, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1, fig. 1 is a system interaction diagram of an abnormal card dropping processing method according to an embodiment of the present application.
It should be noted that the execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) or other integrated circuit chip in the terminal in terms of hardware, and may be, for example, a service related to abnormal card removal Processing in the terminal in terms of software, which is not limited to this. In addition, the abnormal card dropping processing method in the embodiment of the present application may be applied to a terminal using a single card or multiple SIM cards, where each SIM card has a card slot position, each card slot position corresponds to one card slot, and each SIM card is installed in a card slot to interact with the terminal, that is, the terminal may have one card slot position or multiple card slot positions, and when the terminal is used with multiple SIM cards, the terminal has a better effect.
As shown in fig. 1, the system interaction in the embodiment of the present application includes:
s101, the CPU sends a monitoring instruction to the modem.
The monitoring instruction is used for indicating the modem to monitor the state of the SIM card, and when the modem monitors that the SIM card does not respond or communication time is out, the SIM card is determined to be an abnormal SIM card and abnormal information of the SIM card is sent.
S102, the modem receives the monitoring instruction and monitors the state of the SIM card according to the monitoring instruction.
S103, the modem sends the abnormal information of the SIM card to the CPU.
When the modem monitors that the SIM card has no response or abnormal conditions such as communication overtime and the like, the SIM card is determined to be an abnormal SIM card, and abnormal information of the SIM card is sent to the CPU.
S104, the CPU obtains the SIM card abnormal information sent by the modem and judges whether the SIM card is in an abnormal card dropping state.
The feasible method for judging whether the SIM card is in the abnormal card dropping state comprises the following steps of acquiring abnormal information of the SIM card sent by a modem, and acquiring historical cache data of the SIM card in a preset time period; judging whether the SIM card is in a missing state within a preset time period according to historical cache data of the SIM card within the preset time period; and if the SIM card is not in the missing state within the preset time period, determining that the SIM card is in the abnormal card dropping state.
And S105, if the CPU judges that the SIM card is in the abnormal card dropping state, acquiring the card slot position corresponding to the abnormal SIM card.
One possible way to obtain the slot position corresponding to the abnormal SIM card is to obtain the slot number corresponding to the abnormal SIM card according to the abnormal information of the SIM card; and taking the card slot number corresponding to the abnormal SIM card as the card slot position corresponding to the abnormal SIM card.
S106, the CPU confirms the number of the slot positions corresponding to the abnormal SIM card, and if the number of the slot positions corresponding to the abnormal SIM card is N and N is less than M, the modem is controlled to execute a card detection process on the abnormal SIM card in the N slot positions.
After controlling the modem to execute the card detection process on the abnormal SIM card in the N card slot positions, the method further comprises the following steps: and sending a first detection instruction to the modem, wherein the first detection instruction is used for indicating the modem to detect the state of the abnormal SIM card, and sending SIM card warning information if the modem detects that the SIM card does not respond or communication is timed out.
S107, the modem executes a card detection process on the abnormal SIM cards in the N card slot positions.
And S108, if the CPU confirms that the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a reset process on the modem.
After the resetting procedure is executed on the modem, the method further comprises the following steps: and sending a second detection instruction to the modem, wherein the second detection instruction is used for indicating the modem to detect the state of the abnormal SIM card, and sending SIM card warning information if the modem detects that the SIM card does not respond or the communication is timed out.
S109, the CPU obtains the SIM card warning information sent by the modem and displays the SIM card warning information in the display interface.
In the embodiment of the application, firstly, SIM card abnormal information sent by a modem is obtained, and whether the SIM card is in an abnormal card dropping state is judged; then judging whether the SIM card is in an abnormal card dropping state or not, and acquiring a card slot position corresponding to the abnormal SIM card; if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M, the problem of the SIM card is shown, and the modem is controlled to execute a card detection process on the abnormal SIM card in the N card slot positions, so that the normal work of the SIM card can be recovered; or if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, the problem of the modem is described, the normal work of the SIM card can be recovered by executing a reset process on the modem, and the quick processing of the abnormal SIM card falling is realized. When all the abnormal SIM cards are abnormal, the card detection process is only executed on the abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an abnormal card dropping processing method according to an embodiment of the present application.
It should be noted that the execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) or other integrated circuit chip in the terminal in terms of hardware, and may be, for example, a service related to abnormal card removal Processing in the terminal in terms of software, which is not limited to this. In addition, the abnormal card dropping processing method in the embodiment of the present application may be applied to a terminal using a single card or a plurality of SIM cards, that is, the terminal has one card slot position or a plurality of card slot positions, and has a better effect when applied to a terminal using a plurality of SIM cards, so for convenience of description, the execution main body in the embodiment of the present application is a CPU, the abnormal card dropping processing method may be applied to a terminal having M card slot positions, where M is a positive integer not less than two, and the terminal may use M SIM cards at most as an example, and steps of the abnormal card dropping processing method in the embodiment of the present application are described.
As shown in fig. 2, the method steps include:
s1101, obtaining SIM card abnormal information sent by the modem, and judging whether the SIM card is in an abnormal card dropping state.
The modem is an important tool for interaction between the CPU or the terminal and the SIM card, and after the modem can acquire the information of the SIM card, a logic channel is established between the terminal and a network, networking data are transmitted, a communication mode is adjusted, and the like. The CPU is electrically connected with the modem directly or indirectly, so that the CPU can control or instruct the modem to monitor the working state of the SIM card or perform other operations. When the modem monitors that the working state of the SIM card is abnormal, the modem sends the abnormal information of the SIM card to the CPU at the first time, and the CPU obtains the abnormal information of the SIM card sent by the modem.
Optionally, due to a missing SIM card (for example, the SIM card is not installed in the terminal), a failure of the SIM card (for example, the SIM card cannot normally operate due to interference), or a failure of the modem (for example, a part of functions in the modem has a problem and cannot identify the SIM card), the modem may detect that the SIM card is in an abnormal state and send out abnormal information of the SIM card, so that after receiving the abnormal information of the SIM card, the CPU needs to determine whether the SIM card is in an abnormal card dropping state. The abnormal card dropping state refers to that the SIM card exists or works before the modem monitors that the SIM card is in the abnormal state and sends out abnormal information of the SIM card, namely, the SIM card is not in a missing state, and at the moment, the CPU determines that the SIM card is in the abnormal card dropping state.
The method for judging whether the SIM card is in the abnormal card dropping state may be that whether the SIM card is in the missing state is judged according to historical cache data of the SIM card in a preset time period, or a level state of each pin in the SIM card is detected, whether the SIM card is in the missing state is judged, or an SIM card switch is arranged in the card slot, after the SIM card enters the card slot, the SIM card switch is triggered, and then whether the SIM card is in the missing state can be judged by detecting the state of the SIM card switch, and only if the SIM card is determined not to be in the missing state, the CPU determines that the SIM card is in the abnormal card dropping state.
And S1102, if the SIM card is in an abnormal card dropping state, acquiring a card slot position corresponding to the abnormal SIM card.
When the SIM card is in the abnormal card dropping state, it is stated that the case that the SIM card is in the abnormal card dropping state due to the missing SIM card is eliminated, and therefore, the reason that the SIM card is in the abnormal card dropping state may be a SIM card failure (for example, the SIM card cannot normally operate due to interference) or a modem failure (for example, a part of functions in the modem fails to identify the SIM card). For example, when the SIM card is affected by interference and cannot work normally, for a terminal with multiple SIM cards, generally only a single SIM card is abnormal, the modem will detect that the SIM card is abnormal and send abnormal information of the SIM card, thereby causing the CPU to determine that the SIM card is in an abnormal card drop state, and when a part of functions in the modem is in trouble and cannot identify the SIM card, the modem will detect that all the SIM cards are abnormal and send abnormal information of the SIM card, thereby causing the CPU to determine that the SIM card is in an abnormal card drop state.
Because the SIM card corresponds to the card slot and the card slot position one by one, the number of the card slot positions is calculated by obtaining the card slot position corresponding to the abnormal SIM card, and whether the abnormal card dropping state of the SIM card is caused by the SIM card fault or the modem fault can be judged according to the number of the card slot positions. The mode of acquiring the slot position corresponding to the abnormal SIM card may be that the slot is numbered in advance, the slot number corresponding to the abnormal SIM card is obtained according to the abnormal information of the SIM card, and the slot number is used as the slot position corresponding to the abnormal SIM card; the card slot position corresponding to the abnormal SIM card can be judged according to the card slot identification carried in the abnormal SIM card information, and the mode of obtaining the card slot position corresponding to the abnormal SIM card is not limited in the application.
And S1103, if the number of the slot positions corresponding to the abnormal SIM cards is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM cards in the N slot positions.
Optionally, if the number of the slot positions is N, and N is a positive integer smaller than M, it indicates that all the SIM cards are not abnormal, and it may be determined by the CPU that the SIM card is in an abnormal card drop state due to a SIM card failure (for example, the SIM card cannot normally operate due to interference). In general, when the SIM card cannot normally operate due to interference, it may be caused by internal timing or data confusion, and does not involve a structural or other substantial fault, so that the abnormal SIM card can be made to operate again by performing a card detection procedure on the SIM card.
Therefore, when the number of the card slot positions calculated by the CPU is N, a first reset instruction is sent to the modem, wherein the first reset instruction carries card slot numbers or card slot identifications corresponding to the N abnormal SIM cards. And after receiving the first reset instruction, the modem identifies the card slot number or the card slot identification after the first reset instruction, and executes card detection flow processing on the abnormal SIM card in the card slot position corresponding to the card slot number or the card slot identification. The process of executing the card detection on the SIM card may be to power on the abnormal SIM card, that is, to provide a reset level to a reset pin in the abnormal SIM card, and then sequentially reconfigure the SIM card according to preset configuration data, so as to implement the process of executing the card detection on the abnormal SIM card in the card slot position by the modem. After the SIM card is subjected to the card detection process, the abnormal SIM card can recover to work normally. After N SIM cards are abnormal, the card detection process is only executed on the N abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.
S1104, if the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a reset process on the modem.
Optionally, if the number of the slot positions is M, which represents that all the SIM cards in the terminal have a fault, it indicates that the CPU determines that the SIM card is in an abnormal card drop state due to a modem fault (for example, a part of functions in the modem have a problem and cannot identify the SIM card). Generally, when a part of functions in the modem are in trouble and the SIM card cannot be identified, the configuration in the modem may be wrong, and no structural or other substantial failure is involved, so that the modem can be made to work again by performing a reset procedure on the modem
Therefore, when the number of the card slot positions is calculated to be M by the CPU, a second reset instruction is sent to the modem. And after receiving the second reset instruction, the modem executes a reset process according to the second reset instruction and preset configuration data so as to reset the modem. After the modem executes the reset process, the modem can recover normal operation, and can identify and interact with the SIM card.
In the embodiment of the application, firstly, SIM card abnormal information sent by a modem is obtained, and whether the SIM card is in an abnormal card dropping state is judged; then judging whether the SIM card is in an abnormal card dropping state or not, and acquiring a card slot position corresponding to the abnormal SIM card; if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M, the problem of the SIM card is shown, and the modem is controlled to execute a card detection process on the abnormal SIM card in the N card slot positions, so that the normal work of the SIM card can be recovered; or if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, the problem of the modem is described, the normal work of the SIM card can be recovered by executing a reset process on the modem, and the quick processing of the abnormal SIM card falling is realized. When all the abnormal SIM cards are abnormal, the card detection process is only executed on the abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating an abnormal card dropping processing method according to another embodiment of the present application.
As shown in fig. 3, the method steps include:
s201, sending a monitoring instruction to the modem, wherein the monitoring instruction is used for indicating the modem to monitor the state of the SIM card, and when the modem monitors that the SIM card does not respond or communication time is out, determining that the SIM card is an abnormal SIM card and sending abnormal information of the SIM card.
Optionally, in order to implement real-time monitoring on the SIM card, so that the CPU can obtain the abnormal information of the SIM card in the first time after the SIM card is abnormal, the CPU sends a monitoring instruction to the modem when the terminal is restarted or the SIM card is reinserted, where the monitoring instruction is used to instruct the modem to monitor the state of the SIM card.
When the modem monitors that one or more SIM cards are abnormal, for example, the modem sends data to the SIM cards, but the SIM cards continuously do not return data, the modem judges that the SIM cards do not respond; or after the modem sends data to the SIM card, the modem receives the data returned by the SIM card after a long time, the communication timeout of the SIM card is judged, and the modem determines that the abnormal SIM card is the abnormal SIM card. And acquiring the card slot number of the abnormal SIM card according to the card slot number preset for each card slot, or acquiring the identifier of the abnormal SIM card according to the card slot identifier preset for each card slot, and generating the abnormal information of the SIM card, so that the abnormal information of the SIM card can carry the reason of the abnormal SIM card and the corresponding card slot number or card slot identifier, and the modem sends the abnormal information of the SIM card to the CPU.
S202, obtaining abnormal information of the SIM card sent by the modem, and obtaining historical cache data of the SIM card in a preset time period.
Because the SIM card is missing (the SIM card is not installed in the terminal or the SIM card is in poor contact with the card slot), the SIM card fails (for example, the SIM card cannot normally work due to interference) or the modem fails (the SIM card cannot be identified due to a problem in part of functions in the modem), the modem may send out abnormal information of the SIM card when monitoring that the SIM card is in an abnormal state, and therefore, after receiving the abnormal information of the SIM card, the CPU needs to determine whether the SIM card is in an abnormal card dropping state. The abnormal card dropping state refers to that the SIM card exists or works before the modem monitors that the SIM card is in the abnormal state and sends out abnormal information of the SIM card, namely, the SIM card is not in a missing state, and at the moment, the CPU determines that the SIM card is in the abnormal card dropping state.
Optionally, a feasible manner of determining whether the SIM card is in the missing state is to obtain historical cache data of the SIM card in a preset time period after obtaining the SIM card abnormal information sent by the modem. The SIM card may be in a preset time period before the time point when the CPU obtains the abnormal information of the SIM card, or may be in a preset time period before the time point when the modem detects the abnormal time point of the SIM card, where the preset time period may be set according to actual needs, for example, the preset time period may be 0.1 second or 1 second. The historical cache data can be obtained by the CPU directly from the memory, or can be obtained by the CPU from the modem, where the source of the historical cache data is not limited herein.
S203, judging whether the SIM card is in a missing state in a preset time period according to historical cache data of the SIM card in the preset time period.
It can be understood that the historical cache data of the SIM card in the preset time period may include interaction data of the SIM card with the network or with other integrated chips such as the CPU in the past time period, so that it may be determined from the cache data whether the SIM card is in a working state in the past time period, that is, whether the SIM card is in a missing state. For example, if data interacted between the SIM card and the external network exists in the cache data, it may be determined that the SIM card is in a working state within a past period of time, and thus it is determined that the SIM card is not in a missing state.
And S204, if the SIM card is not in the missing state within the preset time period, determining that the SIM card is in the abnormal card dropping state.
Because the modem detects that the SIM card is abnormal, if the SIM card is not in the missing state within the preset time period, it may be determined that the SIM card is in the abnormal state and sends out the abnormal information of the SIM card due to the fact that the modem detects that the SIM card is in the abnormal state (for example, the SIM card cannot normally operate due to interference) or the modem fails (the SIM card cannot be identified due to the problem of partial functions in the modem), and at this time, it may be determined that the SIM card is in the abnormal card dropping state. If the SIM card is in the missing state within the preset time period, it indicates that the SIM card is in the non-abnormal card missing state, for example, the SIM card is not inserted into the terminal, and at this time, the CPU controls the modem to continue to perform the step of monitoring the SIM card.
S205, acquiring a card slot number corresponding to the abnormal SIM card according to the abnormal information of the SIM card.
Alternatively, after the CPU determines that the SIM card is in the abnormal card dropping state, it indicates that the case that the SIM card is in the abnormal card dropping state due to the SIM card missing reason has been eliminated, and therefore, the reason that the SIM card is in the abnormal card dropping state may be a SIM card failure (for example, the SIM card cannot operate normally due to interference) or a modem failure (for example, a part of functions in the modem fails to identify the SIM card). For example, when the SIM cards are affected by interference and cannot work normally, for a terminal with multiple SIM cards, generally only one or several SIM cards are abnormal, and not all SIM cards are abnormal at the same time, at this time, the modem will monitor the abnormality of the SIM cards and send abnormal information of the SIM cards, so as to cause the CPU to determine that the SIM cards are in an abnormal card dropping state, and when a problem occurs in part of functions of the modem and cannot identify the SIM cards, the modem will detect that all the SIM cards are abnormal, and send abnormal information of the SIM cards at this time, so as to cause the CPU to determine that the SIM cards are in the abnormal card dropping state.
Because the SIM card corresponds to the card slot and the card slot position one by one, the number of the card slot positions is calculated by obtaining the card slot position corresponding to the abnormal SIM card, and whether the abnormal card dropping state of the SIM card is caused by the SIM card fault or the modem fault can be judged according to the number of the card slot positions. For example, when two SIM cards can be accommodated in the terminal, the number of the card slot is two, that is, M is two, the card slot number corresponding to one SIM card is 1, and the card slot number corresponding to the other SIM card is 2. For example, one kind of SIM card exception information is: the MMGSDI _ CARD _ ERR _ NO _ ATR _ RCVD _ AFTER _ RESET _ CARD1, wherein the character NO _ ATR _ RCVD represents that the reason of the SIM CARD with the abnormality is NO response, and the character CARD1 represents that the CARD slot number of the SIM CARD with the abnormality is 1, and then the CPU determines that the CARD slot number corresponding to the SIM CARD with the abnormality is 1 according to the SIM CARD abnormality information.
And S206, taking the card slot number corresponding to the abnormal SIM card as the card slot position corresponding to the abnormal SIM card.
Optionally, after obtaining the card slot number corresponding to the abnormal SIM card, the card slot number corresponding to the abnormal SIM card may be used as the card slot position corresponding to the abnormal SIM card, for example, when the card slot number of the abnormal SIM card is 1, the card slot position corresponding to the abnormal SIM card is also 1.
And S207, if the number of the slot positions corresponding to the abnormal SIM cards is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM cards in the N slot positions.
Optionally, if the number of the slot positions is N and N is a positive integer smaller than M, for example, when M is two and N is one, and the slot position corresponding to the abnormal SIM card is 1, the CPU determines that the SIM card is in an abnormal card dropping state due to a SIM card failure (for example, the SIM card cannot normally operate due to interference). In general, when the SIM card cannot normally operate due to interference, it may be caused by internal timing or data confusion, and does not involve a structural or other substantial fault, so that the abnormal SIM card can be made to operate again by performing a card detection procedure on the SIM card.
Therefore, when the number of the card slot positions calculated by the CPU is N, and N is a positive integer smaller than M, a first reset instruction is sent to the modem, wherein the first reset instruction carries the card slot number or the card slot identification corresponding to the abnormal SIM card. And after receiving the first reset instruction, the modem identifies the card slot number or the card slot identification after the first reset instruction, and executes card detection flow processing on the abnormal SIM card in the card slot position corresponding to the card slot number or the card slot identification. The process of executing the card detection on the SIM card may be to power on the abnormal SIM card, that is, to provide a reset level to a reset pin in the abnormal SIM card, and then sequentially reconfigure the SIM card according to preset configuration data, so as to implement the process of executing the card detection on the abnormal SIM card in the card slot position by the modem. After the SIM card is subjected to the card checking process, the SIM card can recover to work normally.
And S208, if the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a reset process on the modem.
Optionally, if the number of the slot positions is N and N is equal to M, for example, when M is two and N is two, the slot positions corresponding to the abnormal SIM card are 1 and 2, which indicates that the CPU determines that the SIM card is in the abnormal card drop state due to a modem failure (for example, the SIM card cannot be identified due to a partial function problem in the modem). Generally, when a part of functions in the modem are in trouble and the SIM card cannot be identified, the configuration in the modem may be wrong, and no structural or other substantial failure is involved, so that the modem can be made to work again by performing a reset procedure on the modem
Therefore, when the number of the card slot positions is calculated to be N by the CPU and N is equal to M, a second reset instruction is sent to the modem. And after receiving the second reset instruction, the modem executes a reset process according to the second reset instruction and preset configuration data so as to reset the modem. After the modem executes the reset process, the modem can recover normal operation, and can identify and interact with the SIM card.
In the embodiment of the application, the state of the SIM card is monitored by the modem, when the modem monitors the abnormal SIM card, the abnormal SIM card information is sent, whether the SIM card is in a missing state or not can be judged according to the historical cache data of the SIM card in the preset time period, and if the SIM card is not in the missing state in the preset time period, the SIM card is determined to be in an abnormal card dropping state. The card slot number corresponding to the abnormal SIM card can be acquired according to the abnormal information of the SIM card, the card slot number corresponding to the abnormal SIM card is used as the card slot position corresponding to the abnormal SIM card, if the number of the card slot positions is N and N is a positive integer smaller than M, the problem of the SIM card is shown, and the normal work of the SIM card can be recovered only by executing a card detection process on the abnormal SIM card in the N card slot positions by controlling the modem; if the number of the card slot positions is N and N is equal to M, namely all the SIM cards are abnormal, the problem of the modem is described, the normal work of the SIM cards can be recovered by executing a reset process on the modem, and the quick processing of abnormal card dropping of the SIM cards is realized. When all the abnormal SIM cards are abnormal, the card detection process is only executed on the abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating an abnormal card-dropping processing method according to another embodiment of the present application.
As shown in fig. 4, the method steps include:
s301, obtaining the abnormal information of the SIM card sent by the modem, and judging whether the SIM card is in an abnormal card dropping state.
S302, if the SIM card is in an abnormal card dropping state, the card slot position corresponding to the abnormal SIM card is obtained.
And S303, if the number of the slot positions corresponding to the abnormal SIM cards is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM cards in the N slot positions.
For details that are not disclosed in the method steps of S301 to S303, please refer to the detailed description of the method steps of S101 to S103.
S304, sending a first detection instruction to the modem, wherein the first detection instruction is used for indicating the modem to detect the state of the SIM card, and if the modem detects that the SIM card has no response or communication time-out, sending SIM card warning information.
After the card detection process is executed on the abnormal SIM card, the SIM card needs to be detected in order to confirm whether the abnormal SIM card is recovered to be normal or not, at the moment, the CPU sends a first detection instruction to the modem, the first detection instruction is used for indicating the modem to detect the state of the SIM card, the first modem receives the first detection instruction and detects the SIM card according to the first detection instruction, if the modem detects that the SIM card does not respond or the communication is time out, the SIM card is proved to have a structural fault or the terminal does not support the SIM card, namely the SIM card is an invalid card, SIM card warning information is sent, and the SIM card warning information represents that the SIM card cannot be detected after the card detection process is executed on the SIM card again.
S305, if the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a reset process on the modem.
For details that are not disclosed in the step S305, please refer to the detailed description in the step S104.
S306, sending a second detection instruction to the modem, wherein the second detection instruction is used for indicating the modem to detect the state of the SIM card, and if the modem detects that the SIM card has no response or communication is time out, sending SIM card warning information.
After the modem executes the reset process, the modem needs to be detected in order to confirm whether the modem recovers to normal or not, at the moment, the CPU sends a second detection instruction to the modem, after the modem receives the second detection instruction, the state of the SIM card is detected according to the second detection instruction, if the modem detects that the SIM card does not respond or the communication is overtime, the fact that the modem has a fault is stated, the terminal needs to be restarted, and SIM card warning information is sent, wherein the SIM card warning information represents that the SIM card cannot be detected after the modem executes the reset process.
S307, SIM card warning information sent by the modem is obtained, and prompt information is displayed in a display interface based on the SIM card warning information.
Optionally, when the SIM card has a structural failure or the terminal does not support the SIM card, that is, the SIM card is an invalid card, the modem sends SIM card warning information, or the modem has a failure and needs to restart the terminal, and when the modem sends the SIM card warning information, the user needs to be reminded to reinsert the SIM card or restart the terminal. At the moment, the CPU acquires the SIM card warning information sent by the modem, and displays prompt information in a display interface based on the SIM card warning information.
Fig. 5 is a schematic diagram illustrating a prompt message display of an abnormal card dropping processing method according to another embodiment of the present application, and fig. 6 is a schematic diagram illustrating another prompt message display of an abnormal card dropping processing method according to another embodiment of the present application.
As shown in fig. 5, when the modem detects the SIM card according to the first detection instruction, and if the modem detects that the SIM card does not respond or the communication time is out, it indicates that the SIM card has a structural failure or the terminal does not support the SIM card, that is, the SIM card is an invalid card, the SIM card warning message is sent, and at this time, the SIM card warning message represents that the SIM card cannot be detected after the SIM card detection procedure is executed again, the CPU may display a prompt word "SIM card is abnormal, it is necessary to insert an effective SIM card" in the display interface according to the SIM card warning message, and at the same time, the CPU may also control the sound generating device to generate a corresponding prompt sound effect to prompt the user to insert an effective SIM card.
As shown in fig. 6, when the modem detects the state of the SIM card according to the second detection instruction, and if the modem detects that the SIM card does not respond or the communication time is out, it indicates that the modem has a fault and needs to restart the terminal, and sends a SIM card warning message, where the SIM card warning message indicates that the SIM card cannot be detected after the modem performs a reset procedure, the CPU may display a prompt word "the modem is abnormal and needs to restart the device" in the display interface according to the SIM card warning message, and at the same time, the CPU may control the sound generating apparatus to generate a corresponding prompt sound effect, so as to prompt the user to restart the device.
In the embodiment of the application, the modem is controlled to detect the SIM card again by sending a detection instruction to the modem, if the modem detects that the SIM card does not respond or the communication time is out, SIM card warning information is sent, and prompt information is displayed in a display interface based on the SIM card warning information according to the SIM card warning information sent by the modem so as to prompt a user to take corresponding measures in time.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an abnormal card-dropping processing apparatus according to an embodiment of the present application.
As shown in fig. 7, the apparatus 100 includes:
the abnormal card drop judging module 110 is configured to obtain abnormal information of the SIM card sent by the modem, and judge whether the SIM card is in an abnormal card drop state.
The card slot position obtaining module 120 is configured to obtain a card slot position corresponding to the abnormal SIM card if the SIM card is in the abnormal card dropping state.
The first reset module 130 is configured to control the modem to execute a card detection process on an abnormal SIM card in the N card slot positions if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M.
The second reset module 140 is configured to execute a reset procedure on the modem if the number of slot positions corresponding to the abnormal SIM card is N and N is equal to M.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an abnormal card-dropping processing device according to another embodiment of the present application.
As shown in fig. 8, the apparatus further includes:
the monitoring module 150 is configured to send a monitoring instruction to the modem, where the monitoring instruction is used to instruct the modem to monitor the state of the SIM card, and when the modem monitors that the SIM card does not respond or communication time out, determine that the SIM card is an abnormal SIM card and send information about the abnormal SIM card.
Optionally, the abnormal card dropping determination module may include:
and a cache data obtaining module 111, configured to obtain the abnormal information of the SIM card sent by the modem, and obtain historical cache data of the SIM card in a preset time period.
The missing state determining module 112 is configured to determine whether the SIM card is in a missing state within a preset time period according to historical cache data of the SIM card within the preset time period.
An abnormal card drop determining module 113, configured to determine that the SIM card is in an abnormal card drop state if the SIM card is not in the missing state within a preset time period.
Optionally, the slot position obtaining module may include:
the card slot number obtaining module 121 is configured to obtain a card slot number corresponding to the abnormal SIM card according to the abnormal SIM card information.
The card slot position obtaining module 122 is configured to use the card slot number corresponding to the abnormal SIM card as the card slot position corresponding to the abnormal SIM card.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an abnormal card-dropping processing apparatus according to another embodiment of the present application.
As shown in fig. 9, the apparatus further includes:
the first detection module 160 is configured to send a first detection instruction to the modem, where the first detection instruction is used to instruct the modem to detect a state of the SIM card, and send a SIM card warning message if the modem detects that the SIM card does not respond or communication time out.
The second detection module 170 is configured to send a second detection instruction to the modem, where the second detection instruction is used to instruct the modem to detect a state of the SIM card, and send a SIM card warning message if the modem detects that the SIM card does not respond or communication time out.
And the prompt module 180 is configured to obtain SIM card warning information sent by the modem, and display the prompt information in the display interface based on the SIM card warning information.
In this embodiment of the present application, the abnormal card-dropping processing apparatus includes: the abnormal card dropping judgment module is used for acquiring the abnormal information of the SIM card sent by the modem and judging whether the SIM card is in an abnormal card dropping state; the card slot position acquisition module is used for acquiring a card slot position corresponding to the abnormal SIM card if the SIM card is in an abnormal card dropping state; the first reset module is used for controlling the modem to execute a card detection process on the abnormal SIM card in the card slot position if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M; and the second reset module is used for executing a reset process on the modem if the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M. When the SIM card is in an abnormal card dropping state, acquiring a card slot position corresponding to the abnormal SIM card, if the number of the card slot positions is N and N is less than M, indicating that the SIM card has a problem, and only executing a card detection process on the abnormal SIM card in the card slot position by controlling a modem so as to recover the normal work of the SIM card; if the number of the card slot positions is N and N is equal to M, it is described that the modem has a problem, the normal work of the SIM card can be recovered by executing a reset process on the modem, and the quick processing of abnormal card dropping of the SIM card is realized. When all the abnormal SIM cards are abnormal, the card detection process is only executed on the abnormal SIM cards, the use of other normal SIM cards is not influenced, and the use efficiency of the SIM cards is improved.
Embodiments of the present application also provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any of the above embodiments.
Further, please refer to fig. 10, where fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 10, terminal 1000 can include: at least one central processing unit 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The cpu 1001 may include one or more processing cores. The cpu 1001 connects the various parts within the overall terminal 1000 using various interfaces and lines, and executes various functions of the terminal 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005 and calling data stored in the memory 1005. Optionally, the central Processing unit 1001 may be implemented in at least one hardware form of a Digital Signal Processing (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The CPU 1001 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is to be understood that the modem may be implemented by a single chip without being integrated into the cpu 1001.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may alternatively be at least one memory device located remotely from the central processing unit 1001. As shown in fig. 10, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an abnormal card-off handler.
In the terminal 1000 shown in fig. 10, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the cpu 1001 may be configured to call the abnormal card-dropping handler stored in the memory 1005, and specifically execute the following operations:
obtaining SIM card abnormal information sent by a modem, and judging whether the SIM card is in an abnormal card dropping state or not;
if the SIM card is in an abnormal card dropping state, acquiring a card slot position corresponding to the abnormal SIM card;
if the number of the card slot positions corresponding to the abnormal SIM cards is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM cards in the N card slot positions;
and if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a resetting process on the modem.
In an embodiment, before performing the operation of acquiring the SIM card exception information sent by the modem, the cpu 1001 further specifically performs the following operations:
and sending a monitoring instruction to the modem, wherein the monitoring instruction is used for indicating the modem to monitor the state of the SIM card, and when the modem monitors that the SIM card does not respond or the communication time is out, determining that the SIM card is an abnormal SIM card and sending abnormal information of the SIM card.
In an embodiment, when the cpu 1001 acquires the abnormal SIM card information sent by the modem and determines whether the SIM card is in an abnormal card dropping state, the cpu specifically performs the following operations:
acquiring abnormal information of the SIM card sent by a modem, and acquiring historical cache data of the SIM card in a preset time period;
judging whether the SIM card is in a missing state within a preset time period according to historical cache data of the SIM card within the preset time period;
and if the SIM card is not in the missing state within the preset time period, determining that the SIM card is in the abnormal card dropping state.
In an embodiment, when the central processing unit 1001 acquires the slot position corresponding to the abnormal SIM card, the following operations are specifically performed:
acquiring a card slot number corresponding to the abnormal SIM card according to the abnormal information of the SIM card;
and taking the card slot number corresponding to the abnormal SIM card as the card slot position corresponding to the abnormal SIM card.
In an embodiment, after executing the card detection procedure to the abnormal SIM card in the N card slot positions by the control modem, the cpu 1001 further specifically executes the following operations:
and sending a first detection instruction to the modem, wherein the first detection instruction is used for indicating the modem to detect the state of the SIM card, and sending SIM card warning information if the modem detects that the SIM card does not respond or communication is timed out.
In one embodiment, after executing the reset procedure to the modem, the cpu 1001 further specifically performs the following operations:
and sending a second detection instruction to the modem, wherein the second detection instruction is used for indicating the modem to detect the state of the SIM card, and sending SIM card warning information if the modem detects that the SIM card does not respond or communication is timed out.
In one embodiment, the cpu 1001 further performs the following operations:
and acquiring SIM card warning information sent by the modem, and displaying prompt information in a display interface based on the SIM card warning information.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the abnormal card dropping processing method, apparatus, storage medium and terminal provided by the present application, those skilled in the art will recognize that there may be variations in the specific implementation and application scope according to the ideas of the embodiments of the present application, and in summary, the contents of the present specification should not be construed as limiting the present application.

Claims (10)

1. An abnormal card dropping processing method is applied to a terminal, wherein the terminal is provided with M card slot positions, M is a positive integer not less than two, and the method is characterized by comprising the following steps:
obtaining SIM card abnormal information sent by a modem, and judging whether the SIM card is in an abnormal card dropping state or not;
if the SIM card is in an abnormal card dropping state, acquiring a card slot position corresponding to the abnormal SIM card;
if the number of the slot positions corresponding to the abnormal SIM card is N and N is less than M, controlling the modem to execute a card detection process on the abnormal SIM card in the N slot positions;
and if the number of the card slot positions corresponding to the abnormal SIM card is N and N is equal to M, executing a reset process on the modem.
2. The method of claim 1, wherein before obtaining the SIM card exception information sent by the modem, the method further comprises:
and sending a monitoring instruction to the modem, wherein the monitoring instruction is used for indicating the modem to monitor the state of the SIM card, and when the modem monitors that the SIM card has no response or communication time-out, determining that the SIM card is an abnormal SIM card and sending abnormal information of the SIM card.
3. The method of claim 1, wherein the obtaining the abnormal SIM card information sent by the modem and determining whether the SIM card is in an abnormal card-dropping state comprises:
acquiring abnormal information of the SIM card sent by a modem, and acquiring historical cache data of the SIM card in a preset time period;
judging whether the SIM card is in a missing state in the preset time period according to historical cache data of the SIM card in the preset time period;
and if the SIM card is not in the missing state in the preset time period, determining that the SIM card is in an abnormal card dropping state.
4. The method of claim 1, wherein the obtaining of the slot position corresponding to the abnormal SIM card comprises:
acquiring a card slot number corresponding to the abnormal SIM card according to the abnormal SIM card information;
and taking the card slot number corresponding to the abnormal SIM card as the card slot position corresponding to the abnormal SIM card.
5. The method according to claim 1, wherein after controlling the modem to perform a card detection procedure on the abnormal SIM card in the N card slot locations, the method further comprises:
and sending a first detection instruction to the modem, wherein the first detection instruction is used for indicating the modem to detect the state of the SIM card, and sending SIM card warning information if the modem detects that the SIM card has no response or communication is overtime.
6. The method of claim 1, wherein after performing a reset procedure on the modem, further comprising:
and sending a second detection instruction to the modem, wherein the second detection instruction is used for indicating the modem to detect the state of the SIM card, and sending SIM card warning information if the modem detects that the SIM card has no response or communication is overtime.
7. The method of claim 5 or claim 6, further comprising:
and acquiring the SIM card warning information sent by the modem, and displaying prompt information in a display interface based on the SIM card warning information.
8. The abnormal card dropping processing device is applied to a terminal, the terminal is provided with M card slot positions, wherein M is a positive integer not less than two, and the device is characterized by comprising:
the abnormal card dropping judgment module is used for acquiring the abnormal information of the SIM card sent by the modem and judging whether the SIM card is in an abnormal card dropping state;
the card slot position acquisition module is used for acquiring a card slot position corresponding to an abnormal SIM card if the SIM card is in an abnormal card dropping state;
the first reset module is used for controlling the modem to execute a card detection process on the abnormal SIM card in the card slot position if the number of the card slot positions corresponding to the abnormal SIM card is N and N is less than M;
and the second reset module is used for executing a reset process on the modem if the number of the slot positions corresponding to the abnormal SIM card is N and N is equal to M.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any of claims 1 to 7.
10. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of the method according to any of claims 1 to 7.
CN201910716119.1A 2019-08-05 2019-08-05 Abnormal card dropping processing method and device, storage medium and terminal Active CN110445932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910716119.1A CN110445932B (en) 2019-08-05 2019-08-05 Abnormal card dropping processing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910716119.1A CN110445932B (en) 2019-08-05 2019-08-05 Abnormal card dropping processing method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110445932A CN110445932A (en) 2019-11-12
CN110445932B true CN110445932B (en) 2020-11-10

Family

ID=68433133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910716119.1A Active CN110445932B (en) 2019-08-05 2019-08-05 Abnormal card dropping processing method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110445932B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468979B (en) * 2019-09-06 2022-02-25 华为技术有限公司 SIM card drop recovery method of electronic equipment and electronic equipment
CN113179511B (en) * 2021-04-12 2022-09-02 青岛海信移动通信技术股份有限公司 Communication terminal with SIM card for abnormal processing of card and method thereof
CN113233129A (en) * 2021-05-10 2021-08-10 福建通力达实业有限公司 Resetting method for SIM card detection process

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4242398B2 (en) * 2006-06-02 2009-03-25 フェリカネットワークス株式会社 Data communication system, information processing terminal, IC card, read / write device, and program
DE102008007085A1 (en) * 2008-01-31 2009-08-06 T-Mobile Internationale Ag Method for managing the authorization of mobile phones without a SIM card
CN102098390A (en) * 2011-03-15 2011-06-15 惠州Tcl移动通信有限公司 Method for recovering subscriber identity module (SIM) of mobile phone in case of data transmission error and mobile phone
CN105721650B (en) * 2016-01-27 2018-12-04 努比亚技术有限公司 A kind of realization mobile phone card identification method and terminal
CN106851615A (en) * 2017-01-09 2017-06-13 宇龙计算机通信科技(深圳)有限公司 A kind of method and terminal of smart card abnormality processing
CN108471612A (en) * 2017-02-23 2018-08-31 展讯通信(上海)有限公司 SIM card falls card restoration methods, device and terminal
CN107743164A (en) * 2017-11-30 2018-02-27 宇龙计算机通信科技(深圳)有限公司 A kind of exception falls the processing method and terminal of card
CN109067416B (en) * 2018-09-26 2020-01-14 广东小天才科技有限公司 Method for realizing hot plug and start of SIM card and intelligent hardware

Also Published As

Publication number Publication date
CN110445932A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110445932B (en) Abnormal card dropping processing method and device, storage medium and terminal
US10491671B2 (en) Method and apparatus for switching between servers in server cluster
EP3232326A1 (en) Keyboard video mouse (kvm) device and method for detecting host failure using the same
EP3121726A1 (en) Fault processing method, related device and computer
CN108228374B (en) Equipment fault processing method, device and system
US9875165B2 (en) Communication bus with baseboard management controller
CN104133709A (en) Upgrading method and device for embedded system
CN104734979A (en) Control method for storage device externally connected with router
CN109525434B (en) Redundancy backup method based on onboard equipment board card
CN112203316B (en) Network anomaly recovery method and device, electronic equipment and storage medium
CN111444882A (en) Instrument state monitoring method, device and system
CN112487838B (en) Information prompting method, device, electronic equipment and storage medium
CN104750537B (en) Method and device for executing test case
CN111880992B (en) Monitoring and maintaining method for controller state in storage device
CN116137603A (en) Link fault detection method and device, storage medium and electronic device
CN115098342A (en) System log collection method, system, terminal and storage medium
CN107179911B (en) Method and equipment for restarting management engine
CN113412480A (en) Mounting processing method and device, electronic equipment and computer readable storage medium
CN108958989B (en) System fault recovery method and device
CN113076210B (en) Server fault diagnosis result notification method, system, terminal and storage medium
CN106130815B (en) Board level testing method and device
CN114113855A (en) Electrostatic discharge detection processing method and device and terminal equipment
JP2012048681A (en) Display terminal and control program
CN109062718B (en) Server and data processing method
CN113254281A (en) Detection method and detection device for USB controller

Legal Events

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