Configuration method and device of operator lock, storage medium and electronic equipment
By generating and reconfiguring Payload data, the contract failure problem of operator lock due to abnormal modem module of contract machine is solved, ensuring that the operator lock function of contract machine takes effect during the contract period, increasing the security of operator lock.
Patent Information
- Application Number
- CN202410994669.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-26
AI Technical Summary
If the Modem fails in the existing mobile device of the operator lock configuration plan during the contract period, the operator's SIM Lock function will fail, lack protection measures, and cannot meet the operator's needs for locking the machine.
By generating payload data containing the contract machine's identity code, device serial number and operator network information, configure the operator lock, and regenerate the payload data when the communication module's identity code changes, ensure the recovery of the operator lock function and the contract takes effect.
It realizes the function that the contract machine can only be used on the corresponding services during the contract period, which increases the security of the operator's lock, prevents contract failure, and meets the operator's need to lock the machine.
Smart Images

Figure CN119031345A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a configuration method, device, storage medium and electronic device for an operator lock. Background Art
[0002] Carrier SIM Lock (Carrier SIM Lock) is a technical means used to restrict the use of mobile devices (such as smartphones or modems) to a specific operator's network. This lock is usually implemented by device manufacturers in cooperation with a specific operator to ensure that the device can only work in the operator's network and prevent users from using the device on other operators' networks. The implementation process of the existing carrier lock configuration solution: the modem of the mobile device already supports the Carrier SIM Lock function; the encrypted and decrypted Payload file (a file or data packet carrying valid data or load) generated by the server; MBIM (Mobile Broadband Interface Mode l, a standard interface model for mobile broadband device communication) is supported to send the Payload file to the Modem; the Modem internally parses the Payload file and generates the corresponding Carrier SIM Lock rules; the Modem has imported the server's public password to double-check the legitimacy of the Payload file. The existing technical solution has certain defects. It only considers the legitimacy verification of the Payload file and the parsing and delivery of the Payload file. The Carrier SIM Lock function can take effect after delivery. However, for mobile devices within the contract period, if the modem fails, the Carrier SIM Lock function will fail. There is no protection measure and it does not meet the demand for Carrier SIM Lock customized machines. Summary of the invention
[0003] The present application provides a configuration method, device, storage medium and electronic device of an operator lock to solve the technical problem that the operator lock causes the contract signing failure due to the abnormality of the communication module of the contract machine.
[0004] In a first aspect, the present application provides a method for configuring an operator lock, comprising: generating Payload data based on contract information signed between a contract machine and an operator, and sending the Payload data to the contract machine, configuring the operator lock for the first communication module of the contract machine, wherein the Payload data includes the first identity code of the first communication module of the contract machine, the device serial number of the contract machine, and the first public land mobile network of the operator; obtaining status information reported by the second communication module of the contract machine after the contract machine is inserted with an identity card and network registration and dialing is performed, wherein the status information includes the second identity code of the second communication module of the contract machine, the device serial number of the contract machine, the second public land mobile network of the identity card, and the switch status of the operator lock; verifying the status information and the Payload data; if the first identity code and the second identity code are not verified successfully, regenerating Payload data based on the second identity code and sending it to the contract machine, configuring the operator lock for the second communication module of the contract machine.
[0005] In a second aspect, the present application provides a configuration device for an operator lock, comprising: a first processing module, used to generate Payload data according to the contract information signed between the contract machine and the operator, and send the above Payload data to the above contract machine, so as to configure the operator lock for the first communication module of the above contract machine, wherein the above Payload data includes the first identity code of the first communication module of the above contract machine, the device serial number of the above contract machine and the first public land mobile network of the above operator; an acquisition module, used to obtain the status information reported by the second communication module of the above contract machine after the above contract machine is inserted with an identity card and performs network registration and dialing, wherein the above status information includes the second identity code of the second communication module of the above contract machine, the device serial number of the above contract machine, the second public land mobile network of the above identity card and the switch status of the operator lock; a verification module, used to verify the above status information and the above Payload data; a second processing module, used to regenerate Payload data according to the above second identity code and send it to the above contract machine when the above first identity code and the above second identity code are not successfully verified, so as to configure the operator lock for the second communication module of the above contract machine.
[0006] As an optional example, the verification module includes: an acquisition unit, used to acquire the contract period of the contract machine in the Payload data, and determine the remaining contract time of the contract machine; a first comparison unit, used to compare the second identity code of the second communication module in the status information and the first identity code of the first communication module in the Payload data; a second comparison unit, used to compare the second public land mobile network of the identity card in the status information and the first public land mobile network of the operator in the Payload data; a third comparison unit, used to compare the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data.
[0007] As an optional example, the above-mentioned device also includes: a third processing module, which is used to lock the above-mentioned second communication module after verifying the above-mentioned status information and the above-mentioned Payload data, when it is determined that the contract between the above-mentioned contract machine and the above-mentioned operator has expired according to the above-mentioned remaining contract time, so that the above-mentioned second communication module cannot perform network injection dialing operations.
[0008] As an optional example, the above-mentioned device also includes: a fourth processing module, which is used to lock the above-mentioned second communication module when the device serial number of the contract machine in the above-mentioned status information and the device serial number of the contract machine in the above-mentioned Payload data are not successfully verified, so that the above-mentioned second communication module cannot perform the network dial-up operation. After that, the above-mentioned contract machine obtains the network dial-up qualification by re-signing a contract with the above-mentioned operator.
[0009] As an optional example, the above-mentioned device also includes: a fifth processing module, which is used to lock the above-mentioned second communication module after verifying the above-mentioned status information and the above-mentioned Payload data, if the above-mentioned first public land mobile network and the above-mentioned second public land mobile network are not successfully verified, so that the above-mentioned second communication module cannot perform the network injection dialing operation.
[0010] As an optional example, the above-mentioned device also includes: a sixth processing module, which is used to lock the above-mentioned second communication module after verifying the above-mentioned status information and the above-mentioned Payload data, if the device serial number of the contract machine in the above-mentioned status information and the device serial number of the contract machine in the above-mentioned Payload data are not successfully verified, so that the above-mentioned second communication module cannot perform the network injection dialing operation.
[0011] As an optional example, the second processing module includes: a modification unit, used to modify the first identity code in the Payload data to the second identity code to obtain updated Payload data; a sending unit, used to send the updated Payload data to the contract machine; a configuration unit, used to configure the operator lock for the second communication module according to the updated Payload data.
[0012] In a third aspect, the present application provides a storage medium storing a computer program, wherein the computer program executes the above-mentioned operator lock configuration method when executed by a processor.
[0013] In a fourth aspect, the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned operator lock configuration method through the computer program.
[0014] In an embodiment of the present application, Payload data is generated according to the contract information signed between the contract machine and the operator, and the Payload data is sent to the contract machine, and an operator lock is configured for the first communication module of the contract machine, wherein the Payload data includes the first identity code of the first communication module of the contract machine, the device serial number of the contract machine, and the first public land mobile network of the operator; status information reported by the second communication module of the contract machine after the contract machine is inserted with an identity card and network registration and dialing is performed, wherein the status information includes the second identity code of the second communication module of the contract machine, the device serial number of the contract machine, and the second public land mobile network of the identity card. The switch status of the land mobile network and the operator lock; verify the above status information and the above Payload data; if the above first identity code and the above second identity code are not successfully verified, regenerate the Payload data according to the above second identity code and send it to the above contract machine, and configure the operator lock for the second communication module of the above contract machine. In the above method, for the contract machine within the contract period, if the communication module fails and needs to be replaced, the identity code of the communication module will change. At this time, the contract period of the contract machine will be checked according to the second identity code of the replaced second communication module, and new Payload data will be regenerated and re-sent to the contract machine to restore the operator lock function and ensure the effectiveness of the contract. Thereby, it is achieved to ensure that the user can only enjoy the corresponding service on the corresponding product within the contract period, increase the security of the operator lock, and solve the technical problem that the operator lock fails to sign the contract due to the abnormality of the communication module of the contract machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 is a flowchart of an optional method for configuring a carrier lock according to an embodiment of the present application;
[0019] Figure 2 is a specific implementation flow chart of an optional operator lock configuration method according to an embodiment of the present application;
[0020] Figure 3 is a schematic structural diagram of an optional operator lock configuration device according to an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0023] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0024] According to a first aspect of an embodiment of the present application, a method for configuring an operator lock is provided. Optionally, as follows: Figure 1 As shown, the above method includes:
[0025] S102, generating Payload data according to the contract information signed between the contract machine and the operator, and sending the Payload data to the contract machine, configuring an operator lock for the first communication module of the contract machine, wherein the Payload data includes a first identity code of the first communication module of the contract machine, a device serial number of the contract machine, and a first public land mobile network of the operator;
[0026] S104, obtaining status information reported by the second communication module of the contract phone after the contract phone is inserted with the identity card and performs network registration and dialing, wherein the status information includes a second identity code of the second communication module of the contract phone, a device serial number of the contract phone, a second public land mobile network of the identity card, and a switch status of the operator lock;
[0027] S106, verifying the status information and the payload data;
[0028] S108, when the first identity code and the second identity code are not successfully verified, the Payload data is regenerated according to the second identity code and sent to the contract machine, and the operator lock is configured for the second communication module of the contract machine.
[0029] Optionally, in this embodiment, Payload data, a file or data packet carrying valid data or load, a file in a specific format, is used to transfer data or configuration information between software or systems. Communication module, that is, Modem module, modem. It is a device used to convert digital signals into analog signals (modulation) for transmission through communication lines, and convert analog signals into digital signals (demodulation). In computer networks and communications, modems are used to transmit data between computers or other digital devices. In mobile communications, modems are typically used to convert digital data into signals suitable for transmission in mobile networks, such as through radio waves. In mobile phones, modems are typically used to handle tasks such as phone calls, sending text messages, and connecting to mobile data networks.
[0030] Optionally, this method is implemented on the Google server side, adding a cloud management platform to manage the contract validity of the contract machine, manage the modem module payload running status based on the operation and maintenance status, manage the backup of the payload data and dynamically calculate the remaining contract time, and regenerate new payload data and send it to the modem module through MBIM.
[0031] Optionally, in this embodiment, after the contract machine signs a contract with the operator, according to the contract information, a first identity code of the first communication module of the contract machine when signing the contract, the device serial number of the contract machine, and the Payload data of the public land mobile network of the operator are generated. The generated Payload data is sent to the contract machine to configure the operator lock of the first communication module. The contract machine inserts the identity card and attempts to connect to the network. At this time, the second communication module used by the contract machine starts to work. The second communication module reports the status information including the second identity code of the second communication module, the device serial number of the contract machine, the public land mobile network of the identity card, and the switch status of the operator lock. The reported status information and the previously sent Payload data are regularly checked to ensure their consistency and legitimacy. If the first identity code and the second identity code fail to pass the verification, that is, the first communication module of the contract machine during the contract period has been replaced with the second communication module due to an abnormality, then the Payload data is regenerated, including the second identity code of the second communication module of the contract machine, and sent to the contract machine. After receiving the regenerated Payload data, the contract machine uses the information therein to configure the operator lock of the second communication module to ensure that the second communication module of the contract machine can also work normally.
[0032] Optionally, in this embodiment, for a contract machine within the contract period, if the communication module fails and needs to be replaced, the identity code of the communication module will be changed. At this time, the contract period of the contract machine will be checked according to the second identity code of the replaced second communication module, and new Payload data will be regenerated and re-issued to the contract machine to restore the operator lock function and ensure that the contract is effective. This ensures that the user can only enjoy the corresponding service on the corresponding product within the contract period, increases the security of the operator lock, and solves the technical problem of the operator lock causing the contract to fail due to the abnormality of the communication module of the contract machine.
[0033] As an optional example, the verification of the status information and the payload data includes:
[0034] Obtain the contract period of the contract machine in the Payload data and determine the remaining contract time of the contract machine;
[0035] Compare the second identity code of the second communication module in the status information with the first identity code of the first communication module in the Payload data;
[0036] comparing the second public land mobile network of the identity card in the status information with the first public land mobile network of the operator in the payload data;
[0037] Compare the device serial number of the contract phone in the status information with the device serial number of the contract phone in the payload data.
[0038] Optionally, in this embodiment, when verifying the status information and the Payload data, the contract period of the contract machine, the second identity code of the second communication module and the first identity code of the first communication module, the second public land mobile network of the identity card and the first public land mobile network of the operator, and the device serial number of the contract machine are verified respectively. Specifically, the contract period information of the contract machine, such as the signing date and expiration date of the contract, is extracted from the Payload data, and then the remaining contract time is calculated by the current date and the expiration date. The second identity code of the second communication module is obtained from the status information, and the first identity code of the first communication module is obtained from the Payload data, and then the two identity codes are compared to ensure that they match. If they do not match, it is determined that the first identity code and the second identity code have not been successfully verified. The public land mobile network of the identity card is obtained from the status information, and the public land mobile network of the operator is obtained from the Payload data, and then the two networks are compared to ensure that they are consistent. If they are inconsistent, it is determined that the first public land mobile network and the second public land mobile network have not been successfully verified. The device serial number of the contract machine is obtained from the status information, and the device serial number of the contract machine is obtained from the Payload data. Then, compare the two serial numbers to make sure they match. If they do not match, it is determined that the device serial number verification was not successful.
[0039] As an optional example, after verifying the status information and the payload data, the method further includes:
[0040] When it is determined according to the remaining contract time that the contract between the contract machine and the operator has expired, the second communication module is locked so that the second communication module cannot perform a network registration and dialing operation.
[0041] As an optional example, when the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data are not successfully verified, after locking the second communication module so that the second communication module cannot perform the network dialing operation, the method further includes:
[0042] Contract phones obtain network dial-up qualifications by re-signing a contract with the operator.
[0043] Optionally, in this embodiment, by comparing the current date in the contract with the contract period, it can be determined whether the contract between the contract machine and the operator has expired. If the current date has exceeded the contract expiration date, then the contract has expired. Once it is determined that the contract between the contract machine and the operator has expired, it is necessary to lock the second communication module to prevent it from performing network dial-up operations. This can be achieved by modifying the device configuration or software settings so that the second communication module cannot connect to the network. Once the contract machine is locked, it is necessary to re-sign a contract with the operator to obtain a new network dial-up qualification. Once the contract machine has re-signed a contract with the operator and obtained a new network dial-up qualification, it is necessary to unlock the second communication module so that it can reconnect to the network and restore the operator lock function. By executing the above method, it can be ensured that when the contract expires, the contract machine cannot connect to the network, and it is necessary to re-sign a contract with the operator to obtain new service permissions.
[0044] As an optional example, after verifying the status information and the payload data, the method further includes:
[0045] When the first PLMN and the second PLMN are not successfully verified, the second communication module is locked so that the second communication module cannot perform a network registration and dialing operation.
[0046] Optionally, in this embodiment, if it is found during the verification process that the first public land mobile network and the second public land mobile network have not passed the inspection, it indicates that the network that the second communication module of the contract machine attempts to connect to does not match the network originally configured by the contract machine, and there may be an improper network connection or configuration. Once it is found that the first public land mobile network and the second public land mobile network have not passed the inspection, it is necessary to immediately lock the second communication module to prevent it from performing network dialing operations. This can be achieved by modifying the device configuration or software settings so that the second communication module cannot connect to the network. After locking the second communication module, it is necessary to replace the communication module that matches the operator's first public land mobile network to restore the network dialing function of the contract machine. The above method can ensure that when the public land mobile network fails to pass the inspection, the second communication module cannot connect to the network, thereby ensuring network security and legal use.
[0047] As an optional example, after verifying the status information and the payload data, the method further includes:
[0048] When the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data are not successfully verified, the second communication module is locked so that the second communication module cannot perform the network registration and dialing operation.
[0049] Optionally, in this embodiment, when the device serial number of the contract machine in the status information does not match the device serial number in the Payload data, it indicates that there is inconsistency in the device information or there may be device tampering. If the device serial number fails the inspection, the second communication module should be locked immediately to ensure the security of the contract machine and the legality of network use. Locking the second communication module can be achieved by modifying the device configuration or software settings to prevent it from performing network dial-up operations. After locking the second communication module, it is necessary to further investigate the cause and take measures to solve the problem. This includes checking the device information of the contract machine, verifying the authenticity of the device, contacting the manufacturer to confirm the device serial number, etc. The above method can ensure that when the device serial number fails the inspection, the second communication module cannot connect to the network, thereby ensuring network security and the legal use of the device.
[0050] As an optional example, regenerating Payload data according to the second identity code and sending it to the contract phone, and configuring the operator lock for the second communication module of the contract phone includes:
[0051] Modify the first identity code in the Payload data to the second identity code to obtain updated Payload data;
[0052] Send the updated Payload data to the contract machine;
[0053] Configure the operator lock for the second communication module according to the updated Payload data.
[0054] Optionally, in this embodiment, the second identity code of the second communication module is obtained from the status information and used to update the Payload data. Specifically, the first identity code in the Payload data is modified to the second identity code to obtain the updated Payload data. The updated Payload data is sent to the contract machine so as to configure the updated operator lock for the second communication module of the contract machine. After receiving the updated Payload data, the contract machine parses the information therein and configures the operator lock for the second communication module according to the updated Payload data. This ensures that the second communication module can only be connected to the operator network corresponding to the operator in the contract. The Payload data can be regenerated based on the second identity code and sent to the contract machine to configure the updated operator lock of the second communication module. This ensures that the second communication module of the contract machine is connected to the network according to the new Payload data configuration, thereby ensuring the security and legality of the network connection.
[0055] With reference to an example for explanation, in order to solve the problem of Carrier Lock failure caused by abnormal Modem module of contract machine, and to ensure that Payload data of contract machine can always be effective during the contract period, and the contract is automatically terminated after the contract expires, the present application proposes a configuration method based on cloud service operator lock. This solution is implemented on the cloud server side, and a cloud management platform is added to manage the contract effectiveness of the contract machine based on the operation and maintenance status, manage the running status of Payload data of Modem module of contract machine, manage the backup of Payload data and dynamically calculate the remaining contract time of Payload data, and regenerate new Payload data, and send it to the Modem module through MBIM (an interface standard widely used in mobile devices).
[0056] Prerequisites: (1) The modem module already supports the Carrier Lock function; the Modem Manager already supports the issuance of the Carrier Lock command. The Modem Manager is a background service used to manage modems in the Linux system. It provides a unified way to manage and control various types of modem devices, including mobile phones, data cards, etc.
[0057] The specific implementation process is as follows Figure 2 As shown:
[0058] Step 1: The cloud server generates Payload data based on the contract content of the contract phone and the operator, binds the IMEI (International Mobile Equipment Identity) of the modem module, and customizes the operator's PLMN (Public Land Mobile Network. In mobile communications, PLMN refers to a network built and managed by one or more mobile communication operators to provide mobile communication services. In contract phone management, PLMN information is usually used to configure the device and specify the mobile network it can access);
[0059] Step 2: The cloud management platform controls the Modem Manager to send the Payload data to the PC (contract machine) bound to the module modem;
[0060] Step 3: Insert the PLMN SIM card of the corresponding operator into the PC, and then dial the network;
[0061] Step 4: The modem module actively reports the IMEI of the modem module, the PLMN of the modem module, the SN (Serial Number, the serial number of the device, is a unique string of numbers or letters assigned by the device manufacturer to uniquely identify each device) and the Carrier Lock status to the cloud server;
[0062] Step 5: The cloud service will periodically verify the status information reported by the Modem module with the original Payload data rules;
[0063] Step 6: If the verification fails, a permanent lock is generated, locking all operators from accessing the network; if the verification succeeds, the contract service is normal, and the user can enjoy the operator's services normally;
[0064] Step 7: Users can only reapply for a contract to obtain operator network access qualifications.
[0065] By using the database of the cloud management platform Carrier Lock and adding a timed verification mechanism, the problem of Carrier Lock's contract being invalid due to abnormalities can be more effectively solved, ensuring that users can only enjoy the corresponding services on the corresponding products during the contract period, and increasing the security of Carrier Lock.
[0066] For the operator's customized phones, if the Payload data becomes invalid due to some external factors, the user's contracted phone will become full network access. This application can determine the occurrence of such problems by verifying whether the PLMN is contracted. If not, the user's networks of all operators will be directly locked. The user can initiate an application to the cloud contract server. The server will generate valid Payload data based on the previously contracted data, and re-send it to the Modem module to restore the Carrier Lock function and ensure that the contract is effective.
[0067] For customized phones within the contract period, if the modem module fails and needs to be replaced, the IMEI of the modem module will be changed, and the user's access to all operators will be locked. The contract period of the contract phone will be checked based on the IMEI and machine SN of the replaced modem module, and new Payload data will be regenerated and re-sent to the modem module to restore the Carrier Lock function and ensure that the contract is effective.
[0068] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0069] According to another aspect of the embodiment of the present application, a configuration device for an operator lock is also provided, such as Figure 3 As shown, including:
[0070] The first processing module 302 is used to generate Payload data according to the contract information signed between the contract machine and the operator, and send the Payload data to the contract machine to configure the operator lock for the first communication module of the contract machine, wherein the Payload data includes the first identity code of the first communication module of the contract machine, the device serial number of the contract machine, and the first public land mobile network of the operator;
[0071] The acquisition module 304 is used to acquire the status information reported by the second communication module of the contract phone after the contract phone is inserted with the identity card and performs network registration and dialing, wherein the status information includes the second identity code of the second communication module of the contract phone, the device serial number of the contract phone, the second public land mobile network of the identity card, and the switch status of the operator lock;
[0072] Verification module 306, used to verify the status information and Payload data;
[0073] The second processing module 308 is used to regenerate Payload data according to the second identity code and send it to the contract machine when the first identity code and the second identity code are not successfully verified, and configure an operator lock for the second communication module of the contract machine.
[0074] Optionally, in this embodiment, Payload data, a file or data packet carrying valid data or load, a file in a specific format, is used to transfer data or configuration information between software or systems. Communication module, that is, Modem module, modem. It is a device used to convert digital signals into analog signals (modulation) for transmission through communication lines, and convert analog signals into digital signals (demodulation). In computer networks and communications, modems are used to transmit data between computers or other digital devices. In mobile communications, modems are typically used to convert digital data into signals suitable for transmission in mobile networks, such as through radio waves. In mobile phones, modems are typically used to handle tasks such as phone calls, sending text messages, and connecting to mobile data networks.
[0075] Optionally, this method is implemented on the Google server side, adding a cloud management platform to manage the contract validity of the contract machine, manage the modem module payload running status based on the operation and maintenance status, manage the backup of the payload data and dynamically calculate the remaining contract time, and regenerate new payload data and send it to the modem module through MBIM.
[0076] Optionally, in this embodiment, after the contract machine signs a contract with the operator, according to the contract information, a first identity code of the first communication module of the contract machine when signing the contract, the device serial number of the contract machine, and the Payload data of the public land mobile network of the operator are generated. The generated Payload data is sent to the contract machine to configure the operator lock of the first communication module. The contract machine inserts the identity card and attempts to connect to the network. At this time, the second communication module used by the contract machine starts to work. The second communication module reports the status information including the second identity code of the second communication module, the device serial number of the contract machine, the public land mobile network of the identity card, and the switch status of the operator lock. The reported status information and the previously sent Payload data are regularly checked to ensure their consistency and legitimacy. If the first identity code and the second identity code fail to pass the verification, that is, the first communication module of the contract machine during the contract period has been replaced with the second communication module due to an abnormality, then the Payload data is regenerated, including the second identity code of the second communication module of the contract machine, and sent to the contract machine. After receiving the regenerated Payload data, the contract machine uses the information therein to configure the operator lock of the second communication module to ensure that the second communication module of the contract machine can also work normally.
[0077] Optionally, in this embodiment, for a contract machine within the contract period, if the communication module fails and needs to be replaced, the identity code of the communication module will be changed. At this time, the contract period of the contract machine will be checked according to the second identity code of the replaced second communication module, and new Payload data will be regenerated and re-issued to the contract machine to restore the operator lock function and ensure that the contract is effective. This ensures that the user can only enjoy the corresponding service on the corresponding product within the contract period, increases the security of the operator lock, and solves the technical problem of the operator lock causing the contract to fail due to the abnormality of the communication module of the contract machine.
[0078] As an optional example, the verification module includes:
[0079] An acquisition unit, used to acquire the contract period of the contract machine in the Payload data and determine the remaining contract time of the contract machine;
[0080] A first comparison unit, used for comparing the second identity code of the second communication module in the state information with the first identity code of the first communication module in the Payload data;
[0081] A second comparing unit, configured to compare a second public land mobile network of the identity card in the state information with a first public land mobile network of the operator in the payload data;
[0082] The third comparison unit is used to compare the device serial number of the contract machine in the status information with the device serial number of the contract machine in the Payload data.
[0083] Optionally, in this embodiment, when verifying the status information and the Payload data, the contract period of the contract machine, the second identity code of the second communication module and the first identity code of the first communication module, the second public land mobile network of the identity card and the first public land mobile network of the operator, and the device serial number of the contract machine are verified respectively. Specifically, the contract period information of the contract machine, such as the signing date and expiration date of the contract, is extracted from the Payload data, and then the remaining contract time is calculated by the current date and the expiration date. The second identity code of the second communication module is obtained from the status information, and the first identity code of the first communication module is obtained from the Payload data, and then the two identity codes are compared to ensure that they match. If they do not match, it is determined that the first identity code and the second identity code have not been successfully verified. The public land mobile network of the identity card is obtained from the status information, and the public land mobile network of the operator is obtained from the Payload data, and then the two networks are compared to ensure that they are consistent. If they are inconsistent, it is determined that the first public land mobile network and the second public land mobile network have not been successfully verified. The device serial number of the contract machine is obtained from the status information, and the device serial number of the contract machine is obtained from the Payload data. Then, compare the two serial numbers to make sure they match. If they do not match, it is determined that the device serial number verification was not successful.
[0084] As an optional example, the above device further includes:
[0085] The third processing module is used to lock the second communication module after verifying the status information and Payload data, if it is determined that the contract between the contract machine and the operator has expired according to the remaining contract time, so that the second communication module cannot perform network dialing operations.
[0086] As an optional example, the above device further includes:
[0087] The fourth processing module is used to lock the second communication module when the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data are not successfully verified, so that the second communication module cannot perform the network dial-up operation. After that, the contract machine obtains the network dial-up qualification by re-signing a contract with the operator.
[0088] Optionally, in this embodiment, by comparing the current date in the contract with the contract period, it can be determined whether the contract between the contract machine and the operator has expired. If the current date has exceeded the contract expiration date, then the contract has expired. Once it is determined that the contract between the contract machine and the operator has expired, it is necessary to lock the second communication module to prevent it from performing network dial-up operations. This can be achieved by modifying the device configuration or software settings so that the second communication module cannot connect to the network. Once the contract machine is locked, it is necessary to re-sign a contract with the operator to obtain a new network dial-up qualification. Once the contract machine has re-signed a contract with the operator and obtained a new network dial-up qualification, it is necessary to unlock the second communication module so that it can reconnect to the network and restore the operator lock function. By executing the above method, it can be ensured that when the contract expires, the contract machine cannot connect to the network, and it is necessary to re-sign a contract with the operator to obtain new service permissions.
[0089] As an optional example, the above device further includes:
[0090] The fifth processing module is used to lock the second communication module after verifying the state information and the Payload data, if the first public land mobile network and the second public land mobile network are not successfully verified, so that the second communication module cannot perform the network registration dialing operation.
[0091] Optionally, in this embodiment, if it is found during the verification process that the first public land mobile network and the second public land mobile network have not passed the inspection, it indicates that the network that the second communication module of the contract machine attempts to connect to does not match the network originally configured by the contract machine, and there may be an improper network connection or configuration. Once it is found that the first public land mobile network and the second public land mobile network have not passed the inspection, it is necessary to immediately lock the second communication module to prevent it from performing network dialing operations. This can be achieved by modifying the device configuration or software settings so that the second communication module cannot connect to the network. After locking the second communication module, it is necessary to replace the communication module that matches the operator's first public land mobile network to restore the network dialing function of the contract machine. The above method can ensure that when the public land mobile network fails to pass the inspection, the second communication module cannot connect to the network, thereby ensuring network security and legal use.
[0092] As an optional example, the above device further includes:
[0093] The sixth processing module is used to lock the second communication module after verifying the status information and the Payload data, if the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data are not verified successfully, so that the second communication module cannot perform the network dialing operation.
[0094] Optionally, in this embodiment, when the device serial number of the contract machine in the status information does not match the device serial number in the Payload data, it indicates that there is inconsistency in the device information or there may be device tampering. If the device serial number fails the inspection, the second communication module should be locked immediately to ensure the security of the contract machine and the legality of network use. Locking the second communication module can be achieved by modifying the device configuration or software settings to prevent it from performing network dial-up operations. After locking the second communication module, it is necessary to further investigate the cause and take measures to solve the problem. This includes checking the device information of the contract machine, verifying the authenticity of the device, contacting the manufacturer to confirm the device serial number, etc. The above method can ensure that when the device serial number fails the inspection, the second communication module cannot connect to the network, thereby ensuring network security and the legal use of the device.
[0095] As an optional example, the second processing module includes:
[0096] A modification unit, used to modify the first identity code in the Payload data to the second identity code to obtain updated Payload data;
[0097] A sending unit, used to send the updated Payload data to the contract machine;
[0098] The configuration unit is used to configure the operator lock for the second communication module according to the updated Payload data.
[0099] Optionally, in this embodiment, the second identity code of the second communication module is obtained from the status information and used to update the Payload data. Specifically, the first identity code in the Payload data is modified to the second identity code to obtain the updated Payload data. The updated Payload data is sent to the contract machine so as to configure the updated operator lock for the second communication module of the contract machine. After receiving the updated Payload data, the contract machine parses the information therein and configures the operator lock for the second communication module according to the updated Payload data. This ensures that the second communication module can only be connected to the operator network corresponding to the operator in the contract. The Payload data can be regenerated based on the second identity code and sent to the contract machine to configure the updated operator lock of the second communication module. This ensures that the second communication module of the contract machine is connected to the network according to the new Payload data configuration, thereby ensuring the security and legality of the network connection.
[0100] For other examples of this embodiment, please refer to the above examples and will not be repeated here.
[0101] Figure 4 is a schematic diagram of an optional electronic device according to an embodiment of the present application, such as Figure 4 As shown, it includes a processor 402, a communication interface 404, a memory 406 and a communication bus 408, wherein the processor 402, the communication interface 404 and the memory 406 communicate with each other through the communication bus 408, wherein,
[0102] Memory 406, used to store computer programs;
[0103] The processor 402 is used to implement the following steps when executing the computer program stored in the memory 406:
[0104] Generate Payload data according to the contract information signed between the contract machine and the operator, and send the Payload data to the contract machine, and configure the operator lock for the first communication module of the contract machine, wherein the Payload data includes the first identity code of the first communication module of the contract machine, the device serial number of the contract machine, and the first public land mobile network of the operator;
[0105] Obtaining status information reported by the second communication module of the contract phone after the contract phone is inserted with the identity card and performs network registration and dialing, wherein the status information includes the second identity code of the second communication module of the contract phone, the device serial number of the contract phone, the second public land mobile network of the identity card, and the switch status of the operator lock;
[0106] Verify the status information and Payload data;
[0107] In the case that the first identity code and the second identity code are not successfully verified, the Payload data is regenerated according to the second identity code and sent to the contract machine, and the operator lock is configured for the second communication module of the contract machine.
[0108] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The communication interface is used for communication between the above electronic device and other devices.
[0109] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0110] As an example, the memory 406 may include, but is not limited to, the first processing module 302, the acquisition module 304, the verification module 306, and the second processing module 308 in the configuration device of the operator lock. In addition, other module units in the configuration device of the operator lock may also be included but are not limited to, which will not be repeated in this example.
[0111] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0112] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0113] The electronic device provided in the embodiments of the present application may specifically be a module capable of realizing a communication function or a terminal device including the module, etc. The terminal device may be a mobile terminal or a smart terminal. The mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a laptop computer, etc.; the smart terminal may specifically be a terminal containing a wireless communication module, such as a smart car, a smart watch, a shared bicycle, a smart cabinet, etc.; the module may specifically be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and a NB-IOT communication module. A person of ordinary skill in the art can understand that Figure 4 The structure shown is for illustration only. The device for implementing the above-mentioned operator lock configuration method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 4 The structure of the electronic device is not limited. For example, the electronic device may also include Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations shown.
[0114] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0115] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program executes the steps in the above-mentioned operator lock configuration method when executed by a processor.
[0116] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0117] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0118] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0119] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0120] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0123] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for configuring an operator lock, characterized in that: include: Generate Payload data according to the contract information signed between the contract machine and the operator, and send the Payload data to the contract machine, and configure the operator lock for the first communication module of the contract machine, wherein the Payload data includes the first identity code of the first communication module of the contract machine, the device serial number of the contract machine and the first public land mobile network of the operator; Obtaining status information reported by the second communication module of the contract phone after the contract phone is inserted with an identity card and performs network registration and dialing, wherein the status information includes a second identity code of the second communication module of the contract phone, a device serial number of the contract phone, a second public land mobile network of the identity card, and a switch status of an operator lock; Verifying the status information and the Payload data; In the case that the first identity code and the second identity code are not successfully verified, Payload data is regenerated according to the second identity code and sent to the contract machine, and an operator lock is configured for the second communication module of the contract machine.
2. The method according to claim 1, characterized in that The verifying the state information and the Payload data includes: Obtaining the contract period of the contract machine in the Payload data, and determining the remaining contract time of the contract machine; Comparing the second identity code of the second communication module in the state information with the first identity code of the first communication module in the Payload data; Comparing the second public land mobile network of the identity card in the status information with the first public land mobile network of the operator in the Payload data; Compare the device serial number of the contract machine in the status information with the device serial number of the contract machine in the Payload data.
3. The method according to claim 2, characterized in that After verifying the state information and the Payload data, the method further includes: When it is determined according to the remaining contract time that the contract between the contract machine and the operator has expired, the second communication module is locked so that the second communication module cannot perform a network registration and dialing operation.
4. The method according to claim 3, characterized in that In the case that the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data are not successfully verified, after locking the second communication module so that the second communication module cannot perform a network injection dialing operation, the method further includes: The contract phone obtains the network registration and dial-up qualification by re-signing a contract with the operator.
5. The method according to claim 2, characterized in that: After verifying the state information and the Payload data, the method further includes: In the case that the first public land mobile network and the second public land mobile network are not successfully verified, the second communication module is locked so that the second communication module cannot perform a network registration and dialing operation.
6. The method according to claim 2, characterized in that After verifying the state information and the Payload data, the method further includes: When the device serial number of the contract machine in the status information and the device serial number of the contract machine in the Payload data are not successfully verified, the second communication module is locked so that the second communication module cannot perform a network dialing operation.
7. The method according to claim 1, characterized in that The regenerating the Payload data according to the second identity code and sending it to the contract machine, and configuring the operator lock for the second communication module of the contract machine comprises: Modify the first identity code in the Payload data to the second identity code to obtain updated Payload data; Sending the updated Payload data to the contract machine; Configure a carrier lock for the second communication module according to the updated Payload data.
8. A configuration device for an operator lock, characterized in that: include: A first processing module, configured to generate Payload data according to the contract information signed between the contract machine and the operator, and send the Payload data to the contract machine, and configure an operator lock for the first communication module of the contract machine, wherein the Payload data includes a first identity code of the first communication module of the contract machine, a device serial number of the contract machine, and a first public land mobile network of the operator; an acquisition module, used for acquiring status information reported by the second communication module of the contract machine after the contract machine is inserted with an identity card and performs network registration and dialing, wherein the status information includes a second identity code of the second communication module of the contract machine, a device serial number of the contract machine, a second public land mobile network of the identity card, and a switch status of an operator lock; A verification module, used to verify the status information and the Payload data; The second processing module is used to regenerate Payload data according to the second identity code and send it to the contract machine when the first identity code and the second identity code are not successfully verified, and configure an operator lock for the second communication module of the contract machine.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Cited By
Network state control method, device and equipment
CN120475365A
Configuration method and apparatus for carrier lock, and storage medium and electronic device
WO2026020723A1
