A method for handling abnormal states of a customer identification module

By using eSIM or vSIM modules that can switch telecom card information in IoT communication devices, the problem of network outages caused by customer identification module malfunctions has been solved, enabling timely identification and handling of anomalies and improving the operating efficiency of the devices.

CN117119432BActive Publication Date: 2025-10-28BEIJING SHUMI NETWORK TECH CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311121783.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-10-28
Estimated Expiration
2043-08-31

AI Technical Summary

Technical Problem

The telecom card information loaded on the customer identification module of conventional IoT communication devices cannot be modified, which causes the device to disconnect from the network when the telecom card is abnormal, making it impossible to perform abnormal analysis and processing in a timely manner, resulting in low identification and handling efficiency.

Method used

The customer identification module of the communication equipment is customized into an eSIM or vSIM module that can switch telecom card information, and two sets of telecom card information are pre-installed. By periodically tracking and identifying anomalies, it switches to the seed telecom card information to maintain network connectivity, and promptly notifies the remote server for analysis and feedback.

Benefits of technology

Maintaining uninterrupted network connectivity for communication equipment improves the efficiency of anomaly identification and handling, enabling remote servers to analyze front-end anomalies in a timely manner and local anomalies to be handled promptly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117119432B_ABST
    Figure CN117119432B_ABST
Patent Text Reader

Abstract

This invention relates to a method for handling abnormal states of a customer identification module. The method includes: a first communication device loading first telecommunications card information onto the customer identification module; connecting to the network after powering on; identifying the network connection status of the device when no seed telecommunications card information is loaded; using the telecommunications card identifier of the first telecommunications card information as the first card identifier; and, if the network connection fails or the first card identifier does not match the pre-bound card identifier, causing the customer identification module to load the seed telecommunications card information and reconnect to the network; and, upon successful network connection, sending the device identifier, device coordinates, and card identifier to a first remote server; the first remote server identifying the abnormal state of the customer identification module based on the device identifier, device coordinates, and card identifier; and sending the identification result to the first communication device; and the first communication device handling the module abnormality based on the identification result. This invention improves the efficiency of abnormal identification and handling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method for handling abnormal states of a customer identification module. Background Technology

[0002] Conventional IoT communication devices typically include a Subscriber Identity Module (SIM) along with a location module and a mobile communication module. The mobile communication module connects to the internet via a telecommunications SIM card loaded on the SIM. Once connected to the internet, these devices periodically or in real-time transmit the collected data to a remote server.

[0003] In practical applications of IoT communication devices, we encountered a problem: the telecom SIM card information loaded on the customer identification module of conventional IoT communication devices cannot be modified. If the telecom SIM card corresponding to this customer identification module malfunctions (excessive data usage, SIM card incompatibility, out-of-area usage, etc.), the IoT communication device will lose network access. Simultaneously, the remote server cannot perform timely and effective analysis of the front-end device anomaly, requiring personnel to retrieve the device before analysis can proceed. In this situation, the efficiency of anomaly identification and handling for IoT communication devices is very low. Summary of the Invention

[0004] The purpose of this invention is to address the shortcomings of existing technologies by providing a method for handling abnormal states of a customer identification module, an electronic device, and a computer-readable storage medium. First, the customer identification module on the communication device is customized as an eSIM or vSIM module capable of switching telecom card information. Two sets of telecom card information are pre-loaded on the communication device side (first telecom card information for IoT business processes and seed telecom card information for handling device abnormalities). During the loading of the first telecom card information by the customer identification module, the communication device is periodically tracked and identified for any abnormalities. Once an abnormality is confirmed, the telecom card information loaded by the customer identification module is switched to the seed telecom card information. The seed telecom card information is then used to log in to the network and promptly notify a remote server of the device abnormality. The remote server then analyzes the cause of the device abnormality and feeds the analysis results back to the communication device. Finally, the communication device performs corresponding local abnormality handling based on the analysis results. This invention maintains uninterrupted network connectivity for communication devices by switching telecom card information when the telecom card corresponding to the customer identification module malfunctions. Based on this, the remote server can promptly analyze and provide feedback on front-end anomalies, and the front-end communication device can also promptly handle local anomalies based on the feedback information. Thus, this invention can solve the problem of network outages in conventional IoT communication devices when the customer identification module malfunctions, thereby improving the efficiency of anomaly identification and handling.

[0005] To achieve the above objectives, a first aspect of the present invention provides a method for handling abnormal states of a customer identification module, the method comprising:

[0006] The first communication device pre-loads the first telecommunications card information into its built-in customer identification module;

[0007] After the first communication device is powered on, it connects to the network based on the first telecom card information pre-loaded on the customer identification module. When the telecom card information currently loaded on the customer identification module is not the pre-loaded seed telecom card information, the device periodically identifies its current network status at a preset first check frequency to generate a corresponding first network status. The telecom card identifier information in the first telecom card information is extracted as the corresponding first card identifier. When the first network status is a network failure or the first card identifier does not match the locally pre-loaded bound card identifier, the telecom card information loaded on the customer identification module is switched to the pre-loaded seed telecom card information, and the device reconnects to the network using the seed telecom card information. Upon successful network connection, the locally pre-loaded device identifier is used as the corresponding first device identifier, and the device's current location coordinates are used as the corresponding first device coordinates. The first device identifier, the first device coordinates, and the first card identifier are sent to the first remote server. The first network status includes network failure and network success.

[0008] The first remote server generates a corresponding first identification result based on the first device identifier, the first device coordinates, and the first card identifier to identify abnormal status of the customer identification module; and sends the first identification result to the first communication device; the first identification result includes card mismatch abnormality, area boundary abnormality, excessive traffic abnormality, GPRS abnormality, incorrect card suspension abnormality, and suspended card abnormality;

[0009] The first communication device performs module anomaly handling on the customer identification module based on the first identification result.

[0010] Preferably, the first communication device includes a positioning module, a mobile communication module, and the customer identification module;

[0011] The customer identification module includes an eSIM module and a vSIM module; the positioning module is used to obtain the real-time positioning coordinates of the device; the customer identification module is used to load the telecom card information; the mobile communication module connects to the network through the telecom card information loaded on the customer identification module; the first device connects to the first remote server through the networked mobile communication module;

[0012] The first communication device locally pre-configures the device identifier, the binding card identifier, and two sets of telecom card information; the two sets of telecom card information include the first telecom card information and the seed telecom card information; both the first telecom card information and the seed telecom card information include a corresponding telecom card identifier; the telecom card corresponding to the first telecom card information is bound to the first communication device, while the telecom card corresponding to the seed telecom card information is not bound to the first communication device; the telecom card corresponding to the first telecom card information has a restricted usage area, while the telecom card corresponding to the seed telecom card information has no restricted usage area; the binding card identifier should match the telecom card identifier information of the first telecom card information.

[0013] Preferably, the first remote server generates a corresponding first identification result based on the first device identifier, the first device coordinates, and the first card identifier to identify the abnormal state of the customer identification module, specifically including:

[0014] The first remote server performs a region identifier query based on the coordinates of the first device to obtain the corresponding first device region identifier; the first device region identifier includes a country region identifier, a province / state region identifier, and a city / county region identifier.

[0015] The system queries a preset telecom card database based on the first card identifier, and takes the first telecom card record in the database whose first telecom card identifier field matches the first card identifier as the corresponding current telecom card record. The telecom card database includes multiple first telecom card records. Each first telecom card record includes a first telecom card identifier field, a first bound device identifier field, a first telecom operator identifier field, a first available area field, a first data plan field, and a first suspended card status field. The first available area field includes a first-level country region identifier, a second-level province / state region identifier, and a third-level city / county region identifier. The first-level country region identifier cannot be empty. If the second-level province / state region identifier is empty, the corresponding third-level city / county region identifier is also empty. The first suspended card status field includes an unsuspended card status and a suspended card status.

[0016] The first telecom operator identifier field of the current telecom card record is extracted as the corresponding current operator identifier; and the cumulative monthly data usage, card suspension status, and GPRS on / off status of the telecom card corresponding to the first card identifier are queried through the operator query service interface corresponding to the current operator identifier to generate the corresponding first data usage query result, first card suspension status query result, and first GPRS status query result; the first card suspension status query result includes card not suspended and card suspended status; the first GPRS status query result includes GPRS on and GPRS off status.

[0017] The system identifies whether the first bound device identifier field in the current telecom card record matches the first device identifier. If they match, the corresponding device-card matching verification result is set to device-card matching; otherwise, the corresponding device-card matching verification result is set to device-card mismatch.

[0018] The system identifies whether the first available area field of the current telecom card record matches the first device area identifier. If they match, the corresponding available area verification result is set to "available area match"; if they do not match, the corresponding available area verification result is set to "available area mismatch".

[0019] The system identifies whether the first data plan field of the current telecom card record is greater than the first data query result. If the first data plan field is greater than the first data query result, the corresponding data check result is set to meet the data plan. If the first data plan field is less than or equal to the first data query result, the corresponding data check result is set to exceed the data plan.

[0020] The system identifies whether the first GPRS status query result indicates that GPRS is enabled. If so, the corresponding GPRS status check result is set to GPRS working normally. If not, the corresponding GPRS status check result is set to GPRS working abnormally.

[0021] The first card suspension status field of the current telecom card record is compared with the first card suspension status query result. If both the first card suspension status field and the first card suspension status query result are in the card suspension status, the corresponding card status verification result is set to normal card suspension. If the first card suspension status field is in the card suspension status but the first card suspension status query result is in the card suspension status, the corresponding card status verification result is set to incorrect card suspension.

[0022] The system identifies whether the SIM card matching test result indicates a SIM card mismatch. If the SIM card matching test result indicates a SIM card mismatch, the corresponding first identification result is set to "SIM card mismatch anomaly." If the SIM card matching test result indicates a SIM card match, the system identifies whether the available area test result indicates an available area mismatch. If the available area test result indicates an available area mismatch, the corresponding first identification result is set to "Area boundary outage anomaly." If the available area test result indicates an available area match, the system identifies whether the data usage test result indicates exceeding the data plan. If the data usage test result indicates exceeding the data plan, the corresponding first identification result is set to "Data usage outage anomaly." Excessive usage anomaly; if the traffic check result is within the data plan, then identify whether the GPRS status check result is a GPRS malfunction; if the GPRS status check result is a GPRS malfunction, then set the corresponding first identification result as GPRS anomaly; if the GPRS status check result is GPRS working normally, then identify whether the card status check result is a telecom card suspension anomaly; if the card status check result is a telecom card incorrectly suspended, then set the corresponding first identification result as incorrect card suspension anomaly; if the card status check result is a telecom card normally suspended, then set the corresponding first identification result as suspended card anomaly.

[0023] If the first identification result is an error in card suspension, then the suspension of the telecom card corresponding to the first card identifier is canceled through the operator card service interface corresponding to the current operator identifier.

[0024] Furthermore, the step of identifying whether the first available region field recorded in the current telecom card matches the first device region identifier specifically includes:

[0025] The first remote server extracts the first-level country region identifier, the second-level province / state region identifier, and the third-level city / county region identifier from the first available region field recorded by the current telecom card as the corresponding first country region identifier, first province / state region identifier, and first city / county region identifier; and extracts the country region identifier, the province / state region identifier, and the city / county region identifier from the first device region identifier as the corresponding second country region identifier, second province / state region identifier, and second city / county region identifier;

[0026] When the first country region identifier is not empty but the first province / state region identifier and the first city / county region identifier are both empty, the first available region field is confirmed to match the first device region identifier when the first and second country region identifiers match; and the first available region field is confirmed to not match the first device region identifier when the first and second country region identifiers do not match.

[0027] When the first country region identifier and the first province / state region identifier are both not empty but the first city / county region identifier is empty, the first available region field is confirmed to match the first device region identifier when the first and second country region identifiers match and the first and second province / state region identifiers match; and the first available region field is confirmed to not match the first device region identifier when the first and second country region identifiers do not match or the first and second province / state region identifiers do not match.

[0028] When the first country region identifier, the first province / state region identifier, and the first city / county region identifier are all not empty, the first available region field is confirmed to match the first device region identifier when the first and second country region identifiers match, the first and second province / state region identifiers match, and the first and second city / county region identifiers match; and the first available region field is confirmed to not match the first device region identifier when the first and second country region identifiers do not match, or the first and second province / state region identifiers do not match, or the first and second city / county region identifiers do not match.

[0029] Preferably, the first communication device performs module anomaly handling on the customer identification module based on the first identification result, specifically including:

[0030] The first communication device identifies the first identification result;

[0031] When the first identification result is a machine-card mismatch abnormality, area boundary abnormality, or card suspension abnormality, a corresponding first abnormality prompt message is composed of the first identification result, the first device identifier, the first card identifier, and the preset machine-card unbinding customer service prompt information and is displayed.

[0032] When the first identification result is an abnormal excessive traffic flow, the first identification result and the preset fuel package / package purchase prompt information are combined to form the corresponding first abnormal prompt message and displayed.

[0033] When the first identification result is GPRS abnormal, the first identification result and the preset GPRS shutdown prompt information are combined to form the corresponding first abnormal prompt message and displayed; and the GPRS service of the telecom card corresponding to the first card identifier is activated through the operator GPRS activation interface of the telecom operator corresponding to the first card identifier to generate the corresponding first activation processing result; and when the first activation processing result is successful, the telecom card information loaded on the customer identification module is switched to the preset first telecom card information and the network is reconnected through the first telecom card information.

[0034] When the first identification result is an error card suspension, the first identification result and the preset error card suspension prompt information are combined to form the corresponding first abnormal prompt message and displayed; and the telecom card information loaded on the customer identification module is switched to the preset first telecom card information and the network is reconnected through the first telecom card information.

[0035] A second aspect of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;

[0036] The processor is configured to be coupled to the memory, read and execute instructions in the memory to implement the method described in the first aspect above;

[0037] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

[0038] A third aspect of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the method described in the first aspect.

[0039] This invention provides a method for handling abnormal states of a customer identification module, an electronic device, and a computer-readable storage medium. First, the customer identification module on the communication device is customized as an eSIM module or vSIM module capable of switching telecom card information. Two sets of telecom card information are pre-configured on the communication device side (first telecom card information for IoT business processes and seed telecom card information for handling device abnormalities). During the loading of the first telecom card information by the customer identification module, the communication device is periodically tracked and identified for any abnormalities. Once an abnormality is confirmed, the telecom card information loaded by the customer identification module is switched to the seed telecom card information. The seed telecom card information is then used to log in to the network and promptly notify the remote server of the device abnormality. The remote server then promptly analyzes the cause of the device abnormality and feeds the analysis results back to the communication device. Finally, the communication device performs corresponding local abnormality handling based on the analysis results. This invention maintains uninterrupted network connectivity for communication devices by switching telecom card information when the telecom card corresponding to the customer identification module malfunctions. Based on this, the remote server can promptly analyze and provide feedback on front-end anomalies, and the front-end communication device can also promptly handle local anomalies based on the feedback information. Thus, this invention solves the problem of network outages in conventional IoT communication devices when the customer identification module malfunctions, improving the efficiency of anomaly identification and handling. Attached Figure Description

[0040] Figure 1 This is a schematic diagram of an abnormal state handling method for a customer identification module provided in Embodiment 1 of the present invention;

[0041] Figure 2 This is a schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0043] Embodiment 1 of the present invention provides a method for handling abnormal states of a customer identification module, such as... Figure 1 The schematic diagram of an abnormal state handling method for a customer identification module provided in Embodiment 1 of the present invention mainly includes the following steps:

[0044] Step 1: The first communication device preloads the first telecom card information into its built-in customer identification module.

[0045] The first communication device includes a positioning module, a mobile communication module, and a customer identification module; the customer identification module includes an eSIM module and a vSIM module; the positioning module is used to obtain the real-time positioning coordinates of the device; the customer identification module is used to load telecom card information; the mobile communication module connects to the network through the telecom card information loaded on the customer identification module; the first device connects to the first remote server through the networked mobile communication module.

[0046] The first communication device has a pre-configured device identifier, a binding card identifier, and two sets of telecommunications card information. The two sets of telecommunications card information include first telecommunications card information and seed telecommunications card information. Both the first telecommunications card information and the seed telecommunications card information include a corresponding telecommunications card identifier. The telecommunications card corresponding to the first telecommunications card information is bound to the first communication device, while the telecommunications card corresponding to the seed telecommunications card information is not bound to the first communication device. The telecommunications card corresponding to the first telecommunications card information has a restricted geographical area of ​​use, while the telecommunications card corresponding to the seed telecommunications card information has no geographical area of ​​use. The binding card identifier should match the telecommunications card identifier information of the first telecommunications card information.

[0047] Here, the first communication device in this embodiment of the invention is the IoT communication device mentioned above, or any other communication device with a positioning module, a mobile communication module, and a customer identification module. eSIM and vSIM modules are two new types of customer identification modules; both of these modules share a common feature compared to traditional customer identification modules: they can switch the telecom card information loaded on the module, while the electrical signal information loaded on traditional customer identification modules cannot be switched. The difference between these two types of customer identification modules is that eSIM modules are typically implemented as independent hardware modules or independent software / hardware combined modules, while vSIM modules are typically implemented as a software module installed on the device's operating system. The specific data content and format of the telecom card information mentioned in this embodiment of the invention are determined by the telecom card information in the communication protocols of each telecom operator. However, regardless of the telecom operator's communication protocol, the telecom card information will contain telecom card identification information used to uniquely identify the telecom card, such as ICCID information, IMSI information, etc. Similarly, for each first communication device in this embodiment of the invention, each device also has device identification information used to uniquely identify the device, such as IMEI information, MAC information, etc. It should also be noted that, in this embodiment of the invention, the first telecommunications card information used for business communication on each first communication device should be pre-bound to the current device and the corresponding binding information should be stored on the remote server; in this embodiment of the invention, the usage area of ​​the telecommunications card corresponding to each first telecommunications card information can be restricted and the corresponding available area information should be stored on the remote server.

[0048] Step 2: After the first communication device is powered on, it connects to the network based on the first telecom card information pre-installed on the customer identification module; when the telecom card information currently loaded on the customer identification module is not the pre-installed seed telecom card information, the device periodically identifies the current network status of the device at a preset first check frequency to generate the corresponding first network status; the telecom card identifier information in the first telecom card information is extracted as the corresponding first card identifier; when the first network status is network failure or the first card identifier does not match the locally pre-installed bound card identifier, the telecom card information loaded on the customer identification module is switched to the pre-installed seed telecom card information and the network is reconnected through the seed telecom card information; when the network connection is successful, the locally pre-installed device identifier is used as the corresponding first device identifier, and the current positioning coordinates of the device are used as the corresponding first device coordinates, and the first device identifier, first device coordinates, and first card identifier are sent to the first remote server; wherein, the first network status includes network failure and network success.

[0049] Step 3: The first remote server identifies the abnormal status of the customer identification module based on the first device identifier, the first device coordinates, and the first card identifier, generates the corresponding first identification result, and sends the first identification result to the first communication device.

[0050] The first identification results include card mismatch, area boundary violation, excessive traffic, GPRS error, incorrect card suspension, and suspended card error.

[0051] Specifically, this includes: Step 31, where the first remote server generates a corresponding first identification result by identifying the abnormal state of the customer identification module based on the first device identifier, the first device coordinates, and the first card identifier;

[0052] Specifically, this includes: step 311, obtaining the corresponding first device region identifier by querying the region identifier based on the first device coordinates;

[0053] The first equipment area identifier includes the national area identifier, the provincial / state area identifier, and the city / county area identifier;

[0054] Here, the first remote server in this embodiment of the invention can obtain the country region identifier, province / state region identifier and city / county region identifier corresponding to a certain positioning coordinate by querying the map, thereby forming the corresponding first device region identifier;

[0055] Step 312: Query the preset telecom card database according to the first card identifier, and take the first telecom card record in the telecom card database that matches the first telecom card identifier field as the corresponding current telecom card record;

[0056] The telecom card database includes multiple first telecom card records. Each first telecom card record includes a first telecom card identifier field, a first bound device identifier field, a first telecom operator identifier field, a first available region field, a first data plan field, and a first suspended card status field. The first available region field includes a first-level country region identifier, a second-level province / state region identifier, and a third-level city / county region identifier. The first-level country region identifier cannot be empty. If the second-level province / state region identifier is empty, the corresponding third-level city / county region identifier is also empty. The first suspended card status field includes an unsuspended card status and a suspended card status.

[0057] Here, each first telecom card record corresponds to one telecom card; the first telecom card identifier field is the telecom card identifier information of the corresponding telecom card; the first bound device identifier field is the device identifier information of the first communication device pre-bound to the corresponding telecom card; the first telecom operator identifier field is the telecom operator identifier information of the corresponding telecom card; the first available area field is the usage restriction area range of the corresponding telecom card. Exceeding this range may cause the corresponding telecom card to fail to log in. If only the first-level country / region identifier in the first available area field is not empty, it means that the corresponding telecom card can be used in the national area of ​​that country identifier; if only the first-level country / region identifier and the second-level province / state / region identifier are not empty, it means that the corresponding telecom card can only be used in the specified province / state / region of the country specified by the country identifier + province / state / region identifier; if all three identifiers in the field are not empty... This indicates that the corresponding telecom card is only available within the specified city / county of the specified province / state region in the country specified by the country identifier + province / state region identifier + city / county region identifier; the first data package field is the current monthly data package information of the corresponding telecom card. This field information is the pre-customized monthly data package if the corresponding telecom card has not been replenished with a top-up package or other packages in the current month. If the corresponding telecom card has been replenished with a top-up package or other packages in the current month, it is the sum of the pre-customized monthly data package and the data of the replenished top-up package or supplementary package; the first suspension status field is the suspension control setting field of the server application for the corresponding telecom card. The default is the non-suspended status. Once the administrator decides to suspend the card, it will update this field to the suspended status and notify the telecom operator to implement the suspension operation by calling the corresponding telecom operator's interface;

[0058] Step 313: Extract the first telecom operator identifier field from the current telecom card record as the corresponding current operator identifier; and use the operator query service interface corresponding to the current operator identifier to query the cumulative monthly data usage, card suspension status, and GPRS on / off status of the telecom card corresponding to the first card identifier to generate the corresponding first data usage query result, first card suspension status query result, and first GPRS status query result.

[0059] The first card suspension status query results include card not suspended status and card suspended status; the first GPRS status query results include GPRS on status and GPRS off status.

[0060] Here, each telecom operator can provide an interface for querying the cumulative data usage, card suspension status, and GPRS on / off status of a telecom card for the current month, namely the operator query service interface;

[0061] Step 314: Identify whether the first bound device identifier field of the current telecom card record matches the first device identifier. If they match, set the corresponding device-card matching verification result to device-card matching. If they do not match, set the corresponding device-card matching verification result to device-card mismatch.

[0062] Step 315: Identify whether the first available area field of the current telecom card record matches the first device area identifier. If they match, set the corresponding available area verification result to "available area match"; if they do not match, set the corresponding available area verification result to "available area mismatch".

[0063] Specifically, the identification of whether the first available region field of the current telecom card record matches the first device region identifier includes:

[0064] Step A1: The first remote server extracts the first-level country region identifier, the second-level province / state region identifier, and the third-level city / county region identifier from the first available region field of the current telecom card record as the corresponding first country region identifier, first province / state region identifier, and first city / county region identifier; and extracts the country region identifier, province / state region identifier, and city / county region identifier from the first device region identifier as the corresponding second country region identifier, second province / state region identifier, and second city / county region identifier.

[0065] Step A2: When the first country region identifier is not empty but the first province / state region identifier and the first city / county region identifier are both empty, confirm that the first available region field matches the first device region identifier when the first and second country region identifiers match; and confirm that the first available region field does not match the first device region identifier when the first and second country region identifiers do not match.

[0066] Step A3: When the first country region identifier and the first province / state region identifier are not empty but the first city / county region identifier is empty, confirm that the first available region field matches the first device region identifier when the first and second country region identifiers match and the first and second province / state region identifiers match; and confirm that the first available region field does not match the first device region identifier when the first and second country region identifiers do not match or the first and second province / state region identifiers do not match.

[0067] Step A4: When the first country region identifier, the first province / state region identifier, and the first city / county region identifier are not empty, confirm that the first available region field matches the first device region identifier if the first and second country region identifiers match, the first and second province / state region identifiers match, and the first and second city / county region identifiers match; and confirm that the first available region field does not match the first device region identifier if the first and second country region identifiers do not match, the first and second province / state region identifiers do not match, or the first and second city / county region identifiers do not match.

[0068] Step 316: Identify whether the first data plan field of the current telecom card record is greater than the first data query result. If the first data plan field is greater than the first data query result, set the corresponding data check result to meet the data plan. If the first data plan field is less than or equal to the first data query result, set the corresponding data check result to exceed the data plan.

[0069] Step 317: Identify whether the first GPRS status query result is in the GPRS enabled state. If yes, set the corresponding GPRS status check result to GPRS working normally. If no match is found, set the corresponding GPRS status check result to GPRS working abnormally.

[0070] Step 318: Compare the first card suspension status field of the current telecom card record with the first card suspension status query result. If both the first card suspension status field and the first card suspension status query result are in the card suspension status, set the corresponding card status check result to normal card suspension. If the first card suspension status field is in the card suspension status but the first card suspension status query result is in the card suspension status, set the corresponding card status check result to incorrect card suspension.

[0071] Step 319: Identify whether the SIM card matching test result is a SIM card mismatch; if the SIM card matching test result is a SIM card mismatch, set the corresponding first identification result to SIM card mismatch anomaly; if the SIM card matching test result is a SIM card match, identify whether the available area test result is an available area mismatch; if the available area test result is an available area mismatch, set the corresponding first identification result to area boundary outage anomaly; if the available area test result is an available area match, identify whether the data usage test result is exceeding the data plan; if the data usage test result is exceeding the data plan, set the corresponding first identification result to Excessive data usage is detected. If the data usage check result indicates that the data plan is met, then the GPRS status check result is identified as indicating a GPRS malfunction. If the GPRS status check result indicates a GPRS malfunction, then the corresponding first identification result is set as GPRS malfunction. If the GPRS status check result indicates that the GPRS is working normally, then the card status check result is identified as indicating a telecom card suspension malfunction. If the card status check result indicates that the telecom card was incorrectly suspended, then the corresponding first identification result is set as incorrect card suspension malfunction. If the card status check result indicates that the telecom card was normally suspended, then the corresponding first identification result is set as suspended card malfunction.

[0072] Step 320: If the first identification result is an error card suspension exception, then the card suspension cancellation operation is performed on the telecom card corresponding to the first card identifier through the operator card service interface corresponding to the current operator identifier.

[0073] Here, the erroneous card suspension error among the six abnormal states is caused by the asynchronous operation between the operator and the server management, so it is directly corrected locally by the first remote server;

[0074] Step 32, and send the first identification result to the first communication device.

[0075] Step 4: The first communication device performs module anomaly handling on the customer identification module based on the first identification result;

[0076] Specifically, this includes: Step 41, where the first communication device identifies the first identification result;

[0077] Step 42: When the first identification result is a machine-card mismatch error, an area boundary error, or a card suspension error, the first identification result, the first device identifier, the first card identifier, and the preset machine-card unbinding customer service prompt information are combined to form a corresponding first error prompt message and displayed.

[0078] Here, in this embodiment of the invention, when the first remote server confirms that the first identification result of a certain first communication device is one of the three types of abnormalities mentioned above, it will send a device recall work order to the workers; while displaying the first abnormality prompt message, the first communication device will also save the first abnormality prompt message locally and shut down when the display ends; and display the saved first abnormality prompt message when it is powered on again.

[0079] Step 43: When the first identification result is an abnormal excessive data usage, the first identification result and the preset fuel package / package purchase prompt information are combined to form a corresponding first abnormality prompt message and displayed.

[0080] Here, in this embodiment of the invention, when the first remote server confirms that the first identification result of a certain first communication device is an abnormal traffic overload, it will simultaneously send the first identification result to the device administrator corresponding to the communication device to remind the device administrator to actively perform traffic replenishment. After displaying the first abnormality prompt message, the first communication device will switch the telecom card information loaded on the customer identification module to the preset first telecom card information and reconnect to the network through the first telecom card information. In this way, it can return to step 2 to track and monitor it again. If the administrator has completed the traffic replenishment operation, the network connection will be successful. If the traffic replenishment operation has not been completed, the administrator will receive a new first identification result sent by the first remote server.

[0081] Step 44: When the first identification result is GPRS abnormal, a corresponding first abnormal prompt message is composed of the first identification result and the preset GPRS shutdown prompt information and displayed; and the GPRS service of the telecom card corresponding to the first card identifier is activated through the operator's GPRS activation interface of the telecom operator corresponding to the first card identifier to generate the corresponding first activation processing result; and when the first activation processing result is successful, the telecom card information loaded on the customer identification module is switched to the preset first telecom card information and the network is reconnected through the first telecom card information.

[0082] Step 45: When the first identification result is an error card suspension, the first identification result and the preset error card suspension prompt information are combined to form a corresponding first abnormal prompt message and displayed; and the telecom card information loaded on the customer identification module is switched to the preset first telecom card information and the network is reconnected through the first telecom card information.

[0083] Figure 2 This is a schematic diagram of an electronic device provided in Embodiment 2 of the present invention. This electronic device can be the aforementioned terminal device or server, or it can be a terminal device or server connected to the aforementioned terminal device or server that implements the method of the embodiments of the present invention. Figure 2 As shown, the electronic device may include: a processor 301 (e.g., CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transmission and reception operations of the transceiver 303. The memory 302 may store various instructions for performing various processing functions and implementing the processing steps described in the foregoing method embodiments. Preferably, the electronic device involved in the embodiments of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to realize communication connections between components. The communication port 306 is used for communication between the electronic device and other peripherals.

[0084] exist Figure 2 The system bus 305 mentioned can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2The symbol is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. The communication interface is used to enable communication between the database access device and other devices (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk drive.

[0085] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), graphics processing units (GPUs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0086] It should be noted that the embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the methods provided in the above embodiments.

[0087] This invention also provides a chip for executing instructions, which is used to perform the processing steps described in the foregoing method embodiments.

[0088] This invention provides a method for handling abnormal states of a customer identification module, an electronic device, and a computer-readable storage medium. First, the customer identification module on the communication device is customized as an eSIM module or vSIM module capable of switching telecom card information. Two sets of telecom card information are pre-configured on the communication device side (first telecom card information for IoT business processes and seed telecom card information for handling device abnormalities). During the loading of the first telecom card information by the customer identification module, the communication device is periodically tracked and identified for any abnormalities. Once an abnormality is confirmed, the telecom card information loaded by the customer identification module is switched to the seed telecom card information. The seed telecom card information is then used to log in to the network and promptly notify the remote server of the device abnormality. The remote server then promptly analyzes the cause of the device abnormality and feeds the analysis results back to the communication device. Finally, the communication device performs corresponding local abnormality handling based on the analysis results. This invention maintains uninterrupted network connectivity for communication devices by switching telecom card information when the telecom card corresponding to the customer identification module malfunctions. Based on this, the remote server can promptly analyze and provide feedback on front-end anomalies, and the front-end communication device can also promptly handle local anomalies based on the feedback information. Thus, this invention solves the problem of network outages in conventional IoT communication devices when the customer identification module malfunctions, improving the efficiency of anomaly identification and handling.

[0089] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0090] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0091] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for handling abnormal states of a customer identification module, characterized in that, The method includes: The first communication device pre-loads the first telecommunications card information into its built-in customer identification module; After the first communication device is powered on, it connects to the network based on the first telecom card information pre-loaded on the customer identification module. When the telecom card information currently loaded on the customer identification module is not the pre-loaded seed telecom card information, the device periodically identifies its current network status at a preset first check frequency to generate a corresponding first network status. The telecom card identifier information in the first telecom card information is extracted as the corresponding first card identifier. When the first network status is a network failure or the first card identifier does not match the locally pre-loaded bound card identifier, the telecom card information loaded on the customer identification module is switched to the pre-loaded seed telecom card information, and the device reconnects to the network using the seed telecom card information. Upon successful network connection, the locally pre-loaded device identifier is used as the corresponding first device identifier, and the device's current location coordinates are used as the corresponding first device coordinates. The first device identifier, the first device coordinates, and the first card identifier are sent to the first remote server. The first network status includes network failure and network success. The first remote server generates a corresponding first identification result based on the first device identifier, the first device coordinates, and the first card identifier to identify abnormal status of the customer identification module; and sends the first identification result to the first communication device; the first identification result includes card mismatch abnormality, area boundary abnormality, excessive traffic abnormality, GPRS abnormality, incorrect card suspension abnormality, and suspended card abnormality; The first communication device performs module anomaly handling on the customer identification module based on the first identification result.

2. The abnormal state handling method of the customer identification module according to claim 1, characterized in that, The first communication device includes a positioning module, a mobile communication module, and the customer identification module; The customer identification module includes an eSIM module and a vSIM module; the positioning module is used to obtain the real-time positioning coordinates of the device; the customer identification module is used to load the telecom card information; the mobile communication module connects to the network through the telecom card information loaded on the customer identification module; the first device connects to the first remote server through the networked mobile communication module; The first communication device has the device identifier, the binding card identifier, and two sets of telecom card information pre-configured locally; the two sets of telecom card information include the first telecom card information and the seed telecom card information; both the first telecom card information and the seed telecom card information include a corresponding telecom card identifier; the telecom card corresponding to the first telecom card information is bound to the first communication device, and the telecom card corresponding to the seed telecom card information is not bound to the first communication device; The geographical area of ​​use of the telecommunications card corresponding to the first telecommunications card information is restricted, while the geographical area of ​​use of the telecommunications card corresponding to the seed telecommunications card information is not restricted. The bound card identifier should match the telecom card identifier information of the first telecom card information.

3. The abnormal state handling method for the customer identification module according to claim 1, characterized in that, The first remote server generates a corresponding first identification result based on the first device identifier, the first device coordinates, and the first card identifier to identify abnormal states of the customer identification module, specifically including: The first remote server performs a region identifier query based on the coordinates of the first device to obtain the corresponding first device region identifier; the first device region identifier includes a country region identifier, a province / state region identifier, and a city / county region identifier. The system queries a preset telecom card database based on the first card identifier, and takes the first telecom card record in the database whose first telecom card identifier field matches the first card identifier as the corresponding current telecom card record. The telecom card database includes multiple first telecom card records. Each first telecom card record includes a first telecom card identifier field, a first bound device identifier field, a first telecom operator identifier field, a first available area field, a first data plan field, and a first suspended card status field. The first available area field includes a first-level country region identifier, a second-level province / state region identifier, and a third-level city / county region identifier. The first-level country region identifier cannot be empty. If the second-level province / state region identifier is empty, the corresponding third-level city / county region identifier is also empty. The first suspended card status field includes an unsuspended card status and a suspended card status. The first telecom operator identifier field of the current telecom card record is extracted as the corresponding current operator identifier; and the cumulative monthly data usage, card suspension status, and GPRS on / off status of the telecom card corresponding to the first card identifier are queried through the operator query service interface corresponding to the current operator identifier to generate the corresponding first data usage query result, first card suspension status query result, and first GPRS status query result; the first card suspension status query result includes card not suspended and card suspended status; the first GPRS status query result includes GPRS on and GPRS off status. The system identifies whether the first bound device identifier field in the current telecom card record matches the first device identifier. If they match, the corresponding device-card matching verification result is set to device-card matching; otherwise, the corresponding device-card matching verification result is set to device-card mismatch. The system identifies whether the first available area field of the current telecom card record matches the first device area identifier. If they match, the corresponding available area verification result is set to "available area match"; if they do not match, the corresponding available area verification result is set to "available area mismatch". The system identifies whether the first data plan field of the current telecom card record is greater than the first data query result. If the first data plan field is greater than the first data query result, the corresponding data check result is set to meet the data plan. If the first data plan field is less than or equal to the first data query result, the corresponding data check result is set to exceed the data plan. The system identifies whether the first GPRS status query result indicates that GPRS is enabled. If so, the corresponding GPRS status check result is set to GPRS working normally; otherwise, the corresponding GPRS status check result is set to GPRS working abnormally. The first card suspension status field of the current telecom card record is compared with the first card suspension status query result. If both the first card suspension status field and the first card suspension status query result are in the card suspension status, the corresponding card status verification result is set to normal card suspension. If the first card suspension status field is in the card suspension status but the first card suspension status query result is in the card suspension status, the corresponding card status verification result is set to incorrect card suspension. The system identifies whether the SIM card matching test result indicates a SIM card mismatch. If the SIM card matching test result indicates a SIM card mismatch, the corresponding first identification result is set to "SIM card mismatch anomaly." If the SIM card matching test result indicates a SIM card match, the system identifies whether the available area test result indicates an available area mismatch. If the available area test result indicates an available area mismatch, the corresponding first identification result is set to "Area boundary outage anomaly." If the available area test result indicates an available area match, the system identifies whether the data usage test result indicates exceeding the data plan. If the data usage test result indicates exceeding the data plan, the corresponding first identification result is set to "Data usage outage anomaly." Excessive usage anomaly; if the traffic check result is within the data plan, then identify whether the GPRS status check result is a GPRS malfunction; if the GPRS status check result is a GPRS malfunction, then set the corresponding first identification result as GPRS anomaly; if the GPRS status check result is GPRS working normally, then identify whether the card status check result is a telecom card suspension anomaly; if the card status check result is a telecom card incorrectly suspended, then set the corresponding first identification result as incorrect card suspension anomaly; if the card status check result is a telecom card normally suspended, then set the corresponding first identification result as suspended card anomaly. If the first identification result is an error in card suspension, then the suspension of the telecom card corresponding to the first card identifier is canceled through the operator card service interface corresponding to the current operator identifier.

4. The abnormal state handling method of the customer identification module according to claim 3, characterized in that, The step of identifying whether the first available region field recorded in the current telecom card matches the first device region identifier specifically includes: The first remote server extracts the first-level country region identifier, the second-level province / state region identifier, and the third-level city / county region identifier from the first available region field recorded by the current telecom card as the corresponding first country region identifier, first province / state region identifier, and first city / county region identifier; and extracts the country region identifier, the province / state region identifier, and the city / county region identifier from the first device region identifier as the corresponding second country region identifier, second province / state region identifier, and second city / county region identifier; When the first country region identifier is not empty but the first province / state region identifier and the first city / county region identifier are both empty, the first available region field is confirmed to match the first device region identifier when the first and second country region identifiers match; and the first available region field is confirmed to not match the first device region identifier when the first and second country region identifiers do not match. When the first country region identifier and the first province / state region identifier are both not empty but the first city / county region identifier is empty, the first available region field is confirmed to match the first device region identifier when the first and second country region identifiers match and the first and second province / state region identifiers match; and the first available region field is confirmed to not match the first device region identifier when the first and second country region identifiers do not match or the first and second province / state region identifiers do not match. When the first country region identifier, the first province / state region identifier, and the first city / county region identifier are all not empty, the first available region field is confirmed to match the first device region identifier when the first and second country region identifiers match, the first and second province / state region identifiers match, and the first and second city / county region identifiers match; and the first available region field is confirmed to not match the first device region identifier when the first and second country region identifiers do not match, or the first and second province / state region identifiers do not match, or the first and second city / county region identifiers do not match.

5. The abnormal state handling method for the customer identification module according to claim 2, characterized in that, The first communication device performs module anomaly handling on the customer identification module based on the first identification result, specifically including: The first communication device identifies the first identification result; When the first identification result is a machine-card mismatch abnormality, area boundary abnormality, or card suspension abnormality, a corresponding first abnormality prompt message is composed of the first identification result, the first device identifier, the first card identifier, and the preset machine-card unbinding customer service prompt information and is displayed. When the first identification result is an abnormal excessive traffic flow, the first identification result and the preset fuel package / package purchase prompt information are combined to form the corresponding first abnormal prompt message and displayed. When the first identification result is GPRS abnormal, the first identification result and the preset GPRS shutdown prompt information are combined to form the corresponding first abnormal prompt message and displayed; and the GPRS service of the telecom card corresponding to the first card identifier is activated through the operator GPRS activation interface of the telecom operator corresponding to the first card identifier to generate the corresponding first activation processing result; and when the first activation processing result is successful, the telecom card information loaded on the customer identification module is switched to the preset first telecom card information and the network is reconnected through the first telecom card information. When the first identification result is an error card suspension, the first identification result and the preset error card suspension prompt information are combined to form the corresponding first abnormal prompt message and displayed; and the telecom card information loaded on the customer identification module is switched to the preset first telecom card information and the network is reconnected through the first telecom card information.

6. An electronic device, characterized in that, include: Memory, processor, and transceiver; The processor is configured to be coupled to the memory, read and execute instructions in the memory to implement the method according to any one of claims 1-5; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform the method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Network connection method, SIM card, system, terminal and medium

    CN111491291A

  • Standby cloud card downloading method and device, and terminal equipment

    CN113055876A