Data processing method and device for SIM card erasing and writing operation

By verifying the number of times the SIM card is erased and triggered, setting expected thresholds, and rejecting erase and write operations that exceed the thresholds, the problem of excessive SIM card erase and write operations is solved, extending the lifespan of the SIM card and reducing the energy consumption of IoT terminals.

CN115454883BActive Publication Date: 2026-07-14ANYSMART TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ANYSMART TECH CO LTD
Filing Date
2022-08-10
Publication Date
2026-07-14

Smart Images

  • Figure CN115454883B_ABST
    Figure CN115454883B_ABST
Patent Text Reader

Abstract

The application provides a data processing method and device for SIM card erasing and writing operation, comprising: verifying a statistical instruction based on a preset erasing and writing mechanism of the SIM card, wherein the verification comprises verifying the number of triggering behaviors of the SIM card and verifying the number of erasing and writing behaviors of the SIM card; after the number of erasing and writing behaviors of the SIM card is equal to the expected number of erasing and writing behaviors of the SIM card according to the statistical instruction passing the verification, the erasing and writing behaviors of the SIM card exceeding the expected number of erasing and writing behaviors of the SIM card are rejected; wherein the expected number of erasing and writing behaviors of the SIM card is determined according to the erasing and writing mechanism and the number of triggering behaviors of the SIM card. Through the rationality check of the erasing and writing behaviors of the SIM card, unnecessary erasing and writing is avoided; compared with the traditional balancing method, the total number of erasing and writing can be effectively reduced, abnormal erasing and writing and frequent erasing and writing are avoided, the rationality and necessity of the erasing and writing behaviors of the SIM card are improved, and the service life of the SIM card is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a data processing method, apparatus, computer device, and storage medium for SIM card erasing and writing operations. Background Technology

[0002] In existing technologies, a SIM card is an identity identifier for accessing cellular networks. It is increasingly widely used in IoT devices that need to access cellular networks. There are many types of IoT devices, and many of them do not require constant operation by staff. IoT devices are characterized by their low price, the fact that replacement or maintenance costs far exceed the price of the device itself, their hidden deployment locations, and the inconvenience of replacing or maintaining the device. Therefore, the lifespan of the SIM card is the key factor determining the lifespan of IoT devices.

[0003] The key to determining the lifespan of a SIM card lies in the number of times it is erased and rewritten. Existing SIM card erasure and rewriting methods generally focus on the balance of SIM card erasure and rewriting, and use the method of swapping target storage blocks to achieve balance, thereby improving the lifespan of the SIM card, without having a significant impact on the total number of times the SIM card is erased and rewritten. Therefore, how to reduce the total number of times the SIM card is erased and rewritten and reduce the power consumption of IoT terminals has become an urgent problem to be solved. Summary of the Invention

[0004] Therefore, it is necessary to provide a data processing method, apparatus, computer equipment, and storage medium for SIM card writing operations that reduces the total number of SIM card write operations and lowers the power consumption of IoT terminals, in order to address the above-mentioned technical problems.

[0005] To address the aforementioned technical problems, embodiments of the present invention provide a data processing method for SIM card erasure and rewriting operations, comprising: verifying statistical instructions based on a preset SIM card erasure and rewriting mechanism, wherein the verification includes verifying the number of SIM card trigger actions and the number of SIM card erasure and rewriting actions; after determining, according to the verified statistical instructions, that the number of SIM card erasure and rewriting actions equals the expected number of SIM card erasure and rewriting actions, rejecting SIM card erasure and rewriting actions exceeding the expected number of SIM card erasure and rewriting actions; wherein the expected number of SIM card erasure and rewriting actions is determined based on the erasure and rewriting mechanism and the statistically determined number of SIM card trigger actions.

[0006] An embodiment of the present invention also provides a data processing device for SIM card erase / write operations, comprising: a verification module, configured to verify statistical instructions based on a preset SIM card erase / write control logic, wherein the verification includes verification of the number of SIM card trigger actions and verification of the number of SIM card erase / write actions; and a processing module, configured to reject SIM card erase / write actions exceeding the expected number of SIM card erase / write actions after, according to the verified statistical instructions, the number of erase / write actions is equal to the expected number of SIM card erase / write actions; wherein the expected number of SIM card erase / write actions is determined based on the erase / write mechanism and the counted number of SIM card trigger actions.

[0007] Embodiments of the present invention also provide a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the data processing method for SIM card erasure and rewriting operations described above.

[0008] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the data processing method for the SIM card erasure and write operation described above.

[0009] The aforementioned data processing method, apparatus, computer equipment, and storage medium for SIM card erasure and writing operations perform a rationality check on the SIM card erasure and writing behavior, verify statistical instructions, and, based on the verified statistical instructions, reject SIM card erasure and writing behaviors that exceed the expected number of SIM card erasure and writing behaviors after counting the number of SIM card erasure and writing behaviors, thereby avoiding unnecessary erasure and writing. Compared with traditional equalization methods, this can effectively reduce the total number of erasure and writing behaviors, improve the rationality and necessity of SIM card erasure and writing behaviors, extend the lifespan of the SIM card, and reduce the power consumption of terminals that require network connectivity. Attached Figure Description

[0010] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0011] Figure 1 This is a flowchart illustrating a data processing method for SIM card erasing and writing operations according to the present invention.

[0012] Figure 2 This is a flowchart illustrating a pre-verification operation step in the present invention;

[0013] Figure 3 This is a structural block diagram of a data processing device for SIM card erasing and writing operations according to the present invention;

[0014] Figure 4 This is a diagram showing the internal structure of the computer device in this invention. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0016] One embodiment of the present invention relates to a data processing method for SIM card erasure and writing operations, which can be applied in a terminal. In this embodiment, based on a preset SIM card erasure and writing mechanism, statistical instructions are verified. The verification includes verifying the number of SIM card trigger actions and the number of SIM card erasure and writing actions. After the number of SIM card erasure and writing actions is found to be equal to the expected number of SIM card erasure and writing actions according to the verified statistical instructions, SIM card erasure and writing actions exceeding the expected number of SIM card erasure and writing actions are rejected. The expected number of SIM card erasure and writing actions is determined based on the erasure and writing mechanism and the number of SIM card trigger actions. By verifying the statistical instructions and rejecting SIM card erasure and writing actions exceeding the expected number of SIM card erasure and writing actions after the number of SIM card erasure and writing actions is found to be equal to the expected number of SIM card erasure and writing actions according to the verified statistical instructions, unnecessary erasure and writing can be avoided. Compared with traditional equalization methods, this method can effectively reduce the total number of erasure and writing actions, improve the rationality and necessity of SIM card erasure and writing actions, increase the lifespan of the SIM card, and reduce the power consumption of terminals that require network connectivity. The following is a detailed description of the implementation details of the data processing method for SIM card erasure and writing operations in this embodiment. The following content is only for the convenience of understanding and is not necessary for implementing this solution.

[0017] In one embodiment, such as Figure 1 The diagram illustrates a data processing method for SIM card erasing and writing operations, comprising the following steps:

[0018] Step 1: Based on the preset SIM card write / erase mechanism, verify the statistical commands. This verification includes verifying the number of times the SIM card triggers an action and verifying the number of times the SIM card is written / eraseed. Step 1 specifically includes the following steps 101 to 105:

[0019] Step 101: Obtain the number of SIM card write / erase operations;

[0020] The data processing method for SIM card erasure and writing operations in this invention can be applied to various terminals, such as Internet of Things terminals. Furthermore, it can also be applied to various terminals that require SIM card insertion, such as smart mobile terminals and tablet terminals. This invention does not impose too many limitations on these applications.

[0021] That is, the terminal connects to an external base station via a SIM card to transmit data, and the terminal registers with an external network via the SIM card to exchange data.

[0022] In this invention, the terminal can first obtain the number of times the SIM card can be erased or rewritten. Specifically, it can obtain the number of times the SIM card can be erased or rewritten by calling a specific API (Application Programming Interface).

[0023] Step 102: Obtain the number of times the SIM card triggered the action;

[0024] Further applied to this invention, the terminal can also obtain the number of SIM card trigger actions. Similarly, it can obtain the number of SIM card trigger actions by calling the corresponding API interface. For this SIM card trigger action, it can be a trigger action based on the 3GPP protocol applicable to the SIM card erase / write mechanism of NBIOT, that is, an action that can trigger the SIM card to erase or write, such as successful network registration, network registration rejection, Detach, Authentication reject, Attach reject, SMS (Short Message Service) text message, TAU (Location Information Update) operation, AT+ECRMFPLMN (performance test command in NBIOT) active operation, AT+CRSM / CSIM (query access command in NBIOT) active operation, GUTI re-allocation, etc. Of course, it can also include other trigger actions, and this invention does not impose too many restrictions on them.

[0025] Each triggering action corresponds to a SIM card write / erase action. For example, a successful network registration operation will trigger one EPS location information operation, which is a write operation. That is, a successful network registration operation will trigger one SIM card write operation.

[0026] Step 103: Verify whether the number of SIM card write / erase actions matches the number of write / erase actions recorded by the tool;

[0027] Specifically, in this invention, after obtaining the number of times the SIM card can be erased and rewritten, the terminal can further obtain the number of times the tool records the erasure and rewriting behavior through external software tools, compare the two, and determine whether the two are consistent.

[0028] Step 104: Verify whether the number of times the SIM card triggers the behavior is consistent with the expected number of times the SIM card will trigger the behavior;

[0029] Furthermore, the terminal can also obtain the expected number of SIM card actions. Specifically, the expected number of SIM card actions can be obtained by extracting information from the terminal's log.

[0030] After obtaining the number of times the SIM card has triggered actions and the number of times the SIM card is expected to trigger actions, the two are compared to obtain the judgment result.

[0031] Step 105: When the number of SIM card write / erase actions matches the number of write / erase actions recorded by the tool and the number of SIM card triggered actions matches the expected number of SIM card actions, the statistical instruction is determined to have passed verification, and the corresponding statistical instruction is applied to the terminal firmware.

[0032] In an embodiment of the present invention, if it is determined that the number of SIM card erase / write actions is consistent with the number of erase / write actions recorded by the tool, and the number of SIM card triggered actions is also consistent with the number of SIM card expected actions, then the statistical result is accurate, and the statistical instruction is verified. It should be noted that the statistical instruction can be an instruction used to count the actual number of erase / write actions / the specific number of times a specific action occurs.

[0033] Step 106: After the number of SIM card wiping / writing actions is equal to the expected number of SIM card wiping / writing actions according to the verified statistical instructions, SIM card wiping / writing actions that exceed the expected number of SIM card wiping / writing actions are rejected; wherein, the expected number of SIM card wiping / writing actions is determined based on the wiping / writing mechanism and the number of SIM card triggered actions counted.

[0034] Specifically, the SIM card write / erase mechanism can be modified to reject SIM card write / erase attempts that exceed the expected number. For example, after detecting SIM card write / erase attempts that exceed the expected number, the timing of these attempts can be analyzed, and the write / erase mechanism can be modified based on the analysis results.

[0035] In this invention, a rationality check is performed on SIM card wiping / writing behavior. After statistical analysis based on verified instructions shows that the number of SIM card wiping / writing behaviors equals the expected number of SIM card wiping / writing behaviors, SIM card wiping / writing behaviors exceeding the expected number of SIM card wiping / writing behaviors are rejected to avoid unnecessary wiping / writing. Compared with traditional balancing methods, this can effectively reduce the total number of wiping / writing behaviors, improve the rationality and necessity of SIM card wiping / writing behaviors, and extend the lifespan of the SIM card.

[0036] In one embodiment, pre-verification of the terminal and SIM card may also be performed before verification of statistical instructions; see reference Figure 2 A flowchart illustrating pre-verification steps is provided, the steps including:

[0037] Step 111: Build SIM card triggering behavior for the terminal and SIM card;

[0038] First, the terminal constructs one or more SIM card triggering behaviors for itself and the SIM card, such as constructing a successful network registration operation, a network registration rejected operation, a Detach operation, an Authentication reject operation, an Attach reject operation, an SMS message, and an AT+ECRMFPLMN active operation once each.

[0039] Step 112: Obtain the number of SIM card write / erase operations;

[0040] Furthermore, after constructing the SIM card trigger behavior, the terminal obtains the number of SIM card erase / write behaviors by calling the corresponding API interface. For example, if the number of SIM card erase / write behaviors obtained by calling the API interface is 1.

[0041] Step 113: Determine whether the number of SIM card write / erase actions is consistent with the number of SIM card trigger actions, and obtain the determination result.

[0042] Specifically, after obtaining the number of times the SIM card was erased or rewritten, it was compared with the number of times the SIM card was triggered to obtain a judgment result. If the two are consistent, it means that the statistical result is accurate.

[0043] To enable those skilled in the art to better understand the present invention, a specific example is provided below:

[0044] (1) For SIM cards in NBIOT (Narrow Band Internet of Things), there is a pre-defined erase / write mechanism, for example:

[0045] Successful netlisting operation: EFepsloci 1 time (write);

[0046] Rejected registration procedure: EFepsloci once (erase);

[0047] Detach operation: EFepsnsc 1 time (write);

[0048] Authentication reject operation: EFepsloci 1 time (erase);

[0049] Authentication reject operation: EFepsnsc once (erase);

[0050] Attach reject operation: FPLMN 1 time (write);

[0051] SMS (Short Message Service) text messages: EFsmsp, EFsmss (write);

[0052] AT+ECRMFPLMN active operation: FPLMN once (erase);

[0053] TAU (Location Update) operation: EFepsloci once (write); etc.

[0054] (2) Perform pre-verification operations on the terminal and SIM card, that is, construct the above-mentioned SIM card trigger behavior once, obtain the number of erase / write behaviors of the SIM card, and determine whether the SIM card has only been erased / written once.

[0055] (3) Based on the preset SIM card write / erase mechanism, the statistical commands are verified, including:

[0056] (3-1) Obtain the number of SIM card write / erase operations; In one example, the following AT commands can be used to control the enabling and disabling of the corresponding statistics function in (3-1), as follows:

[0057] AT+QSWC= <mode>;

[0058] when <mode>When the value is 0, the statistical function is turned off.

[0059] when <mode>=1 indicates that the statistical function is enabled;

[0060] when <mode>When the value is 2, it indicates that the query results are statistical.

[0061] when <mode>When the value is 3, it means clearing the statistical results, that is, setting the statistical results of all files to 0;

[0062] (3-2) Obtain the number of times the SIM card triggers an action; in one example, the following AT commands can be used to control the enabling and disabling of the corresponding statistics function in (3-2), as follows:

[0063] This involves counting the number of times a specific action occurs to calculate the expected maximum number of erase / write cycles. The specific steps are as follows:

[0064] AT+QNBEVENT= <mode>;

[0065] when <mode>When the value is 0, the statistical function is turned off.

[0066] when <mode>=1 indicates that the statistical function is enabled;

[0067] when <mode>When the result is equal to 2, the statistical results are cleared.

[0068] (3-3) Verify whether the number of SIM card erase / write actions is consistent with the number of erase / write actions recorded by the tool; and verify whether the number of SIM card triggered actions is consistent with the number of SIM card expected actions; when the number of SIM card erase / write actions is consistent with the number of erase / write actions recorded by the tool and the number of SIM card triggered actions is consistent with the number of SIM card expected actions, determine that the statistical instruction has passed the verification, and apply the corresponding statistical instruction to the firmware of the terminal.

[0069] (4) Based on the verified statistical instructions, the number of SIM card write / erase actions and the number of SIM card trigger actions are counted. An alarm is triggered when the number of SIM card write / erase actions equals the expected number. The write / erase mechanism is then modified to prevent exceeding the expected number of SIM card write / erase actions. In one example, the situation where exceeding the expected number of SIM card write / erase actions is detected and an alarm is triggered is as follows:

[0070] If the number of EFEPSLOCI write operations is greater than the number of successful attach reject operations + the number of failed attach reject operations + the number of successful TAU operations + the number of failed TAU operations + the number of authentication reject operations, then an alarm will be triggered: too many EFEPSLOCI write operations.

[0071] If the number of EFepsnsc operations exceeds the number of successful detach operations + the number of failed detach operations + the number of failed Authenticationreject operations, then an alarm will be triggered: EFSEPSNSC card writing attempts are too high.

[0072] If the number of FPLMN operations exceeds the number of failed attach reject operations + the number of failed TAU operations + the number of AT+ECRMFPLMN active operations, then an alarm will be triggered: too many FPLMN operations.

[0073] If EFsmsp > number of times the center address has been written, then an alarm will be triggered: too many times the SIM card has been written to the SMSP card.

[0074] If EFsmss > the number of SMS messages received, then an alarm will be triggered: the number of times the SIM card has been written to the SMSS is too high.

[0075] If any other SIM card file is written, an alarm will be triggered: an unexpected SIM card file write operation has occurred.

[0076] In one example, when unexpected SIM card writing behavior was detected and an alarm was triggered by EFEPSLOCI indicating excessive write attempts, the SIM card writing behavior was analyzed. It was found that the terminal performed a write operation before receiving a message indicating successful data transmission during the process of receiving data via the TCP protocol. Therefore, the writing mechanism was modified to prevent the terminal from performing a write operation before confirming that a message indicating successful data transmission has been received, thus rejecting unexpected SIM card writing behavior.

[0077] In another example, when storing the number of SIM card triggered actions and the number of SIM card write / erase actions, the storage priority is not only lower than the priority of business data storage, but also lower than the SIM card's own operation priority; in this way, the stored statistical counts are prevented from affecting the business process.

[0078] In another example, the statistical data needs to be stored in non-power-loss RAM so that the statistical instructions can continue to be executed after the module containing the statistical instructions is restarted.

[0079] It should be understood that, although Figure 1-4 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1-4 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.

[0080] In one embodiment, such as Figure 3 The diagram shows a structural block diagram of a data processing device for SIM card erasure and writing operations, comprising: a verification module 30, used to verify statistical instructions based on a preset SIM card erasure and writing mechanism, wherein the verification includes verification of the number of SIM card trigger actions and verification of the number of SIM card erasure and writing actions; and a processing module 40, used to reject SIM card erasure and writing actions that exceed the expected number of SIM card erasure and writing actions after the statistical instructions that have passed verification have been counted to show that the number of SIM card erasure and writing actions is equal to the expected number of SIM card erasure and writing actions; wherein the expected number of SIM card erasure and writing actions is determined based on the erasure and writing mechanism and the count of SIM card trigger actions.

[0081] In one example, verification module 30 includes:

[0082] SIM card write / erase behavior count acquisition module 301, SIM card trigger behavior count acquisition module 302, first verification module 303, second verification module 304, application module 305;

[0083] SIM card write / erase count acquisition module 301 is used to acquire the number of SIM card write / erase counts;

[0084] The SIM card trigger behavior count acquisition module 302 is used to acquire the number of SIM card trigger behaviors.

[0085] The first verification module 303 is used to verify whether the number of SIM card erase / write operations is consistent with the number of erase / write operations recorded by the tool.

[0086] The second verification module 304 is used to verify whether the number of times the SIM card triggers behavior is consistent with the expected number of times the SIM card will trigger behavior.

[0087] Application module 305 is used to determine that the statistical instruction has passed verification when the number of SIM card write / erase actions is consistent with the number of write / erase actions recorded by the tool and the number of SIM card triggered actions is consistent with the number of expected actions of the SIM card.

[0088] Preferably, the SIM card triggering behavior includes network registration success operation, network registration rejection operation, Detach operation, Authentication reject operation, and Attach reject operation.

[0089] Preferably, the device further includes:

[0090] The pre-verification operation module is used to perform pre-verification operations on the terminal and SIM card.

[0091] Preferably, the pre-verification operation module includes:

[0092] The construction submodule is used to construct the SIM card triggering behavior for the terminal and SIM card;

[0093] The `get` submodule is used to obtain the number of times the SIM card has been erased or rewritten.

[0094] The judgment submodule is used to determine whether the number of times the SIM card is erased and written is consistent with the number of times the SIM card is triggered, and to obtain the judgment result.

[0095] Preferably, the device further includes:

[0096] The statistical results acquisition module is used to analyze the number of SIM card write / erase actions and the number of SIM card trigger actions to obtain statistical results;

[0097] The modification module is used to, after the number of SIM card wiping / writing actions is equal to the expected number of SIM card wiping / writing actions, modify the wiping / writing mechanism to reject SIM card wiping / writing actions that exceed the expected number of SIM card wiping / writing actions.

[0098] Specific limitations regarding the data processing device for SIM card erasure and writing operations can be found in the limitations of the data processing method for SIM card erasure and writing operations described above, and will not be repeated here. Each module in the aforementioned data processing device for SIM card erasure and writing operations can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0099] In one embodiment, a computer device is provided, the internal structure of which can be shown as follows: Figure 4 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a data processing method for SIM card writing / erasing operations. The display screen can be an LCD screen or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0100] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0101] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement... Figures 1 to 2 The steps.

[0102] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program being implemented when executed by a processor. Figures 1 to 2 The steps.

[0103] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0104] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0105] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0106] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.< / mode> < / mode> < / mode> < / mode> < / mode> < / mode> < / mode> < / mode> < / mode>

Claims

1. A data processing method for SIM card erasing and writing operations, characterized in that, include: Get the number of times the SIM card has been erased or rewritten; And obtain the number of times the SIM card triggers an action; Verify whether the number of SIM card write / erase actions matches the number of write / erase actions recorded by the tool; In addition, verify whether the number of times the SIM card triggers an action is consistent with the expected number of times the SIM card will trigger an action; When the number of SIM card write / erase actions matches the number of write / erase actions recorded by the tool, and the number of SIM card triggered actions matches the number of SIM card expected actions, the statistical instruction is confirmed to have passed verification. The number of SIM card expected actions is obtained by extracting information from the terminal's Log and is the expected number of SIM card triggered actions. After the statistical instruction that has been verified is found to be true, and the number of SIM card wiping / writing actions is equal to the expected number of SIM card wiping / writing actions, any SIM card wiping / writing actions exceeding the expected number of SIM card wiping / writing actions are rejected; wherein, the expected number of SIM card wiping / writing actions is determined based on the wiping / writing mechanism and the number of SIM card triggered actions.

2. The data processing method for SIM card erasure and write operations according to claim 1, characterized in that, The SIM card triggering behaviors include: successful network registration, rejected network registration, Detach operation, Authentication reject operation, and Attach reject operation.

3. The data processing method for SIM card erasure and write operations according to claim 2, characterized in that, The method further includes: Perform pre-verification operations on the terminal and SIM card.

4. The data processing method for SIM card erasure and write operations according to claim 3, characterized in that, The pre-verification operation for the terminal and SIM card includes: SIM card triggering behavior is built for the terminal and SIM card; Get the number of times the SIM card has been erased or rewritten; The determination result is obtained by comparing the number of times the SIM card was erased / written with the number of times the SIM card was triggered.

5. The data processing method for SIM card erasure and write operations according to any one of claims 1 to 4, characterized in that, The rejection of SIM card write operations exceeding the expected number of SIM card write operations includes: By modifying the erase / write mechanism, SIM card erase / write operations exceeding the expected number of SIM card erase / write operations are rejected.

6. A data processing device for SIM card erasing and writing operations, characterized in that, include: The SIM card erase / write count acquisition module is used to acquire the number of SIM card erase / write operations. The SIM card trigger behavior count acquisition module is used to acquire the number of times the SIM card triggers behavior. The first verification module is used to verify whether the number of SIM card write operations is consistent with the number of write operations recorded by the tool. The second verification module is used to verify whether the number of times the SIM card triggers behavior is consistent with the expected number of times the SIM card will trigger behavior. The application module is used to determine that the statistical instruction has passed verification when the number of SIM card write / erase actions is consistent with the number of write / erase actions recorded by the tool and the number of SIM card triggered actions is consistent with the number of SIM card expected actions. The number of SIM card expected actions is obtained by extracting information from the terminal's Log and is the expected number of SIM card triggered actions. The processing module is configured to reject SIM card wiping behaviors that exceed the expected number of SIM card wiping behaviors after counting the number of SIM card wiping behaviors according to the verified statistical instructions; wherein the expected number of SIM card wiping behaviors is determined based on the wiping mechanism and the count of SIM card triggered behaviors.

7. A computer device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform a data processing method for SIM card erasure and rewriting operations as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the data processing method for SIM card erasure and rewriting operations as described in any one of claims 1 to 5.