CN205809211U - Smart card power-off protection test Apparatus and system - Google Patents

Smart card power-off protection test Apparatus and system Download PDF

Info

Publication number
CN205809211U
CN205809211U CN201620782977.8U CN201620782977U CN205809211U CN 205809211 U CN205809211 U CN 205809211U CN 201620782977 U CN201620782977 U CN 201620782977U CN 205809211 U CN205809211 U CN 205809211U
Authority
CN
China
Prior art keywords
smart card
power
module
instruction
card
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.)
Active
Application number
CN201620782977.8U
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.)
ZHUHAI HETIAN ELECTRONIC TECHNOLOGY Co Ltd
Electronic Industrial Standardization Institute Ministry Of Industry And Information Technology Of People's Republic Of China
Original Assignee
ZHUHAI HETIAN ELECTRONIC TECHNOLOGY Co Ltd
Electronic Industrial Standardization Institute Ministry Of Industry And Information Technology Of People's Republic Of China
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 ZHUHAI HETIAN ELECTRONIC TECHNOLOGY Co Ltd, Electronic Industrial Standardization Institute Ministry Of Industry And Information Technology Of People's Republic Of China filed Critical ZHUHAI HETIAN ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201620782977.8U priority Critical patent/CN205809211U/en
Application granted granted Critical
Publication of CN205809211U publication Critical patent/CN205809211U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

Disclose a kind of smart card power-off protection test device; including: control module; and at least one card reader module; wherein; described control module is connected with at least one card reader module described, and the card reader module being configured at least one card reader module described transmits smart card operating instruction;Each card reader module can be connected with a smart card, and is configured to transmit described smart card operating instruction to the smart card connected, thus operates the smart card connected;Described control module is additionally configured to the specific time point during card reader module transmits described smart card operating instruction and cuts off the power supply to described card reader module, in order to determine the power-off protection performance of described smart card.

Description

Smart card power-off protection test Apparatus and system
Technical field
This utility model relates to smart card (smart card) field, in particular, relating to a kind of smart card power-off and protecting Protect test Apparatus and system.
Background technology
Being frequently encountered the situation that power supply sudden shuts off during the use of smart card, most typical case such as mobile phone exists Suddenly receiving note during power-off critical point, now mobile phone needs short message content is write SIM, if during writing card suddenly Power-off may cause card system to store mistake, and current card then has the risk scrapped.Once card is scrapped, the data in subscriber card Will be unable to read, the data of user receive safely serious threat again.
Current card vendor or mobile operator often use and electrically inspect by random samples at card reader read-write process interrupt, this Method can not effectively detect whether card supports power-off protection completely because the whole process of equipment read-write card be microsecond even Nanosecond rank, whether be data erasable or common data queries, i.e. if cannot catch present instruction the most at all Erasable also being difficult to of data that make to come across detects that card system carries out erasable in which position.
Therefore, there is a need in the art for the smart card power-off protection test Solution of a kind of improvement.
Utility model content
At an aspect of the present utility model, it is provided that a kind of smart card power-off protection test device, including: control mould Block, and at least one card reader module, wherein, described control module is connected with at least one card reader module described, and quilt The card reader module being configured at least one card reader module described transmits smart card operating instruction;Each card reader module Can be connected with a smart card, and be configured to transmit described smart card operating instruction to the smart card connected, from And the smart card connected is operated;Described control module is additionally configured to transmit described smart card behaviour at card reader module Make the specific time point in instruction process and cut off the power supply to described card reader module, in order to determine the power-off protection of described smart card Performance.
At another aspect of the present utility model, it is provided that a kind of smart card power-off protection test system, including: according to this The smart card power-off protection test device of the embodiment of utility model;And host computer, it is configured to break to described smart card Electric protection test device sends and instructs for smart card operating instruction and power supply management.
Embodiment of the present utility model proposes the smart card power-off protection test Solution of a kind of instruction-level, and it can prop up Hold high-precision power-off checkpointing, thus the power-off protection performance of more effectively testing smart card.
Accompanying drawing explanation
Accompanying drawing is used to offer and is further appreciated by of the present utility model, and constitutes a part for description, with following Detailed description of the invention be used for explaining this utility model together, but be not intended that restriction of the present utility model.In the accompanying drawings:
Fig. 1 shows a kind of smart card power-off protection test device according to embodiment of the present utility model and is System;And
Fig. 2 A-2C respectively illustrates three kinds of smart card power-down mode according to embodiment of the present utility model.
Detailed description of the invention
Describe embodiment of the present utility model with reference to the accompanying drawings in detail.In the following description, elaborate that many is concrete Details is to make person of ordinary skill in the field be appreciated more fully from this utility model.But, for art Interior technical staff is it is evident that realization of the present utility model can not have some in these details.Additionally, should manage Solving, this utility model is not limited to introduced specific embodiment.On the contrary, it may be considered that by following feature and key element Combination in any implements this utility model, regardless of whether whether they relate to different embodiments.Therefore, following aspect, feature, Embodiment and advantage are used for illustrative purposes only and are not construed as key element or the restriction of claim, unless the brightest Really propose.
Referring now to Fig. 1, it illustrates a kind of smart card power-off protection test device according to embodiment of the present utility model 100 and system.As shown in Fig. 1, this smart card power-off protection test device 100 includes: control module 101, and at least One card reader module 102.
Described control module 101 is connected with at least one card reader module 102 described, and is configured to described at least one Card reader module 102 in individual card reader module 102 transmits smart card operating instruction.
Each card reader module 102 can be connected with a smart card, and is configured to the smart card connected Transmit described smart card operating instruction, thus the smart card connected is operated.
Described control module 101 is additionally configured to during card reader module 102 transmits described smart card operating instruction Specific time point cut off power supply to described card reader module 102, in order to determine the power-off protection performance of described smart card.
Described control module 101 can be realized by any microprocessor being able to carry out aforesaid operations or microcontroller, Such as by micro controller unit (Microcontroller Unit, MCU) or its array, such as Advanced Reduced Instruction Set machine The microprocessor unit (CPU) of (Advanced RISC Machines, ARM) processor, field programmable gate array (Field Programmable Gate Array, FPGA) etc. realize.As known to persons skilled in the art, described MCU, ARM, The microprocessors such as FPGA or microcontroller can have the storage device being associated and be stored in software therein or firmware instructions, institute State instruction for described microprocessor or microcontroller hardware are programmed so that it performs corresponding operating.
Described card reader module 102 can be card reader module as known in the art or newly developed, such as, can be Any card reader module meeting smart card communication protocol ISO/IEC 7816.Described card reader module 102 can include for The mechanical interface being connected with smart card and electrical interface, such that it is able to receive and keep smart card, it is possible to is formed for intelligence Can card power supply and the mutual electrical connection transmitting instruction and data.Described card reader module 102 could be included for being connected The smart card connect transmits smart card operating instruction, thus the smart card connected operates the circuit of (such as read-write operation) Or chip.
Described smart card power-off protection test device 100 can include one or more card reader module 102.Real at some Shi Liezhong, described smart card power-off protection test device 100 can include multiple card reader module 102, such as 8 card reader moulds Block, this way it is possible to realize test the power-off protection of multiple smart cards simultaneously.
Described smart card can be any card (card of such as plastic material) being embedded with microchip, such as mobile electricity The SIM of words, bank card, purchase card etc..As known to those skilled, the integrated circuit in smart card generally can wrap Include central processing unit (CPU), programmable read only memory (EEPROM), random access memory (RAM) and be solidificated in read only memory Card internal operating system (Chip Operating System, COS) in ROM.Described smart card can be contact intelligent card, It can also be contact type intelligent card.Described smart card can be any smart card communications association meeting such as ISO/IEC 7816 The smart card of view, including A class, B class and C class smart card, thus described card reader module 102 can be assisted according to this smart card communications View and smart card communicate (i.e. transmit smart card operating instruction to smart card, and receive operating result from smart card), thus Complete the operations such as the read-write to smart card.
In certain embodiments, described smart card operating instruction is Application Protocol Data Unit (Application Protocol Data Unit, APDU) instruction.As known to persons skilled in the art, APDU instruction is by smart card communications The intelligent card data transmission imperative structures of agreement defined, an APDU instruction is made up of command header and data volume.Such as this area Technical staff known to, described APDU instruction can include READ BINARY, WRITE BINARY, UPDATE BINARY, ERASE BINARY、READ RECORD、WRITE RECORD、APPEND RECORD、UPDATE RECORD、GET DATA、 PUT DATA、SELECT FILE、VERIFY、INTERNAL AUTHENTICATE、EXTERNAL AUTHENTICATE、GET CHALLENGE, MANAGE CHANNEL, GET RESPONSE, ENVOLOPE etc. instruct.Described control module 101 can be in office Specific time point during the transmission of what APDU instruction cuts off the power supply to card reader module 102, thus instructs for this APDU Carry out power-off test.
In certain embodiments, described smart card operating instruction can be divided into file-level operations instruction, including file more New instruction, increment instruction, inefficacy instruction and activation instruction etc., and card chip level operational order, revise including PIN code, activate, prohibit Only, verify and unlock instruction etc..Described control module 101 can be respectively directed to the instruction of described file-level operations and the operation of card chip level Instruction carries out power-off test, i.e. special time during these transmission instructed and cuts off the power supply to card reader module 102. In other embodiments, described control module 101 can be only to the smart card behaviour relating to the write of the data to smart card or amendment Carry out power-off test as instruction, and the smart card operating instruction only relating to data query is not carried out power-off test.
The power-off protection performance of described smart card generally can refer to the mistake in the operation (especially write operation) to smart card After running into power-off in journey, smart card does not damages (data are not lost), can normally work, and after again connecing electricity, in smart card Data can be automatically restored to original state, it is ensured that data are correct.
Test device 100 due to the smart card power-off protection according to embodiment of the present utility model to pass to smart card Send the specific time point during smart card operating instruction to cut off the power supply to card reader module 102, thus also cut off smart card Power supply, control therefore, it is possible to realize the high accuracy to the instruction-level of power-off time point such that it is able to be effectively tested smart card Power-off protection performance.
In certain embodiments, the transmission of power supply to described card reader module 102 is cut off for described control module 101 Described specific time point during described smart card operating instruction is any one or more in following time point: transmitted described The appointment time after instruction;Transmit the appointment time after the command header in described instruction;And after starting to transmit described instruction The appointment time.
It is to say, in some embodiments, this smart card power-off protection test device 100 supports three kinds of smart card power-off sides Formula.Fig. 2 A-2C respectively illustrates these three smart card power-down mode.
In the first smart card power-down mode as shown in Figure 2 A, when complete APDU is referred to by card reader module 102 After making (i.e. command header and data volume) to be sent, control module 101 immediately begins to power-off countdown, and (this count down time is permissible It is that device is built-in, or can be pre-set by user, or the cut-offing instruction from host computer as described below), countdown At the end of power-off.
In the second smart card power-down mode as shown in Figure 2 B, in APDU is instructed by card reader module 102 After command header is sent, control module 101 immediately begins to power-off countdown, power-off at the end of countdown.
In the third smart card power-down mode as shown in FIG. 2 C, refer to when card reader module 102 starts to send APDU When making, control module 101 immediately begins to power-off countdown, power-off at the end of countdown.
Described control module 101 can be according to the built-in setting of device, pre-setting or as described below according to user Any one of above-mentioned three kinds of power-down mode or multiple are selected according to the cut-offing instruction from host computer.
Smart card power-off protection test device 100 according to above-described embodiment of the present utility model, owing to it supports three kinds Smart card power-down mode, therefore can realize the power-off precision of up to 1us.
In certain embodiments, described smart card power-off protection test device 100 also includes power supply management module 103, its In, described control module 101 cuts off the power supply to described card reader module by controlling described power supply management module 103.Institute State power supply management module 103 can be configured to power to control module 101 and card reader module 102, and be configured to receive From the cut-offing instruction of control module 101, then cut off the power supply to card reader module 102 according to this cut-offing instruction, thus also Cut off the power supply to the smart card that card reader module 102 is connected, so as to detect the power-off protection performance of described smart card. This power supply management module 103 of institute can by any can be to other module for power supply and be able to receive that and perform described cut-offing instruction Circuit or chip realize.
In certain embodiments, described control module 101 can be configured in the following manner and determines the disconnected of smart card Electric protection performance: after smart card has transmitted described smart card operating instruction, reads the corresponding data content in described smart card; Described corresponding data content is compared with correct data content;The disconnected of described smart card is determined according to described comparative result Electric protection performance.
Described smart card operating instruction is being transmitted and described spy to described smart card by described card reader module 102 After timing point cuts off described card reader module, described control module 101 can be by described card reader module 102 to described intelligence The corresponding query statement of transmission can be blocked and read the corresponding data content of described smart card.Such as, refer to when described smart card operation When order relates to the write of the data to certain file in smart card or amendment, described control module 101 can pass through card reader mould Block 102 transmits the data query for this document to smart card and instructs, read the data content of this document, and will be read Data content compares with correct data content.
Described correct data content refers to should exist within a smart card after having performed described smart card operating instruction Data content.Such as, when described smart card operating instruction is data write or amendment instruction, described correct data content Can be write or revise instruction itself to obtain by these data;When described smart card operating instruction is data deletion instruction, described Correct data content can be deducted deleted data content by the data content being originally present in smart card and obtain;When described When smart card operating instruction is data query instruction, described correct data content can be by the data being originally present in smart card Content obtains.
If the corresponding data content of described reading is consistent with described correct data content, the most described control module 101 May determine that described smart card has power-off protection function;If the corresponding data content of described reading and described correct data Content is inconsistent, and the most described control module 101 may determine that described smart card does not have power-off protection function.
In certain embodiments, described control module 101 can such as according to from the setting of host computer for multiple intelligence Test can be repeated by card operational order, i.e. repeat and transmit smart card behaviour by described card reader module 102 to smart card Instruct, described special time cut off the corresponding data content to the power supply of card reader module, read in smart card and with just The process that true data content compares, and if in the test of any one smart card operating instruction, described reading The data content taken is inconsistent with correct data content, then control module 101 may determine that described smart card does not have power-off Defencive function or power-off protection performance are bad;If in the test for all smart card operating instruction, the number of described reading All consistent with correct data content according to content, then control module 101 may determine that described smart card has good power-off and protects Protect performance.
In certain embodiments, described smart card power-off protection test device 100 also includes a wireless communication module 104, Wherein, described control module 101 is additionally configured to send test process number by described wireless communication module 104 to other equipment According to and/or test result.The reading that described test process data such as can include tested smart card operating instruction, be tested The time point that card device module and smart card, cut-out are powered such as arranges at the information, and described test result can be such as in smart card The comparative result of data content and whether there is the judgement of power-off protection function about described smart card.Other equipment examples described As may refer to the mobile devices such as fixed user's mobile phone.In certain embodiments, described wireless communication module 104 can be Gsm module, and this gsm module can with the form of note to user's mobile phone of specifying send described test process data and/ Or test result, to facilitate user check at any time and supervise.
In some other embodiment, described test result can also be sent to hereinafter institute by described control module 101 The host computer stated, in order to by the storage of described host computer, present to user or be sent to other equipment.
In certain embodiments, described control module 101 can be connected with host computer 200, and described control module 101 is also Can be configured to: receive described smart card operating instruction and power supply management instruction from described host computer 200, by described smart card Operational order sends card reader module 102 to, and transmits described intelligence according to the instruction of described power supply management at card reader module 102 Specific time point during card operational order cuts off the power supply to described card reader module 102.
Described host computer 200 can be such as the calculating equipment such as personal computer.Described control module 101 such as can be led to Cross USB, serial ports or other communication interfaces to be connected with described host computer 200.Described host computer 200 such as could be included for and institute State smart card power-off protection test device 100 to connect and the driver communicated.Described host computer 200 such as can also comprise use In the application being carried out smart card power-off protection test by described smart card power-off protection test device 100.This application such as may be used To have a user interface, user can set up test assignment by this user interface, specifies each intelligence to be tested wherein Card operational order, and power supply management instruction.The instruction of described power supply management such as may comprise, for each smart card operation The power-down mode (such as, in three kinds of the above power-down mode one or more) of instruction, and power-off time arranges. Described power-off time is arranged such as can include power-off time started, the most the above power-off count down time, and power-off Persistent period.So, each smart card operating instruction in the test assignment that user just can be set up by described host computer 200 with And power supply management instruction sends described control module 101 to, in order to carried out described power-off test by described control module 101.
The smart card power-off protection test device 100 according to embodiment of the present utility model is described above by reference to accompanying drawing, It is to be noted that above description and diagram are merely illustrative rather than to restriction of the present utility model.Of the present utility model other In embodiment, this device can have the connection between more, less or different modules, and each module, comprise and functional relationship Can from described and diagram different.Such as, in general, two disparate modules can merge into a bigger module, And individual module can also be split as two different modules.
At another aspect of the present utility model, additionally provide a kind of smart card power-off protection test system.This smart card Circuit breaking protective system includes: test device 100 according to the smart card power-off protection of any of the above described embodiments;And described host computer 200, it is configured to send for smart card operating instruction and power supply management to described smart card power-off protection test device Instruction.
Although this utility model is disclosed as above by embodiment, but this utility model is not limited to this.This area Various changes that technical staff is made in without departing from spirit and scope of the present utility model and amendment, all should include this practicality in new The protection domain of type, protection domain of the present utility model with the language of claim and language limited range of equal value thereof is only Accurate.

Claims (8)

1. a smart card power-off protection test device, including: control module, and at least one card reader module, wherein,
Described control module is connected with at least one card reader module described, and is configured to at least one card reader mould described Card reader module in block transmits smart card operating instruction;
Each card reader module can be connected with a smart card, and it is described to be configured to the smart card transmission to being connected Smart card operating instruction, thus the smart card connected is operated;
Described control module is additionally configured to the specific time point during card reader module transmits described smart card operating instruction Cut off the power supply to described card reader module, in order to determine the power-off protection performance of described smart card.
Device the most according to claim 1, wherein, described smart card operating instruction is that Application Protocol Data Unit APDU refers to Order.
Device the most according to claim 1 and 2, wherein, described specific time point is any one in following time point or many Individual:
Transmit the appointment time after described instruction;
Transmit the appointment time after the command header in described instruction;And
Start the appointment time after transmitting described instruction.
Device the most according to claim 1, also includes power supply management module, and wherein, described control module is by controlling institute State power supply management module and cut off the power supply to described card reader module.
Device the most according to claim 1, wherein, described control module determines the disconnected of described smart card in the following manner Electric protection performance:
Transmitting described smart card operating instruction to smart card and cutting off described card reader module at described specific time point After power supply, read the corresponding data content of described smart card;
Described corresponding data content is compared with correct data content;
The power-off protection performance of described smart card is determined according to described comparative result.
Device the most according to claim 5, also includes wireless communication module, wherein,
Described control module be additionally configured to by described wireless communication module to other equipment send test process data and/or Test result.
Device the most according to claim 1, wherein, described control module is connected with host computer, and described control module is also It is configured to: receive described smart card operating instruction and power supply management instruction from described host computer, described smart card operation is referred to Order sends card reader module to, and transmits described smart card operating instruction mistake according to the instruction of described power supply management at card reader module Specific time point in journey cuts off the power supply to described card reader module.
8. a smart card power-off protection test system, including:
According to the smart card power-off protection test device that in claim 1 to 7, any one is described;And
Host computer, it is configured to send smart card operating instruction and for fulgurite to described smart card power-off protection test device Reason instruction.
CN201620782977.8U 2016-07-22 2016-07-22 Smart card power-off protection test Apparatus and system Active CN205809211U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620782977.8U CN205809211U (en) 2016-07-22 2016-07-22 Smart card power-off protection test Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620782977.8U CN205809211U (en) 2016-07-22 2016-07-22 Smart card power-off protection test Apparatus and system

Publications (1)

Publication Number Publication Date
CN205809211U true CN205809211U (en) 2016-12-14

Family

ID=57508560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620782977.8U Active CN205809211U (en) 2016-07-22 2016-07-22 Smart card power-off protection test Apparatus and system

Country Status (1)

Country Link
CN (1) CN205809211U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106093659A (en) * 2016-07-22 2016-11-09 工业和信息化部电子工业标准化研究院 Smart card power-off protection test device, system and method
CN107729196A (en) * 2017-09-30 2018-02-23 东信和平科技股份有限公司 Smart card power failure test method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106093659A (en) * 2016-07-22 2016-11-09 工业和信息化部电子工业标准化研究院 Smart card power-off protection test device, system and method
CN107729196A (en) * 2017-09-30 2018-02-23 东信和平科技股份有限公司 Smart card power failure test method
CN107729196B (en) * 2017-09-30 2020-11-27 东信和平科技股份有限公司 Smart card power-off test method

Similar Documents

Publication Publication Date Title
CN106093659A (en) Smart card power-off protection test device, system and method
US9589160B2 (en) Working method for smart card reader
CN105657637B (en) Data access in mobile device with NFC
EP3258611B1 (en) Mobile device having near field wireless communication function
CN101561857B (en) Multi-mode startup safety embedded system
JP2006523889A (en) Memory card with standard security functions
CN103220411B (en) A kind of hot plug detection method, device and mobile terminal
EP2629499B1 (en) Battery management scheme for NFC
US9418224B2 (en) Portable electronic device and control method of portable electronic device
DE60328637D1 (en) Universal non-volatile memory card with memory controller used with several different standard cards
CN205809211U (en) Smart card power-off protection test Apparatus and system
KR100921852B1 (en) Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system
CN100447700C (en) Multi-function portable device for electronic processors
CN100373404C (en) Process for initializing memory card
US9450751B2 (en) Smart card, electronic device, and portable electronic device
CN100511196C (en) Data processing chip and memory device
KR101621127B1 (en) Ic card, portable electronic device and reader/writer
CN105653412A (en) Fingerprint device compatibility detection method and terminal
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
CN117076365B (en) Method and system for controlling data transmissible peripheral interface of computer
RU2285953C1 (en) Code device
CN116471507B (en) Switch data communication method, device, switch and storage medium
JP2007179294A (en) Ic card, and ic card program
JP2006172271A (en) Multi-application ic card, and program for ic card
CN115840968A (en) Chip with logic encryption card and CPU card and communication method thereof

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant