A processing method for updating APN configuration of user identity module
Through the background server real-time monitoring and remote update of the APN configuration data of the user identity identification module, combined with multiple state update activation processing mechanisms, the problem of inflexible APN configuration update in the existing technology is solved, and higher flexibility and convenience are achieved .
Patent Information
- Application Number
- CN202211666277.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-12-23
AI Technical Summary
In the prior art, the APN configuration data update method of the user identity identification module is inflexible and inconvenient, and the user needs to go to the mobile operator business hall to modify it.
The backend server monitors the configuration update status of the user identity identification module in real time, and performs remote updates when confirming that updates are needed. Three state update activation processing mechanisms are provided: the first time to log in to the network, the APN access failed, and the user's content modification confirmation initiated. Update request.
It reduces the production complexity of the user identity identification module, improves the flexibility and convenience of updating APN configuration data, and avoids the requirement of pre-setting APN configuration data before leaving the factory and going to the business hall for processing every update.
Smart Images

Figure CN115988477B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a processing method for updating the APN configuration of a user identity recognition module. Background Art
[0002] APN (Access Point Name) technology refers to a network access technology. When a mobile terminal accesses various data networks (such as the Internet, Internet of Things, WAP websites, group data private networks, etc.), it needs to perform corresponding APN access processing based on the APN configuration data of the user identity module preset on the terminal. The APN configuration data stored on the user identity module is usually preset at the factory. If you want to modify it, you need to go to the relevant mobile operator's business hall to modify it. Obviously, this conventional APN configuration data update method is neither flexible nor convenient. Summary of the invention
[0003] The purpose of the present invention is to address the defects of the prior art and provide a processing method, electronic device and computer-readable storage medium for updating the APN configuration of a user identity identification module; a background server assigns a module configuration update status to each user identity identification module, and confirms whether each user identity identification module needs to update the APN configuration data by real-time monitoring of the configuration update status of each module; once the background server confirms that a user identity identification module needs to be updated, it immediately uses the latest configuration data of the user identity identification module (module network identification data, module login configuration data and module APN configuration data) to remotely update it, and after the remote update on the module side is successful, the APN configuration data corresponding to the user identity identification module stored on the mobile communication network side is updated. In addition, three activation processing mechanisms for updating the module configuration update status on the background server are provided: 1) when each user identity module logs in for the first time, a module configuration update status update request is initiated and the background service status update operation is activated; 2) when the user terminal APN access where the user identity module is located fails, a module configuration update status update request is initiated and the background service status update operation is activated; 3) when the background administrator or the user of the user identity module modifies the mobile communication network and / or APN configuration of the user identity module through a web page, a client or a user terminal and completes the content confirmation of the modified content, a module configuration update status update request is initiated and the background service status update operation is activated. Through the present invention, there is no need to preset any APN configuration data before the user identity module leaves the factory, and there is no need to go to the mobile operator's business hall every time the APN data is updated, thereby achieving the purpose of reducing the complexity of the production of the user identity module and improving the flexibility and convenience of updating the APN configuration data of the user identity module.
[0004] To achieve the above object, a first aspect of an embodiment of the present invention provides a method for updating the APN configuration of a user identity module, the method comprising:
[0005] The first server monitors the first module configuration update status corresponding to any first user identity recognition module in real time; the first module configuration update status includes a first status identifier and a second status identifier, which is set to the first status identifier by default;
[0006] Once it is monitored that any of the first module configuration update states is updated to the second state identifier, the first user identity module corresponding to the current first module configuration update state is immediately used as the corresponding current user identity module; and the configuration data packet of the current user identity module is processed for data preparation to generate a corresponding first configuration data packet; and the local configuration data of the current user identity module is remotely updated according to the first configuration data packet; the first configuration data packet includes the first module APN configuration data;
[0007] When the remote update processing is successful, the APN configuration data corresponding to the current user identity identification module is updated on the APN management network element of the mobile communication network corresponding to the current user identity identification module according to the APN configuration data of the first module; and when the update is successful, the configuration update status of the first module corresponding to the current user identity identification module is updated to the first status identifier.
[0008] Preferably, the first user identity module includes a SIM card, a USIM card, an eSIM card and a vSIM card; the first user identity module locally presets a configuration data storage space; the configuration data storage space is used to store first module type data, first module identification data, first module network identification data, first module login configuration data and first module APN configuration data;
[0009] The first module type data is the module type of the first user identity module, including: SIM card type, USIM card type, eSIM card type and vSIM card type;
[0010] The first module identification data is unique identification data corresponding to the first user identity recognition module;
[0011] The first module network identification data is the network identification of the mobile communication network corresponding to the first user identity module;
[0012] The first module login configuration data is the login data of the mobile communication network corresponding to the first user identity module;
[0013] The first module APN configuration data is the APN configuration data of the mobile communication network corresponding to the first user identity module, including multiple groups of first APN information and corresponding first APN status; the first APN status includes an available status and an unavailable status; the first module APN configuration data is empty before the first user identity module successfully logs on to the network for the first time;
[0014] The first user identity recognition module is preset on a first user terminal; the first user terminal is a terminal with mobile communication capabilities, including a mobile phone, an Internet of Things terminal, a mobile terminal, a tablet computer, a PAD and a laptop computer.
[0015] Preferably, before the first server performs real-time monitoring on the first module configuration update status corresponding to any first user identity recognition module, the method further comprises:
[0016] The first user terminal records the built-in first user identity recognition module as the current module; and based on the first module login configuration data of the current module, performs login processing on the mobile communication network corresponding to the first module network identification data of the current module; and after the login processing is successful, sends a preset module activity detection instruction to the first user identity recognition module at a preset detection frequency; if the instruction success status sent back by the first user identity recognition module is received within the preset detection waiting period, it is confirmed that the card activity state corresponding to the current module is an activated state; if the instruction success status sent back by the first user identity recognition module is not received within the detection waiting period, it is confirmed that the card activity state corresponding to the current module is an inactivated state; and when the card activity state is an inactivated state, based on the first module login configuration data of the current module, the login processing is performed again on the mobile communication network corresponding to the first module network identification data of the current module;
[0017] When the first user identity module receives the module activity detection instruction sent by the first user terminal, it sends the instruction success status back to the first user terminal; and identifies whether the locally stored APN configuration data of the first module is empty; if so, creates a data transmission channel between itself and the first server through the first user terminal and records it as the corresponding first channel; and sends the first module configuration update application carrying the locally stored first module identification data to the first server through the first channel; and when the sending is successful, closes the first channel between itself and the first server through the first user terminal;
[0018] When the first server receives the first module configuration update application sent by the first user identification module through the first channel, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
[0019] Preferably, before the first server performs real-time monitoring on the first module configuration update status corresponding to any first user identity recognition module, the method further comprises:
[0020] The first user terminal records the built-in first user identity identification module as the current module; and based on the first module login configuration data of the current module, performs login processing on the mobile communication network corresponding to the first module network identification data of the current module; and when the login processing is successful, the first APN information corresponding to the first APN state that is specifically in an available state on the current module is recorded as the first available APN; and the first APN access processing is performed according to each of the first available APNs to generate a corresponding first access processing result; if at least one of the first access processing results is an access failure, the first APN information corresponding to all the first access processing results that are specifically access failures are recorded as the first unavailable APN; and the first APN state corresponding to each of the first unavailable APNs on the current module is updated to an unavailable state; the first access processing result includes access success and access failure;
[0021] The first user identification module monitors the status of each first APN in real time; once it is monitored that the status of any first APN is updated to an unavailable state, a data transmission channel is created between the first user terminal and the first server as a corresponding second channel; and a second module configuration update application carrying the locally stored first module identification data is sent to the first server through the second channel; and when the sending is successful, the second channel between the first user terminal and the first server is closed;
[0022] When the first server receives the second module configuration update application sent by the first user identification module through the second channel, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
[0023] Preferably, before the first server performs real-time monitoring on the first module configuration update status corresponding to any first user identity recognition module, the method further comprises:
[0024] When the first user corresponding to the first user identity identification module modifies the mobile communication network and / or APN configuration of the first user identity identification module through a web page, a client or a user terminal and completes content confirmation of the modified content, the web page, the client or the user terminal used by the first user sends a third module configuration update application carrying the first module identification data of the first user identity identification module to a first service interface preset on the first server;
[0025] When the first server receives the third module configuration update application sent by the first user through the first service interface, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
[0026] Preferably, the performing data preparation processing on the configuration data packet of the current user identity recognition module to generate a corresponding first configuration data packet specifically includes:
[0027] The first server uses the module identification corresponding to the current user identity identification module as the corresponding current module identification data; and queries the preset configuration database, extracts the first module network identification field, the first module login configuration field and the first module APN configuration field of the first module configuration record whose first module identification field matches the current module identification data in the configuration database as the corresponding second module network identification data, the second module login configuration data and the second module APN configuration data; and the current module identification data, the second module network identification data, the second module login configuration data and the second module APN configuration data form a corresponding first configuration data packet plaintext; and based on the preset first key, according to the preset first encryption The decryption algorithm performs data encryption processing on the plaintext of the first configuration data packet to generate the corresponding first ciphertext; and uses the first ciphertext as the corresponding first configuration data packet; the configuration database is used to store the latest module network identification data, module login configuration data and module APN configuration data of all the first user identity identification modules; the configuration database includes multiple first module configuration records; the first module configuration record includes the first module identification field, the first module network identification field, the first module login configuration field and the first module APN configuration field; the first module APN configuration field includes multiple second APN information; the first encryption and decryption algorithm is a symmetric encryption and decryption algorithm, including the AES algorithm and the national secret SM4 algorithm.
[0028] Preferably, the remote updating process of the local configuration data of the current user identity recognition module according to the first configuration data packet specifically includes:
[0029] The first server uses the first user terminal corresponding to the current user identity identification module as the corresponding current user terminal; and creates a data channel between itself and the current user identity identification module through the current user terminal as the corresponding third channel; and sends the first configuration data packet to the current user identity identification module through the third channel; and upon receiving the remote update success status sent back by the current user identity identification module, confirms that the remote update process is successful, and closes the third channel between itself and the current user identity identification module through the current user terminal.
[0030] Furthermore, after sending the first configuration data packet to the current user identity recognition module through the third channel, the method further includes:
[0031] When the current user identity identification module receives the first configuration data packet sent by the first server through the third channel, the first configuration data packet is decrypted based on the preset second key and the preset second encryption and decryption algorithm to generate a corresponding second configuration data packet plaintext; and the current module identification data, the second module network identification data, the second module network configuration data and the second module APN configuration data are extracted from the second configuration data packet plaintext; and when the locally stored first module identification data matches the current module identification data, the locally stored first module network identification data, the first module network configuration data and the first module APN configuration data are set to the corresponding second module network identification data, the second module network configuration data and the second module APN configuration data; and the first APN status corresponding to each of the first APN information in the newly set first module APN configuration data is set to an available status; and when the setting is completed, the remote update success status is sent back to the first server through the third channel; the second key matches the first key, and the second encryption and decryption algorithm matches the first encryption and decryption algorithm.
[0032] A second aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
[0033] The processor is used to be coupled to the memory, read and execute instructions in the memory, so as to implement the method described in the first aspect above;
[0034] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
[0035] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the method described in the first aspect.
[0036] The embodiment of the present invention provides a processing method, an electronic device and a computer-readable storage medium for updating the APN configuration of a user identity identification module; a background server assigns a module configuration update status to each user identity identification module, and confirms whether each user identity identification module needs to perform an APN configuration data update by real-time monitoring of the configuration update status of each module; once the background server confirms that a user identity identification module needs to be updated, it immediately uses the latest configuration data (module network identification data, module login configuration data and module APN configuration data) of the user identity identification module to remotely update it through a remote update method, and after the remote update on the module side is successful, the APN configuration data corresponding to the user identity identification module stored on the mobile communication network side is updated. In addition, three activation processing mechanisms for updating the module configuration update status on the background server are provided: 1) when each user identity module logs in for the first time, a module configuration update status update request is initiated and the background service status update operation is activated; 2) when the user terminal APN access where the user identity module is located fails, a module configuration update status update request is initiated and the background service status update operation is activated; 3) when the background administrator or the user of the user identity module modifies the mobile communication network and / or APN configuration of the user identity module through a web page, a client or a user terminal and completes the content confirmation of the modified content, a module configuration update status update request is initiated and the background service status update operation is activated. Through the present invention, there is no need to preset any APN configuration data before the user identity module leaves the factory, and there is no need to go to the mobile operator's business hall for processing every time the APN data is updated, which reduces the production complexity of the user identity module and improves the flexibility and convenience of the APN configuration data update of the user identity module. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of a processing method for updating the APN configuration of a user identity module provided in the first embodiment of the present invention;
[0038] Figure 2 A schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Embodiment 1 of the present invention provides a processing method for updating the APN configuration of a user identity module, such as Figure 1 As shown in the schematic diagram of a processing method for updating the APN configuration of a user identity module provided in the first embodiment of the present invention, the method mainly includes the following steps:
[0041] Step 1: The first server monitors the first module configuration update status corresponding to any first user identity recognition module in real time;
[0042] Among them, the first server is a background server for remotely updating the APN configuration data of any first user identity identification module; the first user identity identification module is what is commonly called a mobile phone card, including a SIM card, a USIM card, an eSIM card, and a vSIM card; here, the first server assigns a first module configuration update status to each first user identity identification module registered on the server, and the first module configuration update status includes a first status identifier and a second status identifier, and is set to the first status identifier by default. If the first module configuration update status is the first status identifier, it means that the APN configuration data of the corresponding first user identity identification module does not need to be updated, and if the first module configuration update status is the second status identifier, it means that the APN configuration data of the corresponding first user identity identification module needs to be updated;
[0043] The first user identity identification module locally presets a configuration data storage space; the configuration data storage space is used to store first module type data, first module identification data, first module network identification data, first module network configuration data and first module APN configuration data; wherein, 1) the first module type data is the module type of the first user identity identification module, including: SIM card type, USIM card type, eSIM card type and vSIM card type; 2) the first module identification data is the unique identification data corresponding to the first user identity identification module; 3) the first module network identification data is the network identification of the mobile communication network corresponding to the first user identity identification module; 4) the first module network configuration data is the network login data of the mobile communication network corresponding to the first user identity identification module; 5) the first module APN configuration data is the APN configuration data of the mobile communication network corresponding to the first user identity identification module, including multiple groups of first APN information and corresponding first APN status, the first APN status includes an available status and an unavailable status, and the first module APN configuration data is empty before the first user identity identification module successfully logs on to the network for the first time;
[0044] The first user identity recognition module is preset on the first user terminal; the first user terminal is a terminal with mobile communication capabilities, including a mobile phone, an Internet of Things terminal, a mobile terminal, a tablet computer, a PAD and a laptop computer.
[0045] Here, when the first server of the first embodiment of the present invention monitors the configuration update status of the first module, once it finds that the configuration update status of a first module is updated to the second status identifier, it will go to the subsequent step 2 for processing. In the first embodiment of the present invention, there are three processing methods that can activate the first server to update the configuration update status of the first module from the first status identifier to the second status identifier: the first activation processing method, when each user identity module logs on to the network for the first time, initiates a module configuration update status update request and activates the status update operation of the background service; the second activation processing method, when the user terminal APN access where the user identity module is located fails, initiates a module configuration update status update request and activates the status update operation of the background service; the third activation processing method, when the background administrator or the user of the user identity module modifies the mobile communication network and / or APN configuration of the user identity module through a web page, a client or a user terminal, and completes the content confirmation of the modified content, initiates a module configuration update status update request and activates the status update operation of the background service. The implementation steps of these three activation processing methods are described below.
[0046] For the first activation processing mode, the method in the first embodiment of the present invention further includes, before the first server monitors in real time the first module configuration update status corresponding to any first user identity recognition module:
[0047] The first user terminal records the built-in first user identity recognition module as the current module; and based on the first module network login configuration data of the current module, performs network login processing on the mobile communication network corresponding to the first module network identification data of the current module; and after the network login processing is successful, sends a preset module activity detection instruction to the first user identity recognition module at a preset detection frequency; if the instruction success status sent back by the first user identity recognition module is received within the preset detection waiting period, it is confirmed that the card activity state corresponding to the current module is an activated state; if the instruction success status sent back by the first user identity recognition module is not received within the detection waiting period, it is confirmed that the card activity state corresponding to the current module is an inactivated state; and when the card activity state is inactivated, it is again based on the current module The first module login configuration data is used to perform login processing on the mobile communication network corresponding to the first module network identification data of the current module; here, in various types of mobile communication networks (2 / 3 / 4 / 5G, LTE, etc.), the process of the first user terminal performing login processing based on the login configuration data on the first user identity recognition module is an open processing process, which is not described repeatedly here; and the first user terminal will periodically send a detection instruction to the first user identity recognition module after the successful login, which is also an open processing process and is not described repeatedly here; the module activity detection instruction can be a standard instruction or can be defined separately. For example, the status instruction regularly sent by the mobile phone to the SIM card in the 2G network is a type of module activity detection instruction;
[0048] When the first user identity module receives the module activity detection instruction sent by the first user terminal, it sends back the instruction success status to the first user terminal; and identifies whether the locally stored APN configuration data of the first module is empty; if so, a data transmission channel is created between the first user terminal and the first server as the corresponding first channel; and the first module configuration update application carrying the locally stored first module identification data is sent to the first server through the first channel; and when the sending is successful, the first channel between itself and the first server is closed through the first user terminal; Here, the first user identity module in the first embodiment of the present invention has a data channel creation function. For example, the first user identity module in the first embodiment of the present invention supports the BIP (Bearer Independent Protocol) protocol, then each first user identity module can realize the creation of a BIP data channel from the first user identity module to the first server through the BIP protocol between the first user identity module and the first user terminal, and the BIP protocol between the first user terminal and the first server;
[0049] When the first server receives the first module configuration update application sent by the first user identification module through the first channel, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
[0050] For the second activation processing mode, the method in the first embodiment of the present invention further includes, before the first server monitors in real time the first module configuration update status corresponding to any first user identity recognition module:
[0051] The first user terminal records the built-in first user identity identification module as the current module; and based on the first module login configuration data of the current module, performs login processing on the mobile communication network corresponding to the first module network identification data of the current module; and when the login processing is successful, the first APN information corresponding to the first APN state that is specifically in an available state on the current module is recorded as the first available APN; and the first APN access processing is performed according to each first available APN to generate a corresponding first access processing result; if at least one first access processing result is an access failure, the first APN information corresponding to all the first access processing results that are specifically access failures are recorded as the first unavailable APN; and the first APN state corresponding to each first unavailable APN on the current module is updated to an unavailable state; the first access processing result includes access success and access failure; here, in various mobile communication networks (2 / 3 / 4 / 5G, LTE, etc.), the process of the first user terminal performing APN access processing based on the APN configuration data on the first user identity identification module is a public processing process, and no repeated description is made here;
[0052] The first user identification module monitors the status of each first APN in real time; once it is monitored that the status of any first APN is updated to an unavailable state, a data transmission channel is created between the first user terminal and the first server as a corresponding second channel; and a second module configuration update application carrying the locally stored first module identification data is sent to the first server through the second channel; and when the sending is successful, the second channel between the first user terminal and the first server is closed;
[0053] When the first server receives the second module configuration update application sent by the first user identification module through the second channel, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to the second state identification.
[0054] For the third activation processing mode, the method in the first embodiment of the present invention further includes, before the first server monitors in real time the first module configuration update status corresponding to any first user identity recognition module:
[0055] When the first user corresponding to the first user identity identification module modifies the mobile communication network and / or APN configuration of the first user identity identification module through a web page, a client or a user terminal and completes content confirmation of the modified content, the web page, the client or the user terminal used by the first user sends a third module configuration update application carrying the first module identification data of the first user identity identification module to the first service interface preset on the first server; here, the first user of the first embodiment of the present invention may be a staff member of a mobile business hall, an administrator of the backend, or a user of the user identity identification module, and these personnel may modify the mobile communication network and / or APN configuration of the first user identity identification module through a web page, a client or a user terminal. The method of the first embodiment of the present invention adds a message sending function to the web page, the client or the user terminal used by these personnel, that is, when these personnel complete content confirmation of the modified content through a web page, a client or a user terminal, the web page, the client or the user terminal used by the personnel sends a third module configuration update application to the first server;
[0056] When the first server receives the third module configuration update application sent by the first user through the first service interface, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to the second state identification.
[0057] Step 2: once it is detected that the configuration update state of any first module is updated to the second state identifier, the first user identification module corresponding to the current configuration update state of the first module is immediately used as the corresponding current user identification module; and the configuration data packet of the current user identification module is processed for data preparation to generate a corresponding first configuration data packet; and the local configuration data of the current user identification module is remotely updated according to the first configuration data packet;
[0058] Specifically comprising: step 21, taking the first user identity recognition module corresponding to the current first module configuration update state as the corresponding current user identity recognition module;
[0059] Step 22, performing data preparation processing on the configuration data packet of the current user identity recognition module to generate a corresponding first configuration data packet;
[0060] Specifically, it includes: the first server uses the module identification corresponding to the current user identity identification module as the corresponding current module identification data; and queries the preset configuration database, extracts the first module network identification field, the first module login configuration field and the first module APN configuration field of the first module configuration record whose first module identification field matches the current module identification data in the configuration database as the corresponding second module network identification data, the second module login configuration data and the second module APN configuration data; and the current module identification data, the second module network identification data, the second module login configuration data and the second module APN configuration data form the corresponding first configuration data packet plaintext; and based on the preset first key, according to the preset first encryption and decryption algorithm, the first configuration data packet plaintext is encrypted to generate the corresponding first ciphertext; and the first ciphertext is used as the corresponding first configuration data packet;
[0061] The configuration database is used to store the latest module network identification data, module login configuration data and module APN configuration data of all first user identity modules; the configuration database includes multiple first
[0062] A module configuration record; the first module configuration record includes a first module identification field, a first module network identification field, a first module login configuration field and a first module APN configuration field; the first module APN configuration field includes multiple second APN information; the first encryption and decryption algorithm is a symmetric encryption and decryption algorithm, including an AES algorithm and a national secret SM4 algorithm;
[0063] Step 23, remotely updating the local configuration data of the current user identity module according to the first configuration data packet;
[0064] 0 specifically includes: the first server uses the first user terminal corresponding to the current user identity recognition module as the corresponding current user terminal; creates a data channel between itself and the current user identity recognition module through the current user terminal and records it as the corresponding third channel; sends the first configuration data packet to the current user identity recognition module through the third channel; and receives the response from the current user identity recognition module;
[0065] When the remote update success status is sent, it is confirmed that the remote update process is successful, and the third channel between itself and the current user identity recognition module is closed through the current user terminal.
[0066] Here, after the first server sends the first configuration data packet to the current user identity recognition module through the third channel, the method of the embodiment of the present invention further includes: when the current user identity recognition module receives the first configuration data packet sent by the first server through the third channel, based on the preset second key
[0067] Decrypt the first configuration data packet according to the preset second encryption and decryption algorithm to generate the corresponding second configuration data packet plaintext; and extract the current module identification data, the second module network identification data, the second module login configuration data and the second module APN configuration data from the second configuration data packet plaintext; and
[0068] When the locally stored first module identification data matches the current module identification data, the locally stored first module network identification data, the first module login configuration data and the first module APN configuration data are set
[0069] The corresponding second module network identification data, second module network configuration data and second module APN configuration data are provided; and the first APN status corresponding to each first APN information in the newly set first module APN configuration data is set to an available status; and at the end of the setting, a remote update success status is sent back to the first server through the third channel; the second key matches the first key, and the second encryption and decryption algorithm matches the first encryption and decryption algorithm.
[0070] Step 3, when the remote update processing is successful, the APN configuration data corresponding to the current user identity identification module is updated on the APN management network element of the mobile communication network corresponding to the current user identity identification module according to the APN configuration data of the first module; and when the update is successful, the first module configuration update status corresponding to the current user identity identification module is updated to the first status identifier.
[0071] Here, after confirming that the remote update process of the current user identity identification module is successful, the first server needs to synchronously update the APN configuration data corresponding to the module stored on the network side to ensure that the module can successfully log on to the network and successfully access the APN based on the updated configuration data. Specifically, the APN configuration data stored on the APN management network element of the mobile communication network corresponding to the module is updated. It should be noted that the corresponding APN management network element may be different for different network standards (2 / 3 / 4 / 5G, LTE) of the mobile communication network. This can be known by querying the public mobile communication network protocol and will not be further expanded here. The first server can pre-specify the corresponding APN management network element under the condition of clarifying the network standard and update the APN configuration data corresponding to the current user identity identification module stored on the specified network element according to the APN configuration data of the first module after the remote update process is successful.
[0072] Figure 2 This is a schematic diagram of the structure of an electronic device provided in the second embodiment of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. Figure 2As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned method embodiment. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.
[0073] exist Figure 2 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 The term "communication interface" is represented by only one thick line, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk storage.
[0074] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0075] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the above embodiment.
[0076] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.
[0077] The embodiment of the present invention provides a processing method, an electronic device and a computer-readable storage medium for updating the APN configuration of a user identity identification module; a background server assigns a module configuration update status to each user identity identification module, and confirms whether each user identity identification module needs to perform an APN configuration data update by real-time monitoring of the configuration update status of each module; once the background server confirms that a user identity identification module needs to be updated, it immediately uses the latest configuration data (module network identification data, module login configuration data and module APN configuration data) of the user identity identification module to remotely update it through a remote update method, and after the remote update on the module side is successful, the APN configuration data corresponding to the user identity identification module stored on the mobile communication network side is updated. In addition, three activation processing mechanisms for updating the module configuration update status on the background server are provided: 1) when each user identity module logs in for the first time, a module configuration update status update request is initiated and the background service status update operation is activated; 2) when the user terminal APN access where the user identity module is located fails, a module configuration update status update request is initiated and the background service status update operation is activated; 3) when the background administrator or the user of the user identity module modifies the mobile communication network and / or APN configuration of the user identity module through a web page, a client or a user terminal and completes the content confirmation of the modified content, a module configuration update status update request is initiated and the background service status update operation is activated. Through the present invention, there is no need to preset any APN configuration data before the user identity module leaves the factory, and there is no need to go to the mobile operator's business hall for processing every time the APN data is updated, which reduces the production complexity of the user identity module and improves the flexibility and convenience of the APN configuration data update of the user identity module.
[0078] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0079] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0080] 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 updating the APN configuration of a user identity module, characterized in that: The method comprises: The first server monitors the first module configuration update status corresponding to any first user identity recognition module in real time; the first module configuration update status includes a first status identifier and a second status identifier, which is set to the first status identifier by default; Once it is monitored that any of the first module configuration update states is updated to the second state identifier, the first user identity module corresponding to the current first module configuration update state is immediately used as the corresponding current user identity module; and the configuration data packet of the current user identity module is processed for data preparation to generate a corresponding first configuration data packet; and the local configuration data of the current user identity module is remotely updated according to the first configuration data packet; the first configuration data packet includes the first module APN configuration data; When the remote update process is successful, the APN configuration data corresponding to the current user identity module is updated on the APN management network element of the mobile communication network corresponding to the current user identity module according to the APN configuration data of the first module; and when the update is successful, the configuration update state of the first module corresponding to the current user identity module is updated to the first state identifier; Among them, the first user identity module includes a SIM card, a USIM card, an eSIM card and a vSIM card; the first user identity module locally presets a configuration data storage space; the configuration data storage space is used to store first module type data, first module identification data, first module network identification data, first module login configuration data and first module APN configuration data; The first module type data is the module type of the first user identity module, including: SIM card type, USIM card type, eSIM card type and vSIM card type; The first module identification data is unique identification data corresponding to the first user identity recognition module; The first module network identification data is the network identification of the mobile communication network corresponding to the first user identity module; The first module login configuration data is the login data of the mobile communication network corresponding to the first user identity module; The first module APN configuration data is the APN configuration data of the mobile communication network corresponding to the first user identity module, including multiple groups of first APN information and corresponding first APN status; the first APN status includes an available status and an unavailable status; the first module APN configuration data is empty before the first user identity module successfully logs on to the network for the first time; The first user identity recognition module is pre-installed on a first user terminal; the first user terminal is a terminal with mobile communication capabilities, including a mobile phone, an Internet of Things terminal, a mobile terminal, a tablet computer, a PAD and a laptop computer; Before the first server monitors in real time the first module configuration update status corresponding to any first user identity recognition module, the method further includes: The first user terminal records the built-in first user identity recognition module as the current module; and based on the first module login configuration data of the current module, performs login processing on the mobile communication network corresponding to the first module network identification data of the current module; and after the login processing is successful, sends a preset module activity detection instruction to the first user identity recognition module at a preset detection frequency; if the instruction success status sent back by the first user identity recognition module is received within the preset detection waiting period, it is confirmed that the card activity state corresponding to the current module is an activated state; if the instruction success status sent back by the first user identity recognition module is not received within the detection waiting period, it is confirmed that the card activity state corresponding to the current module is an inactivated state; and when the card activity state is an inactivated state, based on the first module login configuration data of the current module, the login processing is performed again on the mobile communication network corresponding to the first module network identification data of the current module; When the first user identity module receives the module activity detection instruction sent by the first user terminal, it sends the instruction success status back to the first user terminal; and identifies whether the locally stored APN configuration data of the first module is empty; if so, creates a data transmission channel between itself and the first server through the first user terminal and records it as the corresponding first channel; and sends the first module configuration update application carrying the locally stored first module identification data to the first server through the first channel; and when the sending is successful, closes the first channel between itself and the first server through the first user terminal; When the first server receives the first module configuration update application sent by the first user identification module through the first channel, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
2. The method for updating the APN configuration of the user identity module according to claim 1, characterized in that: Before the first server monitors in real time the first module configuration update status corresponding to any first user identity recognition module, the method further includes: The first user terminal records the built-in first user identity identification module as the current module; and based on the first module login configuration data of the current module, performs login processing on the mobile communication network corresponding to the first module network identification data of the current module; and when the login processing is successful, the first APN information corresponding to the first APN state that is specifically in an available state on the current module is recorded as the first available APN; and the first APN access processing is performed according to each of the first available APNs to generate a corresponding first access processing result; if at least one of the first access processing results is an access failure, the first APN information corresponding to all the first access processing results that are specifically access failures are recorded as the first unavailable APN; and the first APN state corresponding to each of the first unavailable APNs on the current module is updated to an unavailable state; the first access processing result includes access success and access failure; The first user identification module monitors the status of each first APN in real time; once it is monitored that the status of any first APN is updated to an unavailable state, a data transmission channel is created between the first user terminal and the first server as a corresponding second channel; and a second module configuration update application carrying the locally stored first module identification data is sent to the first server through the second channel; and when the sending is successful, the second channel between the first user terminal and the first server is closed; When the first server receives the second module configuration update application sent by the first user identification module through the second channel, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
3. The method for updating the APN configuration of the user identity module according to claim 1, characterized in that: Before the first server monitors in real time the first module configuration update status corresponding to any first user identity recognition module, the method further includes: When the first user corresponding to the first user identity identification module modifies the mobile communication network and / or APN configuration of the first user identity identification module through a web page, a client or a user terminal and completes content confirmation of the modified content, the web page, the client or the user terminal used by the first user sends a third module configuration update application carrying the first module identification data of the first user identity identification module to a first service interface preset on the first server; When the first server receives the third module configuration update application sent by the first user through the first service interface, it extracts the corresponding first module identification data therefrom; and updates the first module configuration update state corresponding to the first module identification data to a second state identification.
4. The method for updating the APN configuration of the user identity module according to claim 1, characterized in that: The step of performing data preparation processing on the configuration data packet of the current user identity recognition module to generate a corresponding first configuration data packet specifically includes: The first server uses the module identification corresponding to the current user identity identification module as the corresponding current module identification data; and queries the preset configuration database, extracts the first module network identification field, the first module login configuration field and the first module APN configuration field of the first module configuration record whose first module identification field matches the current module identification data in the configuration database as the corresponding second module network identification data, the second module login configuration data and the second module APN configuration data; and the current module identification data, the second module network identification data, the second module login configuration data and the second module APN configuration data form a corresponding first configuration data packet plaintext; and based on the preset first key, according to the preset first encryption The decryption algorithm performs data encryption processing on the plaintext of the first configuration data packet to generate the corresponding first ciphertext; and uses the first ciphertext as the corresponding first configuration data packet; the configuration database is used to store the latest module network identification data, module login configuration data and module APN configuration data of all the first user identity identification modules; the configuration database includes multiple first module configuration records; the first module configuration record includes the first module identification field, the first module network identification field, the first module login configuration field and the first module APN configuration field; the first module APN configuration field includes multiple second APN information; the first encryption and decryption algorithm is a symmetric encryption and decryption algorithm, including the AES algorithm and the national secret SM4 algorithm.
5. The method for updating the APN configuration of the user identity module according to claim 4, characterized in that: The remote updating process of the local configuration data of the current user identity recognition module according to the first configuration data packet specifically includes: The first server uses the first user terminal corresponding to the current user identity identification module as the corresponding current user terminal; and creates a data channel between itself and the current user identity identification module through the current user terminal as the corresponding third channel; and sends the first configuration data packet to the current user identity identification module through the third channel; and upon receiving the remote update success status sent back by the current user identity identification module, confirms that the remote update process is successful, and closes the third channel between itself and the current user identity identification module through the current user terminal.
6. The method for updating the APN configuration of the user identity module according to claim 5, characterized in that: After sending the first configuration data packet to the current user identity recognition module through the third channel, the method further includes: When the current user identity identification module receives the first configuration data packet sent by the first server through the third channel, the first configuration data packet is decrypted based on the preset second key and the preset second encryption and decryption algorithm to generate a corresponding second configuration data packet plaintext; and the current module identification data, the second module network identification data, the second module network configuration data and the second module APN configuration data are extracted from the second configuration data packet plaintext; and when the locally stored first module identification data matches the current module identification data, the locally stored first module network identification data, the first module network configuration data and the first module APN configuration data are set to the corresponding second module network identification data, the second module network configuration data and the second module APN configuration data; and the first APN status corresponding to each of the first APN information in the newly set first module APN configuration data is set to an available status; and when the setting is completed, the remote update success status is sent back to the first server through the third channel; the second key matches the first key, and the second encryption and decryption algorithm matches the first encryption and decryption algorithm.
7. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method according to any one of claims 1 to 6; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 6.
