CN102968652B - The access method of smart card and access means - Google Patents

The access method of smart card and access means Download PDF

Info

Publication number
CN102968652B
CN102968652B CN201210474185.0A CN201210474185A CN102968652B CN 102968652 B CN102968652 B CN 102968652B CN 201210474185 A CN201210474185 A CN 201210474185A CN 102968652 B CN102968652 B CN 102968652B
Authority
CN
China
Prior art keywords
smart card
status information
equipment
memory
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210474185.0A
Other languages
Chinese (zh)
Other versions
CN102968652A (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.)
Tianjin Haitai Fangyuan Technology Co., Ltd.
Original Assignee
Beijing Haitai Fangyuan High 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 Beijing Haitai Fangyuan High Technology Co Ltd filed Critical Beijing Haitai Fangyuan High Technology Co Ltd
Priority to CN201210474185.0A priority Critical patent/CN102968652B/en
Publication of CN102968652A publication Critical patent/CN102968652A/en
Application granted granted Critical
Publication of CN102968652B publication Critical patent/CN102968652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a kind of smart card access method, comprise: read smart card memory, and judge the status information of equipment that whether there is this smart card in smart card memory: if do not comprise status information of equipment in smart card memory, then create the container that intelligent card data operating environment is provided, status information of equipment is write smart card memory simultaneously, carry out intelligent card data operation in this embodiment afterwards; If comprise this status information of equipment in smart card memory, then traversal queries status information of equipment in this smart card memory, and set up and the current container that there is container and do not born the same name according to the status information of equipment inquired, carry out intelligent card data operation in this embodiment afterwards; After completing intelligent card data operation, the status information of equipment in smart card memory is updated to the current device status information in this smart card document system.Thus improve the access efficiency of the common access intelligent card of multiprogram.In addition, present invention also offers a kind of device for realizing said method.

Description

The access method of smart card and access means
Technical field
The present invention relates to a kind of access method and access means of smart card.
Background technology
Smart card (Smart Card) is a kind of common name being embedded with the plastic clip (normally the size of a credit card) of microchip.Some smart cards comprise a RFID chip, so they do not need just can identify holder with any physical contact of read write line.Smart card is equipped with CPU and RAM, can a fairly large number of data and can not interfere with the work of host CPU by oneself.Smart card also can the data of filter false, to alleviate the burden of host CPU.Be adapted to the more and communication speed demand occasion faster of port number.Integrated circuit in card comprises central processor CPU, programmable read only memory EEPROM, random access memory ram and is solidificated in the card internal operating system COS (Chip OperatingSystem) in read only memory ROM.
For smart card, the one card for multiple uses realizing smart card is a developing direction having prospect.So-called one card for multiple uses refers to there is multiple application on a sheet smart card, as financial wallet, refuels wallet, work attendance gate inhibition etc.And on the current technology, application program can be allowed to run in low-level operation system architecture (being called container), if when needing to use multiple application program sometime simultaneously (multiple application program access intelligent card together), that is, when multiple application program needs to set up respectively container to carry out the associative operation of digital signature, as shown in Figure 1, first needing the relevant information traveling through the current container be present in smart card in smart card document system, bearing the same name to avoid already present container with other when setting up container.Like this, when multiple utility program access intelligent card, each application program needs when needing acquisition container relevant information the file system traveling through smart card.As everyone knows, application program will consume certain hour by carrying out traversal file system to smart card transmission instruction, and the time that multiple application program consumes by carrying out traversal file system to smart card transmission instruction affects Consumer's Experience very much simultaneously, need thus to consume the plenty of time, greatly have impact on the efficiency of application program access intelligent card.
Summary of the invention
In view of this, fundamental purpose of the present invention is the access method and the access means that provide a kind of smart card, to improve the access efficiency of the common access intelligent card of multiple application program.
The method of a kind of smart card access provided by the invention, comprises the following steps:
Read smart card memory, and judge the status information of equipment that whether there is this smart card in smart card memory:
If do not comprise the status information of equipment of this smart card in smart card memory, then create the container that intelligent card data operating environment is provided, simultaneously by the status information of equipment of this smart card write smart card memory, carry out intelligent card data operation in this embodiment afterwards;
If comprise the status information of equipment of this smart card in smart card memory, the then status information of equipment of this smart card of traversal queries in this smart card memory, and set up and the current container that there is container and do not born the same name according to the status information of equipment inquired, carry out intelligent card data operation in this embodiment afterwards;
After completing the operation of described intelligent card data, the described status information of equipment in smart card memory is updated to the current status information of equipment in this smart card document system.
In the above-mentioned methods, the status information of equipment of described smart card comprises: information of container.
As seen from the above, by the status information of equipment in smart card document system is write in smart card memory, the facility information set up between smart card memory and file system maps, the while of making multiple thus, the application program of access intelligent card just can realize enumerating for information of container by fast access internal memory, compare with directly traveling through smart card document system acquisition information of container during access intelligent card, present invention saves a large amount of routine access time, improve the access efficiency of the common access intelligent card of multiprogram, and then avoid the impact that Consumer's Experience is produced.
In addition, present invention also offers a kind of smart card access device that can realize said method, comprising:
Read operation module, for reading the data in smart card memory;
Judge module, for judging by the status information of equipment that whether there is this smart card in the smart card memory data of described read operation module reading;
Write operation module, for writing data in smart card memory;
Control module, for when described judge module judges the status information of equipment not comprising this smart card in smart card memory data, create the container that intelligent card data operating environment is provided, control described write operation module by the status information of equipment of this smart card write smart card memory simultaneously, carry out intelligent card data operation in this embodiment afterwards;
When described judge module judges the status information of equipment comprising this smart card in smart card memory data, the status information of equipment of this smart card of traversal queries in this smart card memory, and set up and the current container that there is container and do not born the same name according to the status information of equipment inquired, carry out intelligent card data operation in this embodiment afterwards; And
After completing the operation of described intelligent card data, control described write operation module and the described status information of equipment in smart card memory is updated to current status information of equipment in this smart card document system.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of existing smart card access method;
Fig. 2 is the process flow diagram of smart card access method provided by the invention;
Fig. 3 is the function structure chart of smart card access device provided by the invention.
Embodiment
Below, smart card access method provided by the invention is as shown in Figure 2 introduced in detail.
Suppose, when the common access intelligent card of multiple utility program, application A is connected to smart card, reads smart card memory, and judge the status information of equipment that whether there is this smart card comprising information of container (such as, Container Name, capacity etc.) in smart card memory:
If do not comprise the status information of equipment of this smart card in smart card memory, then application program A is the application program of now first this smart card of access, being created by application A provides intelligent card data (such as, digital signature etc.) container of operating environment, and simultaneously by the status information of equipment write memory of this smart card;
If comprise the status information of equipment of this smart card in smart card memory, then illustrate and now have other application programs accessing this smart card, in this smart card memory, the status information of equipment of this smart card is now inquired about by application A, obtain the information of container of current smart cards with this, and set up and the current container that there is container and do not born the same name according to the information of container inquired.
When application A completes intelligent card data operation (such as on its container set up, the read-write of digital signature) after, carry out synchronous by status information of equipment existing in this smart card memory with the current device status information in this smart card document system, it is consistent for namely upgrading the status information of equipment in this smart card memory with the current device state of smart card.Like this, the application program of this smart card of subsequent access, such as application program B, C...... are when enumerating information of container, just can obtain information of container by the status information of equipment in inquiry smart card memory, replace obtaining information of container by direct access intelligent card file system with this.
Like this, except when read-write or when deleting in addition to data, when needing frequently to inquire about smart card device status information at multiple application program access intelligent card, traversal file system is replaced by these means of query facility state in internal memory, not only greatly can save query time, and different application is carrying out the application program of digital signature read-write operation to other interference when traversal file system can be reduced.
In addition, present invention also offers a kind of smart card access device that can realize said method, as shown in Figure 3, comprising:
Read operation module, for reading the data in smart card memory;
Judge module, for judging by the status information of equipment that whether there is this smart card in the smart card memory data of described read operation module reading;
Write operation module, for writing data in smart card memory;
Control module, for when described judge module judges the status information of equipment not comprising this smart card in smart card memory data, create the container that intelligent card data operating environment is provided, control described write operation module by the status information of equipment of this smart card write smart card memory simultaneously, carry out intelligent card data operation in this embodiment afterwards;
When described judge module judges the status information of equipment comprising this smart card in smart card memory data, the status information of equipment of this smart card of traversal queries in this smart card memory, and set up and the current container that there is container and do not born the same name according to the status information of equipment inquired, carry out intelligent card data operation in this embodiment afterwards; And
After completing the operation of described intelligent card data, control described write operation module and the described status information of equipment in smart card memory is updated to current status information of equipment in this smart card document system.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. an access method for smart card, is characterized in that, comprises the following steps:
Chip card reader internal memory, and judge the status information of equipment that whether there is this smart card in smart card memory:
If do not comprise the status information of equipment of this smart card in smart card memory, then create the container that intelligent card data operating environment is provided, simultaneously by the status information of equipment of this smart card write smart card memory, carry out intelligent card data operation in this embodiment afterwards;
If comprise the status information of equipment of this smart card in smart card memory, the then status information of equipment of this smart card of traversal queries in this smart card memory, and set up and the current container that there is container and do not born the same name according to the status information of equipment inquired, carry out intelligent card data operation in this embodiment afterwards;
After completing the operation of described intelligent card data, the described status information of equipment in smart card memory is updated to the current status information of equipment in this smart card document system.
2. method according to claim 1, is characterized in that, the status information of equipment of described smart card comprises: information of container.
3. a smart card access device, is characterized in that, comprising:
Read operation module, for reading the data in smart card memory;
Judge module, for judging by the status information of equipment that whether there is this smart card in the smart card memory data of described read operation module reading;
Write operation module, for writing data in smart card memory;
Control module, for when described judge module judges the status information of equipment not comprising this smart card in smart card memory data, create the container that intelligent card data operating environment is provided, control described write operation module by the status information of equipment of this smart card write smart card memory simultaneously, carry out intelligent card data operation in this embodiment afterwards;
When described judge module judges the status information of equipment comprising this smart card in smart card memory data, the status information of equipment of this smart card of traversal queries in this smart card memory, and set up and the current container that there is container and do not born the same name according to the status information of equipment inquired, carry out intelligent card data operation in this embodiment afterwards; And
After completing the operation of described intelligent card data, control described write operation module and the described status information of equipment in smart card memory is updated to current status information of equipment in this smart card document system.
CN201210474185.0A 2012-11-20 2012-11-20 The access method of smart card and access means Active CN102968652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210474185.0A CN102968652B (en) 2012-11-20 2012-11-20 The access method of smart card and access means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210474185.0A CN102968652B (en) 2012-11-20 2012-11-20 The access method of smart card and access means

Publications (2)

Publication Number Publication Date
CN102968652A CN102968652A (en) 2013-03-13
CN102968652B true CN102968652B (en) 2015-10-07

Family

ID=47798783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210474185.0A Active CN102968652B (en) 2012-11-20 2012-11-20 The access method of smart card and access means

Country Status (1)

Country Link
CN (1) CN102968652B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042696A (en) * 2006-03-23 2007-09-26 北京握奇数据系统有限公司 Smart card storage system and managing method for file creation in the system
CN101110026A (en) * 2007-08-03 2008-01-23 北京握奇数据系统有限公司 Resource limited equipment and data access method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4053704B2 (en) * 2000-01-05 2008-02-27 株式会社東芝 IC card with built-in wireless interface function, antenna module, information processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042696A (en) * 2006-03-23 2007-09-26 北京握奇数据系统有限公司 Smart card storage system and managing method for file creation in the system
CN101110026A (en) * 2007-08-03 2008-01-23 北京握奇数据系统有限公司 Resource limited equipment and data access method

Also Published As

Publication number Publication date
CN102968652A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN103295320B (en) The system and method that a kind of all-purpose card interconnects
CN1118026C (en) More logic partitions in one physical storage and IC cards with different purposes
CN100535935C (en) CPUCPU and logic encryption double-purpose smart card and its data synchronization method
CN102693480A (en) Mobile terminal with read card function and mobile terminal payment method
CN102968652B (en) The access method of smart card and access means
CN101354754B (en) Intelligent memory card built-in with CPU IC and uses thereof
CN203325006U (en) Fingerprint IC card identification system
CN204010041U (en) Highway global function Path Recognition charge double source multifrequency read-write system
CN201449614U (en) Multimode card reader
CN113409846A (en) Discontinuous address processing method and device, electronic equipment and storage medium
CN2906750Y (en) IC card reader/writer with USB interface
CN111798235A (en) Method and device for storing wind control information
CN205375618U (en) Novel access control system
CN103020559A (en) General card reading method of medical insurance medical treatment card terminals
CN202257599U (en) IC (integrated circuit) card reader
CN106780994A (en) The compatible design system and method for all-purpose card and Unionpay's IC-card in bus card-reading terminal
TWM423875U (en) Supervisory management for rfid systems
CN203165102U (en) Book management device based on RFID
CN1454368A (en) IC card terminal device
CN201331794Y (en) Card reader and mobile payment terminal
CN201111076Y (en) Memory type intelligent card read/write device
WO2018165950A1 (en) Emv implementation method and device
CN102890618B (en) A kind of Memory Extension equipment with partition management
CN104166864A (en) Smart reader-writer and smart card communication method and system
CN203673515U (en) Smart card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 100094, Beijing, Haidian District, West Road, No. 8, Zhongguancun Software Park, building 9, international software building E, one floor, two layers

Patentee after: BEIJING HAITAI FANGYUAN HIGH TECHNOLOGY CO., LTD.

Address before: 100094, Beijing, Haidian District, West Road, No. 8, Zhongguancun Software Park, building 9, international software building E, one floor, two layers

Patentee before: Beijing Haitai Fangyuan High Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190104

Address after: 300393 Tianjin Xiqing District, Zhongbei Science and Technology Industrial Park, Zhongbei District, Tiansoft Enterprise College, Block B, 305-46

Patentee after: Tianjin Haitai Fangyuan Technology Co., Ltd.

Address before: 100094 Beijing Haidian District, North East Wangxi Road 8 Zhongguancun Software Park 9 Building International Software Building E, 1st and 2nd floors

Patentee before: BEIJING HAITAI FANGYUAN HIGH TECHNOLOGY CO., LTD.