CN106355124A - Read-write method and device for CPU card - Google Patents
Read-write method and device for CPU card Download PDFInfo
- Publication number
- CN106355124A CN106355124A CN201610790430.7A CN201610790430A CN106355124A CN 106355124 A CN106355124 A CN 106355124A CN 201610790430 A CN201610790430 A CN 201610790430A CN 106355124 A CN106355124 A CN 106355124A
- Authority
- CN
- China
- Prior art keywords
- card
- read
- card reader
- itself
- type
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10118—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the sensing being preceded by at least one preliminary step
- G06K7/10138—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the sensing being preceded by at least one preliminary step the step consisting of determining the type of record carrier, e.g. to determine if the record carrier is an RFID tag of the long or short range type, or to determine the preferred communication protocol of the RFID tag
Abstract
An embodiment of the invention discloses a read-write method and device for a CPU card. The method applies to CPU cards and comprises steps of receiving a read-write command of a card reader connected with the CPU card; determining the target type of an IC card to be operated by the card reader according to sequence states of the card reader connected with the CPU card; searching a read-write processing procedure corresponding to the IC card with the target type according to the corresponding relation between at least two types of IC cards stored in the CPU card and read-write processing procedures; processing the read-write command according to the read-write processing procedure. In the embodiment, the target type of the IC card to be operated by the card reader is determined according to the different sequence states of the card reader, and the read-write processing procedures of at least two types of IC cards are stored in the CPU card, so that the corresponding read-write processing procedure can be adopted according to the target type for processing, one card is multi-application, and the universality and the multi-application performance of the CPU card are improved.
Description
Technical field
The present invention relates to cpu card technical field of data processing, particularly to a kind of reading/writing method of cpu card and device.
Background technology
With social progress, the reach of science, the application of ic card is more and more extensive, even more ceases with the clothing, food, lodging and transportion -- basic necessities of life of user
Manner of breathing closes, and the life of user has be unable to do without ic card.At present, ic is stuck in urban public transport, payment, gate inhibition, medical treatment, identity knowledge
The aspect such as not is widely applied the life more facilitation so that user.
Because same user there may be multiple ic cards, lead to be likely to occur when using to take card by mistake and can not handle
The situation of business, in addition the ic card of some types there may be the problem of stopping production, for example current 102 card stopped production, if this
The ic card of a little types lost, and when being made up although other kinds of card can be made up, but is because installing in user family
Gauge table be to mate with the ic card of original type, and because a type of ic card and a type of gauge table
Join, even if so having made up other kinds of ic card, the ic card made up nor use, unless will be right on original gauge table
The gauge table answered also is changed together, and this will bring very big workload, and economic expenditure also can be very big.
Content of the invention
The embodiment of the invention discloses a kind of reading/writing method of cpu card and device, in order to improve the versatility of cpu card with many
The property used.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of reading/writing method of cpu card, it is applied to cpu card, described
Method includes:
Receive the read write command of the card reader being connected with itself;
According to the time sequence status of the card reader being connected with itself, determine the target class of described card reader ic card to be operated
Type;
The ic card of at least two types being preserved according to itself and the corresponding relation of read-write processing procedure, search described target
The ic card corresponding read-write processing procedure of type;
According to described read-write processing procedure, described read write command is processed.
Further, the time sequence status of the card reader that described basis is connected with itself, determine that described card reader is to be operated
The target type of ic card includes:
According to the time sequence status of the card reader being connected with itself, and the type of every kind of time sequence status of preserving and ic card is right
Should be related to, identify the type of the time sequence status corresponding ic card of this card reader, using the type of the ic recognizing card as described reading
The target type of card device ic card to be operated.
Further, described according to described read-write processing procedure described read write command is processed before, methods described
Including:
Obtain the data to be tested in the ic card corresponding read-write processing routine of described target type and verification data;
Using corresponding method of calibration, described data to be verified is operated;
Using described verification data, the data described to be verified after operation is verified;
When verification is passed through, execute subsequent step.
Further, methods described also includes:
According to the result of described process, generate data to be verified and verification data and preserve.
Further, before the read write command of card reader that described reception is connected with itself, also include:
Receive the initialization directive of the card reader being connected with itself;
According to the time sequence status of the card reader being connected with itself, determine the target class of described card reader ic card to be operated
Type;
The ic card of at least two types being preserved according to itself and the corresponding relation of initialisation process, search described mesh
The corresponding initialisation process of ic card of mark type;
Initialization process is carried out to the ic card of described target type according to described initialisation process.
The embodiment of the invention discloses a kind of read-write equipment of cpu card, it is applied to cpu card, described device includes:
Receiver module, for receiving the read write command of the card reader being connected with itself;
Determining module, for the time sequence status according to the card reader being connected with itself, determines that described card reader is to be operated
The target type of ic card;
Matching module, the ic card of at least two types for being preserved according to itself is closed with the corresponding of read-write processing procedure
System, searches the ic card corresponding read-write processing procedure of described target type;
Processing module, for processing to described read write command according to described read-write processing procedure.
Further, described determining module, specifically for the time sequence status according to the card reader being connected with itself, and is preserved
Every kind of time sequence status and ic card type corresponding relation, identify the type of the time sequence status corresponding ic card of this card reader,
Using the type of the ic recognizing card as described card reader ic card to be operated target type.
Further, described device also includes:
First correction verification module, the number to be tested in the corresponding read-write processing routine of the ic card for obtaining described target type
According to and verification data;Using corresponding method of calibration, described data to be verified is operated;Using described verification data to behaviour
Data described to be verified after work is verified;When verification is passed through, trigger processing module.
Further, described device also includes:
Second school inspection module, for the result according to described process, generates data to be verified and verification data and preserves.
Further, described device also includes:
Initialization module, for receiving the initialization directive of the card reader being connected with itself;According to the reading being connected with itself
The time sequence status of card device, determine the target type of described card reader ic card to be operated;At least two classes being preserved according to itself
The ic card of type and the corresponding relation of initialisation process, search the ic card corresponding initialization process mistake of described target type
Journey;Initialization process is carried out to the ic card of described target type according to described initialisation process.
Embodiments provide a kind of reading/writing method of cpu card and device, the method includes: receive and be connected with itself
Card reader read write command;According to the time sequence status of the card reader being connected with itself, determine described card reader ic to be operated
The target type of card;The ic card of at least two types being preserved according to itself and the corresponding relation of read-write processing procedure, search institute
State the ic card corresponding read-write processing procedure of target type;According to described read-write processing procedure to described read write command at
Reason.Due in embodiments of the present invention, according to the different time sequence status of card reader, confirming the target type of ic card to be operated,
And because save the read-write processing procedure of the ic card of at least two types in cpu card, therefore can be according to this target type
Processed it is achieved that one card for multiple uses using corresponding read-write processing procedure, improve versatility and the versatility of cpu card.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing briefly introduce it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart of the reading/writing method of cpu card provided in an embodiment of the present invention;
A kind of read-write process schematic of cpu card that Fig. 2 provides for the above embodiment of the present invention;
The read-write process schematic of the cpu card for providing in another embodiment of the present invention for the Fig. 3;
Fig. 4 is a kind of read-write equipment structural representation of cpu card provided in an embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into
One step ground describes in detail it is clear that described embodiment is only present invention some embodiments, rather than whole enforcement
Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of not making creative work
All other embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is a kind of flow chart of the reading/writing method of cpu card provided in an embodiment of the present invention, specifically comprises the following steps that
S101: receive the read write command of the card reader being connected with itself.
The embodiment of the present invention is applied to cpu card.This cpu card is connected with card reader, and receives the reading of this card reader transmission
Write command.
This card reader can be read-write equipment, and this read-write equipment is joined directly together with cpu card by golden finger, or this read-write
Device can also be connected with cpu card by radio-frequency module;This card reader can also be mobile terminal, and now mobile terminal passes through
Bluetooth is connected with cpu card.For example: described mobile terminal for being provided with bluetooth module, and can be mounted with the phase preserving in cpu card
Answer the mobile phone of the corresponding application program of ic card, panel computer of type etc..
Specifically, in cpu card insertion contact card reader, the read write command that card reader is carried is sent to cpu card;
Or, cpu card enters the identification region of radio-frequency card reader or mobile terminal, radio-frequency card reader or mobile terminal are sent out to cpu card
Send read write command.
S102: according to the time sequence status of the card reader being connected with itself, determine the mesh of described card reader ic card to be operated
Mark type.
Specifically, determine the target type of described card reader ic card to be operated in embodiments of the present invention, according to cpu
The time sequence status corresponding to card reader connecting set up by card, determine the type of the ic card corresponding to card reader, this time sequence status is
The time sequencing that computer operation runs, this is because the corresponding time sequence status of different card reader are different.
Time sequence status according to corresponding to mobile terminal and other different types of read-write equipments, by these sequential shapes
State is preserved for different types of card reader, and the type of the ic card corresponding to each type of card reader is also permissible
It is known a priori by, therefore the time sequence status according to the card reader being connected with itself, you can the card reader that determination is connected with itself
Type is it is possible to determine the target type of this card reader ic card to be operated.For example: in cpu card insertion gas meter, cpu
Card, according to the time sequence status of gas meter, determines that corresponding to this card reader be combustion gas card reader, required ic card class
Type is combustion gas card.
S103: the ic card of at least two types being preserved according to itself and the corresponding relation of read-write processing procedure, search institute
State the ic card corresponding read-write processing procedure of target type.
Specifically, in embodiments of the present invention, in cpu card, in store at least two type of ic card and read-write were processed
The corresponding relation of journey, and preserve its corresponding read-write processing routine for each type of ic card, therefore according to being determined
Ic card target type it may be determined that going out the ic card corresponding read-write processing routine of target type.For example: preserve in cpu card
Combustion gas card, water card, electric card, the type of mass transit card and its corresponding processing procedure, when cpu card determines institute according to card reader
When corresponding ic card is for electric card, search electric card corresponding read-write processing routine.
S104: described read write command is processed according to described read-write processing procedure.
Specifically, according to described read-write processing procedure, described read write command is processed, that is, cpu card enters corresponding card
Read-write processing routine, is processed to the read write command that the card reader of corresponding types sends.For example: cpu card enters the reading of electric card
Write processing routine, the read write command sending for coulant meter scale, by the information write electric quantity metering of 200 degree of electricity of record in card
Table, the surplus that coulant meter scale carries out electricity accordingly increases by 200 degree, in card, 200 degree of existing surplus is changed into 0 degree and completes to supplement with money
Journey;Or, cpu card enters the processing routine of electric card, the read-write supplementing 300 degree of electricity with money sending for electricity business hall read-write equipment
Instruction, electric surplus is increased by 300 degree from 100 degree and is changed into 400 degree by cpu card.
Due in embodiments of the present invention, according to the different time sequence status of card reader, confirming the target of ic card to be operated
Type, and because save the read-write processing procedure of the ic card of at least two types in cpu card, therefore can be according to this target
Type is processed using corresponding read-write processing procedure it is achieved that one card for multiple uses, improve the versatility of cpu card with multiplex
Property.
In order to realize determining the target type of ic card according to card reader, cpu card according to the card reader being connected with itself when
Sequence state, determines that the target type of described card reader ic card to be operated includes:
According to the time sequence status of the card reader being connected with itself, and the type of every kind of time sequence status of preserving and ic card is right
Should be related to, identify the type of the time sequence status corresponding ic card of this card reader, using the type of the ic recognizing card as described reading
The target type of card device ic card to be operated.
Specifically, after determining the time sequence status of card reader being connected with itself, by the time sequence status of card reader and itself
The time sequence status of each type of card reader preserving match, and determine the type of the card reader that the match is successful, according to the type
Card reader, the corresponding relation of the type according to each type of card reader and the ic card preserving, determine the card reader of the type
The type of corresponding ic card, and using the type of this ic card as ic card target type.
For example: when the time sequence status according to the card reader being connected with itself, determine the Card Reader that this card reader is the first kind
During device, according to the corresponding relation of each type of card reader itself preserving and the type of ic card, determine the reading of this first kind
The type of card device corresponding ic card is combustion gas card, and combustion gas card is therefore defined as the target class of this card reader ic card to be operated
Type.
After determining the target type of ic card, journey is processed according to the corresponding read-write of the local each type of ic card preserving
Sequence, searches the ic card corresponding read-write processing procedure of this target type, can be using this read-write processing routine directly to this read-write
Instruction is processed.And in order to ensure to read and write safety and the accuracy of data, in embodiments of the present invention according to described read-write
Before processing procedure is processed to described read write command, methods described includes:
Obtain the data to be tested in the ic corresponding read-write processing routine of described target type and verification data;
Using corresponding method of calibration, described data to be verified is operated;
Using described verification data, the data described to be verified after operation is verified;
When verification is passed through, execute subsequent step.
Specifically, the read-write processing routine for each type of ic card preserves the data to be verified of the ic card of the type
And verification data, when the ic card to this target type verifies, obtain in the corresponding read-write program of ic card of target type
Data to be tested and verification data, for treating that calibration data adopts corresponding method of calibration to generate school inspection data, by generate
Verification data is contrasted with the verification data obtaining, if unanimously, verification is passed through, and can carry out the reading of follow-up corresponding ic
Write processing procedure.
In order to be further ensured that the accuracy that read-write is processed, this data to be verified is this target in embodiments of the present invention
Total data present in the ic card of type, if upchecked, illustrates whole numbers of storage in the ic card of this target type
According to correct, follow-up read-write operation can be carried out, otherwise, illustrate that the data of storage in the ic card of this target type is distorted by people, or
Lose, it is not written and read operating.
In addition, the verification data preserved in cpu card, it is to adopt corresponding method of calibration to generate according to data to be verified
, this method of calibration can include multiple, can be for example cyclic redundancy check (CRC) (cyclic redundancy check,
Crc), or additive method, as long as preserving the method for calibration adopting during verification data, and the method for calibration adopting during checking is identical
?.
In embodiments of the present invention in order to further improve safety and the accuracy of data, methods described also includes:
According to the result of described process, generate data to be verified and verification data and preserve.
Specifically, after the completion of read-write processing procedure, store according in the ic card of this target type comprising result
Data, data to be verified can be determined according to this data, this data to be verified can be the total data of storage, and adopt
Crc school detecting method generates school inspection data, and stores this data to be verified and school inspection data for the ic card of this target type.
A kind of read-write process schematic of cpu card that Fig. 2 provides for the above embodiment of the present invention, this process includes following
Step:
S201: receive the read write command of the card reader being connected with itself.
S202: according to the time sequence status of the card reader being connected with itself, determine the mesh of described card reader ic card to be operated
Mark type.
S203: the ic card of at least two types being preserved according to itself and the corresponding relation of read-write processing procedure, search institute
State the ic card corresponding read-write processing procedure of target type.
S204: obtain the data to be tested in the ic card corresponding read-write processing routine of described target type and check number
According to.
S205: using corresponding method of calibration, described data to be verified is operated.
S206: the data described to be verified after operation is verified using described verification data.
S207: when verification is passed through, according to described read-write processing procedure, described read write command is processed.
S208: according to the result of described process, generate data to be verified and verification data and preserve.
After determining the target type of ic card, the first time being the ic card to this target type when this read-write operation
Read-write operation, in embodiments of the present invention before receiving the read write command of the card reader being connected with itself, is also included:
Receive the initialization directive of the card reader being connected with itself;
According to the time sequence status of the card reader being connected with itself, determine the target class of described card reader ic card to be operated
Type;
The ic card of at least two types being preserved according to itself and the corresponding relation of initialisation process, search described mesh
The corresponding initialisation process of ic card of mark type;
Initialization process is carried out to the ic card of described target type according to described initialisation process.
Specifically, in order to realize the initialization of the ic card of target type, it is directed in cpu card provided in an embodiment of the present invention
Its corresponding initialisation process preserved by each type of ic card, by this initialisation process, it is possible to achieve to phase
Answer the initialization of the ic card of type.
When the initialization directive that the card reader being connected with itself is sent is received in cpu clamping, according to the card reader being connected with itself
Time sequence status, determine the target type of card reader ic card to be operated, and determine corresponding initial of ic card of target type
Change processing procedure, initialization process is carried out to the cpu card of target type.
For example: cpu clamping receives the initialization directive that combustion gas card reader transmits, and cpu card is according to combustion gas card reader
Time sequence status, determine that the type of card reader pending ic card is combustion gas card, search the initialisation process of combustion gas card, that is, configure
Corresponding input and output io pin, the initial value of parameter, clock information etc..The specific type according to ic card, carries out initial
The process changed belongs to prior art, in embodiments of the present invention this process is not repeated.
The read-write process schematic of the cpu card for providing in another embodiment of the present invention for the Fig. 3, this process includes:
S301: receive the initialization directive of the card reader being connected with itself.
S302: according to the time sequence status of the card reader being connected with itself, determine the mesh of described card reader ic card to be operated
Mark type.
S303: the ic card of at least two types being preserved according to itself and the corresponding relation of initialisation process, search
The corresponding initialisation process of ic card of described target type.
S304: initialization process is carried out to the ic card of described target type according to described initialisation process.
Fig. 4 is a kind of read-write equipment structural representation of cpu card provided in an embodiment of the present invention, is applied to cpu card, this dress
Put including:
Receiver module 42, for receiving the read write command of the card reader being connected with itself;
Determining module 43, for the time sequence status according to the card reader being connected with itself, determines that described card reader is to be operated
Ic card target type;
Matching module 44, the ic card of at least two types for being preserved according to itself is closed with the corresponding of read-write processing procedure
System, searches the ic card corresponding read-write processing procedure of described target type;
Processing module 46, for processing to described read write command according to described read-write processing procedure.
Described determining module 43, specifically for according to the time sequence status of card reader being connected with itself, and preservation is every kind of
The corresponding relation of the type of time sequence status and ic card, identifies the type of the time sequence status corresponding ic card of this card reader, will identify
The type of the ic card arriving is as the target type of described card reader ic card to be operated.
Described device also includes:
First correction verification module 45, to be tested in the corresponding read-write processing routine of the ic card for obtaining described target type
Data and verification data;Using corresponding method of calibration, described data to be verified is operated;Using described verification data pair
Data described to be verified after operation is verified;When verification is passed through, trigger processing module.
Second school inspection module 47, for the result according to described process, generates data to be verified and verification data and preserves.
Initialization module 41, for receiving the initialization directive of the card reader being connected with itself;According to be connected with itself
The time sequence status of card reader, determine the target type of described card reader ic card to be operated;At least two being preserved according to itself
The ic card of type and the corresponding relation of initialisation process, search the ic card corresponding initialization process mistake of described target type
Journey;Initialization process is carried out to the ic card of described target type according to described initialisation process.
Embodiments provide a kind of reading/writing method of cpu card and device, the method includes: receive and be connected with itself
Card reader read write command;According to the time sequence status of the card reader being connected with itself, determine described card reader ic to be operated
The target type of card;The ic card of at least two types being preserved according to itself and the corresponding relation of read-write processing procedure, search institute
State the ic card corresponding read-write processing procedure of target type;According to described read-write processing procedure to described read write command at
Reason.Due in embodiments of the present invention, according to the different time sequence status of card reader, confirming the target type of ic card to be operated,
And because save the read-write processing procedure of the ic card of at least two types in cpu card, therefore can be according to this target type
Processed it is achieved that one card for multiple uses using corresponding read-write processing procedure, improve versatility and the versatility of cpu card.
For systems/devices embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple
Single, in place of correlation, the part referring to embodiment of the method illustrates.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect
Apply the form of example.And, the application can be using in one or more computers wherein including computer usable program code
The upper computer program implemented of usable storage medium (including but not limited to disk memory, cd-rom, optical memory etc.) produces
The form of product.
The application is the flow process with reference to method, equipment (system) and computer program according to the embodiment of the present application
Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce
A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device
The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy
Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to
Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting
On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or
On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function of specifying in individual square frame or multiple square frame.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent
Select embodiment and fall into being had altered and changing of the application scope.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the application to the application
God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprise these changes and modification.
Claims (10)
1. it is characterised in that being applied to cpu card, methods described includes a kind of reading/writing method of cpu card:
Receive the read write command of the card reader being connected with itself;
According to the time sequence status of the card reader being connected with itself, determine the target type of described card reader ic card to be operated;
The ic card of at least two types being preserved according to itself and the corresponding relation of read-write processing procedure, search described target type
Ic card corresponding read-write processing procedure;
According to described read-write processing procedure, described read write command is processed.
2. method according to claim 1 is it is characterised in that the sequential shape of card reader that is connected with itself of described basis
State, determines that the target type of described card reader ic card to be operated includes:
According to the time sequence status of the card reader being connected with itself, and every kind of time sequence status of preservation and the corresponding of type of ic card are closed
System, identifies the type of the time sequence status corresponding ic card of this card reader, using the type of the ic recognizing card as described card reader
The target type of ic card to be operated.
3. method according to claim 1 is it is characterised in that described refer to described read-write according to described read-write processing procedure
Before order is processed, methods described includes:
Obtain the data to be tested in the ic card corresponding read-write processing routine of described target type and verification data;
Using corresponding method of calibration, described data to be verified is operated;
Using described verification data, the data described to be verified after operation is verified;
When verification is passed through, execute subsequent step.
4. method according to claim 1 is it is characterised in that methods described also includes:
According to the result of described process, generate data to be verified and verification data and preserve.
5. method according to claim 1 is it is characterised in that the read write command of card reader that is connected with itself of described reception
Before, also include:
Receive the initialization directive of the card reader being connected with itself;
According to the time sequence status of the card reader being connected with itself, determine the target type of described card reader ic card to be operated;
The ic card of at least two types being preserved according to itself and the corresponding relation of initialisation process, search described target class
The corresponding initialisation process of ic card of type;
Initialization process is carried out to the ic card of described target type according to described initialisation process.
6. it is characterised in that being applied to cpu card, described device includes a kind of read-write equipment of cpu card:
Receiver module, for receiving the read write command of the card reader being connected with itself;
Determining module, for the time sequence status according to the card reader being connected with itself, determines described card reader ic card to be operated
Target type;
Matching module, for the ic card of at least two types and the corresponding relation of read-write processing procedure that are preserved according to itself, looks into
Look for the ic card corresponding read-write processing procedure of described target type;
Processing module, for processing to described read write command according to described read-write processing procedure.
7. device according to claim 6, it is characterised in that described determining module, is connected with itself specifically for basis
Card reader time sequence status, and preserve every kind of time sequence status and ic card type corresponding relation, identify this card reader
The type of time sequence status corresponding ic card, using the type of the ic recognizing card as described card reader ic card to be operated target
Type.
8. device according to claim 6 is it is characterised in that described device also includes:
First correction verification module, the ic card for obtaining described target type corresponding read-write processing routine in data to be tested and
Verification data;Using corresponding method of calibration, described data to be verified is operated;Using described verification data to operation after
Data described to be verified verified;When verification is passed through, trigger processing module.
9. device according to claim 6 is it is characterised in that described device also includes:
Second school inspection module, for the result according to described process, generates data to be verified and verification data and preserves.
10. device according to claim 6 is it is characterised in that described device also includes:
Initialization module, for receiving the initialization directive of the card reader being connected with itself;According to the card reader being connected with itself
Time sequence status, determine the target type of described card reader ic card to be operated;At least two types being preserved according to itself
Ic card and the corresponding relation of initialisation process, search the corresponding initialisation process of ic card of described target type;Root
According to described initialisation process, initialization process is carried out to the ic card of described target type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610790430.7A CN106355124A (en) | 2016-08-31 | 2016-08-31 | Read-write method and device for CPU card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610790430.7A CN106355124A (en) | 2016-08-31 | 2016-08-31 | Read-write method and device for CPU card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106355124A true CN106355124A (en) | 2017-01-25 |
Family
ID=57856386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610790430.7A Pending CN106355124A (en) | 2016-08-31 | 2016-08-31 | Read-write method and device for CPU card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106355124A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117080779A (en) * | 2023-10-16 | 2023-11-17 | 成都电科星拓科技有限公司 | Memory bar plugging device, method for adapting memory controller to memory bar plugging device and working method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1687905A (en) * | 2005-05-08 | 2005-10-26 | 华中科技大学 | Multi-smart cards for internal operating system |
CN101493900A (en) * | 2009-03-02 | 2009-07-29 | 北京飞天诚信科技有限公司 | Smart card operation method and system |
CN102034305A (en) * | 2009-09-29 | 2011-04-27 | 中国移动通信集团公司 | Composite application service processing method and smart card |
EP2477165A1 (en) * | 2009-09-11 | 2012-07-18 | China Unionpay Co., Ltd. | Multi-application smart card, and system and method for multi-application management of smart card |
CN102929708A (en) * | 2012-11-16 | 2013-02-13 | 飞天诚信科技股份有限公司 | Method for realizing multitasking for smart card |
CN103455828A (en) * | 2012-06-04 | 2013-12-18 | 深圳商联商用科技有限公司 | Method and system for achieving all-purpose card |
-
2016
- 2016-08-31 CN CN201610790430.7A patent/CN106355124A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1687905A (en) * | 2005-05-08 | 2005-10-26 | 华中科技大学 | Multi-smart cards for internal operating system |
CN101493900A (en) * | 2009-03-02 | 2009-07-29 | 北京飞天诚信科技有限公司 | Smart card operation method and system |
EP2477165A1 (en) * | 2009-09-11 | 2012-07-18 | China Unionpay Co., Ltd. | Multi-application smart card, and system and method for multi-application management of smart card |
CN102034305A (en) * | 2009-09-29 | 2011-04-27 | 中国移动通信集团公司 | Composite application service processing method and smart card |
CN103455828A (en) * | 2012-06-04 | 2013-12-18 | 深圳商联商用科技有限公司 | Method and system for achieving all-purpose card |
CN102929708A (en) * | 2012-11-16 | 2013-02-13 | 飞天诚信科技股份有限公司 | Method for realizing multitasking for smart card |
Non-Patent Citations (2)
Title |
---|
李佰战: "两种加密IC卡在同一系统中的共存技术", 《单片机与嵌入式系统应用》 * |
王东: "IC卡读写系统的设计", 《电气自动化》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117080779A (en) * | 2023-10-16 | 2023-11-17 | 成都电科星拓科技有限公司 | Memory bar plugging device, method for adapting memory controller to memory bar plugging device and working method |
CN117080779B (en) * | 2023-10-16 | 2024-01-02 | 成都电科星拓科技有限公司 | Memory bar plugging device, method for adapting memory controller to memory bar plugging device and working method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220405728A1 (en) | Closed-loop testing of integrated circuit card payment terminals | |
US10735427B2 (en) | Method and apparatus for managing program of electronic device | |
CN107729749A (en) | With reference to system information and the Android simulator detection method and device of ardware feature | |
CN106922193A (en) | Apparatus and method for paying | |
RU2014138935A (en) | METHOD, DEVICE AND PROTECTED ELEMENT FOR PERFORMING A SAFE FINANCIAL TRANSACTION IN A DEVICE | |
WO2010105259A1 (en) | Secure card access module for integrated circuit card applications | |
WO2020019485A1 (en) | Simulator identification method, identification device, and computer readable medium | |
MY197570A (en) | Security verification method and device for smart card application | |
CN110516447A (en) | A kind of method and apparatus of identification terminal simulator | |
US9298949B2 (en) | Method for programming a mobile end device chip | |
CN101739525B (en) | Safety check method, compilation device, device and method for executing NET program | |
CN113541741B (en) | Analog card switching method and device, electronic equipment and storage medium | |
CN110263294A (en) | The determination method, apparatus and electronic equipment of loss function value | |
CN109063430A (en) | A kind of method, device and equipment of data storage and authentication | |
US10410095B2 (en) | Method and system for identifying a payment card design | |
CN106355124A (en) | Read-write method and device for CPU card | |
CN104917720B (en) | The method and device of password resetting | |
CN105260887A (en) | NFC payment method, NFC payment system and intelligent terminal | |
EP3324342B1 (en) | Electronic device and method for operating the same | |
CN110502890A (en) | A kind of processing method of identifying code, device, electronic equipment and storage medium | |
CN110532290A (en) | Information Authentication device, method and storage medium based on block chain | |
CN103294837A (en) | Method and system for verifying and debugging integrated circuit | |
CN107633170A (en) | A kind of Android simulator detection method and device of combination ardware feature and sensor | |
CN102567202A (en) | Double-interface intelligent card simulator based on field programmable gata array (FPGA) | |
CN108234729B (en) | Method for adjusting verification model, verification method, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170125 |
|
RJ01 | Rejection of invention patent application after publication |