CN105988713A - Storage device and storage method - Google Patents

Storage device and storage method Download PDF

Info

Publication number
CN105988713A
CN105988713A CN201510045536.XA CN201510045536A CN105988713A CN 105988713 A CN105988713 A CN 105988713A CN 201510045536 A CN201510045536 A CN 201510045536A CN 105988713 A CN105988713 A CN 105988713A
Authority
CN
China
Prior art keywords
file
special
module
ordinary
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
CN201510045536.XA
Other languages
Chinese (zh)
Other versions
CN105988713B (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.)
SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN SILICONGO SEMICONDUCTOR 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 SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd filed Critical SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Priority to CN201510045536.XA priority Critical patent/CN105988713B/en
Publication of CN105988713A publication Critical patent/CN105988713A/en
Application granted granted Critical
Publication of CN105988713B publication Critical patent/CN105988713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a storage device used for connecting with a host device. The storage device comprises a controller, a flash memory unit connected to the controller and a safety chip connected with the controller. The storage device is characterized in that the flash memory unit comprises a storage unit used for storing a file system; the file system comprises files transferred by the host device; the controller comprises an analyzing device used for analyzing files of the file system when the file system changes and dividing files into ordinary files and special files, and a recording module used for saving ordinary files analyzed by the analyzing device to the flash memory unit, recording logic addresses corresponding to ordinary files, saving special files analyzed by the analyzing module to the safety chip and recording logic addresses corresponding to special files. The invention further discloses a storage method.

Description

Storage device and storage method
Technical field
The present invention relates to a kind of storage device and storage method.
Background technology
At present, commonly used SD card, i.e. Secure Digital Memory Card, translator of Chinese is safe digital card, it is a kind of memory device of new generation based on quasiconductor fast-flash memory device, extensive DIYU mancarried device uses, such as mobile phone, digital camera, personal digital assistant (PDA) and multimedia player etc..SD card by PANASONIC, Toshiba and U.S.'s SanDisk Corporation in August, 1999 joint development develop.Size is just as the SD memory card of a stamp, and weight only has 2 grams, but has high memory capacity, rapid data transmission rate, the most mobile motility and well safety.SD combines SanDisk fast-flash memory card control and MLC in being stuck in the volume of 24mm × 32mm × 2.1mm, i.e. Multilevel Cell technology and the NAND technology of Toshiba Toshiba 0.16u and 0.13u, it is connected with special driver by the connection interface of 9 pins, it is not necessary to extra power supply is held on the information of memory.And it is integration solid dielectric, does not has any movable part, so not worrying the damage of mechanical movement.
Along with the arriving in 3G epoch, smart machine, the purposes such as a mobile phone is developed rapidly so that smart machine progressively develops into personal information service terminal, such as online mobile-payment system, mobile office, TV, smart machine paying, smart machine networking etc..General smart machine does not have USB interface, based on this, and a kind of pluggable safe and intelligent TF(TransFLash on mobile phone) block and arise at the historic moment.Described safe and intelligent TF card has the safety of height unlike common SD card, can realize secure communication.The operation principle realized is: on the one hand, the general data of terminal write ordinary file the logical address of binding with common file, and described safe and intelligent TF card records the corresponding logical address of ordinary file and is stored in corresponding flash cell;On the other hand, terminal writes the special data of special file and binds the logical address that special file is corresponding, and described safe and intelligent TF card records the corresponding logical address of special file and is stored in corresponding safety chip.During payment, terminal will need data to be processed incoming safe and intelligent TF card by special file, and the result after safe and intelligent TF card will be processed by described safety chip returns, and any operation therein all meets safety requirements, not meeting the operation of safety requirements, refusal is operated by safe and intelligent TF card.
But, described terminal is at the special data of write special file and to bind ablation process time of the corresponding logical address of special file the longest, and also may be disturbed by the reading and writing data of the ordinary file in terminal system and cause the process of described terminal recognition safety chip the longest.
Summary of the invention
In view of the foregoing, it is necessary to storage device and the storage method of a kind of safety chip that can quickly identify in storage device are provided.
A kind of storage device, for connect a host apparatus and include a controller, a flash cell and being connected to described controller is connected to the safety chip of described controller, it is characterized in that: described flash cell includes: memory module, for storing a file system, described file system includes the file that described host apparatus transmits;Described controller includes: parsing module, for resolving the file in described file system when described file system changes and described file being divided into ordinary file and special file;And logging modle, the ordinary file after being resolved by described parsing module is stored in described flash cell and records the logical address that ordinary file is corresponding;Special file after simultaneously being resolved by described parsing module is stored in safety chip and records the logical address that special file is corresponding.
Further, described controller also includes and arranges module, for arranging the criterion of described special file.
Further, the described module that arranges can be according to the name title of the name form of described file or file to arrange described criterion.
Further, described controller also includes execution module, access described flash cell for the logical address that the ordinary file according to described logging modle record when receiving an access request is corresponding, or access described safety chip according to the logical address that the special file of described logging modle record is corresponding.
Further, described storage device also includes first interface and the second interface, and described flash cell connects described controller by described first interface, and described safety chip connects described controller by described second interface.
Further, described controller also includes detecting module, is used for detecting whether described file system changes to send to described parsing module.
A kind of storage method, for the file system of a host apparatus stores the flash cell to a storage device or a safety chip, described storage method includes:
Storing step: the memory module of described storage device stores described file system;
Analyzing step: the parsing module of described storage device resolves the file in described file system and described file is divided into ordinary file and special file when file system changes;And
Recording step: ordinary file is stored in described flash cell and records the logical address that ordinary file is corresponding by the logging modle in described storage device;Special file is stored in described safety chip and records the logical address that special file is corresponding by the most described logging modle.
Further, described storage method also includes setting steps: arrange module according to the name form of described file or the name title of file to arrange the criterion of described special file in described controller.
Further, described storage method also includes performing step: the execution module in described controller accesses described flash cell when receiving an access request according to the logical address that ordinary file is corresponding, or described execution module accesses described safety chip according to the logical address that special file is corresponding.
Further, described storage method also includes integrating documents step: described host apparatus integrates general data to ordinary file, and integrates special data to special file, sends to described memory module will include the file system of this ordinary file and special file.
Compared to prior art, in above-mentioned storage device and storage method, it is stored in the file system of storage device when changing, described detecting module i.e. may detect that the file allowing parsing module resolve in described file system, thus allowing logging modle be stored in by ordinary file to flash cell and to record the logical address that ordinary file is corresponding, special file is stored in safety chip and records the logical address that special file is corresponding by the most described logging modle.So, described host apparatus is no need for binding corresponding logical address when writing data, and allow special data not disturbed by general data, find described safety chip to be stored in described safety chip it is thus possible to the special data in special file can be identified rapidly.Also when described host apparatus needs to access special file can not be disturbed by the general data in ordinary file and quickly recognize described safety chip.
Accompanying drawing explanation
Fig. 1 is a structural representation of a better embodiment of inventive memory device.
Fig. 2 is to store the structural representation in device in Fig. 1.
Fig. 3 is a flow chart of the storage method utilizing the storage device in Fig. 2 to implement.
Fig. 4 is a flow chart of the data access method utilizing the storage device in Fig. 2 to implement.
Main element symbol description
Storage device 100
Controller 10
Flash memory control unit 11
Module is set 110
Detecting module 112
Parsing module 113
Logging modle 114
Perform module 115
Microprocessor 12
Read only memory 13
Flash cell 20
Memory module 21
Safety chip 30
First interface 40
Second interface 50
External interface 60
Host apparatus 200
First application program module 201
Second application program module 203
Following detailed description of the invention will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Detailed description of the invention
Referring to Fig. 1, in a better embodiment of the present invention, a storage device 100 includes a controller 10, and is connected to the flash cell 20, of described controller 10 and is connected to the safety chip 30 of described controller 10.In one embodiment, described storage device 100 is a TF(TransFLash) card.
Described storage device 100 is connected with a host apparatus (Host Device) 200 by an external interface 60, to realize the data communication with described host apparatus 200.Described flash cell 20 connects described controller 10 by a first interface 40, and described safety chip 30 connects described controller 10 by one second interface 50.
Specifically, described flash cell 20 includes a memory module 21.The file system that described memory module 21 is sent by described host apparatus 200 for storage one.Described file system includes the All Files transmitted by described host apparatus 200, i.e. ordinary file and special file.It is to say, when described host apparatus 200 starts to transmit file, all of file all exists in described memory module 21 when described host apparatus 200 sends.During initialization (before described host apparatus 200 powers on), the file system number in the file system of described memory module 111 storage is 0.
Referring to Fig. 2, described controller 10 includes flash memory control unit 11, microprocessor (Microprogrammed Control Unit, MCU) 11, a read only memory (Read Only Memory, ROM) 13.In the present embodiment, described read only memory 13 is for storage one program code, and described microprocessor 11 is then for performing described program code to allow described flash memory control unit 11 control described flash cell 20 and the read-write of described safety chip 30.
Flash memory control unit 11 in described controller 10 includes one and arranges module 110, detecting module 112, parsing module 113, logging modle 114 and an execution module 115.
The described module 110 that arranges is for arranging the criterion of a special file together with described host apparatus 200.Some special datas are had in described special file, include: user certificate, the safety storage of user identity identification, offer safety control strategy and corresponding security algorithm (enciphering and deciphering algorithm, digest algorithm, digital signature etc.) and user's important information and Transaction Information.When described host apparatus 200 needs to call this special file, described host apparatus 200 i.e. may have access to described special file and realizes the operation to storage device 100, to complete to operate accordingly, such as payment, paying etc..The criterion of described special file can be name form or the name title of file of file.Such as, the name form of ordinary file or name entitled first form or the first title, such as DOC or B, and the name form of special file or name entitled TXT or A.Namely, in the entitled TXT of every file suffixes or file designation band A be special file.
Whether described detecting module 112 changes for the file system detected in described memory module 21.As, in described file system, whether number of files increases, or whether the name form of the file in described file system or name title have amendment.
Described parsing module 113 resolves the file in described file system for detecting at described detecting module 112 when file system changes.Such as, the file increased in described file system is ordinary file or special file, i.e., document analysis is become the first kind and Equations of The Second Kind, the file designation form of the first kind or name entitled first form or the first title, such as DOC or B, the file designation form of Equations of The Second Kind or name entitled TXT or A.If the name form of the file in described file system or name title have amendment, i.e. if the file modification of the first kind is the file of Equations of The Second Kind, be then changed to special file by ordinary file;If the file modification of Equations of The Second Kind is the file of the first kind, then it is changed to ordinary file by special file.
The described logging modle 114 Equations of The Second Kind file (special file) after first kind file (ordinary file) is stored in described flash cell 20 and records logical address corresponding to ordinary file or resolved by described parsing module 113 after being resolved by described parsing module 113 according to the criterion of described special file is stored in safety chip 30 and records the logical address that special file is corresponding.
In one embodiment, described host apparatus 200 includes one first application program module 201 and one second application program module 203.When described host apparatus 200 connects described storage device 100, described host apparatus 200 can send the request of an access described storage storage device 100.Such as, described first application program module 201 can go to access the data of the ordinary file in described flash cell 20 by the execution module 115 of described controller 10, such as the photo in host apparatus 200, song etc.;Described second application program module 203 can go to access the data of the special file in described safety chip 30 by the execution module 115 of described controller 10, to realize the security functions such as the mobile payment of host apparatus 200.During the data of the special file in the data or described safety chip 30 of the ordinary file accessed in described flash cell 20, described execution module 115 can directly access described flash cell 20 or safety chip 30 according to the logical address that logical address corresponding to the ordinary file of described logging modle 114 record or special file are corresponding.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only it is illustrated with above-mentioned each functional unit, the division of module, in actual application, as desired above-mentioned functions distribution can be completed by different functional units or module, the internal structure that will store device is divided into different functional units or module, to complete all or part of function described above.Each functional unit in embodiment, module can be integrated in a processing unit, can also be that unit is individually physically present, can also two or more unit integrated in a unit, above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.It addition, the specific name of each functional unit, module is also only to facilitate mutually distinguish, it is not limited to the protection domain of the application.
Referring to Fig. 3, Fig. 3 is to realize a kind of flow chart storing method 300 by described storage device 100 in an embodiment of the present invention, and described storage method 300 method comprises the following steps:
Step 301: the described module 110 that arranges arranges the criterion of described special file together with described host apparatus 200.The criterion of described special file can be name form or the name title of file of file.Such as, the name form of ordinary file or name entitled first form or the first title, such as DOC or B, and the name form of special file or name entitled TXT or A.Namely, in the entitled TXT of every file suffixes or file designation band A be special file.
Step 302: described host apparatus 200 connects described storage device 100 and is energized and is stored in file to the memory module 21 of described flash cell 20.When being stored in file, general data is incorporated in ordinary file by described host apparatus 200, and is incorporated in special file by special data.
Step 303: whether the file system that described detecting module 112 is detected in described memory module 21 changes, the most then carry out step S304;If it is not, then return step S302.The criterion of described file system change can be: in described file system, whether number of files increases, or whether the name form of the file in described file system or name title have amendment.
Step 304: described parsing module 113 resolves the file in described file system, and according to the criterion of special file, file is divided into ordinary file and special file.Such as, the name form of ordinary file or name entitled first form or the first title, such as DOC or B, and the name form of special file or name entitled TXT or A.Namely, in the entitled TXT of every file suffixes or file designation band A be special file.
Step 305: the ordinary file after described parsing module 113 is resolved by described logging modle 114 is stored in and continues to be stored in the memory module 21 of described flash cell 20 and record the logical address that ordinary file is corresponding, and the special file after simultaneously being resolved by described parsing module 113 is stored in safety chip 30 and records the logical address that special file is corresponding.
Referring to the flow chart that Fig. 4, Fig. 4 are the data access method 400 being accessed described storage device 100 in an embodiment of the present invention by described host apparatus 200, described access method 400 method comprises the following steps:
Step 401: described host apparatus 200 sends an access request to described storage device 100.As, if desired accessing ordinary file, the first application program module 201 of the most described host apparatus 200 sends the request execution module 115 to described storage device 100 of an access ordinary file;If desired accessing special file, the second application program module 203 of the most described host apparatus 200 sends the request execution module 115 to described storage device 100 of an access special file.
Step 402: described execution module 115 removes to access flash cell 20 or the safety chip 30 of described storage device 100 according to described access request.As, if described execution module 115 receive be first application program module 201 send access ordinary file request, described execution module 115 accesses described flash cell 20;If what described execution module 115 received is the request of the access special file that the second application program module 203 sends, described execution module 115 accesses described safety chip 30.
Step 403: described storage device 100 returns corresponding data to complete the operating function of described host apparatus 200 according to the access of described execution module 115.As, described flash cell 20 returns the data of ordinary file, to realize the functions such as the song of described host apparatus 200, photo;Described safety chip 30 returns the data of special file, to realize the operating function of the high securities such as the payment of described host apparatus 200, paying.
In sum, when storing data to described storage device 100, described host apparatus 200 only needs to be incorporated in ordinary file general data, and special data is incorporated in special file and can be sent to described storage device 100.When the file system being stored in described storage device 100 changes, described detecting module 112 i.e. may detect that to allow described parsing module 113 resolve the file in described file system, thus allowing described logging modle 114 be stored in by ordinary file to described flash cell 20 and to record the logical address that ordinary file is corresponding, the special file after simultaneously being resolved by described parsing module 113 is stored in safety chip 30 and records the logical address that special file is corresponding.So, described host apparatus 200 is no need for binding corresponding logical address when writing data (general data and special data) to described storage device 100, and allow between general data and special data interference-free, find described safety chip 30 to be stored in described safety chip 30 it is thus possible to the special data in special file can be identified rapidly.Also the general data that can not receive in ordinary file when described host apparatus 200 needs and accesses special file is disturbed and is quickly recognized described safety chip 30.
It will be appreciated by those skilled in the art that, composition structure shown in Fig. 2 is not intended that the restriction to storage device 100, can include that ratio illustrates more or less of parts, or combine some parts, or different parts are arranged, and the data access method 400 in the storage method 300 and Fig. 4 in Fig. 3 also uses the more or less of parts shown in Fig. 2, or combine some parts, or different parts are arranged and realized.
Above content is to combine concrete preferred implementation further description made for the present invention, it is impossible to assert the present invention be embodied as be confined to these explanations.For general technical staff of the technical field of the invention; make some equivalents without departing from the inventive concept of the premise to substitute or obvious modification; and performance or purposes are identical, the scope of patent protection that the present invention is determined all should be considered as belonging to by the claims submitted to.

Claims (10)

1. a storage device, for connecting a host apparatus, includes a controller, a flash cell and being connected to described controller is connected to the safety chip of described controller, it is characterised in that: described flash cell includes:
Memory module, for storage one file system, described file system includes the file that described host apparatus transmits;
Described controller includes:
Parsing module, for resolving the file in described file system when described file system changes and splitting the file into ordinary file and special file;And
Logging modle, the ordinary file after being resolved by described parsing module is stored in described flash cell and records the logical address that ordinary file is corresponding;Special file after simultaneously being resolved by described parsing module is stored in safety chip and records the logical address that special file is corresponding.
Store device the most as claimed in claim 1, it is characterised in that: described controller also includes and arranges module, for arranging the criterion of described special file.
Store device the most as claimed in claim 2, it is characterised in that: the described module that arranges can be according to the name title of the name form of described file or file to arrange described criterion.
Store device the most as claimed in claim 1, it is characterized in that: described controller also includes: perform module, access described flash cell for the logical address that the ordinary file according to described logging modle record when receiving an access request is corresponding, or access described safety chip according to the logical address that the special file of described logging modle record is corresponding.
Store device the most as claimed in claim 1, it is characterized in that: described storage device also includes first interface and the second interface, described flash cell connects described controller by described first interface, and described safety chip connects described controller by described second interface.
Store device the most as claimed in claim 1, it is characterised in that: described controller also includes detecting module, is used for detecting whether described file system changes to send to described parsing module.
7. a storage method, for storing the flash cell to a storage device or a safety chip by the file system of a host apparatus, it is characterised in that: described storage method includes:
Storing step: the memory module of described storage device stores described file system;
Analyzing step: the parsing module of described storage device resolves the file in described file system and described file is divided into ordinary file and special file when file system changes;And
Recording step: ordinary file is stored in described flash cell and records the logical address that ordinary file is corresponding by the logging modle in described storage device;Special file is stored in described safety chip and records the logical address that special file is corresponding by the most described logging modle.
Store method the most as claimed in claim 7, it is characterised in that: described storage method also includes setting steps: arrange module according to the name form of described file or the name title of file to arrange the criterion of described special file in described controller.
Store method the most as claimed in claim 7, it is characterized in that: described storage method also includes performing step: the execution module in described controller accesses described flash cell when receiving an access request according to the logical address that ordinary file is corresponding, or described execution module accesses described safety chip according to the logical address that special file is corresponding.
Store method the most as claimed in claim 7, it is characterized in that: described storage method also includes integrating documents step: described host apparatus integrates general data to ordinary file, and integrate special data to special file, send to described memory module so that the file system of this ordinary file and special file will be included.
CN201510045536.XA 2015-01-29 2015-01-29 storage device and storage method Active CN105988713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510045536.XA CN105988713B (en) 2015-01-29 2015-01-29 storage device and storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510045536.XA CN105988713B (en) 2015-01-29 2015-01-29 storage device and storage method

Publications (2)

Publication Number Publication Date
CN105988713A true CN105988713A (en) 2016-10-05
CN105988713B CN105988713B (en) 2019-01-08

Family

ID=57035114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510045536.XA Active CN105988713B (en) 2015-01-29 2015-01-29 storage device and storage method

Country Status (1)

Country Link
CN (1) CN105988713B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832403A (en) * 2006-04-24 2006-09-13 北京易恒信认证科技有限公司 CPK credibility authorization system
CN103150524A (en) * 2013-01-30 2013-06-12 华中科技大学 Safe memory chip, system and authentication method of safe memory chip
GB201313869D0 (en) * 2012-10-01 2013-09-18 Advanced Risc Mach Ltd A secure mechanism to switch between different domains of operation in a data processor
CN103367189A (en) * 2012-03-26 2013-10-23 慧荣科技股份有限公司 Test system and test method thereof
CN104240080A (en) * 2013-06-07 2014-12-24 中兴通讯股份有限公司 Realization method for mobile payment and device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832403A (en) * 2006-04-24 2006-09-13 北京易恒信认证科技有限公司 CPK credibility authorization system
CN103367189A (en) * 2012-03-26 2013-10-23 慧荣科技股份有限公司 Test system and test method thereof
GB201313869D0 (en) * 2012-10-01 2013-09-18 Advanced Risc Mach Ltd A secure mechanism to switch between different domains of operation in a data processor
CN103150524A (en) * 2013-01-30 2013-06-12 华中科技大学 Safe memory chip, system and authentication method of safe memory chip
CN104240080A (en) * 2013-06-07 2014-12-24 中兴通讯股份有限公司 Realization method for mobile payment and device thereof

Also Published As

Publication number Publication date
CN105988713B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
RU2445676C2 (en) Method of communication with multifunctional memory card
US8190206B2 (en) Dual channel smart card data storage
KR102453780B1 (en) Apparatuses and methods for securing an access protection scheme
US20080192928A1 (en) Portable Electronic Storage Devices with Hardware Security Based on Advanced Encryption Standard
US20080244208A1 (en) Memory card hidden command protocol
US20130205067A1 (en) Storage Device Aware of I/O Transactions and Stored Data
US9772937B2 (en) Data processing method, memory controller and memory storage apparatus
CN106445408A (en) NAND flash memory management method, host, NAND flash memory reading and writing method, and NAND flash memory controller
TWI363966B (en) Method, system and controller for transmitting and dispatching data stream
KR20110123541A (en) Data storage device and method for operating thereof
US8700848B2 (en) Data exchange between protected memory cards
CN110554843A (en) Method and system for storing file data by multiple storage devices
CA2702373C (en) Method of passing instructions between a host station and a portable electronic device, and device for implementation
US8595420B2 (en) Method for dispatching and transmitting data streams between host system and memory storage apparatus having non-volatile memory and smart card chip, memory controller, and memory storage apparatus
KR101255204B1 (en) Storage reader apparatus having security features and the method thereof
CN103218300A (en) Data processing method, memory controller and memory storage device
US8756425B2 (en) Data security authentication system and related multi-function memory card and computer program product
TWI546667B (en) Method for managing memory card, memory storage device and memory control circuit unit
US20170293431A1 (en) Data storage device having internal tagging capabilities
CN105988713A (en) Storage device and storage method
CN101039318A (en) Individual safety token for at least two safe environments and different access conditions
US8276188B2 (en) Systems and methods for managing storage devices
CN105162782A (en) User biological characteristic storage method, device and terminal
CN104573573A (en) Data protection system and method for mobile storage
US20090235365A1 (en) Data access system

Legal Events

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