CN101354754A - Intelligent memory card built-in with CPU IC and uses thereof - Google Patents

Intelligent memory card built-in with CPU IC and uses thereof Download PDF

Info

Publication number
CN101354754A
CN101354754A CNA200710044269XA CN200710044269A CN101354754A CN 101354754 A CN101354754 A CN 101354754A CN A200710044269X A CNA200710044269X A CN A200710044269XA CN 200710044269 A CN200710044269 A CN 200710044269A CN 101354754 A CN101354754 A CN 101354754A
Authority
CN
China
Prior art keywords
memory card
cpu
file
intelligent
card controller
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
CNA200710044269XA
Other languages
Chinese (zh)
Other versions
CN101354754B (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.)
SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI HANYIN INFORMATION 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 SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd
Priority to CN200710044269XA priority Critical patent/CN101354754B/en
Publication of CN101354754A publication Critical patent/CN101354754A/en
Application granted granted Critical
Publication of CN101354754B publication Critical patent/CN101354754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an intelligent storage card embedded with CPU IC and application thereof. The intelligent storage card consists of a standard expansion interface, a controller for the storage card, a storage module and the CPU IC; after the intelligent storage card is inserted into equipment with a standard expansion slot, an application program running in an operating system of the equipment can access the CPU IC of the intelligent storage card in a mode of simulating the read-write of files. Therefore, when the application program for accessing the CPU IC of the intelligent storage card is compiled for various equipment with the standard expansion slot, a standard application interface for carrying out system operation to the files is only directly transferred without compiling drive programs one by one according to the different operating systems of different equipment, thereby substantially improving the efficiency of technological research and development and broadening the application range of the intelligent storage card.

Description

The intelligent memory card of a kind of built-in with CPU IC and application thereof
Technical field
The present invention relates to a kind of intelligent memory card and application thereof, relate in particular to intelligent memory card and the application thereof of a kind of built-in with CPU IC.
Background technology
Along with the develop rapidly of science and technology, people's life is goed deep in the application of CPU IC gradually.Because it possesses the safety encipher of data storage, is widely used in fields such as safety certification, bank, mobile communication, public transport.The carrier of CPU IC is generally the plastic cards of ordinary bank's card size, is made into products such as common gate inhibition's card, transportation card, grease card, bank card; Perhaps be directly fixed on the mainboard of electronic product, by the upper layer application access control in this electronic product of operation.Usually need some specialized apparatus or program by these carrier visits CPU IC, as the POS machine of supporting EMV bank card standard, for the USB Key of issued by banks write at the specific drivers of a certain operating system etc.
With the widespread use of CPU IC roughly the same be that storage card has also become very common E-consumer series products in current people's life, as SD card, CF card, miniSD card, T-Flash card, flash disk etc.These storage cards can insert in all kinds of equipment with computing power, as mobile phone, PC, digital camera, PDA etc. easily.
On the one hand, often there is the requirement of data being encrypted access in the above-mentioned equipment that possesses computing power, as the encrypted transmission of payment information in user's personal identification number management, the e-commerce transaction flow process etc.; In addition on the one hand, most of the said equipment possesses the ability of the standard extension interface of supporting one or several storage cards, and need not to install extra driver and can conduct interviews to it based on standard file system.
Summary of the invention
The object of the present invention is to provide the intelligent memory card of a kind of built-in with CPU IC; Intelligent memory card of the present invention has significantly reduced the technical difficulty that exploitation can be visited CPU IC in the intelligent memory card on each type operating system by the technical sophistication degree is concentrated on intelligent memory card inside.
Another goal of the invention of the present invention is to provide the application of this intelligent memory card.
Goal of the invention of the present invention is achieved by the following technical solution:
Intelligent memory card of the present invention is meant the standard extension card of a kind of built-in with CPU IC, is made up of memory card controller, standard extension interface, CPU IC, memory module.Its structured flowchart is seen shown in Figure 1.Except that memory card controller, the components and parts that all the other modules are independently, have International or National standard, can produce in batches.
As shown in Figure 1, intelligent memory card has standard extension interface, and this expansion interface is connected with the memory controller of inside, realizes the mutual of external unit and card, memory card controller is by the mode read/write store module of directly address, by RS-232 interface visit CPU IC.Especially, the standard extension interface of mentioning among the present invention comprises that SD, miniSD, microSD (being T-Flash), MMC, RS-MMC, CF, XD, SDHC, flash disk, micro harddisk or other have become the memory interface of industry or regional standard.
The standard file system of mentioning among the present invention is method and the data structure that operating system is used for file on clear and definite disk or the subregion; The i.e. method of constituent act on disk.File system based on Microsoft company operating system has FAT12, FAT16, FAT32 and NTFS etc.; File system based on Unix/Linux series has iso9660, nfs, hpfs, sysv, ext2, ext3, reiserFS, XFS, JFS etc.
Defined a special file name in the file allocation table of described memory module, this special file is corresponding with a fixed fan regional address of storage medium.
In the described memory card controller, have special processing function, comprising operating on the fixed fan regional address:
1), for the write command that mails to this fixed fan regional address, the byte information of writing is forwarded to CPU IC; And the feedback information of CPU IC is kept in the memory card controller buffer memory;
2), for mailing to reading instruction of this fixed fan regional address, the information that is stored in the memory card controller buffer memory is read, and as feedback output;
Described memory card controller can select that the operation of file allocation table in the memory module is had the special processing function: when the intelligent memory card insertion had the equipment of standard expansion slot and begins to be used to read and write, memory card controller had the detecting ability to the file allocation table content modification.If find that in the detecting process operating system is just writing in the file allocation table of storage card, special file name and the corresponding record of fixed fan regional address are revised to some extent, then after the write operation of finishing file allocation table, with the unpaired message recovery of an original special file name and a fixed fan regional address.
The application of intelligent memory card of the present invention, based on equipment written application program with standard expansion slot, can be by the scale-of-two write operation of the special file that defines in the file allocation table to memory module, send instruction request to CPU IC, and obtain the last repeat-back by scale-of-two read operation to this special file.
In the present invention, for the file operation instruction of issuing operating system, memory card controller can only be discerned two orders of the read and write of special file corresponding address (Read and Write).Therefore in file allocation table, insert a record, comprise the map information of special file name and certain fixed address.
And all communications between the smart card all are made up of one group or several groups of Write and Read order.In application program, need carry out when mutual with smart card at every turn, initiate a Write order earlier, wherein comprise the title of special file and be transmitted to the APDU of smart card; If file status is normal, then initiate Read order again, from the buffer memory of SD controller, read temporary feedback and the internal communication status code of being issued the APDU of smart card the last time.
Intelligent memory card provided by the invention, method of operating based on standard file system, make upper layer software (applications) can not need based on the driving of specific operation system and directly visit CPU IC in the intelligent memory card, and have when file system is destroyed, recover the function of original intelligent memory card by certain effective ways.Product of the present invention has improved the efficient of technical research, and has widened the range of application of intelligent memory card.
Description of drawings
Fig. 1 is this intelligent memory card structured flowchart.
Fig. 2 is another structured flowchart of this intelligent memory card.
Embodiment
Description fundamental purpose in the specific embodiment of the invention is used for and will clearly explains based on the method for standard file system visit intelligent memory card CPU IC in typical case, those skilled in the art should be able to understand, under the situation that does not depart from spirit of the present invention, various modifications, interpolation and replacement all are fine.
Embodiment
As shown in Figure 1, intelligent memory card has standard extension interface, and this expansion interface is connected with the memory controller of inside, realizes the mutual of external unit and card, memory card controller is by the mode read/write store module of directly address, by RS-232 interface visit CPU IC.
The specific embodiment of the present invention is chosen some environment for use and technical parameters in typical case, and standard file system is that FAT16, memory card interface specification are that SD, CPU IC are smart card that meets the ISO7816 standard etc.Based on the above-mentioned canonical parameter of choosing following embodiment is arranged:
1, in the initialized process of intelligent memory card, in memory module, creates the FAT16 file system.In the file allocation table of FAT16, generate a file record.In this file record, fixed address or address fragment on a special file name (hereinafter to be referred as the SFC file) and the memory module are shone upon.
2, do a logic determines in the program of in memory card controller EEPROM, solidifying, when external program is operated the fixed address of SFC file correspondence or address fragment, carry out special processing.These special processings comprise:
1) when a write command at the fixed address of SFC file correspondence or address fragment was sent in the outside, the content that write command is entrained was forwarded among the CPU IC, and the byte information of CPU IC feedback is stored in the local cache.
2) send one during when the outside, from local cache, read information at the reading instruction of the fixed address of SFC file correspondence or address fragment.As there being corresponding write command to take place before reading instruction at this, then can obtain issuing in the last write command feedback information that obtains behind the CPU IC; Take place as no corresponding write command before reading instruction at this, the information of then reading is invalid information.
3) send one during to the renewal of file allocation table operation when the outside, memory card controller need provide the detecting ability that file allocation table is revised, and makes corresponding reaction.This detecting and reaction capacity are optionally in this patent motion, promptly as a kind of optional scheme, rather than necessary.Details are as follows for above-mentioned detecting of mentioning and reaction capacity:
A) detect the SFC file when being renamed when memory card controller, automatically original title is recovered.
B) detect the SFC file when deleted when memory card controller, the map information with SFC file and fixed address or fixed address fragment writes back in the file allocation table automatically.As finding that in writing back process this fixed address or fixed address fragment are covered by other file or catalogue, then the storage area that takies is migrated to vacant zone, and then row write back.
C) detect file allocation table when formatted when memory card controller, the map information with SFC file and fixed address or fixed address fragment writes back in the file allocation table automatically.
D) destroyed and when causing SFC file accident to be lost when file system, during to file system recovery, the map information with SFC file and fixed address or fixed address interval writes back in the file allocation table automatically the user.

Claims (5)

1, the intelligent memory card of a kind of built-in with CPU IC, comprise standard extension interface, memory card controller and memory module, it is characterized in that: CPU IC is housed in the described intelligent memory card, standard extension interface is connected with the memory controller of inside on one side, another side links to each other with external unit, memory card controller is by the mode read/write store module of directly address, and memory card controller is integrated in memory card controller inside by RS-232 interface visit CPU IC or CPU IC module.
2, intelligent memory card according to claim 1 is characterized in that: defined a special file name in the file allocation table of described memory module, this special file is corresponding with a fixed fan regional address of storage medium.
3, intelligent memory card according to claim 1 is characterized in that: in the described memory card controller, have the special processing function to operating on the fixed fan regional address, comprising:
1), for the write command that mails to this fixed fan regional address, the byte information of writing is forwarded to CPU IC; And the feedback information of CPU IC is kept in the memory card controller buffer memory;
2), for mailing to reading instruction of this fixed fan regional address, the information that is stored in the memory card controller buffer memory is read, and as feedback output.
4, intelligent memory card according to claim 1, it is characterized in that: memory card controller can select that the operation of file allocation table in the memory module is had the special processing function: when the intelligent memory card insertion had the equipment of standard expansion slot and begins to be used to read and write, memory card controller had the detecting ability to the file allocation table content modification.
5, the application of the intelligent memory card of claim 1, it is characterized in that: based on equipment written application program with standard expansion slot, can be by the scale-of-two write operation of the special file that defines in the file allocation table to memory module, send instruction request to CPU IC, and obtain the last repeat-back by scale-of-two read operation to this special file.
CN200710044269XA 2007-07-26 2007-07-26 Intelligent memory card built-in with CPU IC and uses thereof Active CN101354754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710044269XA CN101354754B (en) 2007-07-26 2007-07-26 Intelligent memory card built-in with CPU IC and uses thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710044269XA CN101354754B (en) 2007-07-26 2007-07-26 Intelligent memory card built-in with CPU IC and uses thereof

Publications (2)

Publication Number Publication Date
CN101354754A true CN101354754A (en) 2009-01-28
CN101354754B CN101354754B (en) 2011-03-16

Family

ID=40307559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710044269XA Active CN101354754B (en) 2007-07-26 2007-07-26 Intelligent memory card built-in with CPU IC and uses thereof

Country Status (1)

Country Link
CN (1) CN101354754B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933748A (en) * 2017-03-17 2017-07-07 郑州云海信息技术有限公司 The SAS address configuration methods and system of a kind of Expander
CN107945324A (en) * 2017-11-14 2018-04-20 广东安居宝数码科技股份有限公司 Card writing method, card reading method and the device of access control system
CN111931895A (en) * 2020-09-17 2020-11-13 深圳市银通商智能卡有限公司 Intelligent memory card embedded with CPU IC and application thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5491827A (en) * 1994-01-14 1996-02-13 Bull Hn Information Systems Inc. Secure application card for sharing application data and procedures among a plurality of microprocessors
JP4679370B2 (en) * 2004-02-03 2011-04-27 パナソニック株式会社 Data processing apparatus and memory card setting method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933748A (en) * 2017-03-17 2017-07-07 郑州云海信息技术有限公司 The SAS address configuration methods and system of a kind of Expander
CN107945324A (en) * 2017-11-14 2018-04-20 广东安居宝数码科技股份有限公司 Card writing method, card reading method and the device of access control system
CN111931895A (en) * 2020-09-17 2020-11-13 深圳市银通商智能卡有限公司 Intelligent memory card embedded with CPU IC and application thereof

Also Published As

Publication number Publication date
CN101354754B (en) 2011-03-16

Similar Documents

Publication Publication Date Title
RU2445676C2 (en) Method of communication with multifunctional memory card
US9104895B2 (en) Method for accessing a portable data storage medium with auxiliary module and portable data storage medium
CN101520854B (en) Smart memory card, data safety control system and method thereof
EP2135168A1 (en) Composite solid state drive identification and optimization technologies
JP2010072965A (en) Portable electronic device and data processing method in portable electronic device
CN101354754B (en) Intelligent memory card built-in with CPU IC and uses thereof
CN100535935C (en) CPUCPU and logic encryption double-purpose smart card and its data synchronization method
CN103218300B (en) Data processing method, Memory Controller and memorizer memory devices
CN102651079B (en) IC (integrated circuit) card management method occupying memory space for a short time and IC card management system
CN102693582B (en) IC card data interaction method and system, and method and system for downloading loss report information
CN102521746B (en) Safely-consuming smart card and method thereof
CN104992212B (en) Tourism smart card system
CN103294978A (en) Method of POS machine for identifying RFID electronic tag
CN105303208A (en) IC card management method and system
US8276188B2 (en) Systems and methods for managing storage devices
CN111736770B (en) Embedded secure memory
CN102148054A (en) Flash memory storage system, controller of flash memory storage system and data falsification preventing method
CN100555938C (en) A kind of intelligent cipher key equipment and with the mutual method of host information
CN201057647Y (en) Composite apparatus with variable memory power and identity authentication function
CN100565482C (en) Semiconductor storage based on the serial advanced technology structure interface
CN101655776B (en) System and method for managing flash memory card
WO2007108628A1 (en) Smart universal serial bus storage and soft smart card system and method of providing service using the same
CN1889003B (en) Method for storing and/or reading key data
CN102375698A (en) Method for assigning and transmitting data strings, memory controller and memory storage device
CN102103774A (en) Composite application realization method and system, and 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