CN103186812A - Smart memory card and method for visiting smart memory card - Google Patents

Smart memory card and method for visiting smart memory card Download PDF

Info

Publication number
CN103186812A
CN103186812A CN201110444823XA CN201110444823A CN103186812A CN 103186812 A CN103186812 A CN 103186812A CN 201110444823X A CN201110444823X A CN 201110444823XA CN 201110444823 A CN201110444823 A CN 201110444823A CN 103186812 A CN103186812 A CN 103186812A
Authority
CN
China
Prior art keywords
application
memory space
mapping table
memory card
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.)
Granted
Application number
CN201110444823XA
Other languages
Chinese (zh)
Other versions
CN103186812B (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
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201110444823.XA priority Critical patent/CN103186812B/en
Priority claimed from CN201110444823.XA external-priority 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

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a smart memory card and a method for visiting the smart memory card. The smart memory card comprises a flash memory medium, a smart card module, and a controller, wherein the flash memory medium is provided with an application memory space for memorizing smart card application data, and a multimedia memory space for memorizing multimedia data; an application file mapping table is memorized in the smart card module, and correlates an application file name, a base address of the application memory space and status information of the application memory space; and the controller is used for creating the application memory space, establishing the application file mapping table, and memorizing the application file mapping table in the smart card module. The method comprises the steps that a corresponding relation between an application file and the application memory space in the flash memory medium is determined; the application file mapping table is established; and the application memory space is visited according to the application file mapping table. The smart memory card and the method solve the problems that the smart memory card is small in application memory space and cannot bear a large amount of novel application data, a smart card application area is extended into the flash memory medium, and the popularization of a novel application is facilitated.

Description

The method of intelligent memory card and visit intelligent memory card
Technical field
The present invention relates to the electrical application technology field, more particularly, relate to a kind of method of having expanded intelligent memory card and the visit intelligent memory card of application memory space.
Background technology
Along with popularizing and The rise of electronic commerce of internet, storage card no longer only has single memory function, but be expanded into have network ID authentication, multiple application carrier such as E-Payment, stored value card, bill evidence.This storage card (abbreviating intelligent memory card as) that is embedded with smart card module is widely used in various mancarried devices, for example mobile phone, notebook computer, digital camera, personal digital assistant (PDA) and multimedia player etc.
The data of storing in the intelligent memory card can be divided into application of IC cards data and multi-medium data.For example, card ID, PIN, stored value card, electronic signature etc. all belong to the application of IC cards data, generally leave in the embedded smart card module of intelligent memory card, photo, video file, music file etc. belong to multi-medium data, generally are stored in the flash media of intelligent memory card.Along with the rise of mobile payment, a lot of novel applications of IC cards with big data quantity begin to occur, as e-advertising, electronic bill, e-book, encrypt file etc.These novel applications of IC cards are generally based on contents such as picture, texts, and the storage space of smart card module can't carry the data volume of these novel applications of IC cards generally below 1M Bytes, has caused a lot of new applications to promote.
Summary of the invention
The invention provides a kind of intelligent memory card, flash media is virtual for the application of IC cards storage space, to solve because the little problem that can't carry the new application of big data quantity of smart card module storage space; Propose a kind of method of visiting intelligent memory card simultaneously, make peripheral hardware promote user's experience by the application memory space interaction data in contact or non-contact interface and the flash media.
The present invention proposes a kind of intelligent memory card, comprising: flash media, it has for the application memory space of storage application of IC cards data with for the multimedia storage space of storing multi-medium data; Smart card module, be stored with the application file mapping table, this application file mapping table is interrelated the base address of application file name, this application memory space and this application memory space status information, and read-write properties, this application memory space size and this application memory space that described status information comprises this application memory space be operating position; And controller, it is used for this flash media of visit and this smart card module, creates this application memory space in this flash media, sets up this application file mapping table and also this application file mapping table is stored in this smart card module.
Further, described intelligent memory card also comprises radio-frequency module, and this radio-frequency module links to each other with smart card module or controller, 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 controling appliance is useful on the communication interface of communicating by letter 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 of visiting above-mentioned intelligent memory card, comprising:
A, according to applicating category, utilize the controller of this intelligent memory card in the flash media of this intelligent memory card, to set up to be used for storage and use the application memory space of application of IC cards data one to one with each;
B, determine the corresponding relation between the base address of each filename of using and corresponding with it application memory space, record the status information of this application memory space, set up the application file mapping table, and described application file mapping table is deposited in the smart card module of this intelligent memory card;
C, visit this application memory space according to described application file mapping table.
Further, described step C comprises and reads the application file mapping table, determines the current application file whether in the application file mapping table, if application file is in the application file mapping table and allow operation, then visit the application memory space in the flash media, the status information of write-back application memory space; If do not allow operation, then point out error message.If application file not in the application file mapping table, is then only visited the application file in the smart card module, do not visit flash media.
Whether further, the application memory space described in the steps A is created by controller, detect application memory space and exist when power-up initializing, if there is then no longer establishment, otherwise reads the information creating application memory space in the application file mapping table.
Further, described visit is contactless interface accessing or contact interface accessing.
The invention solves the little problem that can't carry a large amount of new application data of intelligent memory card application memory space, the application of IC cards district has been expanded in the flash media, be conducive to the popularization of new application.
Description of drawings
Fig. 1 is the synoptic diagram of the terminal device that is used of the intelligent memory card that provides with one embodiment of the invention.
Fig. 2 is the structural representation of the intelligent memory card that provides of one embodiment of the invention.
Fig. 3 is the synoptic diagram of data mapping between the realization application that provides of one embodiment of the invention and the application memory space.
Fig. 4 is the process flow diagram of setting up application memory space in flash media that one embodiment of the invention provides.
Fig. 5 is the process flow diagram of the access application storage space that provides of one embodiment of the invention.
Embodiment
For above-mentioned purpose of the present invention, characteristic and advantage are become apparent more, below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
Intelligent memory card provided by the invention can be used with terminal device.This terminal can be mobile phone, notebook computer, digital camera, personal digital assistant or multimedia player.This terminal device visit intelligent memory card can adopt the file system mode to visit.
With reference to Fig. 1, the terminal device that an intelligent memory card that provides with one embodiment of the invention is used comprises end application 101 and driver module 102.Wherein driver module 102 is integrated, and memory card interface drives 103 and smart card module access protocal 104, and smart card module access protocal 104 has defined 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 comprises controller 201, smart card module 202, flash media 203 and radio-frequency module 206.Controller 201 is integrated with memory card interface, flash controller interface, smart card communications interface and smart card module access protocal.Described memory card interface is used for driving 103 with the memory card interface of terminal device and is connected.Described flash controller interface, smart card communications interface are respectively applied to be connected with smart card module 202 with flash media 203.Have intelligent card interface file 204 in the flash media 203, be used for the application memory space 205 of storage application of IC cards data and the multimedia storage space (not shown) that is used for storing multi-medium data.Radio-frequency module 206 links to each other with described smart card module 202, and contactless access interface is provided.
The intelligent memory card of present embodiment is virtual application memory space of storing the application of IC cards data in its flash media, make big capacity applications data such as e-advertising, electronic coupons, e-book, encrypt file can be stored in the flash media, and but the chip cards module uses, thereby expanded the range of application of intelligent memory card.Adopt intelligent memory card access method provided by the invention to need in flash media 203, to create application memory space 205 earlier before visiting intelligent memory card as previously mentioned and setting up as shown in Figure 3 file mapping table 301.
Corresponding relation between the base address 303 of the at first definite application file name 302 of the foundation need of this document mapping table and application memory space 205, the status information 304 of record application memory space 205 is built up this application file mapping table 301 with related with status information of application file name, application memory space base address then.Described application file mapping table 301 need deposit in the storer of smart card module 202.Status information read-write properties, space size, the space content such as operating position that comprises each space wherein.
Shown in Figure 4 as flow process, the step of creating application memory space 205 comprises:
401 steps, power-up initializing.
Whether 402 steps, controller 201 detect application memory space 205 and exist, and carry out 405 if exist; Otherwise carry out 403.
403 steps, controller 201 with flash media 203 formats, send order to smart card module 202 then and read application file mapping table 301 earlier.
404 steps, controller 201 is created application memory space 205 according to application file mapping table 301 in flash media 203.
405 steps finish.
This terminal can conduct interviews to this intelligent memory card by contact access interface and contactless access interface.See also Fig. 5, comprise the steps: by contact interface accessing application memory space 205
501 steps, end application 101 calling driver modules 102 are with file mode operative intelligence clamping mouth file 204.
502 steps, controller 201 visit intelligent card interface files 204 are identified as the operation to smart card module 202, and the load data (APDU order) of file operation is transferred to smart card module 202.
503 steps, smart card module 202 receives the APDU order, judges whether the APDU order wants the operational applications file.If the operational applications file is carried out 504, otherwise is carried out 511.
504 steps, smart card module 202 reads application file mapping table 301, judges that application file to be operated whether in application file mapping table 301, if in the application file mapping table, then carries out 505; Otherwise carry out 511.
505 steps are obtained application file operation information (for example action type, working length, offset address etc.), judge whether it is write operation, if carry out 506; Otherwise carry out 509.
506 steps are obtained the status information 304 of application memory space, judge whether application memory space allows operation, if carry out 507; Otherwise carry out 510.
507 steps, smart card module 202 are to controller 201 transmission proactive command, and controller 201 identification proactive command are extracted corresponding application file name and operation information, and controller is carried out write operation, judge whether write operation is successful, if successful execution 508; Otherwise carry out 510.
508 steps, controller 201 return results give smart card module 202, and smart card module 202 upgrades application memory space status information 304, carries out 511.
509 steps, controller 201 reads the data of application memory space, and sends data to smart card module 202 processing, carries out 511.
510 steps, prompting application file operation failure.
511 steps, smart card module 202 are handled the APDU order, return APDU to controller 201 and reply, and controller 201 is transferred to end application 101.
Smart card module 202 has a variety of to the method that controller 201 sends proactive command, as initiatively sending data to 7816 interfaces, allow controller respond 7816 interfaces and interrupt, perhaps smart card module connects controller by the GPIO interface, by changing the external interrupt of GPIO signal triggering controller.This proactive command may be defined as initiatively read command and the read or write of active write order with corresponding application file.
Process by non-contact interface access application storage space 205 and the process of aforementioned contact interface accessing are similar, unique different APDU order that is smart card module 202 receives comes from radio-frequency module 206, and adopt radio-frequency module with the APDU acknowledgement transmissions to the external radio frequency device.
The above only is preferable case study on implementation of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. intelligent memory card comprises:
Flash media, it has for the application memory space of storage application of IC cards data with for the multimedia storage space of storing multi-medium data; Smart card module, be stored with the application file mapping table, this application file mapping table is interrelated the base address of application file name, this application memory space and this application memory space status information, and read-write properties, this application memory space size and this application memory space that described status information comprises this application memory space be operating position; And controller, it is used for this flash media of visit and this smart card module, creates this application memory space in this flash media, sets up this application file mapping table and also this application file mapping table is stored in this smart card module.
2. intelligent memory card according to claim 1 is characterized in that, described intelligent memory card also comprises radio-frequency module, and this radio-frequency module links to each other with smart card module or controller, is used for providing contactless access interface.
3. intelligent memory card according to claim 1 is characterized in that, this controller has memory card interface, and described memory card interface is MMC interface, SD interface, USB interface or SD-USB translation interface.
4. intelligent memory card according to claim 1, this controling appliance is useful on the communication interface of communicating by letter with this smart card module, and this communication interface is 7816, SPI, IIC, GPIO, DMA or fifo interface or bus.
5. method of visiting intelligent memory card comprises:
A, according to applicating category, utilize the controller of this intelligent memory card in the flash media of this intelligent memory card, to set up to be used for storage and use the application memory space of application of IC cards data one to one with each;
B, determine the corresponding relation between the base address of each filename of using and corresponding with it application memory space, record the status information of this application memory space, set up the application file mapping table, and described application file mapping table is deposited in the smart card module of this intelligent memory card;
C, visit this application memory space according to described application file mapping table.
6. the method for visit intelligent memory card according to claim 5, it is characterized in that, described step C comprises and reads the application file mapping table, determine that the current application file is whether in the application file mapping table, if application file is in the application file mapping table and allow operation, then visit the application memory space in the flash media, the status information of write-back application memory space; If do not allow operation, then point out error message.
7. the method for visit intelligent memory card according to claim 5 is characterized in that, in described step C, if application file not in the application file mapping table, is not then visited flash media.
8. the method for visit intelligent memory card according to claim 5, it is characterized in that, application memory space described in the steps A is created by controller, whether detect application memory space when power-up initializing exists, if there is then no longer establishment, otherwise read the information creating application memory space in the application file mapping table.
9. the method for visit intelligent memory card according to claim 5 is characterized in that, described visit is contactless interface accessing 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 true CN103186812A (en) 2013-07-03
CN103186812B CN103186812B (en) 2016-12-14

Family

ID=

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544037A (en) * 2013-10-29 2014-01-29 飞天诚信科技股份有限公司 Implementation method supporting software and hardware drive of OpenSC
WO2015113319A1 (en) * 2014-01-28 2015-08-06 上海复旦微电子集团股份有限公司 Device having storage function
CN105630706A (en) * 2014-11-21 2016-06-01 Sap欧洲公司 Intelligent memory block replacement
CN108664817A (en) * 2017-03-30 2018-10-16 金士顿数位股份有限公司 Intelligent and safe memory
CN109814963A (en) * 2018-12-29 2019-05-28 维沃移动通信有限公司 A kind of method and electronic equipment that electronic equipment theme is set
CN112232469A (en) * 2020-09-29 2021-01-15 深圳宏芯宇电子股份有限公司 Memory card and electronic device

Citations (4)

* 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
US20070033344A1 (en) * 2005-08-05 2007-02-08 Seiko Epson Corporation Information processing device, data processing method and program
CN101650690A (en) * 2009-09-21 2010-02-17 中兴通讯股份有限公司 Application method of large-capacity memory card as well as mobile terminal

Patent Citations (4)

* 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
US20070033344A1 (en) * 2005-08-05 2007-02-08 Seiko Epson Corporation Information processing device, data processing method and program
CN101650690A (en) * 2009-09-21 2010-02-17 中兴通讯股份有限公司 Application method of large-capacity memory card as well as mobile terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544037A (en) * 2013-10-29 2014-01-29 飞天诚信科技股份有限公司 Implementation method supporting software and hardware drive of OpenSC
CN103544037B (en) * 2013-10-29 2016-08-17 飞天诚信科技股份有限公司 The implementation method that a kind of software and hardware supporting OpenSC drives
US10133882B2 (en) 2013-10-29 2018-11-20 Feitian Technologies Co., Ltd. Implementation method for driving of software and hardware supporting OpenSC
WO2015113319A1 (en) * 2014-01-28 2015-08-06 上海复旦微电子集团股份有限公司 Device having storage function
CN105630706A (en) * 2014-11-21 2016-06-01 Sap欧洲公司 Intelligent memory block replacement
CN108664817A (en) * 2017-03-30 2018-10-16 金士顿数位股份有限公司 Intelligent and safe memory
CN108664817B (en) * 2017-03-30 2021-12-21 金士顿数位股份有限公司 Intelligent safety memory
CN109814963A (en) * 2018-12-29 2019-05-28 维沃移动通信有限公司 A kind of method and electronic equipment that electronic equipment theme is set
CN112232469A (en) * 2020-09-29 2021-01-15 深圳宏芯宇电子股份有限公司 Memory card and electronic device

Similar Documents

Publication Publication Date Title
CN101383017B (en) Intelligent SD card and intelligent SD card access method
CN100382065C (en) Intelligent card reading and writing method based on USB interface and its reading and writing device
CN1987843B (en) Self adapting method for USB protocol
US9104895B2 (en) Method for accessing a portable data storage medium with auxiliary module and portable data storage medium
EP2566286B1 (en) Wireless Internet Access Module, Communication Method for Host and Wireless Internet Access Module, and Data Card
CN102609741B (en) A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof
CN102855207B (en) For the memory arbitrator of electronic communication device
CN104184500B (en) Electronic business card information exchanging method and device
CN101697149B (en) Multiprocessor equipment and external communication method and system thereof
CN101383994B (en) A kind of data processing method of APDU order
KR20140093505A (en) Method and apparatus for extending memory in terminal
CN100535935C (en) CPUCPU and logic encryption double-purpose smart card and its data synchronization method
CN101359413B (en) Wireless terminal for processing personalization smart card and method
CN101499124B (en) Method, system and apparatus for read-write operation of smart card
CN203149624U (en) Fingerprint identification IC (integrated circuit) card and fingerprint identification system
CN202102425U (en) Port conversion device
CN103049403A (en) Method for communication between embedded terminal device and cell phone
CN101022611A (en) Mobile terminal addressbook information leading-out and leading-in method
US8756425B2 (en) Data security authentication system and related multi-function memory card and computer program product
CN103186812A (en) Smart memory card and method for visiting smart memory card
CN103186812B (en) Intelligent memory card and the method accessing intelligent memory card
CN101119561A (en) Method for communication between GSM mobile communication terminal and SIM card
CN101082958A (en) General purpose data storing card recognizing/reading and data interchange device
CN101094464A (en) Device and method for handset to manage files in U disk
WO2010000131A1 (en) Smart card, terminal processing for supporting web service system and realizing method thereof

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