Movatterモバイル変換


[0]ホーム

URL:


CN109685190A - A kind of IC card power-off protection method and device - Google Patents

A kind of IC card power-off protection method and device
Download PDF

Info

Publication number
CN109685190A
CN109685190ACN201811621864.XACN201811621864ACN109685190ACN 109685190 ACN109685190 ACN 109685190ACN 201811621864 ACN201811621864 ACN 201811621864ACN 109685190 ACN109685190 ACN 109685190A
Authority
CN
China
Prior art keywords
data
storage address
microprocessor
backup
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811621864.XA
Other languages
Chinese (zh)
Other versions
CN109685190B (en
Inventor
杨华威
曹炜
陆道如
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Hengbao Intelligent System Technology Co Ltd
Original Assignee
Jiangsu Hengbao Intelligent System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Hengbao Intelligent System Technology Co LtdfiledCriticalJiangsu Hengbao Intelligent System Technology Co Ltd
Priority to CN201811621864.XApriorityCriticalpatent/CN109685190B/en
Publication of CN109685190ApublicationCriticalpatent/CN109685190A/en
Application grantedgrantedCritical
Publication of CN109685190BpublicationCriticalpatent/CN109685190B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

This application provides a kind of IC card power-off protection method and devices, wherein this method is applied to the microprocessor in IC card;This method comprises: obtaining the corresponding multiple storage address of Data Identification in service request after the service request for receiving terminal device transmission;The corresponding initial data of multiple storage address is read from the data field of memory;Storage address to be processed is selected from multiple storage address, and the page info of memory page where storage address to be processed is written to the area the backup area Zhong Fangba;If microprocessor power down when responding the corresponding initial data of any storage address to be processed, after microprocessor re-powers, microprocessor covers the page info of memory page where the initial data in the data field based on the corresponding page info of the initial data in the area Fang Ba.The embodiment of the present application achievees the effect that prevent loss of data at no point in the update process by dividing the area Fang Ba in the memory of IC card.

Description

A kind of IC card power-off protection method and device
Technical field
This application involves integrated circuit card technology fields, in particular to a kind of IC card power-off protection method and device.
Background technique
IC card is a kind of card using chip as medium.Chip card capacity is big, can store key, digital certificate and refers toThe much informations such as line, working principle is similar to microcomputer, and can handle multiple functions simultaneously, provides one for holderThe multi-purpose convenience of card.
IC card most basic at present is Contact Type Ic Card, is actually IC chip, general structure includes non-volatileProperty memory, relay protective scheme circuit and microprocessor CPU.The memory of IC card is divided into EEPROM, ROM and Flash, more next at presentMore IC card chips selects Flash as storage medium (also referred to as flash memory), because flash storage is not connecting electricityIn the case of be capable of the information of long-term preservation storage, the characteristics of flash storage existing ROM (read-only memory), and have very highStorage speed, and be easy to wipe and rewrite, the lesser feature of power consumption;Flash storage compared with EEPROM, it is at low cost andDensity is big.
Although flash storage is with the problem of lot of advantages, there are still erasable power down in the process.Work as needsWhen being updated to the data of flash storage target area, needs first to wipe the data in target area and write afterwards, since Flash is depositedThe minimum unit of reservoir erasing is one page, will lead to the loss of whole page data if the power down in above-mentioned renewal process,Therefore at no point in the update process, other than protecting the several bytes to be updated, it is also necessary to be protected to whole page.So to FlashThe anti-lost electric protection of memory is particularly important.
Apply for content
In view of this, embodiments herein is to provide a kind of IC card power-off protection method and device, to reduce IC cardThe probability that power down causes whole page data to lose in use process.
In a first aspect, the embodiment of the present application provides a kind of IC card power-off protection method, wherein applied to micro- in IC cardProcessor, the IC card further include the memory connecting with the microprocessor, and the memory includes data field and backup area;The described method includes:
After the service request for receiving terminal device transmission, the Data Identification obtained in the service request is corresponding moreA storage address;The corresponding initial data of the multiple storage address is read from the data field of the memory;
Select storage address to be processed from multiple storage address, and by memory page where the storage address to be processedPage info be written to the area the backup area Zhong Fangba;The page info includes page data;
If microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the microprocessorAfter re-powering, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the data fieldIn memory page where the initial data page info.
With reference to first aspect, the embodiment of the present application provides the first possible embodiment of first aspect, wherein instituteIt states after reading the corresponding initial data of the multiple storage address in the data field of the memory, the method is also wrappedIt includes:
By each storage address and the corresponding initial data of each storage address, and, each described initial dataThe storage address of corresponding original associated data and the original associated data is written to the backup stack of the backup area;
If microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the microprocessorAfter re-powering, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the data fieldIn memory page where the initial data page info after, the method also includes:
The corresponding original associated data of the initial data and the original incidence number are obtained from the backup stack of the backup areaAccording to corresponding storage address;
The corresponding current pass of the storage address obtained in the data field is covered using the original associated data of acquisitionJoin data.
With reference to first aspect, the embodiment of the present application provides second of possible embodiment of first aspect, wherein instituteIt states and selects storage address to be processed from multiple storage address, and by the page of memory page where the storage address to be processedInformation is written to after the area the backup area Zhong Fangba, further includes:
Page info for memory page where the storage address to be processed of the area Fang Ba storage is provided with criterionKnow;
When microprocessor non-power down when responding the corresponding initial data of the storage address to be processed, then anti-pulled out to be describedFailure indication is arranged in the page info of memory page where the storage address to be processed of area's storage.
The possible embodiment of second with reference to first aspect, the embodiment of the present application provide the third of first aspectPossible embodiment, wherein if microprocessor power down when responding the corresponding initial data of any storage address to be processed, whenAfter the microprocessor re-powers, the method also includes:
The microprocessor detects the page letter at storage address place to be processed memory page described in the area Fang BaWhen ceasing no-failure mark, detect the page info it is corresponding effectively identify whether it is complete, when the microprocessor detects instituteState page info it is corresponding it is effective mark it is complete when, the microprocessor be based on the area Fang Ba in the corresponding page of the initial dataFace information covers the page info of memory page where the initial data in the data field.
The possible embodiment of with reference to first aspect the first, the embodiment of the present application provide the 4th kind of first aspectPossible embodiment, wherein by each storage address and the corresponding initial data of each storage address, and, eachThe storage address of the corresponding original associated data of initial data and the original associated data is written to the backup areaBackup stack, which comprises
Each storage address and the corresponding initial data of each storage address are written to the backup of the backup areaIn stack;
The microprocessor be the backup stack in each storage address and each storage address it is corresponding originalData distribute the first checking mark, generate the first duplicated record, and store first checking mark;
The storage address of each corresponding original associated data of target data and the original associated data is writeEnter into the backup stack of the backup area;
The microprocessor is that the corresponding original associated data of each initial data is original with this in the backup stackThe second checking mark of allocations of storage addresses of associated data generates the second duplicated record, and stores second checking mark.
The 4th kind of possible embodiment with reference to first aspect, the embodiment of the present application provide the 5th kind of first aspectPossible embodiment, wherein if microprocessor power down when responding the corresponding initial data of any storage address to be processed, whenAfter the microprocessor re-powers, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and coversIt covers in the data field after the page info of memory page where the initial data, the method also includes:
The microprocessor verifies first checking mark in first duplicated record, when verification passes throughAfterwards, the microprocessor verifies second checking mark in second duplicated record;
After verification passes through, corresponding second duplicated record of initial data is obtained from the backup stack of the backup areaIn original associated data and the corresponding storage address of the original associated data;
The corresponding current pass of the storage address obtained in the data field is covered using the original associated data of acquisitionJoin data;
From depositing for the initial data and initial data obtained in the backup stack of the backup area in first duplicated recordStore up address;
The corresponding current data of the storage address obtained in the data field is covered using the initial data of acquisition.
The possible embodiment of with reference to first aspect the first, the embodiment of the present application provide the 6th kind of first aspectPossible embodiment, wherein the backup stack of the backup area includes multiple backup blocks, the method also includes:
A target is selected in the multiple backup block originates memory block;
The microprocessor by currently pending storage address and the corresponding initial data of currently pending storage address, withAnd the storage address of the corresponding original associated data of the initial data and the original associated data is written to the target and risesBeginning memory block;
When monitoring that the access times of target starting memory block reach preset threshold value, according to preset sequence,It is that next target originates memory block that the backup block in addition to the target originates memory block is selected from the multiple backup block.
6th kind of possible embodiment with reference to first aspect, the embodiment of the present application provide first aspect the 7th kind canThe embodiment of energy, wherein it is next that the backup block in addition to the target originates memory block is selected from the multiple backup blockAfter a target starting memory block, the method also includes:
When the microprocessor monitors into the backup stack without optional backup block after, again in the multiple backup blockIn select target and originate memory block, repeat currently pending storage address and the corresponding original of currently pending storage addressBeginning data, and, the storage address of the corresponding original associated data of initial data and the original associated data is written toThe process of the target starting memory block, until the access times of the backup stack reach preset threshold value.
6th kind of possible embodiment with reference to first aspect, the embodiment of the present application provide first aspect the 8th kind canThe embodiment of energy, wherein the method also includes:
If monitoring the multiple backup block not in the memory range of the backup stack, the target for resetting backup block is risenBeginning backup block, so that the multiple backup block is all in the memory range of the backup stack.
Second aspect, the embodiment of the present application also provides a kind of IC card power-down protection apparatus, wherein described device includes micro-Processor, the memory connecting with the microprocessor, the memory further include data field and backup area;
The microprocessor, for obtaining in the service request after the service request for receiving terminal device transmissionThe corresponding multiple storage address of Data Identification;It is corresponding that the multiple storage address is read from the data field of the memoryInitial data;Select storage address to be processed from multiple storage address, and by memory page where the storage address to be processedThe page info in face is written to the area the backup area Zhong Fangba;The page info includes page data;
If microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the microprocessorAfter re-powering, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the data fieldIn memory page where the initial data page info.
A kind of IC card power-off protection method and device provided by the embodiments of the present application divide anti-pull out in the memory of IC cardArea, when power down during IC card use, after re-powering, current operation is restored in the microprocessor control area Fang Ba in IC cardAll data of memory page where data solve the memory page where current operation data when IC card power down in the prior artThe problem of loss of the whole page data in face, achieve the effect that prevent loss of data at no point in the update process.
Further, a kind of IC card power-off protection method and device provided in an embodiment of the present invention, also in the memory of IC cardMiddle division backup stack, when power down during IC card use, after re-powering, the microprocessor control backup stack in IC card is extensiveMultiple data associated with current operation data achieve the effect that keep data to update self-consistent property at no point in the update process.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperateAppended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attachedFigure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pairThe restriction of range for those of ordinary skill in the art without creative efforts, can also be according to thisA little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of flow diagram of IC card power-off protection method provided by the embodiment of the present application;
Fig. 2 shows the flow diagrams of another kind IC card power-off protection method provided by the embodiment of the present application;
Fig. 3 shows the flow diagram of another kind IC card power-off protection method provided by the embodiment of the present application;
Fig. 4 shows a kind of structural schematic diagram of IC card power-down protection apparatus provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present applicationMiddle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is onlyIt is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is realThe component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawingsThe detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the applicationApply example.Based on embodiments herein, those skilled in the art institute obtained without making creative workThere are other embodiments, shall fall in the protection scope of this application.
Fig. 1 is a kind of flow diagram of IC card power-off protection method provided by the embodiments of the present application, as shown in Figure 1, instituteMethod is stated applied to the microprocessor in IC card, the IC card further includes the memory connecting with the microprocessor, described to depositReservoir includes data field and backup area;The described method includes:
S101, receive terminal device transmission service request after, obtain the Data Identification pair in the service requestThe multiple storage address answered;The corresponding initial data of the multiple storage address is read from the data field of the memory;
Above-mentioned IC card can be divided into contact and contactless card (supporting contact and non-contact two kinds of operation modes), contactFormula card (only contact being supported to operate with) and contactless card (only supporting Touchless manipulation use).
The structure of above-mentioned IC card generally comprises: microprocessor, the memory being connected with microprocessor and relay protective scheme circuit.Above-mentioned memory is flash storage (i.e. flash memory).By taking financial IC card as an example: memory includes data field and backupArea, for storing the data information of IC card;It includes user information (user's surname in data field that the data information, which is typically stored at,Name, the ID card No. of user's phone number and user), amount information and transaction journal information etc..Above-mentioned backup area includes standbyThe area part Zhan Hefangba, for storing the primary data information (pdi) of currently processed data to back up to currently processed information.
Above-mentioned terminal device is to respond the equipment of above-mentioned IC card (such as: above-mentioned IC card is financial IC card, then above-mentioned terminal deviceFor self-service withdrawal machine ATM).
Above-mentioned service request is user's input with the corresponding request for executing operation, for requesting the content in IC cardAnd IC card is made to complete corresponding operation.It include the Data Identification that user wants the data of operation in above-mentioned service request;Above-mentioned numberAccording to mark for distinguishing data different in a service request.
Such as: above-mentioned IC card is financial IC card, and IC card is inserted into ATM by user, and ATM reads the information of the IC card, andInput password instruction is shown on interface, user is prompted to input the password of this IC card, and after user inputs password, ATM will be readThe password stored in the IC card memory got is compared with the password that the user of acquisition inputs, and after comparing consistent, ATM is aobviousShow and carries out the interface of next step operation (operation interface here generally comprises: depositing, withdraws the money, transfers accounts and move back the corresponding behaviour such as cardElect key), after user presses " withdrawal " key, withdrawal amount is inputted, above-mentioned withdrawal service request is sent to IC by AIMCard (includes: that user wants that the amount of money of withdrawal operation is thought in the withdrawal operation carried out to IC card, user in withdrawal service request hereAnd complete above-mentioned withdrawal and operate some bottom datas being related to), the microprocessor of IC card is according to above-mentioned withdrawal service requestData Identification (Data Identification here is used to distinguish to withdraw the money and operation, amount information and completes above-mentioned withdrawal and operate to be related toSome bottom datas) corresponding multiple storage address, obtain the corresponding initial data in the multiple storage address in IC card data field.
S103, storage address to be processed is selected from multiple storage address, and will deposit where the storage address to be processedThe page info of the storage page is written to the area the backup area Zhong Fangba;The page info includes page data;
Above-mentioned multiple storage address are to reach the storage address for all data that the operation that user wants to realize is related to.ExampleSuch as: user want to IC card withdraw the money, to realize withdraw the money operation, then can be related to amount information, transaction journal record information withAnd some bottom datas.
Above-mentioned storage address to be processed is the storage address where current data to be processed.Such as: if realizing above-mentioned useThe operation that family withdraws the money to IC card then needs to handle the data in withdrawal service request one by one, current time data institute to be treatedStorage address be then storage address to be processed.
Since the flash storage erasing of IC card is whole page, so needing the storage address to be processed is correspondingThe page info of whole page is written in the area Fang Ba of backup area, and above-mentioned page info generally comprises the ground of the data of whole page, this pageLocation, effective marker and check byte and failure mark and check byte.
Such as: during user operates financial IC card, needed after IC card receives withdrawal service requestIt first modifies to corresponding value data, since the minimum unit of IC card flash storage erasing is one page, so to ICCard is written before modified value data, first according to the storage address of the value data of current operation by the amount of money of current operationIn the area Fang Ba for the flash storage that the whole page data of the page where the storage address of data is stored in IC card, then IC cardMicroprocessor wipes the page where value data in data field, and modified value data is being written.
If S104, the microprocessor power down when responding any storage address to be processed corresponding initial data, when described micro-After processor re-powers, the microprocessor is based on described in the corresponding page info covering of the initial data in the area Fang BaThe page info of memory page where the initial data in data field.
Above-mentioned power down refers generally to IC card internal circuit and is not turned on, and the microprocessor of IC card is in inoperable state.
Above-mentioned re-power refers generally to the connection of IC card internal circuit, and the microprocessor of IC card is in running order.
Such as: during user carries out withdrawal operation to the financial IC card being inserted in ATM, at this time when IC card receivesIt needs first to modify to corresponding value data after withdrawal service request, since the minimum of IC card flash storage erasing is singleMember is one page, so before modified value data is written to IC card, first according to the storage of the value data of current operationThe whole page data of the page where the storage address of the value data of current operation is stored in the flash storage of IC card by addressIn the area Fang Ba, then the microprocessor of IC card wipes the page where value data in data field, after write-in modificationValue data, during write-in, in no completion write operation, user just extracts financial IC card, at this time ICCard power down, when user is again insertable into IC card, the microprocessor of IC card can read the amount of money of the current operation stored in the area Fang BaThe original whole page data of the page where the storage address of data, and original whole page data is re-write to data field current erasureThe page in.
A kind of IC card power-off protection method provided by the embodiments of the present application is divided anti-by the flash storage to IC cardThe mode for pulling out area, in the process that user operates IC card, IC card microprocessor can be first by the page where the data of current operationWhole page primary data information (pdi) is written to the area Fang Ba, then carries out whole page erasing in the data to current operation, and after modification is writtenData, if IC card it is above-mentioned to current operation data update during power down, by the area Fang Ba save current operationThe mode of the whole page initial data of the page where data, so that the whole page for restoring to be wiped free of page is original after IC card re-powersData avoid and are carrying out the loss that data update whole page data in operating process to IC card.
Further, the IC card power-off protection method provided in the embodiment of the present application, the data from the memoryAfter reading the corresponding initial data of the multiple storage address in area, the method also includes:
S102, by each storage address and the corresponding initial data of each storage address, and, each is described originalThe storage address of the corresponding original associated data of data and the original associated data is written to the backup stack of the backup area;
Above-mentioned original associated data is that the corresponding related data updated is needed during operating initial data.UpdateThe data for needing to be related to during initial data, original associated data herein are 0, one or more.
Such as: user carries out withdrawal operation to IC card, and above-mentioned withdrawal service request is sent to IC card (here by AIMIt include: that user wants that the withdrawal operation carried out to IC card, user are wanted to withdraw the money in the amount of money operated and completion in withdrawal service requestState some bottom datas that operation of withdrawing the money is related to), by the storage address of multiple data in withdrawal service request and storage groundInitial data in location and the original related data in the storage address and storage address of the relevant data of each initial data(as: by the storage address and storage address of value data original amount data, to the relevant data of modification value dataOriginal related data in storage address and storage address) it is written in the standby stack of backup area, so that in IC card operating processAfter power down re-powers, it is maintained at the consistency for all data being related in withdrawal operating process.
If microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the microprocessorAfter re-powering, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the data fieldIn memory page where the initial data page info after, the method also includes:
S105, the corresponding original associated data of the initial data and the original pass are obtained from the backup stack of the backup areaJoin the corresponding storage address of data;
After when microprocessor, when responding any storage address to be processed corresponding initial data, power down is re-powered, IC cardMicroprocessor first according to the area Fang Ba storage storage address to be processed where interface whole page initial data recovery be wiped free ofStorage address to be processed where the page, initial data is then corresponded to according to the storage address to be processed stored in backup stack and is obtainedTake the original associated data and the corresponding storage address of the original associated data of the initial data.
S106, cover that the storage address obtained in the data field is corresponding to be worked as using the original associated data of acquisitionPreceding associated data.
Such as: during user carries out withdrawal operation to the financial IC card being inserted in ATM, will first withdraw the money service requestIn the storage address of multiple data and the initial data in storage address and the relevant data of each initial data storageOriginal related data in address and storage address is (such as: by the original amount in the storage address and storage address of value dataOriginal related data in data, the storage address and storage address of data relevant to modification value data) it is written to backupIn the standby stack in area, if modifying at this time to value data, needing first will according to the storage address of the value data of current operationThe whole page data of the page is stored in the area Fang Ba of the flash storage of IC card where the storage address of the value data of current operationIn, the microprocessor of IC card wipes the page where value data in data field, then modified value data is written,During write-in, in no completion write operation, user just extracts financial IC card, at this time IC card power down, when withWhen family is again insertable into IC card, the microprocessor of IC card is with can read the storage of the value data of the current operation stored in the area Fang BaThe original whole page data of the page where location, and original whole page data is re-write into the page of data field current erasure, soIt is (i.e. golden according to the corresponding initial data of the storage address to be processed (storage address i.e. where value data) stored in backup stack afterwardsSpecified number evidence) obtain the initial data original associated data (be related to during modifying the amount of money others it is associatedData) and the corresponding storage address of the original associated data (others that are related to during modifying the amount of money are associatedData where storage address), storage where original associated data in data field is covered according to the original associated data of acquisitionCurrent associated data in address so that IC is after renewal process power down re-powers, keep current more new data and withThe consistency of current more new data associated data, if current more new data is updated value, with currently more new data phaseAssociated data are updated value, if current more new data be the value before update, and currently more new data is associatedData are the value before updating.
A kind of IC card power-off protection method provided by the embodiments of the present application is divided standby by the flash storage to IC cardThe mode of part stack, the related data that can first request corresponding operating in the process that user operate IC card, IC card microprocessor andStorage address where related data is written in backup stack, if IC card is during the above-mentioned update to current operation dataAfter power down re-powers, the microprocessor of IC card covers original in data field according to the original associated data of the acquisition in backup stackCurrent associated data in storage address where associated data, thus keep current more new data and to currently more new data is relatedJoin the consistency of data.
Further, as shown in Fig. 2, in a kind of IC card power-off protection method provided in the embodiment of the present application, it is described fromSelect storage address to be processed in multiple storage address, and by the page info of memory page where the storage address to be processedIt is written to after the area the backup area Zhong Fangba, further comprising the steps of:
S201, it is provided with for the page info of memory page where the storage address to be processed of the area Fang Ba storageCriterion is known;
S202, when microprocessor non-power down when responding the corresponding initial data of the storage address to be processed, then be instituteFailure indication is arranged in the page info of memory page where the storage address to be processed of the area Shu Fangba storage.
In conjunction with above-mentioned steps 201 and step 202, the area Fang Ba is used to protect the page where currently pending storage address.First the whole page data of the page to be updated is stored in the available page in one, the area Fang Ba, then corresponding anti-pulls out mark at this pageWrite effective mark in area.At this point, the protection work to the page where currently pending storage address is completed, can update to be processedData in storage address after the renewal of the page where the storage address to be processed, are then write after effective mark of this pageUpper failure indication indicates that this prevents that pulling out the page has completed task, and the anti-data information for pulling out the page is no longer valid.
Further, in a kind of IC card power-off protection method provided in the embodiment of the present application, if microprocessor is respondingPower down when any storage address to be processed corresponding initial data, after the microprocessor re-powers, the method is alsoInclude:
The microprocessor detects the page letter at storage address place to be processed memory page described in the area Fang BaWhen ceasing no-failure mark, detect the page info it is corresponding effectively identify whether it is complete, when the microprocessor detects instituteState page info it is corresponding it is effective mark it is complete when, the microprocessor be based on the area Fang Ba in the corresponding page of the initial dataFace information covers the page info of memory page where the initial data in the data field.
The power down when IC card is in response storage address to be processed corresponding initial data, after IC card re-powers, micro- placeWhether the page info that reason device detects storage address place to be processed memory page described in the area Fang Ba first has failure indication, whenWhen no-failure identifies, then the page info of memory page has effectively identified whether where detecting the storage address to be processedIt is whole, after detecting that above-mentioned effective mark is complete, then institute is covered based on the corresponding page info of the initial data in the area Fang BaState the page info of memory page where the initial data in data field.
Further, in conjunction with above-mentioned steps 201 and step 202, the area Fang Ba is only used for ensuring storage address place to be processedThe page currently updated integrality, and transaction Transaction process do not have direct relationship, if the storage to be processedThe update of data then may insure the non-atomic integrality write not in transaction in target pages where location.And prevent pulling outThe page is using that will fail after primary, therefore, anti-to pull out the page and may be reused.So the anti-number restriction for pulling out the page is spiritLiving, it at least can be set one and prevent pulling out page identified page corresponding with its, but generally guarantee the service life in the area Fang Ba, meetingCorresponding more settings are some to be prevented pulling out the page.
Further, as shown in figure 3, a kind of IC card power-off protection method provided in the embodiment of the present application, by eachStorage address and the corresponding initial data of each storage address, and, the corresponding original incidence number of each described initial dataIt is written to the backup stack of the backup area according to the storage address with the original associated data, the described method comprises the following steps:
S301, each storage address and the corresponding initial data of each storage address are written to the backup areaIn backup stack;
S302, the microprocessor be the backup stack in each storage address and each storage address it is correspondingInitial data distributes the first checking mark, generates the first duplicated record, and store first checking mark;
Above-mentioned first checking mark is cyclic redundancy check code CRC, for powering on recovery process verification the first backup noteThe accuracy of record.
S303, by the storage of each corresponding original associated data of target data and the original associated dataLocation is written in the backup stack of the backup area;
S304, the microprocessor be in the backup stack the corresponding original associated data of each initial data and thisThe second checking mark of allocations of storage addresses of original associated data generates the second duplicated record, and stores the second verification markKnow.
Above-mentioned second checking mark is cyclic redundancy check code CRC, for powering on recovery process verification the second backup noteThe accuracy of record.
Above-mentioned second duplicated record includes the corresponding original associated data of each initial data and the original incidence numberAccording to storage address and be above-mentioned original associated data distribution the second checking mark, above-mentioned second duplicated record is 0Item, 1 or a plurality of.
The duplicated record that the data composition of target area to be updated (i.e. data field) is stored in above-mentioned backup stack, wherein oftenInclude in duplicated record storage address (storage address here can may be for the storage address of pending data withThe storage address of the associated data of the pending data), (length here can also for the length of pending data for lengthThink the length with the pending data associated data), (initial data here can be pending data to initial dataCan be and the pending data associated data) and check byte (check byte here is the first checking mark and secondChecking mark).
Further, a kind of IC card power-off protection method provided in the embodiment of the present application, if microprocessor is appointed in responsePower down when one storage address to be processed corresponding initial data, after the microprocessor re-powers, the microprocessor baseThe corresponding page info of the initial data covers memory page where the initial data in the data field in the area Fang BaPage info after, the method also includes following steps:
The microprocessor verifies first checking mark in first duplicated record, when verification passes throughAfterwards, the microprocessor verifies second checking mark in second duplicated record;
After verification passes through, corresponding second duplicated record of initial data is obtained from the backup stack of the backup areaIn original associated data and the corresponding storage address of the original associated data;
The corresponding current pass of the storage address obtained in the data field is covered using the original associated data of acquisitionJoin data;
From depositing for the initial data and initial data obtained in the backup stack of the backup area in first duplicated recordStore up address;
The corresponding current data of the storage address obtained in the data field is covered using the initial data of acquisition.
Above-mentioned first duplicated record refer to the storage of backup stack be currently pending storage address, it is original in the storage addressFirst duplicated record of data and checking mark composition;Above-mentioned second duplicated record, which refers to, is handling storage address Central Plains to be processedThe original associated data of others, the storage address and checking mark of the original associated data being related to during beginning data,And second duplicated record be 0,1 or a plurality of.
Microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the micro process is thought highly ofAfter newly powering on, microprocessor is according to the initial data institute in the corresponding page info covering of the initial data in the area Fang Ba data fieldAfter the page info of memory page, to the first duplicated record, (the first duplicated record here refers to microprocessor: to be processed to depositStore up address, the initial data in the storage address, initial data length and the first checking mark) in the first checking mark carry outVerification, after verification passes through, (the second duplicated record here refers to: storage address to be processed corresponds to number to the second duplicated recordAccording to original related data, the storage address of the original related data, the length of the original related data and the original dependency numberAccording to the second checking mark) in the second checking mark verified.
After verification passes through, then above-mentioned second duplicated record is first obtained, and according to the original association in the second duplicated recordThe corresponding current associated data of the storage address obtained in data cover data field;Above-mentioned first duplicated record, and root are obtained againAccording to the corresponding current data of storage address obtained in the initial data covering data field in the first duplicated record;Above-mentioned recovery is standbyDuplicated record in part stack by the way of successively being restored from back to front, to guarantee that Flash is stored under power-down conditionsThe integrality of device.
Further, the backup stack of the IC card power-off protection method provided in the embodiment of the present application, the backup area includesMultiple backup blocks, the method also includes following steps:
A target is selected in the multiple backup block originates memory block;
Above-mentioned backup stack is generally divided into multiple backup blocks, and a selected backup block is the standby of current operation data storagePart block (i.e. target starting memory block), and first generated from the data that the target originates storage BOB(beginning of block) storage current operation is standbyPart record and the second duplicated record with current operation data correlation data.
The microprocessor by currently pending storage address and the corresponding initial data of currently pending storage address, withAnd the storage address of the corresponding original associated data of the initial data and the original associated data is written to the target and risesBeginning memory block;
When monitoring that the access times of target starting memory block reach preset threshold value, according to preset sequence,It is that next target originates memory block that the backup block in addition to the target originates memory block is selected from the multiple backup block.
Above-mentioned preset threshold value is the reference value of counter.
In the present embodiment, in order to make the recycling of entire backup stack, therefore can then it be incited somebody to action after transaction reaches certain numberThe currently used of backup stack also carries out rotation, general process are as follows: after the completion of update of entirely trading, user confirms according to homepagePrompt information carries out confirmation submission, and IC card microprocessor, which executes, submits process, can wipe the current of backup stack head pointer directionThe target starting memory block used, and (the storage number at this is identified as by the storage number mark of target starting memory block5, the end of transaction ID TID) plus 1, when the storage number mark for detecting target starting memory block has reached counter reference value(memory block is generally originated according to target herein, corresponding standard is set, for example check that the storage number of target starting memory block reachesTo 32 times) when, then the backup block in addition to the target originates memory block is selected in multiple backup blocks as the starting of next targetMemory block, to originate the transaction data of storage BOB(beginning of block) storage next time from the target.
Further, the IC card power-off protection method provided in the embodiment of the present application is selected from the multiple backup blockAfter backup block in addition to the target originates memory block originates memory block for next target, the method also includes:
When the microprocessor monitors into the backup stack without optional backup block after, again in the multiple backup blockIn select target and originate memory block, repeat currently pending storage address and the corresponding original of currently pending storage addressBeginning data, and, the storage address of the corresponding original associated data of initial data and the original associated data is written toThe process of the target starting memory block, until the access times of the backup stack reach preset threshold value.
When microprocessor monitors into backup stack without optional backup block after (all backup blocks i.e. in backup stack are depositedStorage number reaches preset threshold, as: 32 times) if back within and select the starting of target in the multiple backup block and depositThe step of storing up block;And repetitive operation following steps: microprocessor is by currently pending storage address and currently pending storageThe corresponding initial data in location, and, the storage of the corresponding original associated data of initial data and the original associated dataLocation is written to the target starting memory block;Reach preset threshold in the access times for monitoring the target starting memory blockWhen value, according to preset sequence, under being from the backup block selected in the multiple backup block in addition to the target originates memory blockOne target originates memory block, (all backups i.e. in backup stack until in the backup stack without optional backup blockThe storage number of block is reached preset threshold, such as: 32 times);Access times until entirely backing up stack reach preset numberUntil.
Further, a kind of IC card power-off protection method provided in the embodiment of the present application, the method also includes:
If monitoring the multiple backup block not in the memory range of the backup stack, the target for resetting backup block is risenBeginning backup block, so that the multiple backup block is all in the memory range of the backup stack.
When microprocessor monitors to the multiple backup blocks divided are not within the scope of backup stack or there are non-homepage alignment etc.When problem, then need to reset the target starting backup block of above-mentioned backup block, so that the memory space of multiple backup blocks is equalIn the memory range of backup stack.
Fig. 4 is a kind of structural schematic diagram of IC card power-down protection apparatus provided by the embodiments of the present application, and described device includesMicroprocessor 401, the memory 402 connecting with the microprocessor, the memory further includes data field and backup area;
The microprocessor, for obtaining in the service request after the service request for receiving terminal device transmissionThe corresponding multiple storage address of Data Identification;It is corresponding that the multiple storage address is read from the data field of the memoryInitial data;Select storage address to be processed from multiple storage address, and by memory page where the storage address to be processedThe page info in face is written to the area the backup area Zhong Fangba;The page info includes page data.
If microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the microprocessorAfter re-powering, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the data fieldIn memory page where the initial data page info.
A kind of IC card power-off protection method provided by the embodiments of the present application is divided anti-by the flash storage to IC cardThe mode for pulling out area, in the process that user operates IC card, IC card microprocessor can be first by the page where the data of current operationWhole page primary data information (pdi) is written to the area Fang Ba, then carries out whole page erasing in the data to current operation, and after modification is writtenData, if IC card it is above-mentioned to current operation data update during power down, by the area Fang Ba save current operationThe mode of the whole page initial data of the page where data, so that the whole page for restoring to be wiped free of page is original after IC card re-powersData avoid and are carrying out the loss that data update whole page data in operating process to IC card.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn: by each storage address and the corresponding initial data of each storage address, and, each described initial data is correspondingThe storage address of original associated data and the original associated data is written to the backup stack of the backup area;
If microprocessor power down when responding the corresponding initial data of any storage address to be processed, when the microprocessorAfter re-powering, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the data fieldIn memory page where the initial data page info after, the method also includes:
The microprocessor is also used to obtain the corresponding original association of the initial data from the backup stack of the backup areaData and the corresponding storage address of the original associated data;It is covered in the data field and is obtained using the original associated data of acquisitionThe corresponding current associated data of the storage address.
A kind of IC card power-off protection method provided by the embodiments of the present application is divided standby by the flash storage to IC cardThe mode of part stack, the related data that can first request corresponding operating in the process that user operate IC card, IC card microprocessor andStorage address where related data is written in backup stack, if IC card is during the above-mentioned update to current operation dataAfter power down re-powers, the microprocessor of IC card covers original in data field according to the original associated data of the acquisition in backup stackCurrent associated data in storage address where associated data, thus keep current more new data and to currently more new data is relatedJoin the consistency of data.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn: the page info of memory page where the storage address to be processed of the area Fang Ba storage is provided with criterion knowledge;WhenMicroprocessor non-power down when responding the corresponding initial data of the storage address to be processed, then be the institute of the area Fang Ba storageThe page info setting failure indication of memory page where stating storage address to be processed.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn: when detecting the page info no-failure mark at storage address place to be processed memory page described in the area Fang Ba, inspectionIt surveys that the page info is corresponding effectively to be identified whether complete, has when the microprocessor detects that the page info is correspondingWhen criterion knows complete, the microprocessor is based on the corresponding page info of the initial data in the area Fang Ba and covers the dataThe page info of memory page where the initial data in area.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn: in the backup stack that each storage address and the corresponding initial data of each storage address are written to the backup area;For in the backup stack each storage address and the corresponding initial data of each storage address distribute the first checking mark,The first duplicated record is generated, and stores first checking mark;By the corresponding original association of each target dataThe storage address of data and the original associated data is written in the backup stack of the backup area;For each institute in the backup stackIt states the second checking mark of allocations of storage addresses of the corresponding original associated data of initial data He the original associated data, generates theTwo duplicated records, and store second checking mark.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn:
First checking mark in first duplicated record is verified, after verification passes through, micro- placeReason device verifies second checking mark in second duplicated record;
After verification passes through, corresponding second duplicated record of initial data is obtained from the backup stack of the backup areaIn original associated data and the corresponding storage address of the original associated data;
The corresponding current pass of the storage address obtained in the data field is covered using the original associated data of acquisitionJoin data;
From depositing for the initial data and initial data obtained in the backup stack of the backup area in first duplicated recordStore up address;
The corresponding current data of the storage address obtained in the data field is covered using the initial data of acquisition.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the backup stack of the backup areaIncluding multiple backup blocks, the microprocessor is also used to: being selected a target in the multiple backup block and is originated memory block;By currently pending storage address and the corresponding initial data of currently pending storage address, and, the initial data is correspondingOriginal associated data and the storage address of the original associated data be written to target starting memory block;MonitoringThe access times of target starting memory block are stated when reaching preset threshold value, according to preset sequence, from the multiple backup blockThe selected backup block in addition to the target originates memory block is that next target originates memory block.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn: after monitoring in the backup stack without optional backup block, a target is selected in the multiple backup block again and is risenBeginning memory block is repeated currently pending storage address and the corresponding initial data of currently pending storage address, and, it is describedThe storage address of the corresponding original associated data of initial data and the original associated data is written to the target starting storageThe process of block, until the access times of the backup stack reach preset threshold value.
Further, a kind of IC card power-down protection apparatus provided in the embodiment of the present application, the microprocessor are also usedIn: if monitoring the multiple backup block not in the memory range of the backup stack, the target starting for resetting backup block is standbyPart block, so that the multiple backup block is all in the memory range of the backup stack.
The computer program product of IC card power-off protection method is carried out provided by the embodiment of the present application, including stores journeyThe computer readable storage medium of sequence code, the instruction that said program code includes can be used for executing institute in previous methods embodimentThe method stated, specific implementation can be found in embodiment of the method, and details are not described herein.
The device of IC card power down protection provided by the embodiment of the present application can be the specific hardware or installation in equipmentIn software or firmware etc. in equipment.The technical effect of device provided by the embodiment of the present application, realization principle and generation andPreceding method embodiment is identical, and to briefly describe, Installation practice part does not refer to place, can refer in preceding method embodimentCorresponding contents.It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description isThe specific work process of system, device and unit, the corresponding process during reference can be made to the above method embodiment, it is no longer superfluous hereinIt states.
In embodiment provided herein, it should be understood that disclosed device and method, it can be by others sideFormula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolledFunction division is collected, there may be another division manner in actual implementation, in another example, multiple units or components can combine or canTo be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutualCoupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unitIt connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multipleIn network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme's.
In addition, each functional unit in embodiment provided by the present application can integrate in one processing unit, it can alsoTo be that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent productIt is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other wordsThe part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meterCalculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be aPeople's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are depositedThe various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang YiIt is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing, in addition, term " theOne ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the applicationTechnical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this ShenIt please be described in detail, those skilled in the art should understand that: anyone skilled in the artWithin the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be lightIt is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not makeThe essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution.The protection in the application should all be coveredWithin the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

CN201811621864.XA2018-12-282018-12-28Power-down protection method and device for IC cardActiveCN109685190B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811621864.XACN109685190B (en)2018-12-282018-12-28Power-down protection method and device for IC card

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811621864.XACN109685190B (en)2018-12-282018-12-28Power-down protection method and device for IC card

Publications (2)

Publication NumberPublication Date
CN109685190Atrue CN109685190A (en)2019-04-26
CN109685190B CN109685190B (en)2022-04-12

Family

ID=66190123

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811621864.XAActiveCN109685190B (en)2018-12-282018-12-28Power-down protection method and device for IC card

Country Status (1)

CountryLink
CN (1)CN109685190B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110597665A (en)*2019-09-182019-12-20普联技术有限公司Power-down protection device
CN111105563A (en)*2019-12-172020-05-05厦门计讯物联科技有限公司Water card data writing method, device, equipment and storage medium for preventing data loss
CN111104253A (en)*2019-11-222020-05-05江苏恒宝智能系统技术有限公司Power-down protection smart card and working method thereof
WO2022126470A1 (en)*2020-12-172022-06-23深圳杰睿联科技有限公司Flash data power failure protection method and device

Citations (23)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2001022653A (en)*1999-07-122001-01-26Matsushita Electric Ind Co Ltd Nonvolatile semiconductor memory device
JP2004234311A (en)*2003-01-302004-08-19Matsushita Electric Ind Co Ltd IC card device and communication method therefor
US20070078901A1 (en)*2005-09-302007-04-05Fujitsu LimitedHierarchical storage system, and control method and program therefor
US20070130436A1 (en)*1999-10-192007-06-07Super Talent Electronics, Inc.Electronic Data Storage Medium With Fingerprint Verification Capability
CN1983266A (en)*2005-07-012007-06-20Qnx软件操作系统德国有限公司File system storing transaction records in flash-like media
CN101699476A (en)*2009-10-292010-04-28北京握奇数据系统有限公司Data processing method and device of smart cards
CN101807320A (en)*2010-04-122010-08-18中兴通讯股份有限公司Terminal aiming at non-contact intelligent card and method thereof for processing abnormality
CN102063384A (en)*2009-11-132011-05-18恒宝股份有限公司Method for performing read-write operation on programmable read-only memory with cache by JAVA card
CN102073595A (en)*2011-01-242011-05-25华亚微电子(上海)有限公司Power failure prevention loss balanced storage method
CN102254261A (en)*2011-07-152011-11-23武汉天喻信息产业股份有限公司Instantaneous consumption application processing method and system for intelligent card
US20120266031A1 (en)*2011-04-142012-10-18Mstar Semiconductor, Inc.Controlling Method and Controller for Memory
CN102929805A (en)*2012-10-192013-02-13浪潮电子信息产业股份有限公司Power-down protection method for cache data in memory system
CN103150125A (en)*2013-02-202013-06-12郑州信大捷安信息技术股份有限公司Method for prolonging service life of power-down protection date buffer memory and smart card
CN103914407A (en)*2012-12-302014-07-09航天信息股份有限公司Secure digital memory (SD) card power down protection and restoring method and SD card with power down protection function
CN104461770A (en)*2014-10-312015-03-25上海动联信息技术股份有限公司Power-off protection method of Flash chip
CN104536847A (en)*2014-12-182015-04-22飞天诚信科技股份有限公司Method for improving data writing integrity
CN104615662A (en)*2015-01-052015-05-13宇龙计算机通信科技(深圳)有限公司Data processing method and device and terminal device
CN104881334A (en)*2015-02-062015-09-02北京飞杰信息技术有限公司Crash-proof cache data protection method and system
CN105138432A (en)*2015-08-312015-12-09深圳市瑞耐斯技术有限公司Solid state disk data fast backup method and system used under abnormal power failure
CN105260270A (en)*2015-11-112016-01-20恒宝股份有限公司Flash storage space dynamic recovery method and device
CN106227680A (en)*2016-07-262016-12-14成都三零嘉微电子有限公司A kind of data process and power fail preventing data guard method
CN106598484A (en)*2016-11-172017-04-26华为技术有限公司Data storage method, flash memory chip and storage device
CN107944532A (en)*2017-11-282018-04-20恒宝股份有限公司A kind of smart card and the method and terminal for reading and writing smart card

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2001022653A (en)*1999-07-122001-01-26Matsushita Electric Ind Co Ltd Nonvolatile semiconductor memory device
US20070130436A1 (en)*1999-10-192007-06-07Super Talent Electronics, Inc.Electronic Data Storage Medium With Fingerprint Verification Capability
JP2004234311A (en)*2003-01-302004-08-19Matsushita Electric Ind Co Ltd IC card device and communication method therefor
CN1983266A (en)*2005-07-012007-06-20Qnx软件操作系统德国有限公司File system storing transaction records in flash-like media
US20070078901A1 (en)*2005-09-302007-04-05Fujitsu LimitedHierarchical storage system, and control method and program therefor
CN101699476A (en)*2009-10-292010-04-28北京握奇数据系统有限公司Data processing method and device of smart cards
CN102063384A (en)*2009-11-132011-05-18恒宝股份有限公司Method for performing read-write operation on programmable read-only memory with cache by JAVA card
CN101807320A (en)*2010-04-122010-08-18中兴通讯股份有限公司Terminal aiming at non-contact intelligent card and method thereof for processing abnormality
CN102073595A (en)*2011-01-242011-05-25华亚微电子(上海)有限公司Power failure prevention loss balanced storage method
US20120266031A1 (en)*2011-04-142012-10-18Mstar Semiconductor, Inc.Controlling Method and Controller for Memory
CN102254261A (en)*2011-07-152011-11-23武汉天喻信息产业股份有限公司Instantaneous consumption application processing method and system for intelligent card
CN102929805A (en)*2012-10-192013-02-13浪潮电子信息产业股份有限公司Power-down protection method for cache data in memory system
CN103914407A (en)*2012-12-302014-07-09航天信息股份有限公司Secure digital memory (SD) card power down protection and restoring method and SD card with power down protection function
CN103150125A (en)*2013-02-202013-06-12郑州信大捷安信息技术股份有限公司Method for prolonging service life of power-down protection date buffer memory and smart card
CN104461770A (en)*2014-10-312015-03-25上海动联信息技术股份有限公司Power-off protection method of Flash chip
CN104536847A (en)*2014-12-182015-04-22飞天诚信科技股份有限公司Method for improving data writing integrity
CN104615662A (en)*2015-01-052015-05-13宇龙计算机通信科技(深圳)有限公司Data processing method and device and terminal device
CN104881334A (en)*2015-02-062015-09-02北京飞杰信息技术有限公司Crash-proof cache data protection method and system
CN105138432A (en)*2015-08-312015-12-09深圳市瑞耐斯技术有限公司Solid state disk data fast backup method and system used under abnormal power failure
CN105260270A (en)*2015-11-112016-01-20恒宝股份有限公司Flash storage space dynamic recovery method and device
CN106227680A (en)*2016-07-262016-12-14成都三零嘉微电子有限公司A kind of data process and power fail preventing data guard method
CN106598484A (en)*2016-11-172017-04-26华为技术有限公司Data storage method, flash memory chip and storage device
CN107944532A (en)*2017-11-282018-04-20恒宝股份有限公司A kind of smart card and the method and terminal for reading and writing smart card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴俊军等: "面向耗损均衡的COS数据备份机制研究", 《计算机工程与科学》*
张金霞等: "基于FLASH的智能卡数据掉电保护机制设计", 《电子技术与软件工程》*

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110597665A (en)*2019-09-182019-12-20普联技术有限公司Power-down protection device
CN111104253A (en)*2019-11-222020-05-05江苏恒宝智能系统技术有限公司Power-down protection smart card and working method thereof
CN111104253B (en)*2019-11-222023-06-06江苏恒宝智能系统技术有限公司Smart card for power failure protection and working method thereof
CN111105563A (en)*2019-12-172020-05-05厦门计讯物联科技有限公司Water card data writing method, device, equipment and storage medium for preventing data loss
CN111105563B (en)*2019-12-172021-08-24厦门计讯物联科技有限公司Water card data writing method, device, equipment and storage medium for preventing data loss
WO2022126470A1 (en)*2020-12-172022-06-23深圳杰睿联科技有限公司Flash data power failure protection method and device

Also Published As

Publication numberPublication date
CN109685190B (en)2022-04-12

Similar Documents

PublicationPublication DateTitle
CN109685190A (en)A kind of IC card power-off protection method and device
CN105144074B (en)It is stored using the block of hybrid memory device
US10303560B2 (en)Systems and methods for eliminating write-hole problems on parity-based storage resources during an unexpected power loss
CN103794000B (en)Method for processing in case of non-contact IC card data reading failure and device for implementing method
CN104599122A (en)Quick payment method, related equipment and related system
CN113884976B (en)Cloud platform based intelligent electric meter data protection method and system
EP2033145A1 (en)Portable electronic device and control method thereof
US10997516B2 (en)Systems and methods for predicting persistent memory device degradation based on operational parameters
CN103559098B (en)Smart card test number control, Apparatus and system
CN109783390A (en) PSU firmware upgrade and upgrade stability test method, device, terminal and storage medium
CN114780041A (en)Power failure memory storage method and device
US10387306B2 (en)Systems and methods for prognosticating likelihood of successful save operation in persistent memory
CN109408282A (en)Application Backup restoration methods, equipment and computer readable storage medium
CN103605939A (en)Method, device and system for writing personal data in financial IC card
CN106778369A (en)A kind of hard disk data access method, tax control server
CN111007987A (en)Memory management method, system, terminal and storage medium for raid io
CN114186570A (en)Operation and maintenance method and device for integrated card reader equipment, computer equipment and storage medium
EP2775461B1 (en)Smart card, electronic device and portable electronic device
US6722572B2 (en)Recording medium control method, data management apparatus, and recording medium
CN117455726B (en)Offline guarantee method, device and equipment for intelligent catering system and storage medium
CA3002704C (en)A method performed by an electronic device capable of communicating with a reader with improved self-testing
CN103309758B (en)A kind of mthods, systems and devices blocking application and download
CN109074467A (en)Method for managing the real-time clock in portable tamper resistant device
US20170364418A1 (en)Integrity of transactional memory of card computing devices in case of card tear events
CN102289729B (en)Method for managing serial number of self-service equipment and self-service equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp