CN112188472A - Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped - Google Patents

Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped Download PDF

Info

Publication number
CN112188472A
CN112188472A CN202010928160.8A CN202010928160A CN112188472A CN 112188472 A CN112188472 A CN 112188472A CN 202010928160 A CN202010928160 A CN 202010928160A CN 112188472 A CN112188472 A CN 112188472A
Authority
CN
China
Prior art keywords
sim card
communication module
delay operation
cpu
place
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010928160.8A
Other languages
Chinese (zh)
Inventor
叶新财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202010928160.8A priority Critical patent/CN112188472A/en
Publication of CN112188472A publication Critical patent/CN112188472A/en
Priority to PCT/CN2021/107118 priority patent/WO2022048331A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a method and a device for re-identifying a SIM card after the SIM card is removed, computer equipment and a storage medium. The method comprises the steps of controlling a Central Processing Unit (CPU) to execute a time delay operation with preset duration after the SIM card is dropped and the SIM card is not in place for continuous preset times; after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result; and determining whether to execute the delay operation again according to the detection result. That is, under the condition that the SIM card is not detected to be in place, the CPU of the communication module where the SIM card is located is controlled to execute the delay operation with preset time duration instead of giving up reading the card again; the time delay operation can improve the autonomous recovery card reading efficiency of the communication module, increase the autonomous recovery card reading chance of the communication module and avoid manually recovering the communication module on site; therefore, the time delay operation can reduce the cost of manual operation and improve the recovery efficiency of the SIM card.

Description

Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for recognizing a card again after a SIM card is removed, a computer device, and a storage medium.
Background
In the field of communications, a Subscriber Identity Module (SIM) is generally registered on a network through a communication Module, so as to implement communication with a base station. The existing forms of the SIM card and the communication module generally include two types, one is that the SIM card is connected with the communication module as a peripheral of the communication module, and the other is that the SIM card is integrated in the communication module. However, in any existing form, the SIM card is usually affected by strong factors in some special environments, such as: the SIM card is dropped due to low temperature, pressure, instant vibration and the like, so that the network is dropped.
In the traditional technology, by setting a Reread (Reread) mechanism, after a SIM card is dropped due to abnormal operation, a communication module can continuously initiate Reread operation for a plurality of times; if the communication module does not read the card during this time, the re-card reading operation is aborted, the SIM card is no longer supplied with power and no longer communicates with it, and the communication module also disconnects from the base station. If the communication module is still required to communicate with the base station, the communication module can be reconnected to the network to recover normal work only by manually plugging and unplugging the card or inputting an initialization instruction to restart the communication module and reread the SIM card on site.
The traditional technology is high in labor cost and low in recovery efficiency of communication recovery operation executed after the SIM card is removed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for re-identifying a SIM card after the SIM card is dropped, which can reduce labor cost and improve SIM card recovery efficiency.
A method for re-identifying a SIM card after the SIM card is removed is applied to a communication module, the communication module communicates with the SIM card, and the method comprises the following steps:
after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute time delay operation, wherein the time delay operation comprises the following steps: waiting for a preset time length;
after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result;
and determining whether to execute the delay operation again according to the detection result.
In one embodiment, determining whether to perform the delay operation again according to the detection result includes:
if the detection result is that the SIM card is not in the in-place state, executing the delay operation again;
and if the detection result is that the SIM card is in the in-place state, reading the card information of the SIM card.
In one embodiment, after the SIM card is dropped and none of the SIM cards is detected for a preset number of times continuously, the CPU of the communication module is controlled to perform a delay operation, including:
after the SIM card is dropped and the SIM card is not in place for a continuous preset number of times, controlling a preset register state bit to be changed from a first level to a second level so as to instruct a CPU to execute delay operation; wherein the first level and the second level are two levels with opposite logic.
In one embodiment, after the preset duration is over, controlling the CPU to power on the SIM card includes:
and if the preset time delay is finished, controlling the second level to be changed into the first level again so as to indicate the CPU to electrify the SIM card.
In one embodiment, if the detection result indicates that the SIM card is not in the on-bit state, the delay operation is executed again, including:
if the detection result is that the SIM card is in the not-in-place state, the register state bit is controlled to be changed from the first level to the second level again so as to instruct the CPU to execute the delay operation again.
In one embodiment, the preset durations corresponding to each time of the delay operation are different, and the size of the preset duration corresponding to the current time of the delay operation is larger than the size of the preset duration corresponding to the previous time of the delay operation.
In one embodiment, the method further comprises:
and if the detection result after the time delay operation is executed is that the SIM card is still in the out-of-position state, restarting the communication module.
A device for re-identifying a SIM card after the SIM card is removed is applied to a communication module, wherein the communication module communicates with the SIM card, and the device comprises:
the time delay module is used for controlling a Central Processing Unit (CPU) of the communication module to execute time delay operation after the SIM card is dropped and the SIM card is continuously detected for preset times and is not in place, wherein the time delay operation comprises the following steps: and waiting for a preset time length.
And the power-on module is used for controlling the CPU to power on the SIM card after the preset time length is finished.
And the in-place checking module is used for executing the in-place checking operation of the SIM card again to obtain a detection result.
And the determining module is used for determining whether to execute the delay operation again according to the detection result.
In one embodiment, the determining module is specifically configured to execute the delay operation again when the detection result indicates that the SIM card is not in the on-position state; and reading the card information of the SIM card under the condition that the detection result is that the SIM card is in the in-place state.
In one embodiment, the delay module is specifically configured to, after the SIM card is dropped and none of the SIM cards is detected for a preset number of times continuously, control the preset register state bit to be changed from the first level to the second level to instruct the CPU to execute the delay operation; wherein the first level and the second level are two levels with opposite logic.
In one embodiment, the power-on module is specifically configured to control the second level to change to the first level again after the preset time delay is ended, so as to instruct the CPU to power on the SIM card.
In one embodiment, the determining module is specifically configured to, when the detection result indicates that the SIM card is in the out-of-bit state, control the register state bit to change from the first level to the second level again, so as to instruct the CPU to perform the delay operation again.
In one embodiment, the preset durations corresponding to each time of the delay operation are different, and the size of the preset duration corresponding to the current time of the delay operation is larger than the size of the preset duration corresponding to the previous time of the delay operation.
In one embodiment, the apparatus further includes: and the restarting module is used for restarting the communication module under the condition that the detection result after the time delay operation is executed is that the SIM card is still in an out-of-place state.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute time delay operation, wherein the time delay operation comprises the following steps: waiting for a preset time length;
after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result;
and determining whether to execute the delay operation again according to the detection result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute time delay operation, wherein the time delay operation comprises the following steps: waiting for a preset time length;
after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result;
and determining whether to execute the delay operation again according to the detection result.
According to the method, the device, the computer equipment and the storage medium for re-identifying the SIM card after the SIM card is removed, after the SIM card is detected to be out of position for a continuous preset number of times, the CPU of the communication module is controlled to execute the delay operation, wherein the delay operation comprises the following steps: waiting for a preset time length; after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result; and determining whether to execute the delay operation again according to the detection result. That is, after the SIM card is dropped, after the SIM card is subjected to continuous multiple in-place detections, or the SIM card is not detected, the CPU of the communication module in which the SIM card is located is controlled to perform a delay operation (i.e., the CPU is controlled to wait for a preset time), and after the CPU waits for the preset time, the CPU is controlled to power on the SIM card again, and the in-place detection of the SIM card is performed, so as to obtain a detection result; and determines whether to perform the delay operation again according to the detection result, instead of giving up reading the card again. Therefore, the time delay operation can be used for avoiding the abandoning and card reading operation of the communication module on the SIM card after the communication module detects that the SIM card is not in place for the continuous preset times, in addition, the self-recovery card reading efficiency of the communication module can be improved through the time delay module, the self-recovery card reading opportunity of the communication module is increased, the manual recovery of the communication module from the field is avoided, the cost of manual operation is reduced, and the recovery efficiency of the SIM card is improved.
Drawings
FIG. 1 is a flow chart illustrating a method for re-identifying a SIM card after the SIM card is removed in one embodiment;
FIG. 2 is a schematic flow chart illustrating a method for re-identifying a SIM card after the SIM card is removed in another embodiment;
FIG. 3 is a flowchart illustrating a method for re-identifying a SIM card after the SIM card is removed;
FIG. 4 is a block diagram of an apparatus for re-identifying a SIM card after the SIM card is removed;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for re-identifying the SIM card after the SIM card is removed can be applied to terminal equipment, and the terminal equipment can be but is not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable equipment, and can also be some outdoor communication equipment, for example: relay stations, vehicle-mounted communication devices, industrial communication devices, and the like.
In an embodiment, as shown in fig. 1, a method for re-identifying a card after a SIM is removed is provided, which is described by taking the method applied to the terminal as an example, and includes the following steps:
step 101, after the SIM card is dropped and the SIM card is detected to be out of position continuously for a preset number of times, controlling a central processing unit CPU of the communication module to execute a delay operation, wherein the delay operation includes: and waiting for a preset time length.
In the process of using the communication module to communicate with the base station, the communication module can normally communicate with the base station after the SIM card is used for registering on the network. Optionally, the SIM card and the communication module may be in a form that the SIM card is connected with the communication module as a peripheral of the communication module, or the SIM card may be integrated inside the communication module. However, in any existing form, the SIM card is usually affected by strong factors in some special environments, such as: the SIM card in the communication module is in an out-of-place state due to low temperature, pressure, instant vibration and the like, and the communication module is disconnected from the network communication of the base station due to the fact that the SIM card is out of place.
In this case, the communication module generally sets a Reread (Reread) mechanism, that is, the communication module may continuously initiate several times of Reread card operations, and optionally, the Reread card operations may be performed by detecting a connection condition between an in-place detection pin of the SIM card and a pin of the communication module, or by detecting a level change condition of the in-place detection pin, to determine whether the SIM card is in place. But after the in-place detection is carried out for a plurality of times continuously, if the communication module can not detect that the SIM card is in an in-place state; at this time, the communication module gives up reading the card again, and no longer supplies power to the SIM card, and no longer communicates with the SIM card, resulting in disconnection of communication between the communication module and the base station. After that, if the communication module wants to recover the communication, the normal communication can be recovered only by manually plugging and unplugging the communication module in the field or inputting an initialization command. This results in high manual maintenance costs and inefficient recovery of the SIM card.
After the SIM card is dropped, carrying out on-site detection on the SIM card for continuous preset times according to the existing SIM card recovery method; if the SIM card is not detected to be in place after the in-place detection is performed for the preset number of times, the CPU of the communication module is controlled to perform a delay operation, where the delay operation includes waiting for a preset duration (that is, the terminal controls the CPU to wait for the preset duration). Optionally, the preset waiting time may be several seconds, several minutes, or several hours; the time delay operation can provide a recovery time for waiting for a preset time for the SIM card, and the SIM card is not directly abandoned for reading. For example: when the communication module is in a low-temperature state, such as-30 ℃, the SIM card may drop, if a re-reading mechanism in the existing communication module is adopted, after the SIM card is re-read for a plurality of times continuously, the terminal detects whether the SIM card is in place for the plurality of times continuously, and if the SIM card is not detected yet, the card reading is abandoned again; however, after the temperature rises, the SIM card returns to the on-site state again, but at this time, the communication module has abandoned the operation of reading the card again, so that the communication module cannot return to the networking state. However, after the delay operation is set, if the temperature rises back and the SIM card is in an in-place state within the recovery time of waiting for the preset duration, the communication module may detect the in-place state of the SIM card again after the preset duration is over.
And 102, after the preset duration is over, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result.
After the SIM card is disconnected, the communication module powers up the SIM card again, that is, the communication module powers up the SIM card again, and the SIM card can perform a series of subsequent operations only when powered, and optionally, the SIM card can be connected to the communication module only when powered.
Specifically, after the CPU controlling the communication module executes the delay operation and the waiting preset time period is over, the communication module controls the CPU to power on the SIM card and execute the in-place check operation of the SIM card again on the SIM card. Optionally, the connection state between the in-place detection pin of the SIM card and the pin of the communication module may be determined according to the level change condition of the in-place detection pin of the SIM card by detecting the level change condition of the in-place detection pin of the SIM card, so that whether the SIM card is in place or not may be known. Generally, before the SIM card is connected to the communication device, the presence detection pin of the SIM card is in an initial level state, and accordingly, the initial level state corresponds to the SIM card being in a non-presence state. When the level of the in-place detection pin of the SIM card changes, the in-place detection pin of the SIM card and the pin of the communication module are in a connection state, and the SIM card is in an in-place state; if the level of the on-site detection pin of the SIM card is not changed, the on-site detection pin of the SIM card and the pin of the communication module are in an unconnected state, and the SIM card is in an off-site state.
Optionally, before the SIM card is connected to the communication device, an initial level of the in-place detection pin of the SIM card may be a high level, and when the level of the in-place detection pin of the SIM card changes to a low level, it indicates that the in-place detection pin of the SIM card is connected to the pin of the communication module, which indicates that the SIM card is in an in-place state, and an obtained detection result is that the SIM card is in the in-place state; when the level of the on-site detection pin of the SIM card is high, it indicates that the on-site detection pin of the SIM card is not connected to the pin of the communication module, which indicates that the SIM card is in an off-site state, and the obtained detection result indicates that the SIM card is in the off-site state.
And 103, determining whether to execute the time delay operation again according to the detection result.
And performing in-place checking operation of the SIM card again on the SIM card to obtain a detection result, wherein the detection result comprises that the SIM card is in an in-place state or the SIM card is in an out-of-place state.
Specifically, after the CPU performs a delay operation, the terminal controls the CPU to perform the in-place check operation of the SIM card on the SIM card again, and obtains the detection result, so that it can be known whether the SIM card is in place or not in place at this time according to the detection result. Optionally, if the detection result indicates that the SIM card is not in place, the CPU may be controlled to execute the second time delay operation again to provide a second chance of reading the card for the re-identification card of the communication module, that is, to provide a second chance of detecting whether the SIM card is in place for the communication module; and controlling the CPU to execute the second time delay operation, which is actually controlling the CPU to wait for a preset time period again (optionally, the preset time period of the second time waiting may be the same as or different from the preset time period of the first time waiting), and after the second time waiting is finished, the terminal controls the CPU to power on the SIM card again, and executes the in-place check operation of the SIM card again to obtain a check result, and in the case that the detection result of this time is that the SIM card is in the in-place state, the card information of the SIM card can be read.
Specifically, when the card information of the SIM card is read, the SIM card may be initialized and then the card information of the SIM card is read, network registration is performed through the read card information of the SIM card, and after the SIM card successfully registers the network, communication between the communication module and the base station may be realized, and normal operation may be resumed. During the normal operation of the SIM card, the communication module will periodically detect whether the SIM card is dropped, and determine whether to execute the above-described delay operation or other procedures according to the detection result.
In summary, in this embodiment, after the SIM card is dropped, the communication module may continuously detect the presence of the SIM card for multiple times; if the SIM card is not in place after being checked for many times, controlling a CPU to execute a delay operation with preset time length, electrifying the SIM card again after the delay operation with the preset time length is finished, and detecting the in-place condition of the SIM card to obtain a detection result; if the detection result is that the SIM card is in an out-of-place state after the time delay operation is executed for the first time, controlling the CPU to execute the time delay operation with a preset time length again, wherein the preset time length can be longer than the preset time length when the time delay operation is executed for the first time; after the delay operation with the second preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place inspection operation of the SIM card again to obtain a detection result; if the in-place detection result is that the SIM card is not in the in-place state, the third time of delay operation can be executed, and after the third time of delay operation is finished, the in-place checking operation of the SIM card is executed again; in this way, if the SIM card is not detected after the preset number of delay operations is performed, optionally, the communication module may be restarted, and before the communication module is restarted, it is ensured that the user data of the communication module before the restart operation and the running state data of the communication module are stored, so as to ensure that the communication module after the restart can be restored to the previous running state without losing the historical user data.
According to the method, the device, the computer equipment and the storage medium for re-identifying the SIM card after the SIM card is removed, after the SIM card is detected to be out of position for a continuous preset number of times, the CPU of the communication module is controlled to execute the delay operation, wherein the delay operation comprises the following steps: waiting for a preset time length; after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result; and determining whether to execute the delay operation again according to the detection result. That is, after the SIM card is dropped, after the SIM card is subjected to continuous multiple in-place detections, or the SIM card is not detected, the CPU of the communication module in which the SIM card is located is controlled to perform a delay operation (i.e., the CPU is controlled to wait for a preset time), and after the CPU waits for the preset time, the CPU is controlled to power on the SIM card again, and the in-place detection of the SIM card is performed, so as to obtain a detection result; and determines whether to perform the delay operation again according to the detection result, instead of giving up reading the card again. Therefore, the time delay operation can be used for avoiding the abandoning and card reading operation of the communication module on the SIM card after the communication module detects that the SIM card is not in place for the continuous preset times, in addition, the self-recovery card reading efficiency of the communication module can be improved through the time delay module, the self-recovery card reading opportunity of the communication module is increased, the manual recovery of the communication module from the field is avoided, the cost of manual operation is reduced, and the recovery efficiency of the SIM card is improved.
Fig. 2 is a schematic flow chart of a method for re-identifying a SIM card after the SIM card is removed in another embodiment, which relates to an optional implementation process of a change condition of a register status bit in a SIM card re-identifying process. On the basis of the above-described embodiment, as shown in fig. 2.
Step 201, after the SIM card is dropped and the SIM card is not in place for a continuous preset number of times, controlling a preset register state bit to be changed from a first level to a second level so as to instruct a CPU to execute a delay operation; wherein the first level and the second level are two levels with opposite logic.
In the communication module, the in-place situation of the SIM card can be represented by setting a register status bit, and the CPU is instructed to execute relevant operations according to the change situation of the register status bit; optionally, the register status bit may be used to instruct the CPU to perform a delay operation, or may be used to instruct the CPU to perform a power-on operation on the SIM card.
Specifically, after detecting the presence of the SIM card, the communication module selects a register status bit capable of marking the status of the SIM card and having an interrupt trigger function, and sets the register status bit to a first level, where optionally, the first level may indicate that the SIM card is currently in a present status; when the SIM card is dropped and no SIM card is detected for a preset number of times, the communication module may control the preset register status bit to change from a first level to a second level, where the first level and the second level are two levels with opposite logics; optionally, the second level may be used to indicate that the SIM card is in an out-of-place state, and in addition, the second level may be used to instruct the CPU to perform a delay operation. For example: under the condition that the SIM card is in normal operation, the SIM card can be represented to be in an in-place state by setting the status bit of the register to be 1; when the SIM card is in a card-off state, the SIM card can be represented in an off-bit state by controlling the register status bit to be changed from 1 to 0, namely when the register status bit is 0; alternatively, the CPU may be instructed to perform a latency operation when the register status bit is 0.
Step 202, if the preset time delay is finished, controlling the second level to be changed into the first level again to instruct the CPU to power on the SIM card.
Specifically, after the SIM card detects that the SIM card is not in place for a preset number of times, the SIM card controls the preset register state bit to be changed from the first level to the second level, so as to instruct a central processing unit CPU of a communication module where the SIM card is located to execute a delay operation of a preset duration; and when the CPU executes the delay operation with the preset time length and the delay of the preset time length is finished, the communication module controls the preset register state bit to be changed from the second level to the first level again so as to indicate the CPU to electrify the SIM card. For example: based on the example in step 201, after the delay operation is ended, the register status bit may be changed from 0 to 1 again, and when the register status bit is 1, the CPU may be instructed to execute a power-on operation on the SIM card.
In step 203, if the detection result is that the SIM card is not in the on-bit state, the register state bit is controlled to change from the first level to the second level again, so as to instruct the CPU to perform the delay operation again.
After the CPU powers on the SIM card according to the change of the register status bit, the in-place check operation of the SIM card is executed again, that is, whether the SIM card is in place or not is determined by checking the connection state between the in-place detection pin of the SIM card and the pin of the communication module, so as to obtain the detection result. If the detection result is that the SIM card is in the not-in-place state, the terminal controls the register state bit to change from the first level to the second level again so as to instruct the CPU to execute the delay operation again.
Optionally, the preset time lengths corresponding to each time of executing the delay operation are different, and the size of the preset time length corresponding to the current time of executing the delay operation is larger than the size of the preset time length corresponding to the previous time of executing the delay operation. For example: when the terminal controls the CPU to execute the first time delay operation, the first preset time length is set to be 30 seconds; the terminal may set the preset time length for the second time to be 90 seconds when controlling the CPU to execute the delay operation for the second time, that is, the preset time length corresponding to the delay operation for the second time may be longer than the preset time length corresponding to the delay operation for the first time.
In this embodiment, the communication module changes the register state bit from a first level to a second level to instruct the CPU to perform a delay operation of a preset duration by setting a register state bit capable of marking a bit state of the SIM card and having an interrupt trigger function, and detecting that the SIM card is not in place; after the delay operation of the preset time length is finished, controlling the state bit of the register to be changed from the second level to the first level again so as to indicate the CPU to electrify the SIM card, and executing the on-site checking operation of the SIM card again to obtain a detection result; if the detection result is that the SIM card is in the out-of-position state, the state bit of the register is controlled to be changed from the first level to the second level again so as to instruct the CPU to execute the delay operation with a preset time length again. The execution operation of the CPU is controlled by the continuous change of the status bit of the register, so that the control logic of the terminal to the CPU is simplified; in addition, the embodiment can also avoid abandoning the card re-reading operation of the SIM card after the communication module detects that the SIM card is not in place for the continuous preset times, can avoid abandoning the card re-reading operation of the SIM card after the communication module detects that the SIM card is not in place for the continuous preset times by setting the state bit of the register and the time delay operation, in addition, the autonomous recovery card reading efficiency of the communication module can be improved through the time delay module, the autonomous recovery card reading chance of the communication module is increased, the manual recovery of the communication module from the field is avoided, the cost of manual operation is reduced, and the recovery efficiency of the SIM card is improved.
Fig. 3 is a schematic flow chart of a method for re-identifying a SIM card after the SIM card is removed in another embodiment, which relates to an optional implementation process of re-identifying a SIM card. On the basis of the above-described embodiment, as shown in fig. 3.
Step 301, the SIM card is dropped and the SIM card is checked for the presence for a predetermined number of times, if not, step 302 is executed.
Step 302, determining whether the number of executed delay operations exceeds a preset delay number, if not, executing step 304, and if so, executing step 303.
Step 303, restart the communication module.
In step 304, the preset register status bit is controlled to change from the first level to the second level to instruct the CPU to perform the delay operation.
And 305, after the preset time delay is finished, controlling the preset register state bit to be changed from the second level to the first level again to indicate the CPU to power on the SIM card, and executing the on-site checking operation of the SIM card again to obtain the detection result.
Step 306, determine whether the detection result is that the SIM card is not in the on-position state, if yes, go to step 302, otherwise go to step 307.
Step 307, card information of the SIM card is read.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 4, there is provided an apparatus for re-identifying a SIM card after the SIM card is removed, including: a delay module 401, a power-on module 402, an in-place check module 403, and a determination module 404, wherein:
the delay module 401 is configured to control the central processing unit CPU of the communication module to execute a delay operation after the SIM card is dropped and the SIM card is detected to be out of place for a predetermined number of times, where the delay operation includes: and waiting for a preset time length.
And a power-on module 402, configured to control the CPU to power on the SIM card after the preset duration is over.
And the in-place checking module 403 is configured to perform in-place checking operation of the SIM card again to obtain a detection result.
A determining module 404, configured to determine whether to perform the delay operation again according to the detection result.
In one embodiment, the determining module 404 is specifically configured to execute the delay operation again when the detection result indicates that the SIM card is not in the on-position state; and reading the card information of the SIM card under the condition that the detection result is that the SIM card is in the in-place state.
In one embodiment, the delay module 401 is specifically configured to, after the SIM card is dropped and none of the SIM cards is detected for a preset number of times continuously, control the preset register status bit to change from the first level to the second level to instruct the CPU to execute the delay operation; wherein the first level and the second level are two levels with opposite logic.
In one embodiment, the power-on module 402 is specifically configured to control the second level to change to the first level again after the preset time delay is ended, so as to instruct the CPU to power on the SIM card.
In one embodiment, the determining module 404 is specifically configured to, in a case that the detection result indicates that the SIM card is in the out-of-bit state, control the register state bit to change from the first level to the second level again, so as to instruct the CPU to perform the delay operation again.
In one embodiment, the preset durations corresponding to each time of the delay operation are different, and the size of the preset duration corresponding to the current time of the delay operation is larger than the size of the preset duration corresponding to the previous time of the delay operation.
In one embodiment, the apparatus further includes: and the restarting module is used for restarting the communication module under the condition that the detection result after the time delay operation is executed is that the SIM card is still in an out-of-place state.
For specific limitations of the device for re-identifying the SIM card after the SIM card is removed, reference may be made to the above limitations on the method for re-identifying the SIM card after the SIM card is removed, and details are not described here. All or part of each module in the device for re-identifying the SIM after the SIM is removed can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method for re-identifying a card after a SIM is removed. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute time delay operation, wherein the time delay operation comprises the following steps: waiting for a preset time length;
after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result;
and determining whether to execute the delay operation again according to the detection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining whether to execute the delay operation again according to the detection result, wherein the determining comprises the following steps: if the detection result is that the SIM card is not in the in-place state, executing the delay operation again; and if the detection result is that the SIM card is in the in-place state, reading the card information of the SIM card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute delay operation, which comprises the following steps: after the SIM card is dropped and the SIM card is not in place for a continuous preset number of times, controlling a preset register state bit to be changed from a first level to a second level so as to instruct a CPU to execute delay operation; wherein the first level and the second level are two levels with opposite logic.
In one embodiment, the processor, when executing the computer program, further performs the steps of: after the preset time length is finished, controlling the CPU to electrify the SIM card, comprising the following steps: and if the preset time delay is finished, controlling the second level to be changed into the first level again so as to indicate the CPU to electrify the SIM card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the detection result is that the SIM card is in the out-of-position state, executing the delay operation again, wherein the delay operation comprises the following steps: if the detection result is that the SIM card is in the not-in-place state, the register state bit is controlled to be changed from the first level to the second level again so as to instruct the CPU to execute the delay operation again.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the preset time length corresponding to each time of executing the delay operation is different, and the size of the preset time length corresponding to the current time of executing the delay operation is larger than the size of the preset time length corresponding to the previous time of executing the delay operation.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the detection result after the time delay operation is executed is that the SIM card is still in the out-of-position state, restarting the communication module.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute time delay operation, wherein the time delay operation comprises the following steps: waiting for a preset time length;
after the preset time length is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result;
and determining whether to execute the delay operation again according to the detection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining whether to execute the delay operation again according to the detection result, wherein the determining comprises the following steps: if the detection result is that the SIM card is not in the in-place state, executing the delay operation again; and if the detection result is that the SIM card is in the in-place state, reading the card information of the SIM card.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the SIM card is dropped and the SIM card is not in place for continuous preset times, the CPU of the communication module is controlled to execute delay operation, which comprises the following steps: after the SIM card is dropped and the SIM card is not in place for a continuous preset number of times, controlling a preset register state bit to be changed from a first level to a second level so as to instruct a CPU to execute delay operation; wherein the first level and the second level are two levels with opposite logic.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the preset time length is finished, controlling the CPU to electrify the SIM card, comprising the following steps: and if the preset time delay is finished, controlling the second level to be changed into the first level again so as to indicate the CPU to electrify the SIM card.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the detection result is that the SIM card is in the out-of-position state, executing the delay operation again, wherein the delay operation comprises the following steps: if the detection result is that the SIM card is in the not-in-place state, the register state bit is controlled to be changed from the first level to the second level again so as to instruct the CPU to execute the delay operation again.
In one embodiment, the computer program when executed by the processor further performs the steps of: the preset time length corresponding to each time of executing the delay operation is different, and the size of the preset time length corresponding to the current time of executing the delay operation is larger than the size of the preset time length corresponding to the previous time of executing the delay operation.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the detection result after the time delay operation is executed is that the SIM card is still in the out-of-position state, restarting the communication module.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for re-identifying a SIM card after the SIM card is removed is applied to a communication module, wherein the communication module communicates with the SIM card, and the method comprises the following steps:
after the SIM card is dropped and the SIM card is detected by the continuous preset times that the SIM card is not in place, controlling a Central Processing Unit (CPU) of the communication module to execute a time delay operation, wherein the time delay operation comprises the following steps: waiting for a preset time length;
after the preset time span is finished, controlling the CPU to electrify the SIM card, and executing the in-place checking operation of the SIM card again to obtain a detection result;
and determining whether to execute the time delay operation again according to the detection result.
2. The method of claim 1, wherein the determining whether to perform the delay operation again according to the detection result comprises:
and if the detection result is that the SIM card is in the out-of-position state, executing the delay operation again.
And if the detection result is that the SIM card is in the in-place state, reading the card information of the SIM card.
3. The method according to claim 2, wherein after the SIM card is dropped and none of the SIM cards is detected for a preset number of consecutive times, controlling a Central Processing Unit (CPU) of the communication module to perform a delay operation, comprises:
after the SIM card is dropped and the SIM card is not in place for a continuous preset number of times, controlling a preset register state bit to be changed from a first level to a second level so as to instruct the CPU to execute the delay operation; wherein the first level and the second level are two levels that are logically opposite.
4. The method according to claim 3, wherein controlling the CPU to power on the SIM card after the preset duration is over comprises:
and if the preset time delay is finished, controlling the second level to be changed into the first level again so as to indicate the CPU to electrify the SIM card.
5. The method according to claim 4, wherein if the detection result is that the SIM card is in an out-of-bit state, the performing the delay operation again comprises:
and if the detection result is that the SIM card is in a not-in-place state, controlling the register state bit to be changed from the first level to the second level again so as to instruct the CPU to execute the delay operation again.
6. The method of claim 5, wherein the preset durations corresponding to each time of the delay operations are different, and a size of the preset duration corresponding to a current time of the delay operations is larger than a size of the preset duration corresponding to a previous time of the delay operations.
7. The method of any one of claims 1 to 6, further comprising:
and if the detection result after the time delay operation is executed is that the SIM card is still in an out-of-position state, restarting the communication module.
8. An apparatus for re-identifying a card after a SIM card is removed, which is applied in a communication module, the communication module communicates with the SIM card, the apparatus comprising:
the time delay module is used for controlling a Central Processing Unit (CPU) of the communication module to execute time delay operation after the SIM card is dropped and the SIM card is not in place for continuous preset times, wherein the time delay operation comprises the following steps: waiting for a preset time length;
the power-on module is used for controlling the CPU to power on the SIM card after the preset duration is finished;
the in-place checking module is used for executing the in-place checking operation of the SIM card again to obtain a detection result;
and the determining module is used for determining whether to execute the delay operation again according to the detection result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010928160.8A 2020-09-07 2020-09-07 Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped Pending CN112188472A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010928160.8A CN112188472A (en) 2020-09-07 2020-09-07 Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped
PCT/CN2021/107118 WO2022048331A1 (en) 2020-09-07 2021-07-19 Method and device for card reidentification when sim card is disconnected, computer device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010928160.8A CN112188472A (en) 2020-09-07 2020-09-07 Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped

Publications (1)

Publication Number Publication Date
CN112188472A true CN112188472A (en) 2021-01-05

Family

ID=73924869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010928160.8A Pending CN112188472A (en) 2020-09-07 2020-09-07 Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped

Country Status (2)

Country Link
CN (1) CN112188472A (en)
WO (1) WO2022048331A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022048331A1 (en) * 2020-09-07 2022-03-10 深圳市广和通无线股份有限公司 Method and device for card reidentification when sim card is disconnected, computer device, and medium
CN114338908A (en) * 2021-12-23 2022-04-12 展讯通信(上海)有限公司 SIM card recovery method, device, chip and module equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080070629A1 (en) * 2006-09-20 2008-03-20 Chi Mei Communication Systems, Inc. Method and mobile communication device for resuming a functioning of a subscriber identity module
CN104079724A (en) * 2014-06-27 2014-10-01 广东欧珀移动通信有限公司 Mobile phone card losing recovery method and mobile terminal applying mobile phone card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107743164A (en) * 2017-11-30 2018-02-27 宇龙计算机通信科技(深圳)有限公司 A kind of exception falls the processing method and terminal of card
CN108419260B (en) * 2018-02-26 2021-08-10 Tcl移动通信科技(宁波)有限公司 SIM card connection control method, mobile terminal and storage medium
CN112188472A (en) * 2020-09-07 2021-01-05 深圳市广和通无线股份有限公司 Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080070629A1 (en) * 2006-09-20 2008-03-20 Chi Mei Communication Systems, Inc. Method and mobile communication device for resuming a functioning of a subscriber identity module
CN104079724A (en) * 2014-06-27 2014-10-01 广东欧珀移动通信有限公司 Mobile phone card losing recovery method and mobile terminal applying mobile phone card

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022048331A1 (en) * 2020-09-07 2022-03-10 深圳市广和通无线股份有限公司 Method and device for card reidentification when sim card is disconnected, computer device, and medium
CN114338908A (en) * 2021-12-23 2022-04-12 展讯通信(上海)有限公司 SIM card recovery method, device, chip and module equipment
CN114338908B (en) * 2021-12-23 2023-01-10 展讯通信(上海)有限公司 SIM card recovery method, device, chip and module equipment

Also Published As

Publication number Publication date
WO2022048331A1 (en) 2022-03-10

Similar Documents

Publication Publication Date Title
US11822805B2 (en) Method and terminal for reclaiming memory after freezing program
EP3100162B1 (en) Task scheduling method and apparatus
CN111124440A (en) Chip software burning method, chip software burning data processing method and device
CN104216753A (en) Method for rapidly starting application program for terminal, and terminal
CN102455950A (en) Firmware recovery system and method of base board management controller
CN103823769A (en) Computer system and data recovery method
CN112188472A (en) Method, device, computer equipment and medium for re-identifying SIM card after SIM card is dropped
CN104156050A (en) Task monitoring method and electronic device
CN109213448B (en) Method, device, equipment and storage medium for erasing and writing data of smart card
CN113608930A (en) System chip and electronic device
US9450751B2 (en) Smart card, electronic device, and portable electronic device
CN112069843A (en) Radio frequency signal processing method and device and electronic equipment
CN109151144B (en) Hardware management method, device, system, computer equipment and storage medium
CN115687146A (en) BIOS (basic input output System) test method and device, computer equipment and storage medium
CN104699514A (en) Remote-control end system updating method and device
CN105653412A (en) Fingerprint device compatibility detection method and terminal
CN105183673A (en) Method and apparatus for supporting hot swap of external storage device under recovery mode
CN115269452A (en) Trim command processing method, system, terminal device and storage medium
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN111208945B (en) Data management method, device and storage medium
CN109491825B (en) Method, device, storage medium and terminal for positioning abnormal starting problem
CN109857469B (en) Display screen control method and related product
CN108108801B (en) Device for realizing data read-write by simulating contact type IC card and read-write method
CN105049562A (en) Unlocking method of subscriber identity module card and communication terminal
CN113408845B (en) Processing method and device of production flow, computer equipment and storage medium

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