CN103186812B - Intelligent memory card and the method accessing intelligent memory card - Google Patents

Intelligent memory card and the method accessing intelligent memory card Download PDF

Info

Publication number
CN103186812B
CN103186812B CN201110444823.XA CN201110444823A CN103186812B CN 103186812 B CN103186812 B CN 103186812B CN 201110444823 A CN201110444823 A CN 201110444823A CN 103186812 B CN103186812 B CN 103186812B
Authority
CN
China
Prior art keywords
application
memory space
mapping table
interface
application file
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
CN201110444823.XA
Other languages
Chinese (zh)
Other versions
CN103186812A (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201110444823.XA priority Critical patent/CN103186812B/en
Publication of CN103186812A publication Critical patent/CN103186812A/en
Application granted granted Critical
Publication of CN103186812B publication Critical patent/CN103186812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of intelligent memory card and the method accessing intelligent memory card, described intelligent memory card includes: flash media, and it has the application memory space for storing application of IC cards data and the multimedia memory space for storing multimedia data;Smart card module, its storage has the application file mapping table that application file name, the base address of application memory space and status information thereof is mutually related;And controller, it is used for creating application memory space, sets up application file mapping table and be stored in smart card module.Described method includes the corresponding relation determining application file with the application memory space in flash media, sets up application file mapping table, accesses application memory space according to application file mapping table.The present invention solves the little problem that cannot carry a large amount of new application data of intelligent memory card application memory space, extend in flash media by application of IC cards district, beneficially the popularization of new application.

Description

Intelligent memory card and the method accessing intelligent memory card
Technical field
The present invention relates to electrical application technology field, more particularly, it relates to a kind of intelligence having expanded application memory space Can storage card and the method for access intelligent memory card.
Background technology
Along with the universal of the Internet and the rise of ecommerce, storage card the most only has single storage function, But it is expanded into the carrier with multiple application such as network ID authentication, E-Payment, stored value card, bill evidences.This The storage card (referred to as intelligent memory card) being embedded with smart card module is widely used in various mancarried device, such as hands Machine, notebook computer, digital camera, personal digital assistant (PDA) and multimedia player etc..
In intelligent memory card, the data of storage can be divided into application of IC cards data and multi-medium data.Such as, card ID, PIN, stored value card, electronic signature etc. broadly fall into application of IC cards data, typically leave the smart card that intelligent memory card is embedded in In module, photo, video file, music file etc. belong to multi-medium data, are typically stored at the flash media of intelligent memory card In.Along with the rise of mobile payment, the most novel application of IC cards with big data quantity start occur, as e-advertising, Electronic bill, e-book, encryption file etc..These novel applications of IC cards are typically based on the content such as picture, text, and intelligence The memory space of energy card module is typically at below 1M Bytes, it is impossible to carries the data volume of these novel applications of IC cards, leads Cause a lot of new application cannot promote.
Summary of the invention
The present invention provides a kind of intelligent memory card, by virtual for flash media for application of IC cards memory space, with solve by Problem in the little new application that cannot carry big data quantity of smart card module memory space;Propose one access intelligence to deposit simultaneously The method of card storage, makes peripheral hardware can be counted alternately with the application memory space in flash media by contact or non-contact interface According to, promote the experience of user.
The present invention proposes a kind of intelligent memory card, including: flash media, it has for storing application of IC cards data Application memory space and for the multimedia memory space of storing multimedia data;Smart card module, is stored with application File Mapping table, this application file mapping table is empty application file name, the base address of this application memory space and this application memory Between status information interrelated, described status information includes that the read-write properties of this application memory space, this application memory are empty Between size and this application memory space service condition;And controller, it is used for accessing this flash media and this intelligence snap gauge Block, creates this application memory space in this flash media, sets up this application file mapping table and by this application file mapping table It is stored in this smart card module.
Further, described intelligent memory card also includes radio-frequency module, this radio-frequency module and smart card module or controller phase Even, it is used for providing contactless access interface.
Further, this controller has memory card interface, and described memory card interface is MMC interface, SD interface, USB interface Or SD-USB translation interface;This controller has the communication interface for communicating with this smart card module, and this communication interface is 7816, SPI, IIC, GPIO, DMA or fifo interface or bus.
The present invention also proposes a kind of method accessing above-mentioned intelligent memory card, including:
A, according to applicating category, utilize the controller of this intelligent memory card to set up in the flash media of this intelligent memory card Application memory space for storage with each application application of IC cards data one to one;
B, the corresponding relation determined between the filename of each application and the base address of corresponding application memory space, note Record the status information of this application memory space, set up application file mapping table, and described application file mapping table is stored in this intelligence In the smart card module of energy storage card;
C, access this application memory space according to described application file mapping table.
Further, described step C includes reading application file mapping table, determines that whether current application file is at application file In mapping table, if application file and allows operation in application file mapping table, then access the application memory in flash media Space, the status information of write-back application memory space;If not allowing operation, then point out error message.If application file is not In application file mapping table, the most only access the application file in smart card module, do not access flash media.
Further, the application memory space described in step A is created by controller, detects application when power-up initializing and deposits Whether storage space exists, if existing, no longer creates, and otherwise reads the information creating application memory in application file mapping table empty Between.
Further, described access is contactless interface accessing or contact interface accessing.
The present invention solves the little problem that cannot carry a large amount of new application data of intelligent memory card application memory space, will Application of IC cards district extend in flash media, beneficially the popularization of new application.
Accompanying drawing explanation
Fig. 1 be the intelligent memory card that provides with one embodiment of the invention with the use of the schematic diagram of terminal unit.
Fig. 2 is the structural representation of the intelligent memory card that one embodiment of the invention provides.
Fig. 3 is the schematic diagram that between realization application and the application memory space that one embodiment of the invention provides, data map.
Fig. 4 is the flow chart setting up application memory space in flash media that one embodiment of the invention provides.
Fig. 5 is the flow chart of the access application memory space that one embodiment of the invention provides.
Detailed description of the invention
Understandable for making the above-mentioned purpose of the present invention, characteristic and advantage become apparent from, below in conjunction with the accompanying drawings and specific embodiment party The present invention is described in further detail by formula.
The present invention provide intelligent memory card can with terminal unit with the use of.This terminal can be mobile phone, notebook computer, Digital camera, personal digital assistant or multimedia player.This terminal unit accesses intelligent memory card can use file system side Formula accesses.
With reference to Fig. 1, an intelligent memory card provided with one embodiment of the invention with the use of terminal unit include terminal Application program 101 and driving module 102.Wherein drive module 102 to be integrated with memory card interface driving 103 and smart card module is visited Ask that agreement 104, smart card module access protocal 104 define intelligent card interface file 204 and APDU command format.
With reference to Fig. 2, the intelligent memory card that one embodiment of the invention provides includes controller 201, smart card module 202, dodges Deposit medium 203 and radio-frequency module 206.Controller 201 is integrated with memory card interface, flash controller interface, smart card communications connect Mouth and smart card module access protocal.Described memory card interface is for driving 103 to be connected with the memory card interface of terminal unit. Described flash controller interface, smart card communications interface are respectively used to be connected with flash media 203 and smart card module 202. Flash media 203 has intelligent card interface file 204, for storing application memory space 205 and of application of IC cards data Multimedia memory space (not shown) for storing multimedia data.Radio-frequency module 206 and described smart card module 202 phase Even, it is provided that contactless access interface.
The intelligent storage of the present embodiment is stuck in the virtual application memory storing application of IC cards data in its flash media Space, enables the Large Copacity application data such as e-advertising, electronic coupons, e-book, encryption file to be stored in flash media In, and it is available for smart card module use, thus expanded the range of application of intelligent memory card.In the intelligence using the present invention to provide Storage card access method accesses needs first to create in flash media 203 application memory space as previously mentioned before intelligent memory card 205 and set up File Mapping table 301 as shown in Figure 3.
First the foundation of this document mapping table need to determine the base address 303 of application file name 302 and application memory space 205 Between corresponding relation, record application memory space 205 status information 304, then by application file name, application memory space Base address has associated with status information and has built up this application file mapping table 301.Described application file mapping table 301 need to be stored in intelligence In the memorizer of energy card module 202.Wherein status information includes that the read-write properties in each space, space size, space use The contents such as situation.
As shown in flow chart 4, the step creating application memory space 205 includes:
401 steps, power-up initializing.
402 steps, controller 201 detects whether application memory space 205 exists, if there is execution 405;Otherwise perform 403。
403 steps, flash media 203 is first formatted by controller 201, then sends order to smart card module 202 and reads Take application file mapping table 301.
404 steps, controller 201 creates application memory space according to application file mapping table 301 in flash media 203 205。
405 steps, terminate.
This intelligent memory card can be conducted interviews by this terminal by contact access interface and contactless access interface.Please See Fig. 5, comprised the steps: by contact interface accessing application memory space 205
501 steps, end application 101 calling driver module 102 operates intelligent card interface file with file mode 204。
502 steps, controller 201 accesses intelligent card interface file 204, is identified as the operation to smart card module 202, will The load data (APDU order) of file operation is transferred to smart card module 202.
503 steps, smart card module 202 receives APDU order, it is judged that APDU order application file to be operated.If Application file to be operated, performs 504, otherwise performs 511.
504 steps, smart card module 202 reads application file mapping table 301, it is judged that whether application file to be operated exists In application file mapping table 301, if in application file mapping table, then perform 505;Otherwise perform 511.
505 steps, obtain application file operation information (such as action type, working length, offset address etc.), it is judged that be No is write operation, if being carried out 506;Otherwise perform 509.
506 steps, obtain the status information 304 of application memory space, it is judged that whether application memory space allows operation, if It is to perform 507;Otherwise perform 510.
507 steps, smart card module 202 sends proactive command to controller 201, and controller 201 identifies that proactive command carries Taking application file name and the operation information of correspondence, controller performs write operation, it is judged that write operation is the most successful, if successful execution 508;Otherwise perform 510.
508 steps, controller 201 returns operating result and deposits to smart card module 202, smart card module 202 more new opplication Storage spatial state information 304, performs 511.
509 steps, controller 201 reads the data of application memory space, and transfers data at smart card module 202 Reason, performs 511.
510 steps, point out application file operation failure.
511 steps, smart card module 202 has processed APDU order, returns APDU response, controller 201 to controller 201 It is transferred to end application 101.
The method that smart card module 202 sends proactive command to controller 201 has a variety of, as actively sent out to 7816 interfaces Send data, allow controller respond 7816 interface interrupt, or smart card module connects controller by GPIO interface, by changing The external interrupt of GPIO signal trigger controller.This proactive command may be defined as actively read command and actively write order should with correspondence With the read or write of file.
The process of application memory space 205 and the process class of aforementioned contact formula interface accessing is accessed by non-contact interface Seemingly, unique except for the difference that APDU order that smart card module 202 receives comes from radio-frequency module 206, and uses radio-frequency module By APDU acknowledgement transmissions to external radio frequency device.
The foregoing is only the preferable case study on implementation of the present invention, not in order to limit the present invention, all the present invention's Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (9)

1. an intelligent memory card, including:
Flash media, it has the application memory space for storing application of IC cards data and for storing multimedia data Multimedia memory space;Smart card module, is stored with application file mapping table, and this application file mapping table is application file Name, the base address of this application memory space and this application memory space status information are interrelated, described status information bag Include the read-write properties of this application memory space, this application memory space size and this application memory space service condition;With Controller, it is used for accessing this flash media and this smart card module, creates this application memory space, build in this flash media This application file mapping table is also stored in this smart card module by this application file mapping table vertical.
Intelligent memory card the most according to claim 1, is characterized in that, described intelligent memory card also includes radio-frequency module, should Radio-frequency module is connected with smart card module or controller, is used for providing contactless access interface.
Intelligent memory card the most according to claim 1, is characterized in that, this controller has memory card interface, described storage Card interface is MMC interface, SD interface, USB interface or SD-USB translation interface.
Intelligent memory card the most according to claim 1, this controller has the communication for communicating with this smart card module Interface, this communication interface is 7816, SPI, IIC, GPIO, DMA or fifo interface.
5. the method accessing intelligent memory card, including:
A, according to applicating category, utilize the controller of this intelligent memory card set up in the flash media of this intelligent memory card for Storage and the application memory space of each application application of IC cards data one to one;
B, the corresponding relation determined between the filename of each application and the base address of corresponding application memory space, record should The status information of application memory space, sets up application file mapping table, and described application file mapping table is stored in this intelligence deposits In the smart card module of card storage;
C, access this application memory space according to described application file mapping table.
The method of access intelligent memory card the most according to claim 5, is characterized in that, described step C includes reading application File Mapping table, determine current application file whether in application file mapping table, if application file application file map In table and allow operation, then access the application memory space in flash media, the status information of write-back application memory space;If Do not allow operation, then point out error message.
The method of access intelligent memory card the most according to claim 5, is characterized in that, in described step C, if application File, not in application file mapping table, does not the most access flash media.
The method of access intelligent memory card the most according to claim 5, is characterized in that, the application memory described in step A Space is created by controller, detects whether application memory space exists when power-up initializing, if existing, no longer creates, otherwise Read the information creating application memory space in application file mapping table.
The method of access intelligent memory card the most according to claim 5, is characterized in that, described access is non-contact interface Access or contact interface accessing.
CN201110444823.XA 2011-12-28 Intelligent memory card and the method accessing intelligent memory card Active CN103186812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110444823.XA CN103186812B (en) 2011-12-28 Intelligent memory card and the method accessing intelligent memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110444823.XA CN103186812B (en) 2011-12-28 Intelligent memory card and the method accessing intelligent memory card

Publications (2)

Publication Number Publication Date
CN103186812A CN103186812A (en) 2013-07-03
CN103186812B true CN103186812B (en) 2016-12-14

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2678026Y (en) * 2003-07-04 2005-02-09 上海华园微电子技术有限公司 Storage structure of intelligent card
CN1846199A (en) * 2003-08-29 2006-10-11 松下电器产业株式会社 Non-volatile storage device and write method thereof
CN101650690A (en) * 2009-09-21 2010-02-17 中兴通讯股份有限公司 Application method of large-capacity memory card as well as mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2678026Y (en) * 2003-07-04 2005-02-09 上海华园微电子技术有限公司 Storage structure of intelligent card
CN1846199A (en) * 2003-08-29 2006-10-11 松下电器产业株式会社 Non-volatile storage device and write method thereof
CN101650690A (en) * 2009-09-21 2010-02-17 中兴通讯股份有限公司 Application method of large-capacity memory card as well as mobile terminal

Similar Documents

Publication Publication Date Title
RU2445676C2 (en) Method of communication with multifunctional memory card
CN100468981C (en) Multifunctional mobile phone based on general USB chip and its realizing method
US20090172279A1 (en) System For Accessing A Removable Non-Volatile Memory Card
US10146554B2 (en) Extraction of operating system-specific characteristics via a communication interface
TW200903264A (en) Data sharing and transfer systems and methods
KR20140093505A (en) Method and apparatus for extending memory in terminal
US8265919B1 (en) Emulating a peripheral mass storage device with a portable device
TW201329712A (en) Data processing method, memory controller and memory storage device
EP2704021A1 (en) SRAM handshake
CN101359413B (en) Wireless terminal for processing personalization smart card and method
US11379458B2 (en) Electronic device and data management method thereof
CN103870215B (en) USB solid-state disc firmware storage device
CN103049403A (en) Method for communication between embedded terminal device and cell phone
CN103186812B (en) Intelligent memory card and the method accessing intelligent memory card
US8532136B1 (en) Communication with a handset via a private network
US8756425B2 (en) Data security authentication system and related multi-function memory card and computer program product
KR100638383B1 (en) Usb apparatus which is installed a smart card, and using method thereof
CN101119561A (en) Method for communication between GSM mobile communication terminal and SIM card
CN103186812A (en) Smart memory card and method for visiting smart memory card
TWM591654U (en) Card reader and data reading and writing system
CN101788970B (en) Data string transmitting method, system and controller thereof
CN101754448A (en) Dual-core intelligent card for mobile communication and data transmission and processing method thereof
TWI718601B (en) Card reader, data reading and writing system, and reading and writing method thereof
KR101172298B1 (en) Memory card for wireless communications and sd controller
US8544424B2 (en) System, controller and method thereof for transmitting and distributing data stream

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant