CN113038451A - Machine-card binding method and device, communication module and storage medium - Google Patents

Machine-card binding method and device, communication module and storage medium Download PDF

Info

Publication number
CN113038451A
CN113038451A CN202110215931.3A CN202110215931A CN113038451A CN 113038451 A CN113038451 A CN 113038451A CN 202110215931 A CN202110215931 A CN 202110215931A CN 113038451 A CN113038451 A CN 113038451A
Authority
CN
China
Prior art keywords
sim card
pin code
iccid
communication module
legal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110215931.3A
Other languages
Chinese (zh)
Other versions
CN113038451B (en
Inventor
王斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Fibocom Wireless Software Inc
Original Assignee
Xian Fibocom Wireless Software Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Fibocom Wireless Software Inc filed Critical Xian Fibocom Wireless Software Inc
Priority to CN202110215931.3A priority Critical patent/CN113038451B/en
Publication of CN113038451A publication Critical patent/CN113038451A/en
Priority to PCT/CN2021/115884 priority patent/WO2022179076A1/en
Application granted granted Critical
Publication of CN113038451B publication Critical patent/CN113038451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a machine card binding method, a machine card binding device, a communication module and a storage medium. The method comprises the following steps: reading the ICCID of an SIM card in a communication module, determining whether the ICCID is legal, if the ICCID of the SIM card is legal, determining a target PIN code according to the ICCID of the SIM card and a Key parameter which is written into the communication module in advance, sending the target PIN code to the SIM card, and initiating a network registration process under the condition that the target PIN code is legal through the SIM card; developers can realize the binding relationship between the communication equipment and the SIM card through the communication module without setting the binding relationship between the communication equipment and the SIM card through operators, thereby greatly improving the binding flexibility between the communication equipment and the SIM card, flexibly changing the binding relationship between the communication equipment and the SIM card and improving the universality of the SIM card; the communication module directly performs a network registration process under the condition that the ICCID of the SIM card is determined to be legal and the target PIN code of the SIM card is determined to be legal, so that the network registration rate of the operator of the communication equipment is improved.

Description

Machine-card binding method and device, communication module and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for machine-card binding, a communication module, and a storage medium.
Background
With the development of internet technology, more and more communication devices are available, wherein, most of the communication devices that use operator networks to implement network communication have a requirement for binding a SIM card with the communication device, for example: some communication devices may cooperate with a fixed carrier (e.g., a mobile carrier) to enable the communication device to perform network registration and communication only by using a SIM card issued by the fixed carrier.
In the conventional technology, when an operator binds a communication device and a SIM card, the operator may store an International Mobile Equipment Identity (IMEI) of the communication device and an Integrated Circuit Card Identity (ICCID) of the SIM card in an operator network in a corresponding manner; when the communication equipment inserts the SIM card, the read ICCID of the SIM card and the IMEI of the communication equipment are sent to an operator network, so that the operator network can check whether the machine-card binding relationship between the SIM card and the communication equipment is legal or not, and network registration is carried out under the legal condition.
However, in the current method for binding the SIM card and the set card of the communication device through the operator network, after the binding relationship is determined, it is not easy to modify, and the communication device can only use the SIM card bound thereto, resulting in low versatility of the SIM card, and further poor flexibility of binding the SIM card and the set card of the communication device.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a communication module and a storage medium for machine-card binding, which can improve the versatility of the SIM card and improve the flexibility of the machine-card binding between the SIM card and the communication device.
In a first aspect, a machine card binding method is provided, and is used in a communication module, the method includes:
reading the ICCID of the SIM card in the communication module, and determining whether the ICCID is legal or not;
under the condition that the ICCID of the SIM card is legal, determining a target PIN code according to the ICCID of the SIM card and a Key parameter which is written into the communication module in advance;
and sending the target PIN code to the SIM card, and initiating a network registration process under the condition that the target PIN code is determined to be legal by the SIM card.
In one embodiment, determining whether the ICCID is valid includes:
detecting whether the ICCID is in a preset SIM card number section;
and determining that the ICCID is legal under the condition that the ICCID is in the preset SIM card number segment.
In one embodiment, before initiating the network registration procedure in a case where it is determined by the SIM card that the target PIN code is legal, the method further includes:
under the condition that the PIN code is stored in the SIM card, whether the PIN code stored in the SIM card is the same as the target PIN code or not is detected through the SIM card, and the target PIN code is determined to be legal under the condition that the PIN code stored in the SIM card is the same as the target PIN code;
and determining that the target PIN code is legal under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the method further comprises:
and writing the target PIN code into the SIM card under the condition that the PIN code is not stored in the SIM card.
In one embodiment, determining a destination PIN code according to the ICCID of the SIM card and the Key parameter written in advance in the communication module includes:
under the condition that the PIN code is stored in the SIM card, judging whether the ICCID of the SIM card is in a pre-stored invalid SIM card list or not;
and when the ICCID of the SIM card is not in a pre-stored invalid SIM card list, determining the target PIN code according to the ICCID of the SIM card and the Key parameter.
In one embodiment, the method further comprises:
and in the case that the target PIN code is determined to be illegal through the SIM card, adding the ICCID of the SIM card into the invalid SIM card list.
In one embodiment, the method further comprises:
and receiving the SIM card number segment and the Key parameter input by a user through a preset machine-card binding function interface, and writing the received SIM card number segment and the received Key parameter into the communication module.
In a second aspect, a communication module is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the machine-card binding method according to any one of the above first aspects when executing the computer program.
In a third aspect, a communication device is provided, which comprises the communication module of the second aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of the machine-card binding method according to any one of the first aspect.
The machine-card binding method, the device, the communication module and the storage medium are characterized in that the communication module reads the ICCID of the SIM card in the communication module and determines whether the ICCID is legal, under the condition that the ICCID of the SIM card is legal, a target PIN code is determined according to the ICCID of the SIM card and a Key parameter written into the communication module in advance, the target PIN code is sent to the SIM card, and under the condition that the target PIN code is legal, a network registration process is initiated; that is to say, in the embodiment of the application, a developer can realize the binding relationship between the communication device and the SIM card through the communication module without setting the binding relationship between the communication device and the SIM card through an operator, so that the flexibility of binding the communication device and the SIM card is greatly improved, the developer can flexibly change the binding relationship between the communication device and the SIM card, and the universality of the SIM card is further improved; in addition, in the embodiment of the application, the validity of the ICCID of the SIM card is judged through the communication module, that is, whether the binding relationship between the communication device and the SIM card is legal is judged through the communication module, the IMEI of the communication device and the ICCID of the SIM card do not need to be sent to the operator network, the operator network checks whether the machine-card binding relationship between the communication device and the SIM card is legal, and the network registration process is directly performed under the condition that the ICCID of the SIM card is legal and the target PIN code of the SIM card is legal, so that the network registration rate of the communication device for the operator is greatly improved.
Drawings
FIG. 1 is a diagram of an application environment of a machine-card binding method in one embodiment;
FIG. 2 is a diagram of an application environment of a machine-card binding method in another embodiment;
FIG. 3 is a flow diagram illustrating a method for machine-to-card binding according to an embodiment;
FIG. 4 is a flowchart illustrating a machine-card binding method according to another embodiment;
FIG. 5 is a flowchart illustrating a machine-card binding method according to another embodiment;
FIG. 6 is a flowchart illustrating a machine-card binding method according to another embodiment;
FIG. 7 is a block diagram of the structure of a machine-card binding apparatus according to an embodiment;
fig. 8 is an internal structural view of a communication module in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Currently, when some communication devices use an operator network for network communication, generally, there is a binding requirement between a SIM card and the communication device, in the prior art, an operator mainly stores a binding relationship between the SIM card and the communication device in the operator network, and the operator network verifies the validity between an ICCID of the SIM card and an IMEI of the communication device in a process of registering the communication device in the network; the specific process is as follows: when the SIM card is inserted into a card slot of the communication equipment, the communication equipment reads the ICCID of the SIM card and sends the read ICCID of the SIM card and the IMEI of the communication equipment to an operator network, the operator network verifies the legality between the ICCID of the SIM card and the IMEI of the communication equipment, and a network registration process is carried out under the condition that the ICCID of the SIM card and the IMEI of the communication equipment are in a legal binding relationship.
However, after the binding relationship is determined, a developer needs to change the binding relationship through the operator when the developer wants to change the binding relationship, so that the use of the SIM card is limited, the universality is low, and the flexibility of binding the SIM card and the set card of the communication device is also poor.
The machine-card binding method is realized through a communication module in communication equipment, the communication module can provide a machine-card binding function interface for developers, the developers can flexibly set an available SIM card number segment of the communication equipment through the machine-card binding function interface, namely, the ICCID of the SIM card bound with the communication equipment is flexibly set, the application range of the SIM card can be improved, the universality of the SIM card is enhanced, and the flexibility of the machine-card binding of the SIM card and the communication equipment is improved; meanwhile, developers can flexibly set Key parameters through the machine-card binding function interface, and the Key parameters are used for determining PIN codes of the SIM cards, so that the communication equipment can determine the PIN codes of the SIM cards to obtain the use permission of the SIM cards, and the universality of the communication module is greatly improved.
The machine-card binding method provided by the application can be applied to the application environment shown in fig. 1. The communication device 101 communicates with the carrier network 102, and network registration and normal network communication of the communication device 101 are realized. The communication device 101 may be various communication devices that use the operator network 102 to perform network communication, and the communication device is a terminal device that includes a communication module capable of implementing a positioning communication function, the terminal device may specifically be a mobile terminal and/or an intelligent device, the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like, and the intelligent device may specifically be at least one of an intelligent watch, an intelligent refrigerator, an intelligent sound box, an intelligent washing machine, an intelligent television, and the like; the carrier network 102 may be a mobile carrier network, a universal carrier network, or a telecommunications carrier network, among others.
The communication device 101 in the embodiment of the present application may adopt a structure diagram as shown in fig. 2, where the communication device 101 includes a communication module 201, and the communication module 201 may specifically be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, an NB-IOT communication module, and the like; the communication module 201 is provided with a card slot 202 into which a SIM card can be inserted, and the communication module 201 is configured to detect whether the SIM card is inserted into the card slot 202, check validity of the SIM card when the SIM card is detected to be inserted, and perform network registration when the SIM card is legal.
In addition, the communication module in the embodiment of the application can provide a machine-card binding function interface for developers, so that the developers can flexibly set the SIM card number segment and the Key parameter bound with the communication equipment through the machine-card binding function interface, and machine-card binding of the communication equipment and the SIM card is realized.
In one embodiment, as shown in fig. 3, a machine-card binding method is provided, which is described by taking the method as an example applied to the communication module in fig. 2, and includes the following steps:
step 301, reading the ICCID of the SIM card in the communication module, and determining whether the ICCID is valid.
The communication equipment comprises a communication module, wherein the communication module is provided with a card slot capable of inserting the SIM card, and the communication module can judge whether the SIM card is inserted or not by detecting the level change of pins in the card slot; the ICCID of the SIM card is used as the unique identification code of the SIM card, and the ICCID of the SIM card uniquely bound with the communication device may be stored in advance in the communication module, so as to realize one-to-one binding between the communication device and the SIM card.
In an optional implementation process of this embodiment, when the communication module detects that the SIM card is inserted into the card slot, it may read the ICCID of the SIM card and determine whether the ICCID is valid; optionally, by determining whether the read ICCID of the SIM card is the same as the ICCID of the uniquely bound SIM card prestored in the communication module, in the case that the read ICCID of the SIM card is determined to be the same as the ICCID of the uniquely bound SIM card prestored in the communication module, it may be determined that the SIM card is the SIM card bound to the communication device, and it may also be determined that the read ICCID of the SIM card is legal.
And step 302, if the ICCID of the SIM card is legal, determining a target PIN code according to the ICCID of the SIM card and a Key parameter which is written into the communication module in advance.
In the development stage of the communication equipment, a developer can preset a Key parameter and write the Key parameter into a communication module of the communication equipment, wherein the Key parameter is used for calculating a PIN (personal identification number) code of an SIM (subscriber identity module) card, a program algorithm for calculating the PIN code of the SIM card is prestored in the communication module, and the program algorithm can calculate the PIN code of the SIM card according to the ICCID of the SIM card and the Key parameter.
In an optional implementation process of this embodiment, when determining that the ICCID of the SIM card is valid, the communication module may determine the target PIN code according to the ICCID of the SIM card and the Key parameter written in the communication module in advance; that is, the communication module inputs the ICCID and Key parameters of the SIM card into the program algorithm, and obtains the target PIN code of the SIM card after calculation by the program algorithm.
Step 303, sending the target PIN code to the SIM card, and initiating a network registration procedure when the target PIN code is determined to be legal by the SIM card.
The PIN code of the SIM card is used as the security password of the SIM card, and after the PIN code of the SIM card is set, the normal network registration and network communication can be carried out by using the SIM card only by correctly inputting the PIN code of the SIM card.
In an optional implementation process of this embodiment, after obtaining the target PIN code of the SIM card, the communication module may send the target PIN code to the SIM card, and after verifying the validity of the target PIN code, the SIM card sends feedback information to the communication module, and when the feedback information is that the target PIN code is valid, the communication module may initiate a network registration procedure to obtain a network service of an operator; however, when the feedback information is that the target PIN code is illegal, the communication module cannot initiate a network registration process to the operator network, so that the communication module cannot acquire the network service of the operator.
In the machine-card binding method, a communication module reads an ICCID of an SIM card in the communication module and determines whether the ICCID is legal, under the condition that the ICCID of the SIM card is legal, a target PIN code is determined according to the ICCID of the SIM card and a Key parameter written into the communication module in advance, the target PIN code is sent to the SIM card, and under the condition that the target PIN code is legal, a network registration process is initiated; that is to say, in the embodiment of the application, a developer can realize the binding relationship between the communication device and the SIM card through the communication module without setting the binding relationship between the communication device and the SIM card through an operator, so that the flexibility of binding the communication device and the SIM card is greatly improved, the developer can flexibly change the binding relationship between the communication device and the SIM card, and the universality of the SIM card is further improved; in addition, in the embodiment of the application, the validity of the ICCID of the SIM card is judged through the communication module, that is, whether the binding relationship between the communication device and the SIM card is legal is judged through the communication module, the IMEI of the communication device and the ICCID of the SIM card do not need to be sent to the operator network, the operator network checks whether the machine-card binding relationship between the communication device and the SIM card is legal, and the network registration process is directly performed under the condition that the ICCID of the SIM card is legal and the target PIN code of the SIM card is legal, so that the network registration rate of the communication device for the operator is greatly improved.
Fig. 4 is a flowchart illustrating a machine-card binding method according to another embodiment. This embodiment relates to an alternative implementation of the communication module determining whether the ICCID is valid. On the basis of the above embodiment, as shown in fig. 4, the step 301 includes:
step 401, detecting whether the ICCID is in a preset SIM card number segment.
In an optional implementation process of this embodiment, a developer may further set a SIM card number segment bound to the communication device, where the SIM card number segment includes ICCIDs of multiple SIM cards, and store the SIM card number segment in a communication module, so as to implement one-to-many binding between the communication device and the SIM cards; that is, the communication device may bind not only the ICCID of one SIM card but also the ICCIDs of multiple SIM cards, that is, the communication device may implement registration of an operator network through the bound multiple SIM cards. When the communication module detects that the SIM card is inserted, the communication module reads the ICCID of the SIM card and detects whether the ICCID of the SIM card is in a preset SIM card number segment to determine whether the SIM card is legal.
Step 402, if the ICCID is in the preset SIM card number segment, determining that the ICCID is legal.
In this embodiment, the communication module determines that the ICCID is valid when the ICCID is in the preset SIM card number segment by detecting whether the ICCID is in the preset SIM card number segment; that is to say, in the embodiment of the present application, in the case that the SIM card number segment having a binding relationship with the communication device is pre-stored in the communication module, it can be determined whether the binding relationship between the SIM card and the communication device is legal through the communication module without sending the ICCID of the SIM card and the IMEI of the communication device to the carrier network, and the carrier network determines whether the binding relationship between the SIM card and the communication device is legal, so that communication between the communication device and the carrier network is reduced, and the verification rate of the binding relationship between the SIM card and the communication device is greatly improved.
Fig. 5 is a flowchart illustrating a machine-card binding method according to another embodiment. The present embodiment relates to an optional implementation process for determining whether the target PIN code is legal or not by the communication module before initiating a network registration procedure under the condition that the SIM card determines that the target PIN code is legal. On the basis of the above embodiment, as shown in fig. 5, this aspect further includes:
step 501, if the PIN code is stored in the SIM card, detecting whether the PIN code stored in the SIM card is the same as the target PIN code through the SIM card, and determining that the target PIN code is legal under the condition that the PIN code stored in the SIM card is the same as the target PIN code.
The SIM card is in a PIN locking state if a PIN locking function of the SIM card is activated by inputting the initial PIN, and the SIM card can store a modified new PIN after the initial PIN in the SIM card is modified, namely a user can set the new PIN to be stored in the SIM card. If the PIN locking function of the SIM card is not activated, the SIM card is not in a PIN locking state, and the SIM card can be used without inputting a PIN code when the SIM card is inserted.
In an optional implementation process of this embodiment, when the communication module determines that the ICCID of the SIM card is valid, the communication module reads the state of the SIM card to determine whether the SIM card is in a PIN lock state; when the SIM card is in a PIN locking state, namely, when a PIN code is stored in the SIM card, the communication module tries to solve the PIN; after the communication module sends the target PIN code to the SIM card, the SIM card can detect whether the PIN code stored in the SIM card is the same as the target PIN code or not, and under the condition that the PIN code stored in the SIM card is the same as the target PIN code, the fact that the PIN decoding is successful is determined, namely the fact that the target PIN code is legal is determined.
Step 502, if the PIN code is not stored in the SIM card, it is determined that the target PIN code is legal.
In an optional implementation process of this embodiment, when determining that the SIM card is not in the PIN locking state, that is, the SIM card does not store the PIN code, the communication module may directly use the SIM card to perform network registration, that is, may directly determine that the target PIN code is legal.
In this embodiment, the communication module detects whether the PIN code stored in the SIM card is the same as the target PIN code through the SIM card under the condition that the PIN code is stored in the SIM card, and determines that the target PIN code is legal under the condition that the PIN code stored in the SIM card is the same as the target PIN code; and determining that the target PIN code is legal under the condition that the PIN code is not stored in the SIM card; that is to say, in this embodiment, regardless of whether the PIN code is stored in the SIM card, the communication module can verify the validity of the target PIN code, and in the case that the PIN code is stored in the SIM card, by determining that the target PIN code is valid, the successful PIN decoding of the SIM card, that is, the use permission of the SIM card is possessed, so that the universality between the communication device and the SIM card is improved.
In an optional embodiment of the present application, in a case that the PIN code is not stored in the SIM card, the communication module may further write the target PIN code into the SIM card, so as to implement PIN locking on the SIM card, and prevent other communication devices from abusing the SIM card, which may result in the information of the SIM card being stolen. For example: when the PIN locking function of the SIM card is not activated, that is, the SIM card is not in the PIN locking state, and the PIN code is not stored in the SIM card, after the SIM card is inserted into the communication module a in the embodiment of the present application, the communication module a may activate the PIN locking function of the SIM card, and store the target PIN code a in the SIM card, so that when the SIM card is used in the communication module B, the SIM card is in the PIN locking state, and the target PIN code a is stored in the SIM card at this time; if the Key parameter in the communication module B is the same as the Key parameter in the communication module a, the communication module B determines that the target PIN code B is the same as the target PIN code a according to the ICCID of the SIM card and the Key parameter, and the communication module B can successfully decode the PIN of the SIM card; that is, many-to-many binding between the communication equipment and the SIM card can be realized; however, when the Key parameter in the communication module B is different from the Key parameter in the communication module a, the communication module B determines that the target PIN code B is different from the target PIN code a according to the ICCID of the SIM card and the Key parameter, and if the communication module B fails to release the PIN from the SIM card, the communication module B cannot use the SIM for network registration, thereby avoiding the situation that the information of the SIM card is stolen.
In this embodiment, the communication module writes the target PIN code into the SIM card when the PIN code is not stored in the SIM card, so that PIN locking of the SIM card can be achieved, malicious registration of the SIM card and theft of information of the SIM card are prevented, and security of the SIM card is improved.
According to the discussion of step 501, optionally, in the case that the SIM card stores a PIN code, if the communication module detects whether the PIN code stored in the SIM card is the same as the target PIN code through the SIM card, if the PIN code stored in the SIM card is not the same as the target PIN code, it indicates that the communication module fails to decode the PIN, that is, in the case that the communication module determines that the target PIN code is illegal through the SIM card, the communication module may add the ICCID of the SIM card to an invalid SIM card list pre-stored in the communication module, so as to prevent that the PIN decoding fails for multiple times, which results in permanent locking of the SIM card.
Fig. 6 is a flowchart illustrating a machine-card binding method according to another embodiment. The embodiment relates to an optional implementation process for determining a target PIN code by a communication module according to an ICCID of an SIM card and a Key parameter written into the communication module in advance. On the basis of the above embodiment, as shown in fig. 6, the step 302 includes:
step 601, if the SIM card stores the PIN code, determining whether the ICCID of the SIM card is in a pre-stored invalid SIM card list.
Step 602, if the ICCID of the SIM card is not in the pre-stored invalid SIM card name list, determining the target PIN code according to the ICCID of the SIM card and the Key parameter.
In an optional implementation process of this embodiment, when the ICCID of the SIM card is not in the pre-stored invalid SIM card list, indicating that the communication module has not attempted to decode the PIN for the SIM card, the target PIN code may be determined according to the ICCID of the SIM card and the Key parameter, and the PIN is attempted to be decoded; optionally, when the ICCID of the SIM card is in a pre-stored invalid SIM card list, the SIM card may be reported to the communication device as an invalid SIM card.
In this embodiment, when determining that the PIN code is stored in the SIM card, the communication module determines whether the ICCID of the SIM card is in a pre-stored invalid SIM card list, and when the ICCID of the SIM card is not in the pre-stored invalid SIM card list, determines the target PIN code according to the ICCID of the SIM card and the Key parameter; that is to say, in this embodiment, before determining the target PIN code, it is determined whether the SIM card is already in the pre-stored invalid SIM card list, and when the SIM card is not in the pre-stored invalid SIM card list, the target PIN code is determined according to the ICCID of the SIM card and the Key parameter, and the PIN is attempted to be resolved, so that a phenomenon that the SIM card is permanently locked due to the fact that the PIN is continuously resolved when the ICCID of the SIM card is in the pre-stored invalid SIM card list is avoided, useless operation of the communication module for performing target PIN code calculation is also reduced, and the working efficiency of the communication module is improved.
In an optional embodiment of the present application, the communication module may receive the SIM card number segment and the Key parameter input by the user through a preset machine-card binding function interface, and write the received SIM card number segment and the received Key parameter into the communication module; the SIM card number segment and the Key parameter can be set and changed more conveniently by developers, and the universality and the flexibility of the communication module are greatly improved.
It should be understood that although the various steps in the flow charts of fig. 3-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 7, there is provided a machine-card binding apparatus including: an obtaining module 701, a determining module 702, and a sending module 703, wherein:
an obtaining module 701, configured to read the ICCID of the SIM card in the communication module, and determine whether the ICCID is legal.
A determining module 702, configured to determine, when the ICCID of the SIM card is legal, a target PIN code according to the ICCID of the SIM card and the Key parameter written in the communication module in advance.
A sending module 703, configured to send the target PIN code to the SIM card, and initiate a network registration procedure when it is determined that the target PIN code is legal by the SIM card.
In one embodiment, the obtaining module 701 is specifically configured to detect whether the ICCID is located in a preset SIM card number segment; and determining that the ICCID is legal under the condition that the ICCID is in the preset SIM card number segment.
In one embodiment, the sending module 703 is specifically configured to, under the condition that the PIN code is stored in the SIM card, detect, by the SIM card, whether the PIN code stored in the SIM card is the same as the target PIN code, and under the condition that the PIN code stored in the SIM card is the same as the target PIN code, determine that the target PIN code is legal; and determining that the target PIN code is legal under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the apparatus further comprises a write module; the writing module is used for writing the target PIN code into the SIM card under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the determining module 702 is specifically configured to, when the PIN code is stored in the SIM card, determine whether the ICCID of the SIM card is in a pre-stored invalid SIM card list; and when the ICCID of the SIM card is not in a pre-stored invalid SIM card list, determining the target PIN code according to the ICCID of the SIM card and the Key parameter.
In one embodiment, the apparatus further comprises an adding module; the adding module is used for adding the ICCID of the SIM card to the invalid SIM card list under the condition that the target PIN code is determined to be illegal through the SIM card.
In one embodiment, the apparatus further comprises a receiving module; the receiving module is used for receiving the SIM card number segment and the Key parameter input by a user through a preset machine-card binding function interface and writing the received SIM card number segment and the received Key parameter into the communication module.
For specific limitations of the machine-card binding apparatus, reference may be made to the above limitations of the machine-card binding method, which are not described herein again. The modules in the card binding apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a communication module is provided, the internal structure of which can be as shown in fig. 8. The communication module comprises a processor, a memory and a communication interface which are connected through a system bus. Wherein, the processor of the communication module is used for providing calculation and control capability. The memory of the communication module comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the communication module is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a machine-card binding method.
Those skilled in the art will appreciate that the structure shown in fig. 8 is a block diagram of only a portion of the structure associated with the present application, and does not constitute a limitation on the communication modules to which the present application applies, and that a particular communication module may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a communication module is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
reading the ICCID of the SIM card in the communication module, and determining whether the ICCID is legal or not;
under the condition that the ICCID of the SIM card is legal, determining a target PIN code according to the ICCID of the SIM card and a Key parameter which is written into the communication module in advance;
and sending the target PIN code to the SIM card, and initiating a network registration process under the condition that the target PIN code is determined to be legal by the SIM card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting whether the ICCID is in a preset SIM card number section; and determining that the ICCID is legal under the condition that the ICCID is in the preset SIM card number segment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: under the condition that the target PIN code is determined to be legal through the SIM card, before a network registration process is initiated, under the condition that the PIN code is stored in the SIM card, whether the PIN code stored in the SIM card is the same as the target PIN code or not is detected through the SIM card, and under the condition that the PIN code stored in the SIM card is the same as the target PIN code, the target PIN code is determined to be legal; and determining that the target PIN code is legal under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and writing the target PIN code into the SIM card under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: under the condition that the PIN code is stored in the SIM card, judging whether the ICCID of the SIM card is in a pre-stored invalid SIM card list or not; and when the ICCID of the SIM card is not in a pre-stored invalid SIM card list, determining the target PIN code according to the ICCID of the SIM card and the Key parameter.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and in the case that the target PIN code is determined to be illegal through the SIM card, adding the ICCID of the SIM card into the invalid SIM card list.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and receiving the SIM card number segment and the Key parameter input by a user through a preset machine-card binding function interface, and writing the received SIM card number segment and the received Key parameter into the communication module.
In one embodiment, a communication device is provided, the communication device includes the above communication module, and may further include, for example, a power supply, a core processor, and other functional modules that implement the communication device, and the communication device may implement the above machine-card binding method.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
reading the ICCID of the SIM card in the communication module, and determining whether the ICCID is legal or not;
under the condition that the ICCID of the SIM card is legal, determining a target PIN code according to the ICCID of the SIM card and a Key parameter which is written into the communication module in advance;
and sending the target PIN code to the SIM card, and initiating a network registration process under the condition that the target PIN code is determined to be legal by the SIM card.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting whether the ICCID is in a preset SIM card number section; and determining that the ICCID is legal under the condition that the ICCID is in the preset SIM card number segment.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the target PIN code is determined to be legal through the SIM card, before a network registration process is initiated, under the condition that the PIN code is stored in the SIM card, whether the PIN code stored in the SIM card is the same as the target PIN code or not is detected through the SIM card, and under the condition that the PIN code stored in the SIM card is the same as the target PIN code, the target PIN code is determined to be legal; and determining that the target PIN code is legal under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the computer program when executed by the processor further performs the steps of: and writing the target PIN code into the SIM card under the condition that the PIN code is not stored in the SIM card.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the PIN code is stored in the SIM card, judging whether the ICCID of the SIM card is in a pre-stored invalid SIM card list or not; and when the ICCID of the SIM card is not in a pre-stored invalid SIM card list, determining the target PIN code according to the ICCID of the SIM card and the Key parameter.
In one embodiment, the computer program when executed by the processor further performs the steps of: and in the case that the target PIN code is determined to be illegal through the SIM card, adding the ICCID of the SIM card into the invalid SIM card list.
In one embodiment, the computer program when executed by the processor further performs the steps of: and receiving the SIM card number segment and the Key parameter input by a user through a preset machine-card binding function interface, and writing the received SIM card number segment and the received Key parameter into the communication module.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A machine-card binding method is used in a communication module, and the method comprises the following steps:
reading the ICCID of the SIM card in the communication module, and determining whether the ICCID is legal or not;
if the ICCID of the SIM card is legal, determining a target PIN code according to the ICCID of the SIM card and a Key parameter which is written into the communication module in advance;
and sending the target PIN code to the SIM card, and initiating a network registration process under the condition that the target PIN code is determined to be legal by the SIM card.
2. The method of claim 1, wherein said determining whether said ICCID is legitimate comprises:
detecting whether the ICCID is in a preset SIM card number section;
and if the ICCID is located in the preset SIM card number segment, determining that the ICCID is legal.
3. The method of claim 1, wherein before initiating a network registration procedure if the target PIN is determined to be valid by the SIM card, the method further comprises:
if the PIN code is stored in the SIM card, detecting whether the PIN code stored in the SIM card is the same as the target PIN code through the SIM card, and determining that the target PIN code is legal under the condition that the PIN code stored in the SIM card is the same as the target PIN code;
and if the PIN code is not stored in the SIM card, determining that the target PIN code is legal.
4. The method of claim 3, further comprising:
and if the SIM card does not store the PIN code, writing the target PIN code into the SIM card.
5. The method of claim 1, wherein the determining a destination PIN code according to the ICCID of the SIM card and the Key parameter pre-written into the communication module comprises:
if the PIN code is stored in the SIM card, judging whether the ICCID of the SIM card is in a pre-stored invalid SIM card list or not;
and if the ICCID of the SIM card is not in a pre-stored invalid SIM card name list, determining the target PIN code according to the ICCID of the SIM card and the Key parameter.
6. The method of claim 5, further comprising:
and if the target PIN code is determined to be illegal through the SIM card, adding the ICCID of the SIM card into the invalid SIM card list.
7. The method according to any one of claims 2 to 6, further comprising:
and receiving the SIM card number segment and the Key parameter input by a user through a preset machine-card binding function interface, and writing the received SIM card number segment and the received Key parameter into the communication module.
8. A communication module comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
9. A communication device, characterized in that it comprises a communication module as claimed in claim 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110215931.3A 2021-02-26 2021-02-26 Machine-card binding method and device, communication module and storage medium Active CN113038451B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110215931.3A CN113038451B (en) 2021-02-26 2021-02-26 Machine-card binding method and device, communication module and storage medium
PCT/CN2021/115884 WO2022179076A1 (en) 2021-02-26 2021-09-01 Machine-card binding method, communication module, communication device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110215931.3A CN113038451B (en) 2021-02-26 2021-02-26 Machine-card binding method and device, communication module and storage medium

Publications (2)

Publication Number Publication Date
CN113038451A true CN113038451A (en) 2021-06-25
CN113038451B CN113038451B (en) 2023-04-07

Family

ID=76462089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110215931.3A Active CN113038451B (en) 2021-02-26 2021-02-26 Machine-card binding method and device, communication module and storage medium

Country Status (2)

Country Link
CN (1) CN113038451B (en)
WO (1) WO2022179076A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374942A (en) * 2021-12-29 2022-04-19 天翼物联科技有限公司 Business processing method, system, device and storage medium based on machine-card binding
CN114492682A (en) * 2022-01-11 2022-05-13 无锡宇宁智能科技有限公司 SIM card on-line card issuing circuit, method and device
WO2022179076A1 (en) * 2021-02-26 2022-09-01 西安广和通无线软件有限公司 Machine-card binding method, communication module, communication device, and storage medium
WO2023284633A1 (en) * 2021-07-15 2023-01-19 华为技术有限公司 Personal identification number (pin) code processing method and apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744300A (en) * 2023-08-08 2023-09-12 科奈物联科技(北京)有限公司 Anti-theft identity recognition method and device based on verification cellular communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568098A (en) * 2009-05-26 2009-10-28 大唐微电子技术有限公司 Terminal for registering and opening of user recognition module and/or data writing
CN101621790A (en) * 2009-07-08 2010-01-06 中兴通讯股份有限公司 Lock-card locking method and device for wireless communication
CN101707645A (en) * 2009-10-22 2010-05-12 中兴通讯股份有限公司 The method for batch interlocking of terminals and cards and terminal thereof
CN106686573A (en) * 2016-12-14 2017-05-17 深圳普创天信科技发展有限公司 Method of interlocking SIM card with device
WO2019109640A1 (en) * 2017-12-08 2019-06-13 京信通信系统(中国)有限公司 Method and device for locking sim card

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150105058A1 (en) * 2013-10-15 2015-04-16 Acer Incorporated Method of sim/usim personalizing user equipment
CN113038451B (en) * 2021-02-26 2023-04-07 西安广和通无线软件有限公司 Machine-card binding method and device, communication module and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568098A (en) * 2009-05-26 2009-10-28 大唐微电子技术有限公司 Terminal for registering and opening of user recognition module and/or data writing
CN101621790A (en) * 2009-07-08 2010-01-06 中兴通讯股份有限公司 Lock-card locking method and device for wireless communication
CN101707645A (en) * 2009-10-22 2010-05-12 中兴通讯股份有限公司 The method for batch interlocking of terminals and cards and terminal thereof
CN106686573A (en) * 2016-12-14 2017-05-17 深圳普创天信科技发展有限公司 Method of interlocking SIM card with device
WO2019109640A1 (en) * 2017-12-08 2019-06-13 京信通信系统(中国)有限公司 Method and device for locking sim card

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179076A1 (en) * 2021-02-26 2022-09-01 西安广和通无线软件有限公司 Machine-card binding method, communication module, communication device, and storage medium
WO2023284633A1 (en) * 2021-07-15 2023-01-19 华为技术有限公司 Personal identification number (pin) code processing method and apparatus
CN114374942A (en) * 2021-12-29 2022-04-19 天翼物联科技有限公司 Business processing method, system, device and storage medium based on machine-card binding
CN114492682A (en) * 2022-01-11 2022-05-13 无锡宇宁智能科技有限公司 SIM card on-line card issuing circuit, method and device
CN114492682B (en) * 2022-01-11 2023-03-10 无锡宇宁智能科技有限公司 SIM card on-line card issuing circuit, method and device

Also Published As

Publication number Publication date
CN113038451B (en) 2023-04-07
WO2022179076A1 (en) 2022-09-01

Similar Documents

Publication Publication Date Title
CN113038451B (en) Machine-card binding method and device, communication module and storage medium
US8204475B2 (en) Method and apparatus for preventing unauthorized use of computing devices
KR101187457B1 (en) Method for providing smart cardsim security by checking a temporary subscriber identifiertmsi
KR100664110B1 (en) Usage restriction setting method for mobile communication device
CN108093392B (en) Method for unlocking SIM card, mobile terminal and storage medium
US20150288685A1 (en) Method, system and terminal for encrypting/decrypting application program on communication terminal
KR20030076625A (en) Method for enabling pki functions in a smart card
JP4455374B2 (en) Mobile communication terminal encryption method
KR20190002613A (en) A method for managing the status of connected devices
CN104811926A (en) Mobile terminal network-locking and card-locking methods, devices, mobile terminal and SIM card
CN109714769B (en) Information binding method, device, equipment and storage medium
KR20140045571A (en) Binding a removable module to an access terminal
US20150105058A1 (en) Method of sim/usim personalizing user equipment
CN105636043A (en) ESIM (Embedded SIM) card authentication method, eSIM card authentication device and terminal
US9977907B2 (en) Encryption processing method and device for application, and terminal
CN111093190B (en) Method, device, system, electronic equipment and storage medium for writing key data
US10841797B2 (en) Method for generating and injecting SIMLOCK password and device for the same
CN107105082B (en) Method for unlocking network of terminal, method and device for starting terminal
KR101363519B1 (en) Communication terminal and method for protecting information thereof
CN106162630B (en) Encryption protection method for terminal equipment
CN104134025A (en) Mobile terminal locking method and device based on SIM cards and mobile terminal
JP2012074975A (en) Subscriber identity module, portable terminal, information processing method and program
CN108076458B (en) Method and device for binding TF password card and mobile terminal
CN117834312A (en) Network access method, network access device, and computer-readable storage medium
CN116744300A (en) Anti-theft identity recognition method and device based on verification cellular communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant