A SIMLOCK unlocking method and related equipment
By combining an external SIM card and an eSIM card in the terminal device, using the MQTT protocol to communicate with the server, the SIMLOCK is automatically obtained and unlocked, which solves the user's problem of cumbersome SIMLOCK unlocking process in the roaming area and improves convenience and communication availability.
Patent Information
- Application Number
- CN202210900463.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-07-28
AI Technical Summary
When the user terminal device is roaming in the area, the SIMLOCK unlocking process is cumbersome. The user needs to bring the ID to the operator to obtain the unlock code, resulting in poor convenience and the inability to use the external SIM card under the uncontracted operator network.
By setting the external SIM card and eSIM card in the terminal device, using the MQTT protocol to communicate with the server, sending an unlocking request to obtain the unlocking code key, and unlocking the external SIM card when the contract conditions are met, automatic unlocking of SIMLOCK is achieved.
It improves the convenience of SIMLOCK unlocking for users in roaming areas, reduces the need for users to go to operators, and ensures the normal communication functions of terminal devices under different operator networks.
Smart Images

Figure CN115278647B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a SIMLOCK unlocking method and related equipment. Background Art
[0002] Currently, SIMLOCK is a function of locking the subscriber identity module (SIM) card on the terminal device. Network operators use the locking function of SIMLOCK to restrict the use of mobile terminals to specific countries (regions) and / or specific operator networks. The basic principle of the SIMLOCK function is to save the encrypted customized parameters in the terminal device storage through a private encryption algorithm, and to achieve advanced protection of communication devices by verifying the encrypted information stored in the terminal device and the information in the SIM card.
[0003] However, the operator corresponding to the place is specific. When the location of the terminal device changes, for example, the user's terminal device uses the SIM card of operator A in country A, and the user goes to country B, where operator A's service does not exist. At this time, the SIM card of the terminal device cannot be SIMLOCK unlocked, and the terminal device cannot communicate. Summary of the invention
[0004] The embodiments of the present application disclose a SIMLOCK unlocking method and related devices, which are used to improve the convenience of SIMLOCK unlocking.
[0005] A first aspect discloses a SIMLOCK unlocking method, which is applied to a terminal device, wherein the terminal device is provided with an external SIM card and an eSIM card, and the method comprises: in response to a SIMLOCK unlocking operation, the terminal device sends an unlocking request to a server through the eSIM card, wherein the unlocking request is used to request an unlocking code key; the terminal device receives the key from the server; and the terminal device uses the key to unlock the SIMLOCK of the external SIM card.
[0006] In the embodiment of the present application, the terminal device can establish a connection with the server through the communication between the eSIM card and the server, so as to obtain the key used to unlock the external SIM card. At this time, the user does not need to carry the certificate to the operator to obtain the key for SIMLOCK unlocking, but can directly unlock it, thereby improving the convenience of SIMLOCK unlocking when the user is in the roaming area.
[0007] As a possible implementation manner, before the terminal device sends an unlock request to the server through the eSIM card, the method also includes: the terminal device switches the SIM card of the terminal device from the external SIM card to the eSIM card; after the terminal device uses the key to unlock the SIMLOCK of the external SIM card, the method also includes: the terminal device switches the SIM card of the terminal device from the eSIM card to the external SIM card.
[0008] In the embodiment of the present application, in the roaming area of the SIM card, the terminal device can obtain the communication capability by switching the eSIM card, and further, obtain the key through the communication capability of the eSIM card. When the external SIM card is unlocked and has the communication capability, the terminal device can switch its SIM card from the eSIM card to the external SIM card. In this way, the terminal device can communicate through the external SIM card, thereby ensuring that the external SIM card can communicate, so that the user can use the terminal device to communicate normally.
[0009] As a possible implementation, the method also includes: the terminal device sends a message queue telemetry transmission MQTT registration request to the server, and the MQTT registration request is used to request MQTT registration; the terminal device receives the MQTT request response from the server; the terminal device sends MQTT registration information to the server, and the MQTT registration information includes a user name and password; the terminal device receives a registration result from the server, and the registration result indicates whether the registration is successful or failed.
[0010] In the embodiment of the present application, when the terminal device switches from an external SIM card to an eSIM card, the terminal device only has the ability to communicate, but unlocking the external SIM card often needs to be obtained from the operator. At this time, through the MQTT protocol, the terminal device can communicate with the server managed by the operator, thereby initiating a SIMLOCK unlocking request to ensure the unlocking process.
[0011] As a possible implementation, the method also includes: when the terminal device detects that the SIMLOCK of the external SIM card is in a locked state, the terminal device outputs a first prompt message, and the first prompt message is used to prompt a user whether to unlock the SIMLOCK of the external SIM card; when the terminal device receives an unlocking operation for the first prompt message, the terminal device outputs a second prompt message, and the second prompt message is used to remind the user to select an unlocking method, and the unlocking method includes temporary unlocking and permanent unlocking; the terminal device receives a selection operation for the unlocking method, and the unlocking request includes the selected unlocking method.
[0012] In an embodiment of the present application, the terminal device can remind the user when in a roaming area and output corresponding prompt information to allow the user to choose whether to unlock and information such as the unlocking method. Based on this information, the terminal device can determine the unlocking request, so that the server can make a judgment based on this information to ensure the legitimacy of the unlocking process provided to the user.
[0013] A second aspect discloses a SIMLOCK unlocking method, which is applied to a server and includes: the server receiving an unlocking request from a terminal device, the unlocking request being used to request an unlocking code key; the server determining whether to unlock the SIMLOCK of the terminal device based on the unlocking request; in the case of determining to unlock the SIMLOCK of an external SIM card of the terminal device, the server sending an unlocking code key to the terminal device, the unlocking code key being used to unlock the SIMLOCK of the external SIM card of the terminal device.
[0014] In the embodiment of the present application, after receiving the unlocking request of the terminal device, the server can determine whether it can be unlocked, and in the case of unlocking, send a key to the terminal device, so that the external SIM card of the terminal device can be SIMLOCK unlocked. In this way, the user does not need to carry the certificate to the operator to obtain the key for SIMLOCK unlocking, but can directly unlock it, thereby improving the convenience of SIMLOCK unlocking when the user is in the roaming area.
[0015] As a possible implementation, the unlock request includes a first unlock method, a first IMSI and a first location information, the server stores the IMSI, unlock method, roaming area and key mapping information of the SIM card contracted by the user, and the server determines whether to unlock the SIMLOCK of the terminal device based on the unlock request, including: the server determines the second unlock method and the first roaming area corresponding to the first IMSI according to the mapping information; when the first unlock method is the same as the second unlock method and the first location information belongs to the first roaming area, the server determines to unlock the SIMLOCK of the external SIM card. In the embodiment of the present application, after receiving the unlock request of the terminal device, the server can judge whether the SIM card of the terminal device is a SIM card that has been signed and meets the conditions according to the contract information signed between the user and the operator, so as to ensure the legitimacy of unlocking the SIMLOCK, thereby ensuring the security and orderliness of SIMLOCK unlocking of each terminal device.
[0016] As a possible implementation, the method also includes: the server receives an MQTT registration request from the terminal device, the MQTT registration request is used to request MQTT registration; the server sends an MQTT request response to the terminal device; the server receives MQTT registration information from the terminal device, the MQTT registration information includes a user name and a password; the server registers based on the MQTT registration information; the server sends a registration result to the terminal device, the registration result indicates a success or failure of the registration.
[0017] In the embodiment of the present application, when the terminal device switches from an external SIM card to an eSIM card, the terminal device only has the ability to communicate, but unlocking the external SIM card often needs to be obtained from the operator. At this time, through the MQTT protocol, the terminal device can communicate with the server managed by the operator, thereby initiating a SIMLOCK unlock request to ensure that the terminal device can contact the operator, thereby ensuring the unlocking process.
[0018] A third aspect discloses a terminal device, including: one or more processors and one or more memories, wherein the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the terminal device is provided with an external SIM card and an eSIM card. When the one or more processors execute the computer instructions, the terminal device executes:
[0019] In response to the SIMLOCK unlocking operation, an unlocking request is sent to the server through the eSIM card, and the unlocking request is used to request an unlocking code key; the key from the server is received; and the SIMLOCK of the external SIM card is unlocked using the key. In the embodiment of the present application, the terminal device can establish a connection with the server through the communication between the eSIM card and the server, so as to obtain the key used to unlock the external SIM card. At this time, the user does not need to carry the ID to the operator to obtain the key for SIMLOCK unlocking, but can directly unlock it, thereby improving the convenience of SIMLOCK unlocking when the user is in a roaming area.
[0020] As a possible implementation, before the terminal device sends an unlock request to the server through the eSIM card, the terminal device also executes: switching the SIM card of the terminal device from the external SIM card to the eSIM card; after using the key to unlock the SIMLOCK of the external SIM card, the terminal device also executes: switching the SIM card of the terminal device from the eSIM card to the external SIM card.
[0021] In the embodiment of the present application, in the roaming area of the SIM card, the terminal device can obtain the communication capability by switching the eSIM card, and further, obtain the key through the communication capability of the eSIM card. When the external SIM card is unlocked and has the communication capability, the terminal device can switch its SIM card from the eSIM card to the external SIM card. In this way, the terminal device can communicate through the external SIM card, thereby ensuring that the external SIM card can communicate, so that the user can use the terminal device to communicate normally.
[0022] As a possible implementation, the terminal device also performs: sending a message queue telemetry transmission MQTT registration request to the server, the MQTT registration request is used to request MQTT registration; receiving an MQTT request response from the server; sending MQTT registration information to the server, the MQTT registration information includes a user name and password; receiving a registration result from the server, the registration result indicating whether the registration is successful or failed.
[0023] In the embodiment of the present application, when the terminal device switches from an external SIM card to an eSIM card, the terminal device only has the ability to communicate, but unlocking the external SIM card often needs to be obtained from the operator. At this time, through the MQTT protocol, the terminal device can communicate with the server managed by the operator, thereby initiating a SIMLOCK unlocking request to ensure the unlocking process.
[0024] As a possible implementation, the terminal device further performs: when the terminal device detects that the SIMLOCK of the external SIM card is in a locked state, outputting a first prompt message, wherein the first prompt message is used to prompt a user whether to unlock the SIMLOCK of the external SIM card; when the terminal device receives an unlocking operation for the first prompt message, outputting a second prompt message, wherein the second prompt message is used to remind the user to select an unlocking method, wherein the unlocking method includes a temporary unlocking and a permanent unlocking; and when a selection operation for the unlocking method is received, the unlocking request includes the selected unlocking method.
[0025] In an embodiment of the present application, the terminal device can remind the user when in a roaming area and output corresponding prompt information to allow the user to choose whether to unlock and information such as the unlocking method. Based on this information, the terminal device can determine the unlocking request, so that the server can make a judgment based on this information to ensure the legitimacy of the unlocking process provided to the user.
[0026] A fourth aspect discloses a server, comprising: one or more processors and one or more memories, the one or more memories being used to store computer program codes, the computer program codes comprising computer instructions, and when the one or more processors execute the computer instructions, the server is configured to: receive an unlock request from a terminal device, the unlock request being used to request an unlock code key; determine whether to unlock the SIMLOCK of the terminal device based on the unlock request; and in the case of determining to unlock the SIMLOCK of an external SIM card of the terminal device, send an unlock code key to the terminal device, the unlock code key being used to unlock the SIMLOCK of the external SIM card of the terminal device.
[0027] In the embodiment of the present application, after receiving the unlocking request of the terminal device, the server can determine whether it can be unlocked, and in the case of unlocking, send a key to the terminal device, so that the external SIM card of the terminal device can be SIMLOCK unlocked. In this way, the user does not need to carry the certificate to the operator to obtain the key for SIMLOCK unlocking, but can directly unlock it, thereby improving the convenience of SIMLOCK unlocking when the user is in the roaming area.
[0028] As a possible implementation manner, the unlock request includes a first unlock method, a first IMSI and a first location information. The server stores the IMSI, unlock method, roaming area and mapping information between the SIM card subscribed by the user. The server determines whether to unlock the SIMLOCK of the terminal device based on the unlock request. The server specifically performs: determining the second unlock method and the first roaming area corresponding to the first IMSI according to the mapping information; when the first unlock method is the same as the second unlock method and the first location information belongs to the first roaming area, determining to unlock the SIMLOCK of the external SIM card.
[0029] In the embodiment of the present application, after receiving the unlocking request of the terminal device, the server can judge whether the SIM card of the terminal device is a SIM card that has been signed and meets the conditions based on the contract information signed between the user and the operator, thereby ensuring the legitimacy of unlocking the SIMLOCK.
[0030] As a possible implementation, the server also performs: receiving an MQTT registration request from the terminal device, the MQTT registration request being used to request MQTT registration; sending an MQTT request response to the terminal device; receiving MQTT registration information from the terminal device, the MQTT registration information including a user name and password; registering based on the MQTT registration information; and sending a registration result to the terminal device, the registration result indicating a success or failure in the registration.
[0031] In the embodiment of the present application, when the terminal device switches from an external SIM card to an eSIM card, the terminal device only has the ability to communicate, but unlocking the external SIM card often needs to be obtained from the operator. At this time, through the MQTT protocol, the terminal device can communicate with the server managed by the operator, thereby initiating a SIMLOCK unlock request to ensure that the terminal device can contact the operator, thereby ensuring the unlocking process.
[0032] The fifth aspect discloses a computer-readable storage medium, in which a computer program or computer instructions are stored. When the computer program or computer instructions are executed, the method disclosed in the first aspect or any embodiment of the first aspect is implemented.
[0033] The sixth aspect discloses another computer-readable storage medium, in which a computer program or computer instructions are stored. When the computer program or computer instructions are executed, the method disclosed in the second aspect or any embodiment of the second aspect is implemented.
[0034] A seventh aspect discloses a computer program product, which includes a computer program code. When the computer program code is executed, the method of the first aspect is executed.
[0035] An eighth aspect discloses a computer program product, which includes a computer program code. When the computer program code is executed, the method of the second aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a schematic diagram of a network structure disclosed in an embodiment of the present application;
[0037] Figure 2 This is a schematic diagram of a SIMLOCK unlocking process disclosed in an embodiment of the present application;
[0038] Figure 3 is a schematic diagram of an unlocking information prompt disclosed in an embodiment of the present application;
[0039] Figure 4 This is a schematic diagram of an MQTT registration process disclosed in an embodiment of the present application;
[0040] Figure 5 It is a structural schematic diagram of a SIMLOCK unlocking device disclosed in an embodiment of the present application;
[0041] Figure 6 It is a structural schematic diagram of another SIMLOCK unlocking device disclosed in an embodiment of the present application;
[0042] Figure 7 It is a structural schematic diagram of another SIMLOCK unlocking device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The embodiment of the present application discloses a method and device for designing a communication module compatible with master and slave devices, which is used to improve the convenience of SIMLOCK unlocking. Detailed description is given below.
[0044] In order to facilitate understanding of a master-slave device compatible communication module design method and device disclosed in an embodiment of the present application, the following first introduces the relevant technologies involved in the embodiment of the present application:
[0045] 1.MQTT protocol
[0046] Message queuing telemetry transport (MQTT) is a "lightweight" communication protocol based on the publish / subscribe model. The biggest advantage of this protocol is that it can provide real-time and reliable message services to remote devices with very little code and limited bandwidth. As an instant messaging protocol with low overhead and low bandwidth usage, it is widely used in the Internet of Things, small devices, mobile applications, etc. The MQTT protocol is a client-server based message publishing and subscription transmission protocol. It is designed for lightweight publish / subscribe message transmission and aims to provide reliable network services for IoT devices in low-bandwidth and unstable network environments.
[0047] The implementation of the MQTT protocol requires communication between the client and the server. The server can include an MQTT Broker and the client can be a subscriber. The subscriber can register with the MQTT Broker. When registering, the service between the server and the client can be started. In this application, the service between the server and the client includes the SIMLOCK unlocking service.
[0048] 2. SIM card and eSIM card
[0049] The subscriber identity module (SIM) is an IC card held by mobile users of the GSM system, called a subscriber identification card. The GSM system identifies GSM users through the SIM card.
[0050] eSIM, or embedded-SIM, is a traditional SIM card that is converted into an "electronic version" and directly embedded into the device chip. Users do not need to insert a physical SIM card, but the function is the same as a SIM card.
[0051] 3.SIMLOCK
[0052] SIMLOCK is a function of locking the SIM card on the mobile terminal. The network operator uses the locking function of SIMLOCK to restrict the mobile terminal to be used only in specific countries and / or specific operator networks. If the mobile terminal is locked to be used under a specific operator network through SIMLOCK, the mobile terminal can only use the SIM card of a specific operator. The basic principle of the SIMLOCK function is to save the encrypted customized parameters in the device storage through a private encryption algorithm, and to achieve advanced protection of the communication device by verifying the encrypted information stored in the device and the information in the SIM card. In the function implementation, the SIMLOCK process needs to query the international mobile subscriber identity (IMSI), group identifier 1 (GID1), and group identity 2 (GID2) related information stored in the SIM card, and use this information to implement different SIMLOCK function levels to achieve restrictions on different operators, regions, etc. Among them, IMSI is composed of the mobile country code (MCC), mobile network code (MNC) and mobile subscription identification number (MSIN) connected in sequence. MCC and MNC are unique identification codes assigned to each commercial operator by the ITU.
[0053] Currently, when a user's terminal device is in a roaming area, to unlock the SIMLOCK, the user needs to go to the local operator and get the corresponding key required for unlocking. After that, the user manually enters the key to unlock the SIMLOCK and use the communication and Internet functions of the terminal device normally.
[0054] Among them, the SIM card SIMLOCK of the terminal device is often locked when the terminal device is turned on or the SIM card is inserted. For example, the configuration information preset in the NV item of the modem side of the mobile phone will be compared with the information in the SIM card to detect whether it matches. If it does not match, the SIM card related functions cannot be used normally, such as making calls, sending text messages, and surfing the Internet.
[0055] Since the scope of countries (regions) that operators can serve is limited, when the terminal device exceeds the area that operators can serve, the operator cannot perform SIMLOCK unlocking on the SIM card, which makes the SIM card unusable and the mobile phone unable to communicate. For example, the SIM card in the user's mobile phone is a SIM card of operator A in country A, and the current user takes the mobile phone to country B. At this time, the user's mobile phone has not signed a contract with roaming operator B in country B, which makes the current SIM card unusable and needs to be temporarily unlocked. The current technology cannot perform SIMLOCK unlocking for roaming areas, so that when the user is in a roaming area, he needs to go to the local operator for processing. The SIMLOCK unlocking process is cumbersome and the user experience is poor.
[0056] Especially for customized phones of operators, in the roaming area, if SIMLOCK is in a locked state, external SIM cards of other operators cannot be installed. Therefore, this terminal device has no way to communicate, which brings great inconvenience to users.
[0057] In response to the above problems, in an embodiment of the present application, when the terminal device obtains the user's operation to unlock the SIMLOCK, the MQTT registration is performed with the server through the eSIM card, and a request message is sent to the server after the registration is successful. After the server receives the request message, it performs an unlock detection based on the request message. If the unlock detection is successful, the server can send an unlock code key to the terminal device, so that the terminal device can perform the unlocking process. After that, the terminal device can switch the SIM card used from the eSIM to an external SIM card. In this way, when the user's SIMLOCK is locked in the roaming area, there is no need to go to the operator's business hall to inquire about the unlock code key, but can unlock it without perception, thereby improving the convenience of unlocking the SIMLOCK in the roaming area.
[0058] The following is a schematic diagram of a network structure involved in an embodiment of the present application.
[0059] Figure 1 Schematic diagram of a network structure disclosed in the embodiment of the present application. Figure 1As shown, the network structure may include a server 101 and a terminal device 102. The server 101 is managed by the operator. As the MQTTBroker in the MQTT protocol, the server 101 may store the key of the SIMLOCK corresponding to the SIM card and / or eSIM card of each terminal device. If the user has signed a roaming agreement with the operator, the server 101 also stores the agreement-related information. As the subscriber in the MQTT protocol, the terminal device 102 can register with the server 101 for MQTT and subscribe to the SIMLOCK-related information it needs.
[0060] See also Figure 2 ,like Figure 2 The figure shows a schematic diagram of a SIMLOCK unlocking process disclosed in an embodiment of the present application. The method can be applied to a terminal device and a server. The terminal device and the server can communicate with each other. The connection method can refer to Figure 1 A SIMLOCK unlocking method may include the following steps:
[0061] In the embodiment of the present application, the terminal device includes both external SIM and eSIM SIM cards. Among them, the external SIM is the SIM card of the operator in the non-roaming area of the user, and the eSIM is the SIM card of the operator in the roaming area. The user can sign a contract with the operator in the non-roaming area in advance and apply for a communication package for a certain period of time in a certain roaming area. At this time, the operator that has signed an agreement with the user can negotiate with the operator in the roaming area, and the user can use the communication network in the roaming area through the signed agreement.
[0062] For example, user A's mobile phone has an external SIM card and an eSIM card, where the external SIM card is handled by operator 1 in country A. The user can sign an agreement with operator 1 for communication in country B. For example, the user is going to country B for a business trip for 1 month, and the user can activate a roaming package for one month in country B. At this time, operator 1 can negotiate with operator 2 in country B to activate a one-month communication service for the external SIM card in user A's mobile phone. At this time, the external SIM card of user A's mobile phone can communicate in country B through the communication service provided by operator 2.
[0063] S201. In response to a SIMLOCK unlocking operation, the terminal device switches the SIM card of the terminal device from the external SIM card to the eSIM card.
[0064] When the external SIM card of the terminal device is SIMLOCK locked in the roaming area, the terminal device can display a SIMLOCK unlock prompt message. The user can confirm the unlocking according to the prompt of the unlock prompt message.
[0065] The external SIM card of the terminal device is handled by operator 1 in country A. When the terminal device is in country B, if the terminal device is in SIMLOCK locked state, the terminal device cannot communicate through the external SIM card because the communication service of the external SIM card in country B is not activated. At this time, the terminal device can display a prompt message for unlocking SIMLOCK.
[0066] When the terminal device detects that the SIMLOCK of the external SIM card is in a locked state, the terminal device outputs a first prompt message, and the first prompt message is used to prompt the user whether to unlock the SIMLOCK of the external SIM card; when the terminal device receives an unlocking operation for the first prompt message, the terminal device outputs a second prompt message, and the second prompt message is used to remind the user to select an unlocking method, and the unlocking methods include temporary unlocking and permanent unlocking; the terminal device receives a selection operation for an unlocking method, and the unlocking request includes the unlocking method of the selection operation.
[0067] For example, Figure 3 Schematic diagram of an unlocking information prompt disclosed in an embodiment of the present application. Figure 3 As shown in (A) in the figure, the terminal device determines whether it is currently in a roaming area. When the external SIM is locked in the roaming area, the first prompt message can be displayed first. The first prompt message can be used to ask the current user whether to unlock, for example, "Do you want to unlock the current SIMLOCK?", and the corresponding "OK" control and "Cancel" control are used to unlock and not unlock respectively. If the user is sure to unlock, the "OK" control can be clicked to unlock; if the user is sure that unlocking is not required, the "Cancel" control can be clicked to exit unlocking. In response to the touch operation of the "OK" control, the terminal device can display the following: Figure 3 In the (B) user interface, the terminal device may display a second prompt message. The second prompt message may be used to determine an unlocking method, which includes two types, namely, temporary unlocking and permanent unlocking. Figure 3 (B) in the figure can display corresponding controls, namely, the "temporary unlock" control and the "permanent unlock" control. For example, the second prompt message can be "Please select the unlock SIMLOCK" method. When the user's unlocking method is temporary unlocking, the user can click the "temporary unlock" control; when the user's unlocking method is permanent unlocking, the user can click the "permanent unlock" control. When the terminal device receives a touch operation on the "temporary unlock" control for the second prompt message, a third prompt message can be displayed. The third prompt message can be used to determine the time of temporary unlocking. Figure 3As shown in (C), the third prompt information may be "Please select the time for temporary unlocking", wherein the terminal device may set a variety of time lengths for this question. For example, 5 days, 10 days, one month, half a year, and so on. The user can make a choice based on the length of time used. When the user is in the roaming area for 1-5 days, the user can click the "5 days" control; when the user is in the roaming area for 6-10 days, the user can click the "10 days" control; when the user is in the roaming area for 11-30 days, the user can click the "one month" control... The user can choose according to his or her own needs without limitation.
[0068] It should be noted that the prompt information output by the terminal device can be in the form of voice, vibration, etc., without limitation.
[0069] Some users have signed a roaming service contract with their operators through an external SIM card (for example, they have purchased a roaming package for a certain period of time). When the user selects the temporary unlocking time, it should be consistent with the contracted time. For example, the user has purchased a roaming package for one month. The current options are as follows: Figure 3 The temporary unlocking duration in (C) may be 1 month. At this time, the third reminder information may include annotation information to remind the user of the unlocking duration that has been signed, which helps the user to select convenience and correctness.
[0070] S202. The terminal device registers for MQTT via the eSIM card.
[0071] When the terminal device receives the SIMLOCK unlock operation, the external SIM card of the terminal device cannot communicate at this time, and the terminal device can switch the SIM card used from the external SIM card to the eSIM card. Afterwards, in response to the above SIMLOCK unlock operation, the terminal device can start MQTT registration through the eSIM card.
[0072] For example, the process of a terminal device registering with a server via MQTT is as follows:
[0073] Figure 4 This is a schematic diagram of an MQTT registration process disclosed in an embodiment of the present application. Figure 4 As shown, the embodiment of the present application provides a method flow for a terminal device to register with a server through MQTT, and the method may include but is not limited to the following steps:
[0074] S401. The terminal device sends an MQTT registration request to the server.
[0075] The terminal device can send an MQTT registration request to the server through the eSIM card. Correspondingly, the server can receive the MQTT registration request from the terminal device. The MQTT registration request is used to request MQTT registration from the MQTT Broker.
[0076] S402: The server sends an MQTT request response to the terminal device.
[0077] After receiving the MQTT registration request from the terminal device, the server can send an MQTT request response to the terminal device. Correspondingly, the terminal device can receive the MQTT request response from the server. Among them, the MQTT request response is a reply message used to reply whether the terminal device can register, which can be used by the terminal device to determine whether the MQTT registration is currently being performed or not.
[0078] S403: The terminal device sends MQTT registration information to the server.
[0079] When the terminal device determines that the received request response information is capable of registration, the terminal device may send MQTT registration information to the server. Correspondingly, the server may receive MQTT registration information from the terminal device. The MQTT registration information may include information such as the user name and password used for registration.
[0080] S404: The server registers based on the MQTT registration information.
[0081] When the server receives the MQTT registration information from the terminal device, registration can be performed based on the MQTT registration information.
[0082] That is, the server can determine whether the current MQTT registration information is legal. If it is legal, it can be registered locally, that is, the registration is successful. At this time, the terminal device can subscribe to the relevant information of the server. If the MQTT registration information is illegal, it cannot be registered locally, that is, the registration fails, and the terminal device cannot subscribe to the server's related services.
[0083] S405: The server sends the registration result to the terminal device.
[0084] The server may send a registration result to the terminal device, and correspondingly, the terminal device may receive the registration result from the server, wherein the registration result indicates whether the registration is successful or failed, that is, the registration result may be a result of a successful registration or a result of a failed registration.
[0085] In the embodiment of the present application, only when the registration is successful can there be a subsequent SIMLOCK unlocking process between the terminal device and the server, otherwise it is not possible.
[0086] At this time, the terminal device and the server can use the MQTT protocol to unlock the SIMLOCK of the SIM card of the terminal device through a communication channel, so that the server and the terminal device can communicate and the terminal device can obtain the unlock code key, which is convenient and effective to unlock. Therefore, this application combines MQTT with the SIMLOCK unlocking process to provide users with a process that can unlock without going to the operator, ensuring the convenience of unlocking.
[0087] It should be noted that the above Figure 4 The MQTT registration process in the figure is just one possible way. There are other possible ways, which are not limited.
[0088] S203: The terminal device sends an unlock request to the server.
[0089] The terminal device can send an unlock request to the server, and correspondingly, the server receives the unlock request from the terminal device. The unlock request is used to request an unlock code key. The unlock request includes the first IMSI information of the external SIM card of the terminal device, the first location information, and the first unlock information. Among them, the first unlock information may include information about the first unlock duration and the first unlock method, which can be specifically obtained by Figure 3 The location information may be the user's current location information, such as GPS, WiFi location, or cell location. Specifically, after the terminal device determines that the registration is successful, an unlock request may be determined, and then the unlock request may be sent to the server through the eSIM card.
[0090] S204: The server determines whether to unlock the SIM LOCK of the terminal device based on the unlock request.
[0091] After the server obtains the unlock request from the terminal device, unlock detection can be performed based on the unlock request.
[0092] The server can unlock the SIMLOCK of the terminal device based on whether the unlocking information satisfies the corresponding contract information. If yes, the server can not unlock the SIMLOCK of the terminal device if not.
[0093] Among them, the server stores the contract information, and the contract information is the IMSI, unlocking method, roaming area and key mapping information of the SIM card signed by the user. Therefore, the server can obtain and store the contract information in advance. Specifically, the server can first obtain the user's roaming information. The user's roaming information is the mapping information between the IMSI, roaming area, unlocking method and roaming duration of the SIM card signed by the user and the operator. The server determines the contract information based on the user's roaming information and the key of the user's corresponding SIM card (the unlocking code is stored locally), and please refer to Table 1 for details.
[0094] In the case that the server has stored the contract information, it can determine whether to unlock the SIMLOCK of the terminal device (ie, perform an unlock detection) based on the unlock request.
[0095] When the unlocking request includes a first unlocking method, a first IMSI and a first location information, the server can determine to unlock the SIMLOCK of the external SIM card when the first unlocking method is the same as the second unlocking method and the first location information belongs to a first roaming area, and there is a correspondence between the first IMSI and the second unlocking method and the first roaming area in the contract information.
[0096] Specifically, the server can determine whether the user of the terminal device has signed a contract based on the first IMSI (whether the first IMSI exists in the contract information). In the case of signing a contract (when it exists), the server further determines whether the location of the current terminal device is the location of the contract. If the first location meets the first roaming area required by the current contract (the first roaming area is the roaming area corresponding to the first IMSI in the contract information), it can be determined whether the current second unlocking method (the second unlocking method is the unlocking method corresponding to the first IMSI in the contract information) is met through the first unlocking method included in the unlocking information in the request information (which may include or not include the unlocking time). If the first and second unlocking methods are temporary unlocking, it can be determined whether the first unlocking time is less than or equal to the second unlocking time (the second unlocking time is the unlocking time corresponding to the first IMSI in the contract information). If all are met, it is determined that the unlocking detection is successful, that is, it is determined to unlock the SIMLOCK of the external SIM card of the terminal device. At this time, the server can send a key to the terminal device for unlocking. If the first location information, the first unlocking time and the first unlocking method do not meet the corresponding contract information, it can be determined that the unlocking detection fails. At this time, the terminal device cannot send a key for unlocking.
[0097] After the operator has signed contracts with many terminal devices, the contract information can be stored in the server. If the server receives a contract request, it can determine whether the detection is successful through the stored contract information.
[0098] Specifically, the terminal device stores the contract information, which is represented in the form of a mapping table as follows:
[0099] Table 1
[0100] IMSI of the SIM card Unlock method Unlock duration Roaming area key User 1 IMSI 1 Temporary unlock Half a year Country C key1 User 2 IMSI 2 Temporary unlock 1 month Country B key2 …… …… …… …… …… …… User N IMSI N Permanently unlocked Country B keyN
[0101] Table 1 is a mapping table of contract information disclosed in an embodiment of the present application. As shown in Table 1, the server can store the contract information based on the contract status with the user, such as the IMSI of the user's SIM card, unlocking method, unlocking duration, roaming area, and key required for unlocking. The server can check whether the contract information includes the IMSI in the request information. If not included, the detection fails; if included, the server can continue to detect based on the positioning information, unlocking method and unlocking duration. For example, the IMSI in the request information is IMSI2, the unlocking method is temporary unlocking, and the duration is 1 month. The operator contracts for a one-month communication service in the roaming area (country B), which just corresponds to the contract information of user 2, that is, the detection is successful. If any of the positioning information, unlocking method and unlocking duration does not meet the conditions in the contract information, the detection fails.
[0102] S205: The server sends an unlock code key to the terminal device.
[0103] When the server determines to unlock the SIMLOCK of the external SIM card of the terminal device, the server can determine the unlock code key and send unlock information to the terminal device. Correspondingly, the terminal device can receive the unlock code key from the server. In the case of successful detection, the server can determine the corresponding key, for example, by searching from Table 1.
[0104] S206: The terminal device uses the key to unlock the SIMLOCK of the external SIM card.
[0105] After the terminal device receives the unlock code key, it can unlock the SIMLOCK of the external SIM card based on the unlock code key.
[0106] Specifically, after obtaining the key, the terminal device can input the key into a preset unlocking algorithm for calculation, thereby performing SIMLOCK unlocking.
[0107] It should be noted that in the embodiments of the present application, the card locking method may be various, such as NP lock, MS lock, CP lock, SP lock, etc., without limitation. The corresponding Key type corresponds to the lock pair, and the present application does not limit it.
[0108] S207: The terminal device switches the SIM card of the terminal device from the eSIM card to an external SIM card.
[0109] After the terminal device is SIMLOCK unlocked, the SIM card used can be switched from the eSIM card to the external SIM card. At this time, the terminal device can communicate directly through the external SIM card.
[0110] In the above implementation, when the user is in a roaming area and needs to unlock the SIMLOCK, the user does not need to go to the operator's business hall with his ID to find relevant information, but can directly obtain the key through the terminal device using the eSIM card and MQTT protocol to unlock the phone, thereby reducing the user's trouble and improving the convenience of unlocking the SIMLOCK.
[0111] Based on the above SIMLOCK unlocking process diagram, please refer to Figure 5 , Figure 5 1 is a schematic diagram of a SIMLOCK unlocking device disclosed in an embodiment of the present application. The device is provided with an external SIM card and an eSIM card, and the device may include a sending unit 501, a receiving unit 502, and an unlocking unit 503. Figure 5 As shown, where:
[0112] The sending unit 501 is used to send an unlocking request to the server through the eSIM card in response to the SIMLOCK unlocking operation, wherein the unlocking request is used to request an unlocking code key;
[0113] A receiving unit 502, configured to receive the key from the server;
[0114] The unlocking unit 503 is configured to unlock the SIMLOCK of the external SIM card using the key.
[0115] As a possible implementation manner, before the sending unit 501 sends the unlock request to the server through the eSIM card, the sending unit 501 further executes:
[0116] Switching the SIM card of the terminal device from the external SIM card to the eSIM card;
[0117] After the unlocking unit 503 unlocks the SIMLOCK of the external SIM card using the key, the unlocking unit 503 further executes:
[0118] The SIM card of the terminal device is switched from the eSIM card to the external SIM card.
[0119] As a possible implementation, the sending unit 501 is further used to send a message queue telemetry transmission MQTT registration request to the server, where the MQTT registration request is used to request MQTT registration;
[0120] The receiving unit 502 is further configured to receive an MQTT request response from the server;
[0121] The sending unit 501 is further configured to send MQTT registration information to the server, wherein the MQTT registration information includes a user name and a password;
[0122] The receiving unit 502 is further configured to receive a registration result from the server, where the registration result indicates whether the registration is successful or failed.
[0123] As a possible implementation manner, the device includes an output unit, and the output unit is used to:
[0124] When the terminal device detects that the SIMLOCK of the external SIM card is in a locked state, outputting first prompt information, wherein the first prompt information is used to prompt the user whether to unlock the SIMLOCK of the external SIM card;
[0125] When the terminal device receives an unlocking operation for the first prompt information, outputting a second prompt information, wherein the second prompt information is used to remind the user to select an unlocking method, wherein the unlocking method includes temporary unlocking and permanent unlocking;
[0126] A selection operation for the unlocking method is received, and the unlocking request includes the selected unlocking method.
[0127] Based on the above SIMLOCK unlocking process diagram, please refer to Figure 6 , Figure 6 6 is a schematic diagram of the structure of another SIMLOCK unlocking device disclosed in an embodiment of the present application. The device may include a receiving unit 601, a detection unit 602, and a sending unit 603. Figure 5 As shown, where:
[0128] The receiving unit 601 is used to receive an unlocking request from a terminal device, where the unlocking request is used to request an unlocking code key;
[0129] The detection unit 602 is used to determine whether to unlock the SIMLOCK of the terminal device based on the unlock request;
[0130] The sending unit 603 is used to send an unlock code key to the terminal device when it is determined to unlock the SIM LOCK of the external SIM card of the terminal device, where the unlock code key is used to unlock the SIM LOCK of the external SIM card of the terminal device.
[0131] As a possible implementation manner, the unlock request includes a first unlock method, a first IMSI and a first location information, the device stores the IMSI of the SIM card contracted by the user, the unlock method, the mapping information between the roaming area and the key, and the detection unit 602 determines whether to unlock the SIMLOCK of the terminal device based on the unlock request, specifically for:
[0132] Determine a second unlocking mode and a first roaming area corresponding to the first IMSI according to the mapping information;
[0133] When the first unlocking method is the same as the second unlocking method and the first location information belongs to a first roaming area, it is determined to unlock the SIMLOCK of the external SIM card.
[0134] As a possible implementation manner, the receiving unit 601 is further configured to receive an MQTT registration request from the terminal device, where the MQTT registration request is used to request MQTT registration;
[0135] The sending unit 603 is further configured to send an MQTT request response to the terminal device;
[0136] The receiving unit 601 is further configured to receive MQTT registration information from the terminal device, the MQTT registration information including a user name and a password; and register based on the MQTT registration information;
[0137] The sending unit 603 is further configured to send a registration result to the terminal device, where the registration result indicates whether the registration is successful or failed.
[0138] Based on the above network architecture, please refer to Figure 7 , Figure 7 FIG. 1 is a schematic diagram of the structure of another SIMLOCK unlocking device disclosed in the embodiment of the present application. Figure 7 As shown, the terminal device may include a processor 701, a memory 702, an input interface 703, an output interface 704, a bus 705, an input device 706, and an output device 707. The memory 702 may exist independently and may be connected to the processor 701 via the bus 705. The memory 702 may also be integrated with the processor 701. The bus 705 is used to realize the connection between these components.
[0139] In one embodiment, the information processing device may be a terminal device or a module (e.g., a chip) in the terminal device. When the computer program instructions stored in the memory 702 are executed, the processor 701 is used to control the receiving unit 502 and the sending unit 501 to perform the operations performed in the above embodiment. The processor 701 is also used to perform the operations performed by the unlocking unit 503 in the above embodiment. The input interface 703 is used to perform the operations performed by the receiving unit 502 in the above embodiment. The output interface 704 is used to perform the operations performed by the sending unit 501 in the above embodiment. The above terminal device or the module in the terminal device may also be used to perform the above Figure 2 The various methods executed by the terminal device in the method embodiment will not be described in detail.
[0140] In another embodiment, the information processing device may be a server or a module (e.g., a chip) in the server. When the computer program instructions stored in the memory 702 are executed, the processor 701 is used to control the sending unit 603 and the receiving unit 601 to perform the operations performed in the above embodiment. The processor 701 is also used to perform the operations performed by the detection unit 602 in the above embodiment. The input interface 703 is used to perform the operations performed by the receiving unit 601 in the above embodiment. The output interface 704 is used to perform the operations performed by the sending unit 603 in the above embodiment. The above server or the module in the server may also be used to perform the above Figure 2 The various methods executed by the server in the method embodiment will not be described in detail.
[0141] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation methods of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.
[0142] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0143] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A SIMLOCK unlocking method, characterized in that: The method is applied to a terminal device, the terminal device is provided with an external user identity identification SIM card and an embedded user identity identification eSIM card, the external SIM is a SIM card of an operator in a non-roaming area, and the eSIM is a SIM card of an operator in a roaming area, and the method includes: In response to the SIMLOCK unlocking operation, the terminal device switches the SIM card of the terminal device from the external SIM card to the eSIM card; the terminal device sends an unlocking request to the server through the eSIM card, wherein the unlocking request is used to request an unlocking code key; The terminal device receives the key from the server; The terminal device uses the key to unlock the SIMLOCK of the external SIM card; The terminal device switches the SIM card of the terminal device from the eSIM card to the external SIM card.
2. The method according to claim 1, characterized in that The method further comprises: The terminal device sends a message queue telemetry transmission MQTT registration request to the server, where the MQTT registration request is used to request MQTT registration; The terminal device receives the MQTT request response from the server; The terminal device sends MQTT registration information to the server, where the MQTT registration information includes a user name and a password; The terminal device receives a registration result from the server, where the registration result indicates a success or failure of the registration.
3. The method according to claim 1, characterized in that: The method further comprises: When the terminal device detects that the SIMLOCK of the external SIM card is in a locked state, the terminal device outputs a first prompt message, where the first prompt message is used to prompt a user whether to unlock the SIMLOCK of the external SIM card; When the terminal device receives an unlocking operation for the first prompt information, the terminal device outputs a second prompt information, where the second prompt information is used to remind the user to select an unlocking method, where the unlocking method includes temporary unlocking and permanent unlocking; The terminal device receives a selection operation for the unlocking method, and the unlocking request includes the selected unlocking method.
4. A SIMLOCK unlocking method, characterized in that: The method is applied to a server, and the method comprises: The server receives an unlock request from a terminal device, the unlock request being used to request an unlock code key; the unlock request includes a first unlock method, a first IMSI and first location information, and the server stores the mapping information between the IMSI, unlock method, roaming area and key of the SIM card subscribed by the user; The server determines, according to the mapping information, a second unlocking method and a first roaming area corresponding to the first IMSI; If the first IMSI exists in the IMSI of the SIM card subscribed by the user, and the first unlocking method is the same as the second unlocking method, and the first location information belongs to the first roaming area, the server determines to unlock the SIMLOCK of the external SIM card; In the case of determining to unlock the SIM LOCK of the external SIM card of the terminal device, the server sends an unlock code key to the terminal device, where the unlock code key is used to unlock the SIM LOCK of the external SIM card of the terminal device.
5. The method according to claim 4, characterized in that The method further comprises: The server receives an MQTT registration request from the terminal device, where the MQTT registration request is used to request MQTT registration; The server sends an MQTT request response to the terminal device; The server receives MQTT registration information from the terminal device, where the MQTT registration information includes a user name and a password; The server registers based on the MQTT registration information; The server sends a registration result to the terminal device, where the registration result indicates a success or failure of the registration.
6. A terminal device, characterized in that: include: One or more processors and one or more memories, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, the terminal device is provided with an external SIM card and an eSIM card, when the one or more processors execute the computer instructions, so that the terminal device executes: In response to the SIMLOCK unlocking operation, the SIM card of the terminal device is switched from the external SIM card to the eSIM card; an unlocking request is sent to a server through the eSIM card, wherein the unlocking request is used to request an unlocking code key; Receiving the key from the server; Unlock the SIMLOCK of the external SIM card using the key; The SIM card of the terminal device is switched from the eSIM card to the external SIM card.
7. A server, characterized in that: include: One or more processors and one or more memories, the one or more memories being used to store computer program codes, the computer program codes comprising computer instructions, when the one or more processors execute the computer instructions, so that the server is prepared to execute: receiving an unlock request from a terminal device, the unlock request being used to request an unlock code key; the unlock request comprising a first unlock method, a first IMSI and first location information, the server storing the mapping information between the IMSI, the unlock method, the roaming area and the key of the SIM card subscribed by the user; Determine a second unlocking mode and a first roaming area corresponding to the first IMSI according to the mapping information; If the first IMSI exists in the IMSI of the SIM card contracted by the user, when the first unlocking method is the same as the second unlocking method and the first location information belongs to the first roaming area, determine to unlock the SIMLOCK of the external SIM card; An unlock code key is sent to the terminal device, where the unlock code key is used to unlock the SIMLOCK of the external SIM card of the terminal device.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or a computer instruction, and when the computer program or the computer instruction is executed, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
SIM (subscriber identity module) card terminal management method and system based on remote control
CN104640101A
