CN105137227A - Testing device and method for power-down protection of intelligent card - Google Patents

Testing device and method for power-down protection of intelligent card Download PDF

Info

Publication number
CN105137227A
CN105137227A CN201510483495.2A CN201510483495A CN105137227A CN 105137227 A CN105137227 A CN 105137227A CN 201510483495 A CN201510483495 A CN 201510483495A CN 105137227 A CN105137227 A CN 105137227A
Authority
CN
China
Prior art keywords
power
smart card
card
power down
card reader
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
CN201510483495.2A
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.)
Beijing KT Micro Ltd
Original Assignee
Beijing KT Micro 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 Beijing KT Micro Ltd filed Critical Beijing KT Micro Ltd
Priority to CN201510483495.2A priority Critical patent/CN105137227A/en
Publication of CN105137227A publication Critical patent/CN105137227A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a testing device and method for the power-down protection of an intelligent card. The device is disposed at a card reader end, and comprises a writing operation module which is used for executing the writing operation of the intelligent card; a power-down control module which is used for controlling the power-down of a card reader and the new power-on of the card reader in a process that the writing operation module operates the writing operation; and a comparison module which is used for executing the reading operation of the intelligent card after the new power-on of the card reader, and enabling the read data to be compared with initial data stored in the intelligent card, and judging whether the intelligent card has a function of power-down protection or not according to the comparison results. The device and method conveniently facilitate the analysis and positioning of problems through controlling the power-down time of the intelligent card, and improve the testing efficiency of power-down protection.

Description

The proving installation of intelligent card power failure protection and method
Technical field
The present invention relates to field of intelligent cards, particularly relate to proving installation and the method for the protection of a kind of intelligent card power failure.
Background technology
In recent years; smart card is widely used in the every field such as telecommunications, finance, social security, traffic, Internet of Things; sometimes the data in smart card need frequently to change renewal in multiple times; such as: mass transit card; in the process using smart card; likely there is the situation of intelligent card power failure, and if the power-down protection of smart card embodies smart card power down occurs in data variation process, smartcard is according to the protective capability of the primary data before change.Therefore, this just proposes higher requirement to the power-down protection of smart card.In actual use, in order to understand the power-down protection of smart card, need to test the power-down protection of smart card.
In the prior art, in card reader and smart card communications process to the method for testing of power down protection function of smart card, adopt manually-operated mode, frequently make smart card away from entering into the scope that can communicate with card reader again, like this by making smart card frequently leave the theatre to march into the arena again the frequent power down realizing smart card to be energized again, smart card is finally made to march into the arena, read the data in smart card by card reader and whether occur exception with initial Data-testing, if occur abnormal, then illustrate that smart card data when power down are destroyed, smart card does not have power-down protection, if not there is exception, then illustrate that smart card has power-down protection, the test to power down protection function of smart card is realized with this.
But; this method depends on the power down time of smart card in manual operation process completely to the test of the power-down protection of smart card; and be manually-operated mode due to what adopt; therefore the power down time of smart card is random substantially; like this once find that the data in smart card occur abnormal, be difficult to carry out analyzing and orientation problem.And this method needs to adopt manually-operated mode frequently to make smart card leave the theatre and march into the arena, and therefore, the testing efficiency of power down protection is lower.
Summary of the invention
The invention provides proving installation and the method for the protection of a kind of intelligent card power failure, in order to the power down time by controlling smart card, convenient analysis and orientation problem, improve the testing efficiency of power down protection simultaneously.
The invention provides the proving installation of a kind of intelligent card power failure protection, described device is arranged on card reader end, and described device comprises:
Write operation module, for performing the write operation to described smart card;
Power down control module, for performing in the process of described write operation in described write operation module, controlling described card reader power down and re-powering;
Comparison module, for after described card reader re-powers, performs the read operation to described smart card, the primary data of preserving in the data of reading and described smart card is compared, and judges whether described smart card has power-down protection according to comparative result.
The method of testing that the present invention also provides a kind of intelligent card power failure to protect, described method performs at card reader end, and described method comprises:
Perform the write operation to described smart card;
In described execution in the process of the write operation of described smart card, control described card reader power down and re-power;
After described card reader re-powers, perform the read operation to described smart card, the primary data of preserving in the data of reading and described smart card is compared, judge whether described smart card has power-down protection according to comparative result.
In the present invention; write operation module performs the write operation to smart card; power down control module performs in the process of write operation in write operation module; control card reader power down and re-power; comparison module is after card reader re-powers; perform read operation to smart card, the primary data of preserving in the data of reading and smart card compares, and judges whether smart card has power-down protection according to comparative result.Therefore; by controlling card reader power down and re-powering; make smart card also power down re-powering; the power down time of smart card can be controlled; no longer that manual operation makes the random power down of smart card; conveniently when occurring abnormal to analyze and orientation problem, and it is uncontrollable to avoid the power down time manually frequently making smart card leave the theatre and march into the arena to cause, and improves the testing efficiency of power down protection.
Accompanying drawing explanation
Fig. 1 is the structural representation of proving installation first embodiment of intelligent card power failure of the present invention protection;
Fig. 2 is the course of work schematic diagram of proving installation first embodiment of intelligent card power failure of the present invention protection;
Fig. 3 is the structural representation of proving installation second embodiment of intelligent card power failure protection in the present invention;
Fig. 4 is the specific works process schematic of proving installation second embodiment of intelligent card power failure of the present invention protection;
Fig. 5 is the structural representation of proving installation the 3rd embodiment of intelligent card power failure of the present invention protection;
Fig. 6 is a kind of course of work schematic diagram of proving installation the 3rd embodiment of intelligent card power failure of the present invention protection;
Fig. 7 is the another kind of course of work schematic diagram of proving installation the 3rd embodiment of intelligent card power failure of the present invention protection;
Fig. 8 is the storage organization in mifare card.
Embodiment
Below in conjunction with specification drawings and specific embodiments, the invention will be further described.
As shown in Figure 1; for the structural representation of proving installation first embodiment of intelligent card power failure protection of the present invention; this Plant arrangement is at card reader end; specifically can comprise: write operation module 11, power down control module 12 and comparison module 13; power down control module 12 is connected with write operation module 11, and comparison module 13 is connected with power down control module 12.
In the present embodiment, write operation module 11 is for performing the write operation to smart card; Power down control module 12 is for performing in the process of write operation in above-mentioned write operation module 11, and control card reader power down and re-power, card reader power down, then intelligent card power failure, card reader re-powers, then smart card also re-powers; Comparison module 13 is for after card reader re-powers; perform the read operation to smart card; the primary data of preserving in the data of reading and smart card is compared; judge whether smart card has power-down protection according to comparative result; if the data read are consistent with the primary data of preserving in smart card; then judge that smart card has power-down protection, if the primary data of preserving in the data and the smart card that read is inconsistent, then judgement smart card does not have power-down protection.
The course of work of the present embodiment is as follows: as shown in Figure 2, and be the specific works process schematic of proving installation first embodiment of intelligent card power failure protection of the present invention, this schematic diagram specifically can comprise the steps:
Step 21, write operation module 11 perform the write operation to smart card;
Step 22, perform in write operation process in write operation module 11, power down control module 12 controls card reader power down and re-powers;
Particularly, card reader power down, then smart card is also with regard to power down, and equally, card reader re-powers, then smart card also re-powers;
Step 23, comparison module 13 are after card reader re-powers, perform the read operation to smart card, the primary data of preserving in the data of reading and smart card is compared, judge that whether the data read are consistent with the primary data of preserving in smart card, if then perform step 24, otherwise perform step 25;
Can judge whether smart card has power-down protection according to comparative result;
Step 24, when read data consistent with the primary data of preserving in smart card time, judgement smart card there is power-down protection;
Step 25, when the primary data of preserving in the data and the smart card that read is inconsistent, judgement smart card does not have power-down protection.
In the present embodiment; write operation module 11 performs the write operation to smart card; power down control module 12 performs in the process of write operation in write operation module 11; control card reader power down and re-power; comparison module 13 is after card reader re-powers; perform read operation to smart card, the primary data of preserving in the data of reading and smart card compares, and judges whether smart card has power-down protection according to comparative result.Therefore; by controlling card reader power down and re-powering; make smart card also power down re-powering; the power down time of smart card can be controlled; no longer that manual operation makes the random power down of smart card; conveniently when occurring abnormal to analyze and orientation problem, and it is uncontrollable to avoid the power down time manually frequently making smart card leave the theatre and march into the arena to cause, and improves the testing efficiency of power down protection.
As shown in Figure 3; for the structural representation of proving installation second embodiment of intelligent card power failure protection in the present invention; on the basis of a upper embodiment; power down control module 12 specifically can comprise the first setting unit 31 and the first power down control module 32; first setting unit 31 is connected with the first power down control module 32, and the first power down control module 32 is connected with write operation module 11 and comparison module 13.Wherein, the first setting unit 31 is for arranging power down time and the power-on time of card reader; First power down control module 32, for performing in the process of write operation in write operation module 11, controls card reader power down according to power down time, controls card reader re-power according to power-on time.Particularly, first setting unit 31 can choose according to write operation module 11 power down time that a time period is set to card reader within the time that smart card performs a write operation, then card reader carries out a power down within this time period, and the first setting unit 31 arrange power-on time be after card reader power down after a predetermined time after time, here the schedule time can set according to actual service condition, after representing card reader disconnection and the communication of smart card, recover the communication institute elapsed time with smart card again.Therefore; the test of the power down protection to smart card can be determined on some time periods concrete in smart card write operation process by the power down time according to arranging; the time that this power down can be arbitrarily set is needed according to concrete test; when performing power down protection test; in process smart card being performed to write operation, make smart card carry out a power down at the power down time set; when occurring abnormal, can find fast and occurring abnormal position.
As shown in Figure 4, be the specific works process schematic of proving installation second embodiment of intelligent card power failure protection of the present invention, this schematic diagram specifically can comprise the steps:
Step 41, the first setting unit 31 arrange power down time and the power-on time of card reader;
Particularly, first setting unit 31 can choose according to write operation module 11 power down time that a time period is set to card reader within the time that smart card performs a write operation, arrange power-on time be after card reader power down after a predetermined time after time, this schedule time can set according to actual service condition;
Step 42, write operation module 11 perform the write operation to smart card;
Step 43, perform in write operation process in write operation module 11, the first power down control module 32 controls card reader power down according to power down time, controls card reader re-power according to power-on time;
Step 44, comparison module 13 are after card reader re-powers, perform the read operation to smart card, the primary data of preserving in the data of reading and smart card is compared, judge that whether the data read are consistent with the primary data of preserving in smart card, if then perform step 45, otherwise perform step 46;
Step 45, when read data consistent with the primary data of preserving in smart card time, judgement smart card there is power-down protection;
Step 46, when the primary data of preserving in the data and the smart card that read is inconsistent, judgement smart card does not have power-down protection.
As shown in Figure 5; for the structural representation of proving installation the 3rd embodiment of intelligent card power failure protection of the present invention; be with the difference of the second embodiment; in this embodiment; power down control module 12 specifically can comprise the second setting unit 51 and the second power down control module 32; second setting unit 51 is connected with the second power down control module 52, and the second power down control module 52 is connected with write operation module 11 and comparison module 13.Wherein, the second setting unit 51 is for arranging power down time more than two and power-on time, second power down control module 52 is for performing in the process of write operation in write operation module 11, control card reader and carry out power down according to often organizing power down time and power-on time and re-power, particularly, second setting unit 51 can be chosen the plural time period and be set to power down time within the time that write operation module 11 pairs of smart cards perform a write operation, after card reader power down after a predetermined time after set of time be power-on time, obtain power down time more than two and power-on time, then the second power down control module 52 controls card reader power down according to the power down time often organized, control card reader according to the power-on time often organized to re-power, like this, card reader can be made to carry out power down more than two and the process re-powered, comparison module 13 is after card reader re-powers at every turn, perform the read operation to smart card, the primary data of preserving in the data of reading and smart card is compared, according to comparative result and the number of times performed that powers on, judge whether smart card has power-down protection, particularly, when the data read are consistent with the primary data of preserving in smart card, judge whether described card reader executes power down time more than two and power-on time, when card reader executes power down time more than two and the power-on time of the second setting unit 51 setting, judge that smart card has power-down protection, when card reader does not execute power down time more than two and the power-on time of the second setting unit 51 setting, then return the process that write operation module 11 continues to perform write operation next time, second power down control module 52 controls card reader according to next power down time organized and power-on time to carry out the power down of next group and re-powers, when the primary data of preserving in the data read and smart card is inconsistent, judge that smart card does not have power-down protection.
As shown in Figure 6, be a kind of course of work schematic diagram of proving installation the 3rd embodiment of intelligent card power failure protection of the present invention, this schematic diagram specifically can comprise the steps:
Step 61, the second setting unit 51 arrange power down time more than two and power-on time;
Particularly, second setting unit 51 can be chosen the plural time period and be set to power down time within the time that write operation module 11 pairs of smart cards perform a write operation, after card reader power down after a predetermined time after set of time be power-on time, thus obtain power down time more than two and power-on time;
Step 62, write operation module 11 perform the write operation to smart card;
Step 63, the second power down control module 52 perform in the process of write operation in write operation module 11, control card reader and carry out power down according to often organizing power down time and power-on time and re-power;
Like this, the second power down control module 52 controls card reader power down according to the power down time often organized and power-on time and re-powers, and realizes controlling card reader and carries out power down more than two and the process re-powered;
Step 64, comparison module 13 are after card reader re-powers at every turn, perform the read operation to smart card, the primary data of preserving in the data of reading and smart card is compared, judge that whether the data read are consistent with the primary data of preserving in smart card, if then perform step 65, otherwise perform step 67;
Step 65, when read data consistent with the primary data of preserving in smart card time, judge whether card reader executes power down time more than two and the power-on time of the second setting unit 51 setting, if then perform step 66, otherwise return step 62 continue next group power down and the process re-powered;
Step 66, when card reader execute second setting unit 51 arrange power down time more than two and power-on time time, judge smart card there is power-down protection;
Step 67, when the primary data of preserving in the data and the smart card that read is inconsistent, judgement smart card does not have power-down protection.
Alternatively, in this embodiment, also has a kind of special situation, power down control module 12 performs in the process of write operation in write operation module 11, control card reader and carry out power down according to often organizing power down time and power-on time and re-power, then after write operation module 11 pairs of smart cards complete write operation, make intelligent card power failure once, judge whether the data in smart card are tampered.Schematic diagram shown in Figure 5 again, comparison module 13 specifically can comprise judging unit 131, read operation unit 132, first comparing unit 133 and the second comparing unit 134, judge module 131 is connected with the second power down control module 52 with read operation unit 132, first comparing unit 133 is connected with judge module 131 and read operation unit 132, and the second comparing unit 134 is all connected with write operation module 11, judge module 131 and read operation unit 132.Wherein, judging unit 131 is for after card reader re-powers at every turn, judge whether the write acknowledgement message receiving smart card transmission, by judging whether the acknowledge message receiving smart card transmission, before judging power down, whether write operation module 11 completes write operation to smart card, read operation unit 132, for after card reader re-powers at every turn, performs the read operation to smart card, first comparing unit 133 is for judging the write acknowledgement message receiving smart card transmission during when judging unit 131, the data read read operation unit 132 and the data of write compare, judge whether the data of smart card are tampered according to comparative result, now, before power down, write operation module 11 pairs of smart cards complete write operation, the data of the data that read operation unit 132 reads by the first comparing unit 133 and write compare, if the data read and the data consistent of write, then judge that the data of smart card are not tampered, and the process also normal termination of whole power down protection test, if the data read and the data of write inconsistent, then judge that the data of smart card are tampered, second comparing unit 134 is for judging the write acknowledgement message not receiving smart card transmission during when judging unit 131, the primary data of preserving in the data read read operation unit 132 and smart card compares, according to comparative result and the number of times performed that powers on, judge whether smart card has power-down protection, now, before power down, write operation module 11 pairs of smart cards do not complete write operation, the primary data of preserving in the data that read operation unit 132 reads by the second comparing unit 134 and smart card compares, if when the data read are consistent with the primary data of preserving in smart card, judge whether card reader executes power down time more than two and the power-on time of the second setting unit 51 setting, when card reader executes power down time more than two and the power-on time of the second setting unit 51 setting, then judge that smart card has power-down protection, when card reader does not execute power down time more than two and the power-on time of the second setting unit 51 setting, return the process that write operation module 11 continues to perform write operation next time, second power down control module 52 controls card reader according to next power down time organized and power-on time to carry out the power down of next group and re-powers, if when in the data read and smart card, the primary data of preserving is inconsistent, then judge that smart card does not have power-down protection.Like this; repeatedly can test for multiple time period; realize the write operation module 11 pairs of smart cards perform in the process of write operations make smart card at least power down once, whether testing smart card has power-down protection, can also judge whether the data in smart card are tampered.
As shown in Figure 7, be the another kind of course of work schematic diagram of proving installation the 3rd embodiment of intelligent card power failure protection of the present invention, this schematic diagram specifically can comprise the steps:
Step 701, the second setting unit 51 arrange power down time and the power-on time of card reader;
Particularly, second setting unit 51 can be chosen the plural time period and be set to power down time within the time that write operation module 11 pairs of smart cards perform a write operation, after card reader power down after a predetermined time after set of time be power-on time, thus obtain power down time more than two and power-on time;
Step 702, write operation module 11 pairs of smart cards perform write operation;
Step 703, the second power down control module 52 control card reader power down according to power down time, control card reader power on according to power-on time;
The often group power down time that second power down control module 52 specifically can be arranged according to step 701, card reader power down is controlled in the different time periods, and at the often group power-on time arranged, card reader is re-powered, card reader is performed in the process of write-once operation at write operation module 11 pairs of smart cards and carries out power down more than two and the process re-powered;
Step 704, judging unit 131 judge whether the write acknowledgement message receiving smart card transmission, if then perform step 705, otherwise perform step 709;
Step 705, read operation unit 132 perform the read operation to smart card;
The data of step 706, data that read operation unit 132 reads by the first comparing unit 133 and write compare, and judge that whether the data read are consistent with the data of write, if then execution step 707, otherwise execution step 708;
Step 707, when the data consistent of data and the write of reading, the data of judgement smart card are not tampered;
Step 708, when the data of data and the write of reading are inconsistent, the data of judgement smart card are tampered;
Step 709, read operation unit 132 perform the read operation to smart card;
The primary data of preserving in the data that read operation unit 132 reads by step 710, the second comparing unit 134 and smart card compares, judge that whether the data read are consistent with the primary data of preserving in smart card, if then perform step 711, otherwise perform step 713;
Step 711, when read data consistent with the primary data of preserving in smart card time, judge whether card reader executes power down time more than two and the power-on time of the second setting unit 51 setting, if then perform step 712, otherwise return step 702 continue next group power down and the process re-powered;
Step 712, when card reader execute second setting unit 51 arrange power down time more than two and power-on time time, judge smart card there is power-down protection;
Step 713, when the primary data of preserving in the data and the smart card that read is inconsistent, judgement smart card does not have power-down protection.
Alternatively, then schematic diagram shown in Figure 5, the proving installation of this intelligent card power failure protection can also comprise logging modle 53, and logging modle 53 is connected with the second power down control module 52.Logging modle 53 is for recording the number of times of card reader power down.Accordingly, in a kind of course of work schematic diagram of the present embodiment shown in Fig. 6, can increase step 68 between step 63 and step 64, step 68 is specially: logging modle 53 records the number of times of card reader power down; Similarly, in the another kind of course of work schematic diagram of the present embodiment shown in Fig. 7, can increase step 714 between step 703 and step 704, step 714 is specially: logging modle 53 records the number of times of card reader power down.By recording the number of times of power down, when just can there are abnormal conditions in test process, learn the number of times of now power down, thus the time that just can obtain according to the power down time arranged when there is exception, be conducive to finding and occur the abnormal time in process smart card being performed to a write operation, so just can according to occurring the data that the abnormal time obtains when there is exception in write operation process, and then analyze and occur abnormal data.
Alternatively, in the present embodiment, operating unit when write operation module 11 pairs of smart cards perform a write operation specifically can block in intelligent card corresponding memory construction, can also page in intelligent card corresponding memory construction.It should be noted that, block in the storage organization of the storer of some smart card can be divided into data block and controll block, such as: mifare card, as shown in Figure 8, for the storage organization of mifare card, in the storage organization shown in this figure, comprise 15 sectors, in each sector, have 4 pieces, be respectively block 0, block 1, block 2 and block 3, the size of each piece is 16 bytes, and wherein, block 0, block 1 and block 2 are data blocks, for storing data, block 3 is controll block, and for storing control information, control information comprises Read-write Catrol condition and key.Key and the Read-write Catrol condition of each sector are independently, so only include the key of this sector and the Read-write Catrol condition of this sector in the controll block of each sector, such as: in sector 0, block 3 is controll block, block 3 comprise this sector 0 key and for the Read-write Catrol condition of each piece in this sector 0.The key of the controll block in each sector is different from the key of data block, so distinguish data block and controll block according to different sector numbers and block number, the corresponding data block obtained is just not identical with controll block key.Therefore, before the proving installation adopting intelligent card power failure of the present invention to protect is tested, first can choose data block or the controll block operating unit as aforesaid execution write operation according to different sector numbers and block number, then the test of power down protection is started for this operating unit, read in the process of the data of this operating unit at read operation unit 132, because the key of data block is different with the key of controll block, read operation unit 132 according to operating unit be data block or controll block different key can be adopted to realize smart card mutual, read the data of intelligent card data block or controll block.Like this, just data block and controll block can be separated, realize the test targetedly data block and controll block being carried out to power down protection.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a proving installation for intelligent card power failure protection, it is characterized in that, described Plant arrangement is at card reader end, and described device comprises:
Write operation module, for performing the write operation to described smart card;
Power down control module, for performing in the process of described write operation in described write operation module, controlling described card reader power down and re-powering;
Comparison module, for after described card reader re-powers, performs the read operation to described smart card, the primary data of preserving in the data of reading and described smart card is compared, and judges whether described smart card has power-down protection according to comparative result.
2. device according to claim 1, is characterized in that, described power down control module comprises:
First setting unit, for arranging power down time and the power-on time of described card reader;
First power down control module, for performing in the process of described write operation in described write operation module, controlling described card reader power down according to described power down time, controlling described card reader re-power according to described power-on time.
3. device according to claim 1, is characterized in that, described power down control module comprises:
Second setting unit, for arranging power down time more than two and power-on time;
Second power down control module, for performing in the process of described write operation in described write operation module, controlling described card reader and carries out power down according to often organizing power down time and power-on time and re-power;
Described comparison module is used for after described card reader re-powers at every turn; perform the read operation to described smart card; the primary data of preserving in the data of reading and described smart card is compared; according to comparative result and the number of times performed that powers on, judge whether described smart card has power-down protection.
4. device according to claim 3, is characterized in that, described comparison module comprises:
Judging unit, for after described card reader re-powers at every turn, judges whether the write acknowledgement message receiving the transmission of described smart card;
Read operation unit, for after described card reader re-powers at every turn, performs the read operation to described smart card;
First comparing unit, during for judging the write acknowledgement message receiving the transmission of described smart card when described judging unit, the data read described read operation unit and the data of write compare, and judge whether the data of described smart card are tampered according to comparative result;
Second comparing unit; during for judging the write acknowledgement message not receiving the transmission of described smart card when described judging unit; the primary data of preserving in the data of described read operation unit reading and described smart card is compared; according to comparative result and the number of times performed that powers on, judge whether described smart card has power-down protection.
5. device according to claim 3, is characterized in that, described device also comprises logging modle, for recording the number of times of described card reader power down.
6. a method of testing for intelligent card power failure protection, is characterized in that, described method performs at card reader end, and described method comprises:
Perform the write operation to described smart card;
In described execution in the process of the write operation of described smart card, control described card reader power down and re-power;
After described card reader re-powers, perform the read operation to described smart card, the primary data of preserving in the data of reading and described smart card is compared, judge whether described smart card has power-down protection according to comparative result.
7. method according to claim 6, is characterized in that, the described card reader power down of described control re-powering is specially:
Power down time and the power-on time of described card reader are set;
In described execution in the process of the write operation of described smart card, control described card reader power down according to described power down time, control described card reader according to described power-on time and re-power.
8. method according to claim 6, is characterized in that, the described card reader power down of described control re-powering is specially:
Power down time more than two and power-on time are set;
In described execution in the process of the write operation of described smart card, control described card reader and carry out power down according to often organizing power down time and power-on time and re-power;
Describedly judge whether described smart card has power-down protection and be specially according to comparative result:
After described card reader re-powers at every turn; perform the read operation to described smart card; the primary data of preserving in the data of reading and described smart card is compared, according to comparative result and the number of times performed that powers on, judges whether described smart card has power-down protection.
9. method according to claim 8, is characterized in that, describedly judges whether described smart card has power-down protection and be specially according to comparative result:
After described card reader re-powers at every turn, judge whether the write acknowledgement message receiving the transmission of described smart card;
After described card reader re-powers at every turn, perform the read operation to described smart card;
When the described write acknowledgement message judging whether to receive the transmission of described smart card judges the write acknowledgement message receiving the transmission of described smart card, the data described execution read the read operation of described smart card and the data of write compare, and judge whether the data of described smart card are tampered according to comparative result;
When the described write acknowledgement message judging whether to receive the transmission of described smart card judges the write acknowledgement message not receiving the transmission of described smart card; the primary data of preserving in the data that just described execution is read the read operation of described smart card and described smart card compares; according to comparative result and the number of times performed that powers on, judge whether described smart card has power-down protection.
10. method according to claim 8, is characterized in that, described method also comprises:
Record the number of times of described card reader power down.
CN201510483495.2A 2015-08-03 2015-08-03 Testing device and method for power-down protection of intelligent card Pending CN105137227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510483495.2A CN105137227A (en) 2015-08-03 2015-08-03 Testing device and method for power-down protection of intelligent card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510483495.2A CN105137227A (en) 2015-08-03 2015-08-03 Testing device and method for power-down protection of intelligent card

Publications (1)

Publication Number Publication Date
CN105137227A true CN105137227A (en) 2015-12-09

Family

ID=54722643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510483495.2A Pending CN105137227A (en) 2015-08-03 2015-08-03 Testing device and method for power-down protection of intelligent card

Country Status (1)

Country Link
CN (1) CN105137227A (en)

Cited By (7)

* 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
CN106708680A (en) * 2016-12-15 2017-05-24 北京海泰方圆科技股份有限公司 Power-off test system, method and apparatus
CN106771738A (en) * 2016-12-14 2017-05-31 新智数字科技有限公司 A kind of equipment for testing electronic card performance
CN107390063A (en) * 2017-08-03 2017-11-24 恒宝股份有限公司 A kind of power down method of testing and device
CN107729196A (en) * 2017-09-30 2018-02-23 东信和平科技股份有限公司 Smart card power failure test method
CN108009062A (en) * 2017-12-14 2018-05-08 郑州云海信息技术有限公司 A kind of enterprise-level SSD system power failures function test method, apparatus and system
CN112904129A (en) * 2021-01-27 2021-06-04 深圳市汇顶科技股份有限公司 Test equipment and test method for anti-pulling function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07239814A (en) * 1994-02-28 1995-09-12 Toshiba Corp Data processor
JP2004070460A (en) * 2002-08-02 2004-03-04 Nec Engineering Ltd Memory circuit with failure monitoring
CN101576860A (en) * 2009-06-11 2009-11-11 成都市华为赛门铁克科技有限公司 Detection method and detection system
CN102520272A (en) * 2011-11-24 2012-06-27 大唐微电子技术有限公司 Test system of power down protection function of smart card and method
CN102590588A (en) * 2012-02-23 2012-07-18 海军工程大学 Instantaneous power-down monitoring device and power-down processing method for DC power supply
CN204882750U (en) * 2015-08-03 2015-12-16 昆腾微电子股份有限公司 Smart card power down protection's testing arrangement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07239814A (en) * 1994-02-28 1995-09-12 Toshiba Corp Data processor
JP2004070460A (en) * 2002-08-02 2004-03-04 Nec Engineering Ltd Memory circuit with failure monitoring
CN101576860A (en) * 2009-06-11 2009-11-11 成都市华为赛门铁克科技有限公司 Detection method and detection system
CN102520272A (en) * 2011-11-24 2012-06-27 大唐微电子技术有限公司 Test system of power down protection function of smart card and method
CN102590588A (en) * 2012-02-23 2012-07-18 海军工程大学 Instantaneous power-down monitoring device and power-down processing method for DC power supply
CN204882750U (en) * 2015-08-03 2015-12-16 昆腾微电子股份有限公司 Smart card power down protection's testing arrangement

Cited By (11)

* 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
CN106771738A (en) * 2016-12-14 2017-05-31 新智数字科技有限公司 A kind of equipment for testing electronic card performance
CN106708680A (en) * 2016-12-15 2017-05-24 北京海泰方圆科技股份有限公司 Power-off test system, method and apparatus
CN106708680B (en) * 2016-12-15 2018-04-06 北京海泰方圆科技股份有限公司 A kind of system of power down test, method and apparatus
CN107390063A (en) * 2017-08-03 2017-11-24 恒宝股份有限公司 A kind of power down method of testing and device
CN107390063B (en) * 2017-08-03 2020-11-06 恒宝股份有限公司 Power failure test method and device
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
CN108009062A (en) * 2017-12-14 2018-05-08 郑州云海信息技术有限公司 A kind of enterprise-level SSD system power failures function test method, apparatus and system
CN112904129A (en) * 2021-01-27 2021-06-04 深圳市汇顶科技股份有限公司 Test equipment and test method for anti-pulling function
CN112904129B (en) * 2021-01-27 2022-09-27 深圳市汇顶科技股份有限公司 Test equipment and test method for anti-pulling function

Similar Documents

Publication Publication Date Title
CN105137227A (en) Testing device and method for power-down protection of intelligent card
CN105988718B (en) Non-volatile memory device and control method performed by controller
CN101794256B (en) Non-volatile memory subsystem and Memory Controller thereof
CN110335635B (en) Method for managing a memory device, memory device and controller
US20170147266A1 (en) Memory control method and memory control apparatus
CN104516471A (en) Method and device for managing power supply of storage system
KR20100113083A (en) A controller for a multiple bit per cell nand flash memory for emulating a single bit per cell nand flash memory
CN102789403B (en) A kind of flash controller and control method thereof
CN103678150A (en) Method and device for using solid state disk
CN102522121B (en) The method that solid state hard disc is repaired automatically and solid state hard disc thereof
CN103064792A (en) Method and device for writing data
CN101826367A (en) Method and device for monitoring reliability of semiconductor storage device
CN103576835A (en) Data manipulation method and device for sleep disk
CN103514958A (en) Method for detecting service life of EMMC (embedded multi-media card) chip
CN102298543A (en) Memory management method and memory management device
CN111651371B (en) Asymmetric plane management method, data storage device and controller thereof
CN102609741A (en) Mobile device and method for exchange data between internal and external storage cards
CN101004936A (en) Information storage device and its control method
CN105404533A (en) Program upgrading method and apparatus
US10176876B2 (en) Memory control method and apparatus for programming and erasing areas
CN204882750U (en) Smart card power down protection's testing arrangement
CN103593301B (en) Bad block management method and system
CN102622315B (en) Method, device and system for controlling disc visiting
CN111124303A (en) Data storage method, device and system
CN105573872A (en) Hardware maintenance method and device of data storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151209

WD01 Invention patent application deemed withdrawn after publication