CN117858146A - SIM card mirror image method and device thereof - Google Patents

SIM card mirror image method and device thereof Download PDF

Info

Publication number
CN117858146A
CN117858146A CN202311817613.XA CN202311817613A CN117858146A CN 117858146 A CN117858146 A CN 117858146A CN 202311817613 A CN202311817613 A CN 202311817613A CN 117858146 A CN117858146 A CN 117858146A
Authority
CN
China
Prior art keywords
file
sim card
card
sim
class
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.)
Pending
Application number
CN202311817613.XA
Other languages
Chinese (zh)
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.)
Shenzhen Shenghui Technology Co ltd
Original Assignee
Shenzhen Shenghui Technology Co ltd
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 Shenzhen Shenghui Technology Co ltd filed Critical Shenzhen Shenghui Technology Co ltd
Priority to CN202311817613.XA priority Critical patent/CN117858146A/en
Publication of CN117858146A publication Critical patent/CN117858146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention relates to a SIM card mirror image method and a device thereof, wherein the method comprises the following steps: if the insertion of the SIM card into the card slot is detected, executing an SIM card activation flow; judging the type of the SIM card inserted into the card slot, and storing the type of the SIM card into an image file; selecting and acquiring a SIM card file to be copied; saving the SIM card file to the mirror image file. The SIM card mirror image method provided by the invention realizes intelligent identification of the SIM card and generates the mirror image SIM card, thereby facilitating virtual test and function verification of the SIM card.

Description

SIM card mirror image method and device thereof
Technical Field
The invention belongs to the field of cloud terminal equipment management, and particularly relates to a SIM card mirroring method and a device thereof.
Background
The terminal devices are various, such as mobile phones, etc., factories or testers need to set or manage a plurality of terminal devices frequently, the management operation is complicated, the setting and management of each device need to be carried out manually, and errors are unavoidable, wherein the management of the SIM card often involves the manufacture of a virtual SIM card, and the correctness of configuration is verified through the operation of the virtual SIM card.
Disclosure of Invention
The invention provides a SIM card mirror image method and a device thereof, which aim to at least solve one of the technical problems existing in the prior art.
The technical scheme of the invention relates to a SIM card mirror image method and a device thereof, wherein the SIM card mirror image method comprises the following steps:
s100, if the insertion of the SIM card into the card slot is detected, executing an SIM card activation flow;
s200, judging the type of the SIM card inserted into the card slot, and storing the type of the SIM card into the mirror image file;
s300, selecting and acquiring a SIM card file to be copied;
s400, saving the SIM card file into the mirror image file, and copying the mirror image file into the SIM card simulator.
Further, in the step S100, the method includes:
s110, setting the level of the RST pin of the SIM card to be low level;
s120, providing a power supply of a VCC pin of the SIM card, and identifying the type of the SIM card by judging whether an ATR response is returned;
s130, setting an input/output port connected with an IO port of the SIM card as a receiving state;
s140, providing a clock signal of a CLK pin of the SIM card;
s150, after waiting 400 complete clock signal periods, setting the level of the RST pin of the SIM card to be high level;
s160, waiting for receiving the ATR response of the SIM card.
Further, in the step S140,
the frequency of the clock signal does not exceed 4MHZ.
Further, in the step S200,
the SIM card type comprises a class A card, a class B card and a class C card, if the SIM card type is the class A card, the power supply for providing the VCC pin of the SIM card is 5V, if the SIM card type is the class B card, the power supply for providing the VCC pin of the SIM card is 3.3V, and if the SIM card type is the class C card, the power supply for providing the VCC pin of the SIM card is 1.8V.
Further, the step S300 includes:
s310, sending an APDU signal to the SIM card to inquire the SIM card file;
s320, receiving description information of the queried file returned by the SIM card;
s330, storing the file ID and the description information into the image file.
Further, in the step S310, the APDU signal includes at least the following fields:
class name (CLA), class name (CLA) 0x00 if SIM card class is UICC, class name (CLA) 0xA0 if SIM card class is GSM;
an instruction code (INS) that is a query instruction, the APDU signal being 0xA4;
a parameter set comprising a first parameter (P1) and a second parameter (P2);
a data field length (LcField) for defining a length of a data field of the APDU signal;
a data field (DataField) for loading a file ID of a file to be selected, the file ID corresponding to a file name preset by the SIM card;
a response field length (LeField) for defining the length of the response field of the APDU signal.
Further, the preset file names of the SIM card include an EFiccid file, an EFlp file, an EFimsi file, an EFad file, an EFplmnsel file, an efhplc mn file, an efammax file, an EFsst file, an EFacm file, an EFfdn file, an EFgdi1 file, an EFgdi2 file, an EFmsisdn file, an EFsmsp file, an EFsmss file, an EFcbmi file, an EFsdn file, an EFext2 file, an EFacc file, an EFfplmn file, and an EFloci file.
Further, the file IDs corresponding to the EFiccid file, the EFlp file, the EFimsi file, the EFad file, the EFplmnsel file, the efhplc mn file, the efammax file, the EFsst file, the EFacm file, the EFfdn file, the EFgdi1 file, the EFgdi2 file, the EFmsisdn file, the EFsmsp file, the EFsmss file, the EFcbmi file, the EFsdn file, the EFext2 file, the EFacc file, the EFfplmn file, and the EFloci file are 2FE2, 6F05, 6F07, 6FAD, 6F30, 6F31, 6F37, 6F38, 6F39, 6F3B, 6F3E, 6F3F, 6F40, 6F42, 6F 43F 45, 6F7B, 6F 46E 7B, 6F7B, 6F 46F 7.
Further, the invention also discloses a SIM card mirror image device, which is characterized by comprising:
the user identity identification card management device is provided with a plurality of card slots, and the card slots are used for placing SIM cards;
the processor is electrically connected with the user identity identification card management equipment;
the memory is electrically connected with the processor;
and the SIM card simulator is electrically connected with the memory.
Further, the invention also discloses a computer readable storage medium, on which program instructions are stored, which when executed by a processor implement a SIM card mirroring method.
According to some embodiments of the invention, the beneficial effects of the invention are as follows:
the SIM card mirror image method provided by the invention realizes intelligent identification of the SIM card and generates the mirror image SIM card, thereby facilitating virtual test and function verification of the SIM card.
Further, additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flow chart of a SIM card mirroring method.
Fig. 2 is a flow chart of a SIM card activation flow in a SIM card mirroring method.
Fig. 3 is a flowchart of selecting and acquiring a SIM card file to be copied in the SIM card mirroring method.
Fig. 4 is a schematic diagram of a SIM card mirroring device.
Fig. 5 is a schematic diagram of a SIM card file organization.
Fig. 6 is a schematic diagram of a SIM card remote authentication device.
In the above-mentioned figure, 100, user identification card management equipment; 110. a clamping groove; 200. a processor; 300. a memory.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The conception, specific structure, and technical effects produced by the present invention will be clearly and completely described below with reference to the embodiments and the drawings to fully understand the objects, aspects, and effects of the present invention.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly or indirectly fixed or connected to the other feature. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any combination of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could also be termed a second element, and, similarly, a second element could also be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. Further, as used herein, the industry term "pose" refers to the position and pose of an element relative to a spatial coordinate system.
Referring to fig. 1 to 5, an embodiment of the present invention provides a SIM card mirroring method and an apparatus thereof, and referring to fig. 1, the SIM card mirroring method includes the following steps:
s100, if the insertion of the SIM card into the card slot 110 is detected, executing an SIM card activation flow;
s200, judging the type of the SIM card inserted into the card slot 110, and storing the type of the SIM card into an image file;
s300, selecting and acquiring a SIM card file to be copied;
s400, saving the SIM card file into the mirror image file, and copying the mirror image file into the SIM card simulator 400.
According to some embodiments of the invention, the beneficial effects of the invention are as follows:
the SIM card mirror image method provided by the invention realizes intelligent identification of the SIM card and generates the mirror image SIM card, thereby facilitating virtual test and function verification of the SIM card.
Further, referring to fig. 2, in the step S100, it includes:
s110, setting the level of the RST pin of the SIM card to be low level;
s120, providing a power supply of a VCC pin of the SIM card, and identifying the type of the SIM card by judging whether an ATR response is returned;
s130, setting an input/output port connected with an IO port of the SIM card as a receiving state;
s140, providing a clock signal of a CLK pin of the SIM card;
s150, after waiting 400 complete clock signal periods, setting the level of the RST pin of the SIM card to be high level;
s160, waiting for receiving the ATR response of the SIM card.
Specifically, ATR answer is a reset answer. The ATR answer is made up of a series of bytes returned by the SIM card after the activation procedure has been performed. When the SIM card is inserted into the card slot 110 of the SIM card managing apparatus 100, the SIM card managing apparatus 100 starts the SIM card activation process.
In some embodiments, the ATR byte sequence consists of an initial character TS, a format character T0, an interface character, a history character, and a check character, see table 1:
table 1:
the ATR byte sequence is no more than 32 at maximum. The initial character TS defines the coding protocol for the data bytes in all subsequent characters. Only two values are possible, 0x3F and 0x3B, respectively. 0x3F indicates that reverse convention is used, i.e. IO pin on SIM card, high level indicates digital 0, low level indicates digital 1;0x3B indicates that the forward convention is used, i.e., a high level indicates a digital 1 and a low level indicates a digital 0.
Referring to table 2, the format character T0 is composed of two parts:
table 2:
B8 B7 B6 B5 B4 B3 B2 B1
MSB * * * * * * LSB
bits B8 through B5 each equal 1 indicate the presence of a subsequent interface character, e.g., B8 being 1 for the presence of a TD (i) character and B7 being 1 for the presence of a TC (i) character.
Bits B4 through B1 indicate the number of history bytes, ranging from 0 to 15.
Interface bytes TA (1) TB (1) TC (1) TA (2) TB (2) are global. The interface byte TC (2) is special, which is defined for t=0.
The history bytes T1 to Tk indicate general information such as a card manufacturer, a chip inserted into the card, a mask ROM of the chip, a life state of the card, and the like.
The value of the check byte Tck is the exclusive or value of all bytes from T0 to Tck.
After obtaining ATR information returned by the SIM card, the subscriber identity module card management apparatus 100 saves the ATR information in an image file.
Further, referring to fig. 2, in the step S140,
the frequency of the clock signal does not exceed 4MHZ.
Further, referring to fig. 1, in the step S200,
the SIM card type comprises a class A card, a class B card and a class C card, if the SIM card type is the class A card, the power supply for providing the VCC pin of the SIM card is 5V, if the SIM card type is the class B card, the power supply for providing the VCC pin of the SIM card is 3.3V, and if the SIM card type is the class C card, the power supply for providing the VCC pin of the SIM card is 1.8V.
Specifically, the subscriber identity module card managing apparatus 100 supports class B cards and class C cards. When the card is powered, the power supply voltage is supplied from low to high, namely, 1.8V power is supplied firstly, and if the card does not respond, 3.3V power is supplied. When the subscriber identity module card management apparatus 100 provides 1.8V power to the SIM card, after the activation process is performed, an ATR is returned, which indicates that the SIM card supports 1.8V voltage operation, i.e., belongs to the class C card. When the subscriber identity module card management device 100 provides 3.3V power to the SIM card, after the activation process is performed, an ATR returns, which indicates that the SIM card supports 3.3V voltage operation, i.e., belongs to the class B card; after the card category is obtained, the information is stored in the image file.
Further, referring to fig. 2 and 3, the step S300 includes:
s310, sending an APDU signal to the SIM card to inquire the SIM card file;
s320, receiving description information of the queried file returned by the SIM card;
s330, storing the file ID and the description information into the image file.
Further, referring to fig. 3, in the step S310, the APDU signal includes at least the following fields:
class name (CLA), class name (CLA) 0x00 if SIM card class is UICC, class name (CLA) 0xA0 if SIM card class is GSM;
an instruction code (INS) that is a query instruction, the APDU signal being 0xA4;
a parameter set comprising a first parameter (P1) and a second parameter (P2);
a data field length (LcField) for defining a length of a data field of the APDU signal;
a data field (DataField) for loading a file ID of a file to be selected, the file ID corresponding to a file name preset by the SIM card;
a response field length (LeField) for defining the length of the response field of the APDU signal.
In a specific embodiment, the APDU message of the SELECT command:
00A4040000(CLA,INS,P1,P2,LcField,DataField,LeField),
wherein: cla=0x00, indicating the instruction category of the selection field; ins=0xa 4, representing a select command; p1=04, representing selection of a particular file in the card; p2=00, representing the root directory of the selected file; lc=0000, indicating that the length of the data segment is 0; dataField = null, indicating that there is no data to send; lcfield=00, indicating that the number of data bytes to be answered in the hope of a response is 0.
Further, referring to fig. 3, the preset file names of the SIM card include an EFiccid file, an EFlp file, an EFimsi file, an EFad file, an EFplmnsel file, an efhplc mn file, an efammax file, an EFsst file, an EFacm file, an EFfdn file, an EFgdi1 file, an EFgdi2 file, an EFmsisdn file, an EFsmsp file, an EFsmss file, an EFcbmi file, an EFsdn file, an EFext2 file, an EFacc file, an EFfplmn file, and an EFloci file.
In some particular embodiments, referring to fig. 5, within the SIM card, a plurality of files are managed, organized in a hierarchical structure,
wherein, MF is the main file, DF is the special file, EF is the basic file. This structure is similar to a directory tree in a general operating system.
In some specific embodiments, other DF files or EF files may be included under the MF and DF files, but the EF files contain only content.
All files consist of a header and an optional body, the header information being related to the structure, which belongs to the file, which information is fixed during the management phase. The file body portion contains file data.
The basic files EF are divided into 3 types: transparent file EF, linear file EF and cyclic file EF.
Further, referring to fig. 3, the file IDs corresponding to the EFiccid file, the EFlp file, the EFimsi file, the EFad file, the EFplmnsel file, the efhfplmn file, the efammax file, the EFsst file, the EFacm file, the EFfdn file, the EFgdi1 file, the EFgdi2 file, the EFmsisdn file, the EFsmsp file, the EFsmss file, the EFcbmi file, the EFsdn file, the EFext2 file, the EFacc file, the EFfplmn file, and the EFloci file are 2FE2, 6F05, 6F07, 6FAD, 6F30, 6F31, 6F37, 6F38, 6F39, 6F3B, 6F3E, 6F3F, 6F 40F 42, 6F 4F 7, 6F 46B, 6F 7F 46F 7, 6F7B, 6F7, 6F7, and the like, respectively.
Specifically, referring to table 3, the image file must contain some files necessary in the use process of the cloud terminal:
table 3:
in some specific embodiments, in step S330,
referring to Table 4, the SIM card image file is largely organized and stored in TLV form, where T is a short of Tag, i.e., a Tag; l is the shorthand of Length, i.e., length; v is a shorthand for Value, i.e., value. In an image file, various files are designated by a plurality of marks:
table 4:
wherein the marks 0x71 and 0x73 represent length items with a data width of 2 bytes, stored in big-end mode; the remaining marks represent length items with a data width of 1 byte.
Further, referring to fig. 4, the present invention also discloses a SIM card mirror apparatus, which is characterized by comprising:
a subscriber identity card management apparatus 100, wherein the subscriber identity card management apparatus 100 is provided with a plurality of card slots 110, and the card slots 110 are used for placing SIM cards;
the processor 200 is electrically connected with the user identity identification card management device 100;
a memory 300, wherein the memory 300 is electrically connected with the processor 200;
and a SIM card simulator 400, wherein the SIM card simulator 400 is electrically connected with the memory 300.
Further, the present invention also discloses a computer readable storage medium having stored thereon program instructions which when executed by the processor 200 implement a SIM card mirroring method.
On the other hand, referring to fig. 6, after the mirror image SIM is generated, the mirror image SIM card and the physical SIM card need to be authenticated for use, so that the embodiment of the invention also provides a SIM card remote authentication method and a device thereof, the SIM card remote authentication method operates on a SIM card remote authentication device, the SIM card remote authentication device comprises an identity card management device, a server and a cloud terminal, which are sequentially connected, the identity card management device is at least one, the identity card management device is provided with a plurality of SIM cards, and the cloud terminal is electrically connected with a base station, and the SIM card remote authentication method is characterized by comprising the following steps:
s10, the cloud terminal receives a first authentication request signal sent from a base station operator access network, wherein the first authentication request signal comprises a random number generated by a base station;
s20, the cloud terminal judges whether the SIM card requesting authentication in the first authentication request signal is a physical SIM card or a mirror image SIM card, if the SIM card requesting authentication is the mirror image SIM card currently used by the cloud terminal, the cloud terminal combines mirror image SIM card information and the first authentication request signal into a second authentication request signal, and forwards the second authentication request signal to the server;
s30, after receiving the second authentication request signal, the server extracts mirror image SIM card information, and positions the corresponding identity card management equipment and a physical SIM card based on the SIM card information reported when the identity card management equipment logs in;
s40, the server combines the Token code generated randomly with the second authentication request signal into a third authentication request signal, and forwards the third authentication request signal to the corresponding identification card management equipment;
s50, after receiving the third authentication request signal, the identification card management device extracts an authentication data packet and sends the authentication data packet to a corresponding physical SIM card.
Firstly, an operator access network generates a random number and sends the random number to cloud terminal equipment through a wireless signal; and after receiving the authentication request of the access network, the cloud terminal directly sends the authentication request to the physical SIM card for processing if the physical SIM card is currently used. If a SIM mirror card is currently in use, the authentication package is forwarded to the server. When the cloud terminal equipment sends an authentication packet to the server, the IMSI number of the currently used SIM mirror image card and the authentication packet are combined together according to defined protocol rules and sent to the server. After receiving the data packet containing the authentication packet, the server takes out the IMSI from the data, finds the identity card management device corresponding to the current IMSI according to the SIM card information reported by the identity card management device when logging in, and forwards the authentication packet to the identity card management device. In particular, when the server issues an authentication packet to the identification card management device, a random Token is generated at the same time, the Token is packaged into a data packet by the authentication packet sent by the cloud terminal and the IMSI of the SIM card. The data packet head comprises the information such as the whole packet length, the serial number and the like; the data packet tail comprises the verification of the whole data packet and is used for verifying the integrity of the packet by the receiving party. The identity identification card management device stores the position information of all the SIM cards managed by the identity identification card management device, and establishes the corresponding relation between the IMSI information of the SIM cards and the SIM card information. When the identification card management equipment receives the authentication packet forwarded by the server, the IMSI number is taken out from the data packet, the SIM card position is found according to the number, and the SIM card position is forwarded to the physical SIM card. Meanwhile, the identification card management equipment also stores Token information in the received data packet temporarily, and establishes a corresponding relation between the Token and the position of the SIM card.
Further, the SIM card remote authentication method further comprises the following steps:
s60, after receiving the authentication data packet, the physical SIM card generates a first authentication feedback signal based on a preset IMSI code, a secret key, a random number generated by an operator access network and a preset encryption algorithm, and sends the first authentication feedback signal to the identity card management equipment;
s70, after receiving the first authentication feedback signal, the identity identification card management equipment generates a second authentication feedback signal based on the current Token code and sends the second authentication feedback signal to the server;
s80, after receiving the second authentication feedback signal, the server forwards the second authentication signal to a cloud terminal requesting authentication;
and S90, after receiving the second authentication feedback signal, the cloud terminal checks the second authentication feedback signal and generates a third authentication feedback signal of an operator access network format, and sends the third authentication feedback signal to an applied base station.
The SIM card remote authentication method provided by the invention realizes the communication between the physical SIM card and the mirror image SIM card and the base station, and the communication between the mirror image SIM card and the physical SIM card.
Specifically, when the terminal device is accessing the operator network, or when the operator access network deems necessary, the access network issues authentication request information to the terminal. The terminal equipment needs to respond to the authentication request, otherwise, the access network considers that the terminal equipment has no legal authority, thereby rejecting the service. For the cloud terminal device, since the mirror SIM card is used, the authentication process is different from that of a general physical SIM card.
The cloud terminal equipment is connected to the server through the Internet, and the server distributes a SIM mirror image card for the cloud terminal. Likewise, the identification card managing device is also connected to the server through the Internet network. The identification card management device is responsible for generating mirrored SIM cards and managing all SIM cards inserted onto the device. When the identification card management device is connected to the server, the managed SIM card information is reported, and the generated mirror image SIM card is reported.
Further, in the step S20, the method further includes:
and if the SIM card requesting authentication is a physical SIM card, the cloud terminal forwards the first authentication request signal to the physical SIM card requested to be authenticated through the server and the identification card management equipment.
Further, in the step S20, the mirrored SIM card information includes an IMSI number of the physical SIM card corresponding to the mirrored SIM card for which authentication is requested.
Further, in the step S40, the third authentication request signal includes:
the data head comprises the whole packet length and the serial number of a third authentication request signal, the data tail comprises a check code for data check of the identity card management equipment, and the Token code is a code randomly generated by the server.
Further, the step S50 includes:
s51, the identification card management equipment temporarily stores Token codes in the third authentication signals, and establishes a corresponding relation between the Token codes and the positions of the SIM cards.
Further, in the step S90, it further includes checking whether the Token code of the second authentication feedback signal is consistent with the Token code of the third authentication request signal.
Further, if the Token code of the second authentication feedback signal is consistent with the Token code of the third authentication request signal, transmitting the third authentication feedback signal to the base station;
if the Token code of the second authentication feedback signal is inconsistent with the Token code of the third authentication request signal, the step S10 is skipped.
The invention also discloses a SIM card remote authentication device, which is characterized in that the SIM card remote authentication device comprises:
the system comprises an identification card management device, at least one identification card management device and a plurality of physical SIM cards, wherein the identification card management device is provided with a plurality of physical SIM cards;
the identity identification card management equipment is electrically connected with the server;
the cloud terminal is used for communicating with the base station and is electrically connected with the server and the base station respectively.
1) In some specific embodiments, the identification card management device is connected to the physical SIM card through an ISO7816 interface. And after receiving the authentication request, the SIM card generates an encryption sequence by using information such as IMSI, key and the like which are written by an operator when issuing the card and stored in the SIM card, and a random number which is generated by an access network of the operator when authenticating and finally transmitted to the SIM card. After the sequence is generated, the sequence is returned to the identification card management device through the ISO7816 interface and finally transmitted to the access network. And the identification card management equipment receives the encryption sequence returned by the SIM card and returns the encryption sequence to the server through the network. In particular, before the identification card management device returns the encryption sequence to the server, the Token information corresponding to the current SIM card position is found out through the comparison table between the Token and the SIM card position stored before, and the Token information and the encryption sequence are packaged together and returned to the server. After receiving the data packet returned by the identification card management device, the server takes out Token information carried in the data packet, finds out the cloud terminal which previously requests the authentication packet according to the Token information, and returns the authentication result to the cloud terminal. And after receiving the authentication result, the cloud terminal returns the authentication result to the access network of the operator. The access network compares the result with an internally generated authentication result, if the result is consistent, the authentication is passed, otherwise, the service is refused.
In some specific embodiments, the cloud terminal device can use a mirrored SIM card in addition to the functionality of a generic terminal device. A SIM mirror card is a virtual card that is a collection of physical SIM card content data. The SIM mirror image card is responsible for generation by the subscriber identity module card management device and uploaded to the server background. The use of the mirror image SIM card in the cloud terminal 300 is realized by a SIM card simulator, which realizes the analysis and operation work of the mirror image SIM card. For cloud terminal devices, the mirror SIM card is not different from the general physical SIM card.
In contrast, the following simple authentication flow is schematically shown, and the process is as follows:
a) The terminal requests access to the operator access network and transmits a user identification code IMSI as a parameter to the operator access network;
b) After receiving the access request, the operator generates a random number RAND, and calculates a sequence value SRES by using the random number RAND, the subscriber identity IMSI and the stored key Ki and using an encryption algorithm. Then, the random number is sent to the terminal equipment;
c) After receiving the random number RAND, the terminal equipment calculates an encrypted sequence value by using the user identification code IMSI, the random number RAND and the secret key Ki stored in the terminal equipment and an encryption algorithm consistent with the access network;
d) The terminal returns the sequence value to the access network, after the access network receives the sequence value, the sequence value is compared with the sequence value generated in the prior art, if the sequence value is consistent with the sequence value, the access is legal equipment, the authentication is passed, and the equipment is allowed to be accessed; otherwise access will be denied.
In general, the terminal device does not have key information of the operator, and thus cannot independently complete the authentication task. The operator uses an IC card, i.e. a subscriber identity card, also called SIM card, for storing some of the necessary information. The subscriber identity IMSI, the key Ki, and access-related information such as the encryption algorithm are written into the SIM card by the operator when issuing the card. Then, the terminal equipment is used as a user identity recognition module and is inserted into the terminal equipment, and user identity verification is completed together with the terminal equipment. The SIM card integrates the CPU, the memory and the input/output module into one IC, so that the SIM card has certain data processing capacity. When the terminal needs to encrypt the random number sent by the operator access network, the random number is actually forwarded to the SIM card, the SIM card uses the information such as the internal CPU, the IMSI, the secret key and the like stored in the SIM card to encrypt the random number, and the result is returned to the terminal equipment to finally finish the authentication process.
It should be appreciated that the method steps in embodiments of the present invention may be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in non-transitory computer-readable memory 300. The method may use standard programming techniques. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described herein may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, collectively executing on one or more processors 200. The computer program includes a plurality of instructions executable by one or more processors 200.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that implement the steps described above in connection with the microprocessor 200 or other data processor 200, the invention described herein includes these and other different types of non-transitory computer-readable storage media. The invention may also include the computer itself when programmed according to the methods and techniques of the present invention.
The computer program can be applied to the input data to perform the functions described herein, thereby converting the input data to generate output data that is stored to the non-volatile memory 300. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
The present invention is not limited to the above embodiments, but can be modified, equivalent, improved, etc. by the same means to achieve the technical effects of the present invention, which are included in the spirit and principle of the present invention. Various modifications and variations are possible in the technical solution and/or in the embodiments within the scope of the invention.

Claims (10)

1. The SIM card mirror image method is characterized by comprising the following steps:
s100, if the insertion of the SIM card into the card slot (110) is detected, executing an SIM card activation flow;
s200, judging the type of the SIM card inserted into the card slot (110), and storing the type of the SIM card into an image file;
s300, selecting and acquiring a SIM card file to be copied;
s400, saving the SIM card file into the mirror image file, and copying the mirror image file into the SIM card simulator (400).
2. The SIM card mirroring method according to claim 1, wherein in step S100, comprising:
s110, setting the level of the RST pin of the SIM card to be low level;
s120, providing a power supply of a VCC pin of the SIM card, and identifying the type of the SIM card by judging whether an ATR response is returned;
s130, setting an input/output port connected with an IO port of the SIM card as a receiving state;
s140, providing a clock signal of a CLK pin of the SIM card;
s150, after waiting 400 complete clock signal periods, setting the level of the RST pin of the SIM card to be high level;
s160, waiting for receiving the ATR response of the SIM card.
3. The SIM card mirroring method according to claim 2, wherein, in step S140,
the frequency of the clock signal does not exceed 4MHZ.
4. The SIM card mirroring method according to claim 1, wherein, in step S200,
the SIM card type comprises a class A card, a class B card and a class C card, if the SIM card type is the class A card, the power supply for providing the VCC pin of the SIM card is 5V, if the SIM card type is the class B card, the power supply for providing the VCC pin of the SIM card is 3.3V, and if the SIM card type is the class C card, the power supply for providing the VCC pin of the SIM card is 1.8V.
5. The SIM card mirroring method according to claim 1, wherein the step S300 comprises:
s310, sending an APDU signal to the SIM card to inquire the SIM card file;
s320, receiving description information of the queried file returned by the SIM card;
s330, storing the file ID and the description information into the image file.
6. The SIM card mirroring method according to claim 5, wherein in step S310, the APDU signal includes at least the following fields:
class name (CLA), class name (CLA) 0x00 if SIM card class is UICC, class name (CLA) 0xA0 if SIM card class is GSM;
an instruction code (INS) that is a query instruction, the APDU signal being 0xA4;
a parameter set comprising a first parameter (P1) and a second parameter (P2);
a data field length (LcField) for defining a length of a data field of the APDU signal;
a data field (DataField) for loading a file ID of a file to be selected, the file ID corresponding to a file name preset by the SIM card;
a response field length (LeField) for defining the length of the response field of the APDU signal.
7. The method for mirroring a SIM card as defined in claim 6, wherein,
the preset file names of the SIM card comprise an EFiccid file, an EFlp file, an EFimsi file, an EFad file, an EFplmnsel file, an EFhplc mn file, an EFacmmax file, an EFsst file, an EFacm file, an EFfdn file, an EFgdi1 file, an EFgdi2 file, an EFmsisdn file, an EFsmsp file, an EFsmss file, an EFcbmi file, an EFsdn file, an EFext2 file, an EFacc file, an EFfplmn file and an EFloci file.
8. The method for mirroring a SIM card as defined in claim 7, wherein,
the file IDs corresponding to the EFiccid file, the EFlp file, the EFimsi file, the EFad file, the EFplmnsel file, the efhfplmn file, the efammax file, the EFsst file, the EFacm file, the EFfdn file, the EFgdi1 file, the EFgdi2 file, the EFmsisdn file, the EFsmsp file, the EFsmss file, the EFcbmi file, the EFsdn file, the EFext2 file, the EFacc file, the EFfplmn file, and the EFloci file are 2FE2, 6F05, 6F07, 6FAD, 6F30, 6F31, 6F37, 6F38, 6F39, 6F3B, 6F3E, 6F3F, 6F40, 6F42, 6F 45F 7, 6F 46B, 6F7 and 6F7B, respectively.
9. A SIM card mirroring device, comprising:
a subscriber identity card management device (100), wherein the subscriber identity card management device (100) is provided with a plurality of card slots (110), and the card slots (110) are used for placing SIM cards;
the processor (200) is electrically connected with the user identity identification card management device (100);
a memory (300), the memory (300) being electrically connected to the processor (200);
and the SIM card simulator (400), wherein the SIM card simulator (400) is electrically connected with the memory (300).
10. A computer readable storage medium having stored thereon program instructions which, when executed by a processor (200), implement the method of any of claims 1 to 8.
CN202311817613.XA 2023-12-26 2023-12-26 SIM card mirror image method and device thereof Pending CN117858146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311817613.XA CN117858146A (en) 2023-12-26 2023-12-26 SIM card mirror image method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311817613.XA CN117858146A (en) 2023-12-26 2023-12-26 SIM card mirror image method and device thereof

Publications (1)

Publication Number Publication Date
CN117858146A true CN117858146A (en) 2024-04-09

Family

ID=90544495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311817613.XA Pending CN117858146A (en) 2023-12-26 2023-12-26 SIM card mirror image method and device thereof

Country Status (1)

Country Link
CN (1) CN117858146A (en)

Similar Documents

Publication Publication Date Title
KR100996768B1 (en) System for remotely accessing a mass storage unit and a security storage unit in a portable communicating object
US10645568B2 (en) Carrier configuration processing method, device and system, and computer storage medium
CN107820238B (en) SIM card, blockchain application security module, client and security operation method thereof
CN109462601B (en) Multi-platform access method and device based on eSIM
US20090300737A1 (en) Split template biometric verification system
CN113038451B (en) Machine-card binding method and device, communication module and storage medium
CN111586671B (en) Embedded user identification card configuration method and device, communication equipment and storage medium
US8887258B2 (en) Apparatus and method of binding a removable module to an access terminal
KR101824249B1 (en) Method for managing electronic devices, for example, of integrated circuits type, having internal generation of a personal authetication key
CN107273150B (en) Preloading firmware downloading and writing method and device
CN111339502A (en) Starting method, system, equipment and medium for kernel in FPGA
CN112860778A (en) Database management method, device, equipment and medium for desktop application program
CN111931254A (en) Hybrid identification method for unique identification of Android device
US20050138303A1 (en) Storage device
CN104753864A (en) Permission validation system and permission validation method
KR20080099117A (en) Method for removable element authentication in an embedded system
CN117858146A (en) SIM card mirror image method and device thereof
US20070215710A1 (en) Smartcard method and computer system
CN117979290A (en) SIM card remote authentication method and device
JP2019160191A (en) Portable electronic device and IC card
CN109919603A (en) Generation method, system, mobile device and the server of virtual radiofiequency card
CN113254986B (en) Data processing method, device and computer readable storage medium
US20080263346A1 (en) Method and device for securely sending bootstrap message in device management
JP2003316655A (en) Access control method and system for application and data stored in ic card
CN114154182A (en) Information encryption method and device, storage medium and electronic device

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