CN103186798B - A kind of IC card production test system - Google Patents
A kind of IC card production test system Download PDFInfo
- Publication number
- CN103186798B CN103186798B CN201110444005.XA CN201110444005A CN103186798B CN 103186798 B CN103186798 B CN 103186798B CN 201110444005 A CN201110444005 A CN 201110444005A CN 103186798 B CN103186798 B CN 103186798B
- Authority
- CN
- China
- Prior art keywords
- card
- authentication
- test
- production
- module
- 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.)
- Expired - Fee Related
Links
Landscapes
- Credit Cards Or The Like (AREA)
- Storage Device Security (AREA)
Abstract
本发明涉及一种IC卡生产测试系统。该IC卡生产测试系统包括:测试装置,用于对IC卡进行测试;认证装置,用于对IC卡进行认证;控制装置,用于对所述测试装置和所述认证装置进行控制,以及将IC卡的认证信息传递给所述认证装置和将所述认证装置的认证信息传递给IC卡。本发明的IC卡生产测试系统,通过认证装置对IC卡的身份认证,能够防止IC卡的关键数据被窃取,提高了生产环境对IC卡关键数据的保护方面的安全性,且操作方便。而且,本发明的IC卡生产测试系统,能够检测IC卡的上电电流,防止电流过大对被测IC卡或测试装置造成损害,起到很好的短路保护作用。
The invention relates to an IC card production test system. The IC card production test system includes: a testing device for testing the IC card; an authentication device for authenticating the IC card; a control device for controlling the testing device and the authentication device, and The authentication information of the IC card is transmitted to the authentication device and the authentication information of the authentication device is transmitted to the IC card. The IC card production test system of the present invention can prevent the key data of the IC card from being stolen through the authentication of the identity of the IC card by the authentication device, improves the safety of the protection of the key data of the IC card in the production environment, and is easy to operate. Moreover, the IC card production test system of the present invention can detect the power-on current of the IC card, prevent the IC card or test device from being damaged by the excessive current, and play a good short-circuit protection function.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种IC卡生产测试系统。The invention relates to the communication field, in particular to an IC card production and testing system.
背景技术Background technique
SD卡是一种基于半导体快闪记忆器的新一代记忆设备,它被广泛地应用于便携式装置上,例如数码相机、手机、多媒体播放器等。目前,各种新型的SD卡不断出现,比如带射频功能的RFID-SD卡、带加密功能的SD-KEY等,已经在现实生活中有所应用。SD卡在出货以前都需要进行检测,此检测称为生产测试,检测后,向检测合格的SD卡中下载COS(CardOperating System,卡片操作系统),特别是带有新功能的RFID-SD、SD-KEY等需要下载数个COS,而COS一般都是卡中的关键数据,需要加以保护,以防止关键数据被别人窃取。但目前的生产环境对关键数据的保护还主要是靠制度和指定生产场所进行,安全性与可操作性都比较差。SD card is a new generation memory device based on semiconductor flash memory, which is widely used in portable devices, such as digital cameras, mobile phones, multimedia players, etc. At present, various new SD cards continue to appear, such as RFID-SD cards with radio frequency functions, SD-KEYs with encryption functions, etc., which have been applied in real life. SD cards need to be tested before shipment. This test is called production test. After the test, download COS (CardOperating System, card operating system) to the SD card that has passed the test, especially RFID-SD with new functions, SD-KEY, etc. need to download several COS, and COS is generally the key data in the card, which needs to be protected to prevent the key data from being stolen by others. However, the protection of key data in the current production environment is mainly carried out by systems and designated production sites, and the security and operability are relatively poor.
同SD卡一样,其他的IC卡(例如SIM卡)也存在同样的问题,即生产环境对IC卡关键数据的保护方面存在安全隐患,且可操作性比较差。Like the SD card, other IC cards (such as SIM cards) also have the same problem, that is, there are security risks in the protection of the key data of the IC card in the production environment, and the operability is relatively poor.
发明内容Contents of the invention
本发明所要解决的技术问题是提供一种IC卡生产测试系统,提高生产环境对IC卡关键数据的保护方面的安全性。The technical problem to be solved by the present invention is to provide an IC card production and testing system to improve the security of the key data protection of the IC card in the production environment.
为解决上述技术问题,本发明提出了一种IC卡生产测试系统,包括:For solving the above-mentioned technical problems, the present invention proposes a kind of IC card production test system, comprising:
测试装置,用于对IC卡进行测试;A test device for testing the IC card;
认证装置,用于对IC卡进行认证;An authentication device for authenticating the IC card;
控制装置,用于对所述测试装置和所述认证装置进行控制,以及将IC卡的认证信息传递给所述认证装置和将所述认证装置的认证信息传递给IC卡A control device for controlling the testing device and the authentication device, and transferring the authentication information of the IC card to the authentication device and the authentication information of the authentication device to the IC card
进一步地,上述IC卡生产测试系统还可具有以下特点,所述认证装置为USB-KEY。Further, the above-mentioned IC card production and testing system may also have the following characteristics, the authentication device is a USB-KEY.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述控制装置为计算机。Further, the above-mentioned IC card production and testing system may also have the following features, the control device is a computer.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述认证装置包括:Further, the above-mentioned IC card production testing system can also have the following characteristics, and the authentication device includes:
认证模块,用于接收IC卡的认证信息并对该认证信息进行处理;The authentication module is used to receive the authentication information of the IC card and process the authentication information;
记录模块,用于记录所述测试装置对IC卡的测试结果,测试结果为合格的IC卡数量、测试结果为不合格的IC卡数量以及经过所述测试装置测试的IC卡总量;Recording module, used for recording the test result of described test device to IC card, test result is the quantity of qualified IC card, test result is the quantity of unqualified IC card and the total amount of IC card tested by described test device;
授权模块,用于保存IC卡的授权生产数量,计算该授权生产数量与所述记录模块记录的经过所述测试装置测试的IC卡总量的差值,在该差值不为零时对IC卡的生产进行授权;The authorization module is used to save the authorized production quantity of the IC card, calculate the difference between the authorized production quantity and the total amount of IC cards tested by the test device recorded by the recording module, and when the difference is not zero, the IC Authorize the production of the card;
安全存储模块,用于接收并存储IC卡的保密数据。The safe storage module is used to receive and store the confidential data of the IC card.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述测试装置包括:Further, the above-mentioned IC card production test system can also have the following characteristics, and the test device includes:
电流检测模块,用于对IC卡的上电电流进行检测;The current detection module is used to detect the power-on current of the IC card;
读卡器,用于将IC卡发出的数据传递给所述控制装置,以及将所述控制装置发出的数据传递给IC卡;The card reader is used to transfer the data sent by the IC card to the control device, and transfer the data sent by the control device to the IC card;
主控模块,用于控制所述电流检测模块和所述读卡器。The main control module is used to control the current detection module and the card reader.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述主控模块、所述电流检测模块和所述读卡器设置于同一电路板上。Furthermore, the above-mentioned IC card production and testing system may also have the following features, the main control module, the current detection module and the card reader are arranged on the same circuit board.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述主控模块和所述电流检测模块设置于第一电路板上,所述读卡器设置于第二电路板上,所述第二电路板与所述第一电路板通过插针连接。Further, the above-mentioned IC card production and testing system may also have the following features, the main control module and the current detection module are arranged on the first circuit board, the card reader is arranged on the second circuit board, and the first The second circuit board is connected to the first circuit board through pins.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述测试装置还包括:Further, the above-mentioned IC card production test system can also have the following characteristics, and the test device also includes:
开关,用于在所述主控模块的控制下给所述读卡器通电或者断电;A switch, used to power on or off the card reader under the control of the main control module;
接口外延部件,用于连接IC卡和所述读卡器。The interface extension part is used for connecting the IC card and the card reader.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述测试装置还包括USB集线器,所述USB集线器用于连接所述主控模块和所述控制装置,以及连接所述读卡器和所述控制装置。Further, the above-mentioned IC card production test system can also have the following characteristics, the test device also includes a USB hub, and the USB hub is used to connect the main control module and the control device, and connect the card reader and the control device.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述电流检测模块的数目为一个或多个,所述读卡器的数目与所述电流检测模块的数目相等。Further, the above-mentioned IC card production and testing system may also have the following features: the number of the current detection modules is one or more, and the number of the card readers is equal to the number of the current detection modules.
进一步地,上述IC卡生产测试系统还可具有以下特点,所述IC卡为智能卡或存储卡, 所述智能卡为SIM卡、USIM卡或UIM卡,所述存储卡为SD卡、TF卡或MMC卡。Further, the above-mentioned IC card production test system can also have the following characteristics, the IC card is a smart card or a memory card, the smart card is a SIM card, USIM card or UIM card, and the memory card is an SD card, TF card or MMC Card.
本发明的IC卡生产测试系统,通过认证装置对IC卡的身份认证,能够防止IC卡的关键数据被窃取,提高了生产环境对IC卡关键数据的保护方面的安全性,且操作方便。而且,本发明的IC卡生产测试系统,能够检测IC卡的上电电流,防止电流过大对被测IC卡或测试装置造成损害,起到很好的短路保护作用。The IC card production test system of the present invention can prevent the key data of the IC card from being stolen through the authentication of the identity of the IC card by the authentication device, improves the safety of the protection of the key data of the IC card in the production environment, and is easy to operate. Moreover, the IC card production test system of the present invention can detect the power-on current of the IC card, prevent the IC card or the test device from being damaged by the excessive current, and play a very good short-circuit protection function.
附图说明Description of drawings
图1为本发明实施例中IC卡生产测试系统的结构框图;Fig. 1 is the structural block diagram of IC card production test system in the embodiment of the present invention;
图2为图1中测试装置110的一种结构框图;Fig. 2 is a kind of structural block diagram of test device 110 in Fig. 1;
图3为图1中测试装置110的另一种结构框图;FIG. 3 is another structural block diagram of the testing device 110 in FIG. 1;
图4为图1中认证装置120的一种结构框图;FIG. 4 is a structural block diagram of the authentication device 120 in FIG. 1;
图5为本发明实施例中IC卡生产测试系统的认证流程图。Fig. 5 is a flow chart of authentication of the IC card production test system in the embodiment of the present invention.
具体实施方式detailed description
以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.
图1为本发明实施例中IC卡生产测试系统的结构框图。如图1所示,本实施例中,IC卡生产测试系统10包括测试装置110、认证装置120和控制装置130。其中,测试装置110用于对IC卡进行测试,认证装置120用于对IC卡进行认证,控制装置130用于对测试装置110和认证装置120进行控制,以及将IC卡的认证信息传递给认证装置120和将认证装置120的认证信息传递给IC卡。Fig. 1 is the structural block diagram of IC card production test system in the embodiment of the present invention. As shown in FIG. 1 , in this embodiment, the IC card production testing system 10 includes a testing device 110 , an authentication device 120 and a control device 130 . Wherein, the test device 110 is used to test the IC card, the authentication device 120 is used to authenticate the IC card, and the control device 130 is used to control the test device 110 and the authentication device 120, and transmit the authentication information of the IC card to the authentication The device 120 and transmits the authentication information of the authentication device 120 to the IC card.
控制装置130与测试装置110之间可以通过USB接口进行通信。控制装置130与认证装置120之间也可以通过USB接口进行通信。待测IC卡可以通过7816接口与测试装置110进行通信。当待测IC卡为SD卡时,SD卡可以通过SD接口与测试装置110进行通信。Communication between the control device 130 and the test device 110 can be performed through a USB interface. Communication between the control device 130 and the authentication device 120 may also be performed through a USB interface. The IC card to be tested can communicate with the test device 110 through the 7816 interface. When the IC card to be tested is an SD card, the SD card can communicate with the testing device 110 through the SD interface.
其中,测试装置110可以是DUT(Device Under Test,设备测试)板。Wherein, the testing device 110 may be a DUT (Device Under Test, device testing) board.
其中,认证装置120可以为USB-KEY,USB-KEY是一种应用广泛的加密密钥,能够对IC卡的关键数据进行保护。USB-KEY内部存取数据一般都是用FLASH,而FLASH都是有寿命的,一般在10万次左右。在用USB-KEY作为认证装置时,可以设计一个特定的算法,把FLASH的每个块都充分利用以便增加USB-KEY的使用寿命。Wherein, the authentication device 120 may be a USB-KEY, and the USB-KEY is a widely used encryption key, which can protect the key data of the IC card. FLASH is generally used to access data inside the USB-KEY, and FLASH has a lifespan, generally about 100,000 times. When using USB-KEY as an authentication device, a specific algorithm can be designed to make full use of each block of FLASH so as to increase the service life of USB-KEY.
其中,控制装置130可以为计算机,例如PC机。Wherein, the control device 130 may be a computer, such as a PC.
其中,IC卡既可以为SIM卡、USIM卡、UIM卡等智能卡,也可以为SD卡、TF卡、MMC(多媒体卡)卡等存储卡。而且IC卡既可以为标准IC卡,也可以是带有新增功能的扩展IC卡。例如,SD卡可以是标准SD卡,也可以是带有新功能的RFID-SD卡、SD-KEY等扩展SD卡。RFID的含义为射频识别。Wherein, the IC card may be a smart card such as a SIM card, a USIM card, or a UIM card, or may be a memory card such as an SD card, a TF card, or an MMC (multimedia card) card. Moreover, the IC card can be a standard IC card or an extended IC card with new functions. For example, the SD card can be a standard SD card, or an extended SD card with new functions such as RFID-SD card and SD-KEY. RFID means Radio Frequency Identification.
测试装置110所进行的测试内容可以根据IC卡的具体类型和具体结构而定。测试装置110能够对IC卡中的各个硬件模块进行测试。用户可以根据待测IC卡的具体类型和具体结构来编写测试程序,存储在控制装置130中,在进行测试前,由控制装置130将测试程序传送给测试装置110,也即,测试装置110从控制装置130中下载测试程序。The test content performed by the test device 110 may be determined according to the specific type and specific structure of the IC card. The testing device 110 can test each hardware module in the IC card. The user can write the test program according to the specific type and concrete structure of the IC card to be tested, and store it in the control device 130. Before testing, the test program is transmitted to the test device 110 by the control device 130, that is, the test device 110 from The test program is downloaded in the control device 130 .
特别地, 针对具有射频功能的射频IC卡(例如RFID-SD卡、RFID-SIM卡)等扩展IC卡,测试装置110增加了电流检测的功能,能够完成IC卡在各种状态下的电流测试。通过电流检测,能够对IC卡的硬件电路起到很好的短路保护作用。IC卡与本发明的IC卡生产测试系统连接好后,IC卡生产测试系统首先检测IC卡的上电电流,如果上电电流异常,可以把IC卡断电,以防止电流过大对被测IC卡或测试装置110造成损害,特别是对于短路的IC卡。In particular, for extended IC cards such as radio frequency IC cards (such as RFID-SD cards, RFID-SIM cards) with radio frequency functions, the test device 110 has added the function of current detection, which can complete the current test of the IC card in various states . Through the current detection, it can play a very good short-circuit protection effect on the hardware circuit of the IC card. After the IC card is connected with the IC card production test system of the present invention, the IC card production test system first detects the power-on current of the IC card, if the power-on current is abnormal, the IC card can be powered off to prevent the excessive current from affecting the tested The IC card or the test device 110 can cause damage, especially for short-circuited IC cards.
用户还可以根据待测IC卡的具体类型来编写关键数据下载程序,存储在控制装置130中,在进行测试前,由控制装置130将关键数据下载程序传送给认证装置120,也即,认证装置120从控制装置130中下载关键数据下载程序。在测试装置110对IC卡的测试结束之后,认证装置120在控制装置130的控制下,对IC卡进行身份认证,测试IC卡是否合法,确认IC卡合法后,才启动关键数据下载程序,将关键数据(例如COS数据)的密文下载到IC卡中,IC卡收到密文后解密,将得到的明文写到卡片内部。这样关键数据的明文不会出现在卡片内部以外的地方,很好保证了关键数据的安全性。如果认证装置120对IC卡进行认证之后,判断IC卡不合法,则不会将关键数据下载到IC卡中。可见,认证装置120的认证提高了生产环境对IC卡关键数据的保护方面的安全性,保证IC卡关键数据的安全下载。认证装置120对IC卡的认证既可以是认证装置120对IC卡的单向认证,也可以是认证装置120与IC卡之间的双向认证。认证装置120中所采用的认证方式、加密算法等可以采用任何可用的认证方式和加密算法。在认证过程中,认证装置120与IC卡之间的认证信息通过控制装置130来进行传递。The user can also write the key data download program according to the specific type of the IC card to be tested, and store it in the control device 130. Before testing, the key data download program is transmitted to the authentication device 120 by the control device 130, that is, the authentication device 120 downloads a key data download program from the control device 130 . After the testing of the IC card by the testing device 110, the authentication device 120, under the control of the control device 130, carries out identity authentication to the IC card, whether the test IC card is legal, and after confirming that the IC card is legal, the key data downloading program is started, and The ciphertext of key data (such as COS data) is downloaded to the IC card, and the IC card decrypts the ciphertext after receiving it, and writes the obtained plaintext into the card. In this way, the plaintext of the key data will not appear outside the inside of the card, which ensures the security of the key data. If the authenticating device 120 judges that the IC card is invalid after authenticating the IC card, it will not download the key data to the IC card. It can be seen that the authentication by the authentication device 120 improves the security of the protection of the key data of the IC card in the production environment, and ensures the safe download of the key data of the IC card. The authentication of the IC card by the authentication device 120 may be one-way authentication of the IC card by the authentication device 120, or two-way authentication between the authentication device 120 and the IC card. The authentication method and encryption algorithm used in the authentication device 120 may adopt any available authentication method and encryption algorithm. During the authentication process, the authentication information between the authentication device 120 and the IC card is transmitted through the control device 130 .
图2为图1中测试装置110的一种结构框图。如图2所示,本实施例中,测试装置110可以包括电流检测模块111、读卡器112和主控模块113。其中,电流检测模块111用于对IC卡的上电电流进行检测。读卡器112用于将IC卡发出的数据传递给控制装置130,以及将控制装置130发出的数据传递给IC卡。主控模块113用于控制电流检测模块111和读卡器112。电流检测模块111与主控模块113之间可以通过SPI接口进行通信。读卡器112与主控模块113之间可以通过开关相连接。FIG. 2 is a structural block diagram of the testing device 110 in FIG. 1 . As shown in FIG. 2 , in this embodiment, the test device 110 may include a current detection module 111 , a card reader 112 and a main control module 113 . Wherein, the current detecting module 111 is used for detecting the power-on current of the IC card. The card reader 112 is used to transfer the data sent by the IC card to the control device 130, and transfer the data sent by the control device 130 to the IC card. The main control module 113 is used to control the current detection module 111 and the card reader 112 . The communication between the current detection module 111 and the main control module 113 can be performed through the SPI interface. The card reader 112 may be connected to the main control module 113 through a switch.
在本发明的一个实施例中,主控模块113、电流检测模块111和读卡器112可以设置于同一电路板上。In an embodiment of the present invention, the main control module 113, the current detection module 111 and the card reader 112 may be arranged on the same circuit board.
在本发明的另一个实施例中,主控模块113和电流检测模块111设置于第一电路板上,读卡器112设置于第二电路板上,第二电路板与第一电路板通过插针连接。这样,如果读卡器出现问题坏掉,就可以及时方便地更换读卡器,而不用更换整个测试装置,既降低了测试成本又提高了测试效率。In another embodiment of the present invention, the main control module 113 and the current detection module 111 are arranged on the first circuit board, the card reader 112 is arranged on the second circuit board, and the second circuit board and the first circuit board are plugged into each other. pin connection. In this way, if the card reader breaks down due to a problem, the card reader can be replaced in time and conveniently without replacing the entire test device, which not only reduces the test cost but also improves the test efficiency.
图3为图1中测试装置110的另一种结构框图。图3所示的测试装置110用于对SD卡的测试。FIG. 3 is another structural block diagram of the testing device 110 in FIG. 1 . The testing device 110 shown in FIG. 3 is used for testing the SD card.
如图3所示,与图2所示的测试装置相比,本实施例中,测试装置110还可以包括开关114。开关114用于在主控模块113的控制下给读卡器112通电或者断电。开关114与读卡器112之间通过I/O引脚连接,开关114与主控模块113之间也通过I/O引脚连接。读卡器112通过USB-HUB与控制装置130连接。工作时,控制装置130(例如PC机)直接控制读卡器112对SD卡进行操作。一旦控制装置130检测到某个读卡器112工作异常,控制装置130就会发送命令给主控模块113,然后主控模块113解析控制装置130发送来的命令,解析后,控模块113通过控制开关114将对应的读卡器112进行重新上电。这样就保证了测试装置110的稳定工作,提高了测试装置110的可靠性。As shown in FIG. 3 , compared with the testing device shown in FIG. 2 , in this embodiment, the testing device 110 may further include a switch 114 . The switch 114 is used to power on or off the card reader 112 under the control of the main control module 113 . The switch 114 is connected to the card reader 112 through an I/O pin, and the switch 114 is also connected to the main control module 113 through an I/O pin. The card reader 112 is connected to the control device 130 through a USB-HUB. When working, the control device 130 (such as a PC) directly controls the card reader 112 to operate on the SD card. Once the control device 130 detects that a certain card reader 112 is working abnormally, the control device 130 will send a command to the main control module 113, and then the main control module 113 analyzes the command sent by the control device 130. After the analysis, the control module 113 passes the control The switch 114 powers on the corresponding card reader 112 again. In this way, the stable operation of the test device 110 is ensured, and the reliability of the test device 110 is improved.
再如图3所示,与图2所示的测试装置相比,本实施例中,测试装置110还可以包括SD卡接口外延部件115,例如SD卡接口外延部件115可以是SD卡接口插针。SD卡接口外延部件115用于连接SD卡和读卡器112。SD卡接口外延部件115的一端连接读卡器112的SD接口,另一端连接SD卡。测试装置110的容纳空间有限,如果没有SD卡接口外延部件115,在测试时就要把SD卡直接插到测试装置110的读卡器112上,这样势必会进一步减小测试装置110的容纳空间,且操作不方便,特别是在测试装置110中包括多个读卡器112的情况下,这种弊端就更加明显。有了SD卡接口外延部件115,SD卡接口外延部件115就可以将读卡器112的接口外延到测试装置110的外部,在测试时就可以把SD卡连到SD卡接口外延部件115上,通过SD卡接口外延部件115与读卡器112连接,增加了操作的便捷性。As shown in Figure 3 again, compared with the testing device shown in Figure 2, in the present embodiment, testing device 110 can also comprise SD card interface extension part 115, for example SD card interface extension part 115 can be SD card interface pin . The SD card interface extension part 115 is used for connecting the SD card and the card reader 112 . One end of the SD card interface extension part 115 is connected to the SD interface of the card reader 112, and the other end is connected to the SD card. The accommodating space of testing device 110 is limited, if there is no SD card interface extension part 115, SD card will be directly inserted on the card reader 112 of testing device 110 when testing, will certainly further reduce the accommodating space of testing device 110 like this , and the operation is inconvenient, especially in the case that the test device 110 includes multiple card readers 112, this disadvantage is even more obvious. With the SD card interface extension unit 115, the SD card interface extension unit 115 can extend the interface of the card reader 112 to the outside of the test device 110, and the SD card can be connected to the SD card interface extension unit 115 during testing. The SD card interface extension part 115 is connected with the card reader 112, which increases the convenience of operation.
再如图3所示,与图2所示的测试装置相比,本实施例中,测试装置110还可以包括USB HUB(集线器)116, USB HUB116用于连接主控模块113和控制装置130,以及连接读卡器112和控制装置130。控制装置130的USB接口数量有限,因此能连接的读卡器112数量也有限,这大大限制了测试效率,因为能与控制装置130连接的读卡器112数量越多,能够同时进行测试的SD卡就越多。USB HUB116能够拓展控制装置130的USB接口数量,使得控制装置130能够同时与多个读卡器112连接,因此能够同时对多个SD卡进行测试,提高了测试效率。As shown in Figure 3 again, compared with the test device shown in Figure 2, in the present embodiment, the test device 110 can also include a USB HUB (hub) 116, and the USB HUB 116 is used to connect the main control module 113 and the control device 130, And connect the card reader 112 and the control device 130 . The number of USB interfaces of the control device 130 is limited, so the number of card readers 112 that can be connected is also limited, which greatly limits the test efficiency, because the more the number of card readers 112 that can be connected with the control device 130, the more SD cards that can be tested simultaneously. The more cards there are. The USB HUB 116 can expand the number of USB interfaces of the control device 130, so that the control device 130 can be connected to multiple card readers 112 at the same time, so multiple SD cards can be tested at the same time, which improves the test efficiency.
再如图3所示,与图2所示的测试装置相比,本实施例中,有8组电流检测模块111和读卡器112(电流检测模块111和读卡器112的数量一致),每一组电流检测模块111和读卡器112能够对一个SD卡进行测试,因此图3所示的测试装置110能够同时对8个SD卡进行测试,提高了测试效率。开关114的数量和SD卡接口外延部件115的数量与读卡器112的数量一致。在本发明的其他实施例中,可以根据需要在测试装置110中设置任意组数的电流检测模块111和读卡器112,而并非要局限于本实施例中的具体数目8组。As shown in Figure 3 again, compared with the test device shown in Figure 2, in this embodiment, there are 8 groups of current detection modules 111 and card readers 112 (the number of current detection modules 111 and card readers 112 is consistent), Each set of current detection module 111 and card reader 112 can test one SD card, so the test device 110 shown in FIG. 3 can test 8 SD cards at the same time, which improves the test efficiency. The number of switches 114 and the number of SD card interface extension components 115 are consistent with the number of card readers 112 . In other embodiments of the present invention, any number of groups of current detection modules 111 and card readers 112 may be provided in the test device 110 as required, rather than being limited to the specific number of 8 groups in this embodiment.
用于对SIM卡或其他IC卡进行测试的测试装置也可以采用图3中的测试装置110的结构,只是需要将图3中的SD卡接口外延部件改为对应的IC卡的IC卡接口外延部件,例如用于SIM卡测试,则需要将图3中的SD卡接口外延部件改为SIM卡接口外延部件。The test device that is used to test SIM card or other IC card also can adopt the structure of test device 110 in Fig. 3, just need to change the SD card interface extension part in Fig. 3 into the IC card interface extension of corresponding IC card Components, such as used for SIM card testing, need to change the SD card interface extension part in Figure 3 to the SIM card interface extension part.
图4为图1中认证装置120的一种结构框图。如图4所示,本实施例中,认证装置120可以包括认证模块121,认证模块121用于接收IC卡的认证信息并对该认证信息进行处理。关于认证装置120的身份认证功能在前面已有描述,此处不再重复。FIG. 4 is a structural block diagram of the authentication device 120 in FIG. 1 . As shown in FIG. 4, in this embodiment, the authentication device 120 may include an authentication module 121, and the authentication module 121 is configured to receive authentication information of the IC card and process the authentication information. The identity authentication function of the authentication device 120 has been described above, and will not be repeated here.
再如图4所示,本实施例中,认证装置120还可以包括记录模块122,记录模块122用于记录所述测试装置对IC卡的测试结果,测试结果为合格的IC卡数量、测试结果为不合格的IC卡数量以及经过所述测试装置测试的IC卡总量。As shown in Figure 4 again, in the present embodiment, authentication device 120 can also comprise recording module 122, and recording module 122 is used for recording the test result of described test device to IC card, and test result is qualified IC card quantity, test result. is the number of unqualified IC cards and the total amount of IC cards tested by the testing device.
再如图4所示,本实施例中,认证装置120还可以包括授权模块123,授权模块123用于保存IC卡的授权生产数量,计算该授权生产数量与记录模块122记录的经过测试装置110测试的IC卡总量的差值,在该差值不为零时对IC卡的生产进行授权。例如,如果授权此次生产1000个IC卡,则记录模块122 记录的经过测试装置110测试的IC卡总量如果为1000个,则不会进行后续的生产。As shown in Fig. 4 again, in the present embodiment, authentication device 120 can also comprise authorization module 123, and authorization module 123 is used for preserving the authorized production quantity of IC card, calculates the authorized production quantity and recording module 122 records through tested device 110 The difference value of the total amount of IC cards tested, and when the difference value is not zero, the production of IC cards is authorized. For example, if the production of 1000 IC cards is authorized this time, if the total number of IC cards tested by the testing device 110 recorded by the recording module 122 is 1000, subsequent production will not be performed.
再如图4所示,本实施例中,认证装置120还可以包括安全存储模块124,安全存储模块124用于接收并存储IC卡的保密数据,例如IC卡的关键数据。可以先把IC卡的关键数据的密文放到安全存储模块124中,下载的时候再从安全存储模块124中导出来,这样对IC卡的关键数据起到了更安全的保护作用,且更方便IC卡数据的更新。As shown in FIG. 4 , in this embodiment, the authentication device 120 may further include a secure storage module 124 for receiving and storing confidential data of the IC card, such as key data of the IC card. The ciphertext of the key data of the IC card can be put into the safe storage module 124 first, and then be exported from the safe storage module 124 when downloading, so that the key data of the IC card has been protected more safely, and it is more convenient IC card data update.
下面以USB-KEY、DUT板和PC机组成的SD卡生产测试系统为例,说明本发明的IC卡生产测试系统对IC卡的认证过程。Taking the SD card production and testing system composed of USB-KEY, DUT board and PC as an example, the authentication process of the IC card production and testing system of the present invention is illustrated below.
图5为本发明实施例中IC卡生产测试系统的认证流程图。在认证之前,将USB-KEY连接到PC机上。如图5所示,本实施例中,SD卡生产测试系统的认证流程包括:Fig. 5 is a flow chart of authentication of the IC card production test system in the embodiment of the present invention. Before authentication, connect the USB-KEY to the PC. As shown in Figure 5, in the present embodiment, the certification process of the SD card production test system includes:
步骤501,PC机等待SD卡安装到DUT板上;Step 501, the PC waits for the SD card to be installed on the DUT board;
步骤502,PC机判断SD卡是否已安装到DUT板上,若是则执行步骤503,否则执行步骤501;Step 502, the PC judges whether the SD card has been installed on the DUT board, if so, executes step 503, otherwise executes step 501;
步骤503,PC机读取USB-KEY中SD卡的数量;Step 503, the PC reads the number of SD cards in the USB-KEY;
步骤504,PC机判断USB-KEY中SD卡的数量是否大于0,若是则执行步骤505,否则执行步骤501;Step 504, the PC judges whether the number of SD cards in the USB-KEY is greater than 0, if so, execute step 505, otherwise execute step 501;
步骤505,PC机下载认证程序并向SD卡发送认证命令;Step 505, the PC downloads the authentication program and sends the authentication command to the SD card;
步骤506,SD卡收到认证命令后产生第一随机数;Step 506, the SD card generates a first random number after receiving the authentication command;
步骤507,SD卡将产生的第一随机数发送给PC机;Step 507, the SD card sends the generated first random number to the PC;
步骤508,PC机将第一随机数发送给USB-KEY;Step 508, the PC sends the first random number to the USB-KEY;
步骤509,USB-KEY自身产生第二随机数,与SD卡的第一随机数组合后加密得到第一密文;Step 509, the USB-KEY itself generates a second random number, which is combined with the first random number of the SD card and then encrypted to obtain the first ciphertext;
步骤510,USB-KEY将第一密文传送给PC机;Step 510, the USB-KEY transmits the first ciphertext to the PC;
步骤511,PC机收到第一密文后转发给SD卡;Step 511, after receiving the first ciphertext, the PC forwards it to the SD card;
步骤512,SD卡收到第一密文后,对第一密文进行解密,然后判断解密后的明文中是否有第一随机数,若是则执行步骤513,否则执行步骤501;Step 512, after the SD card receives the first ciphertext, it decrypts the first ciphertext, and then judges whether there is a first random number in the decrypted plaintext, if so, execute step 513, otherwise execute step 501;
步骤513,SD卡将解密后的明文中的第一随机数用0替换,重新加密明文后得到第二密文,将第二密文与步骤512的判断结果一同转发给PC机;Step 513, the SD card replaces the first random number in the decrypted plaintext with 0, re-encrypts the plaintext to obtain the second ciphertext, and forwards the second ciphertext and the judgment result of step 512 to the PC;
步骤514,PC机收到第二密文与步骤512的判断结果后判断SD卡的认证是否通过;Step 514, the PC judges whether the authentication of the SD card passes after receiving the second ciphertext and the judgment result of step 512;
步骤515,若SD卡的认证通过则执行步骤516,否则执行步骤501;Step 515, if the authentication of the SD card is passed, then execute step 516, otherwise execute step 501;
步骤516,PC机将第二密文转发给USB-KEY;Step 516, the PC forwards the second ciphertext to the USB-KEY;
步骤517,USB-KEY对第二密文进行解密,判断解密后的明文中是否有第二随机数,若有则认证通过;Step 517, the USB-KEY decrypts the second ciphertext, and judges whether there is a second random number in the decrypted plaintext, and if so, the authentication is passed;
步骤518,USB-KEY将认证结果发给PC机;Step 518, the USB-KEY sends the authentication result to the PC;
步骤519,PC机将收到的USB-KEY的认证结果转发给SD卡;Step 519, the PC forwards the received USB-KEY authentication result to the SD card;
步骤520,SD卡判断USB-KEY的认证结果,做出最终认证结果,若USB-KEY的认证结果为通过认证,则最终认证结果为通过认证,否则最终认证结果为没有通过认证;Step 520, the SD card judges the authentication result of the USB-KEY, and makes a final authentication result. If the authentication result of the USB-KEY is certified, the final authentication result is certified, otherwise the final authentication result is not certified;
步骤521,SD卡将最终认证结果返回给PC机;Step 521, the SD card returns the final authentication result to the PC;
步骤522,PC机判断最终认证结果,若通过则执行步骤523,否则执行步骤501;Step 522, the PC judges the final authentication result, if it passes, then executes step 523, otherwise executes step 501;
步骤523,PC机控制将关键数据的密文下载到SD卡,SD卡收到后将密文解密,把获得的明文数据写入到SD卡自身卡的FLASH中;Step 523, the PC controls to download the ciphertext of the key data to the SD card, and the SD card decrypts the ciphertext after receiving it, and writes the obtained plaintext data into the FLASH of the SD card itself;
步骤524,若下载成功,PC机将USB-KEY中合格SD卡的数量减1,否则,如果下载失败,PC机将不合格SD卡的数量加1。Step 524, if the download is successful, the PC reduces the number of qualified SD cards in the USB-KEY by 1, otherwise, if the download fails, the PC adds 1 to the number of unqualified SD cards.
图5所示流程使用的认证密钥是提前固化到USB-KEY和SD卡中的,如果数据的安全性等级要求比较高,或是SD卡不方便提前固化密钥,可以使用动态密钥。动态密钥每次产生的随机数不同,所以每次的认证密钥都不同,这样的数据安全级别会更高。与USB-KEY认证完成后,可以把SD卡中的认证程序擦掉,这样既保证了SD卡关键数据的安全下载,也不占用最终SD卡用户的存储空间。The authentication key used in the process shown in Figure 5 is solidified into the USB-KEY and SD card in advance. If the data security level is relatively high, or the SD card is inconvenient to solidify the key in advance, a dynamic key can be used. The random number generated by the dynamic key is different each time, so the authentication key is different each time, so the data security level will be higher. After the authentication with USB-KEY is completed, the authentication program in the SD card can be erased, which not only ensures the safe download of key data on the SD card, but also does not occupy the storage space of the final SD card user.
在本发明的其他实施例中,可以根据IC卡的安全等级要求和IC卡的处理器性能选择合适的认证算法。In other embodiments of the present invention, an appropriate authentication algorithm may be selected according to the security level requirements of the IC card and the processor performance of the IC card.
由上可见,本发明的IC卡生产测试系统,通过认证装置对IC卡的身份认证,能够防止IC卡的关键数据被窃取,提高了生产环境对IC卡关键数据的保护方面的安全性,且操作方便。而且,本发明的IC卡生产测试系统,能够检测IC卡的上电电流,防止电流过大对被测IC卡或测试装置造成损害,起到很好的短路保护作用。As can be seen from the above, the IC card production test system of the present invention can prevent the key data of the IC card from being stolen through the identity authentication of the IC card by the authentication device, and improve the safety of the protection aspect of the key data of the IC card in the production environment, and Easy to operate. Moreover, the IC card production test system of the present invention can detect the power-on current of the IC card, prevent the IC card or test device from being damaged by the excessive current, and play a good short-circuit protection function.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110444005.XA CN103186798B (en) | 2011-12-27 | 2011-12-27 | A kind of IC card production test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110444005.XA CN103186798B (en) | 2011-12-27 | 2011-12-27 | A kind of IC card production test system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103186798A CN103186798A (en) | 2013-07-03 |
CN103186798B true CN103186798B (en) | 2017-08-01 |
Family
ID=48677958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110444005.XA Expired - Fee Related CN103186798B (en) | 2011-12-27 | 2011-12-27 | A kind of IC card production test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103186798B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104865459B (en) * | 2015-03-23 | 2018-08-31 | 珠海市金邦达保密卡有限公司 | One kind is for detecting the undesirable method and device of non-contact card chip |
CN105808439B (en) * | 2016-03-11 | 2018-10-16 | 中国联合网络通信集团有限公司 | Application program of intelligent card remote test system |
CN106844199A (en) * | 2016-12-27 | 2017-06-13 | 广州智慧城市发展研究院 | A kind of financial IC card circle deposits circle and puies forward test system |
CN111552698B (en) * | 2020-04-21 | 2023-06-06 | 重庆富民银行股份有限公司 | SQL version control system and method for solving environmental difference |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1153572A (en) * | 1994-07-14 | 1997-07-02 | 国民西敏寺银行 | Testing of memory content |
CN201348788Y (en) * | 2009-01-04 | 2009-11-18 | 上海一芯智能科技有限公司 | Card processing equipment |
CN101715180A (en) * | 2008-10-06 | 2010-05-26 | 武汉天喻信息产业股份有限公司 | Method and system for card detection management |
CN102064944A (en) * | 2010-11-30 | 2011-05-18 | 北京飞天诚信科技有限公司 | Safety card issuing method as well as card issuing equipment and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB9414266D0 (en) * | 1994-07-14 | 1994-08-31 | Jonhig Ltd | Testing of memory content |
EP2251813A1 (en) * | 2009-05-13 | 2010-11-17 | Nagravision S.A. | Method for authenticating access to a secured chip by a test device |
-
2011
- 2011-12-27 CN CN201110444005.XA patent/CN103186798B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1153572A (en) * | 1994-07-14 | 1997-07-02 | 国民西敏寺银行 | Testing of memory content |
CN101715180A (en) * | 2008-10-06 | 2010-05-26 | 武汉天喻信息产业股份有限公司 | Method and system for card detection management |
CN201348788Y (en) * | 2009-01-04 | 2009-11-18 | 上海一芯智能科技有限公司 | Card processing equipment |
CN102064944A (en) * | 2010-11-30 | 2011-05-18 | 北京飞天诚信科技有限公司 | Safety card issuing method as well as card issuing equipment and system |
Also Published As
Publication number | Publication date |
---|---|
CN103186798A (en) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11971967B2 (en) | Secure access device with multiple authentication mechanisms | |
CN105657637B (en) | Data access in mobile device with NFC | |
AU2014256377B2 (en) | Systems and methods for secure processing with embedded cryptographic unit | |
JP2011504263A (en) | Smart storage devices | |
CN102255888A (en) | Method and apparatus for secure scan of Data storage device from remote server | |
US20150067780A1 (en) | Mobile Terminal Detection Method And Mobile Terminal | |
CN104811926A (en) | Mobile terminal network-locking and card-locking methods, devices, mobile terminal and SIM card | |
JP2009500735A (en) | System comprising a plurality of electronic devices and one maintenance module | |
CN105761067B (en) | Intelligent POS machine security module and starting method thereof | |
CN101159551A (en) | Multifunctional information safety equipment and method of use thereof | |
CN102131190A (en) | Method for encrypting mobile terminal, hardware encryption device and mobile terminal | |
CN103186798B (en) | A kind of IC card production test system | |
US9779347B2 (en) | Smart card and portable electronic apparatus | |
CN102104864A (en) | Method for realizing network and card locking function of terminal and terminal | |
JP6235722B2 (en) | Enabling secure debugging of integrated circuits | |
KR20080099117A (en) | Methods for Authentication of Mobility Elements in Embedded Systems | |
JP4993114B2 (en) | Shared management method for portable storage device and portable storage device | |
EP2447873A1 (en) | A method and a corresponding device for accessing an application | |
CN105120066A (en) | Method and system for safely switching terminal product mode and development mode | |
CN103699853B (en) | A kind of intelligent SD card and control system thereof and method | |
KR20120100342A (en) | Security token device and rf module and method of authentication usable in smartphone and pc | |
KR20110030515A (en) | Security token devices and authentication methods that can be used on smartphones | |
CN113708939B (en) | Container lock control method and device, container lock and storage medium | |
KR102099739B1 (en) | How to manage secure elements | |
CN105320903A (en) | Electronic device and data reading and writing method based on the electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170801 |