CN101944185A - Read-write method and device for intelligent storage device and intelligent storage device - Google Patents
Read-write method and device for intelligent storage device and intelligent storage device Download PDFInfo
- Publication number
- CN101944185A CN101944185A CN 201010271807 CN201010271807A CN101944185A CN 101944185 A CN101944185 A CN 101944185A CN 201010271807 CN201010271807 CN 201010271807 CN 201010271807 A CN201010271807 A CN 201010271807A CN 101944185 A CN101944185 A CN 101944185A
- Authority
- CN
- China
- Prior art keywords
- intelligent storage
- batch processing
- storage equipment
- processing script
- host side
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention is applicable to the field of intelligent storage, and provides a read-write method and a read-write device for an intelligent storage device and the intelligent storage device. The method comprises the following steps of: receiving a batch processing script pre-generated by a host for read-write command of the intelligent storage device; interpreting the batch processing script, and executing the command in the interpreted batch processing script; and sending the execution result to the host end. The received batch processing script for the read-write command of the intelligent storage device is interpreted and executed and the execution result is sent so as to reduce the frequency of reading and writing interface files mapped to an intelligent card unit in the intelligent storage device during executing the command, further reduce the frequency of refreshing and caching operation, improve the read-write operation speed for the intelligent storage device and further improve user experience.
Description
Technical field
The invention belongs to intelligent field of storage, relate in particular to a kind of intelligent storage equipment reading/writing method, device and intelligent storage equipment.
Background technology
Flash memory device is a kind of memory device of new generation of based semiconductor fast-flash memory device, have characteristics such as high memory capacity, rapid data transmission rate, great mobile dirigibility and good security, be widely used on mancarried device, for example digital camera, personal digital assistant (PDA) and multimedia player etc.The structure of flash memory device can guarantee the security that digital document transmits, and also is easy to reformatting, so the field that has a wide range of applications, multimedia files such as music, film, news can be saved in the memory device easily.
Intelligent storage equipment embeds intelligent card chip exactly in existing flash memory device, and the corresponding card end of carrying application program.Existing intelligent storage equipment comprises: master controller, and the intelligent card unit that is connected with master controller respectively, storage unit, external interface.Described intelligent storage equipment can be created one or several specific interface documents and be mapped as intelligent card unit, when described intelligent storage equipment and host side connect, described interface document is set up a logical channel as interface between intelligent card unit and host side, host side sends read write command to being read information specific by reflection for the intelligent card unit of interface document or from this intelligent card unit in the intelligent storage equipment by the read-write mechanism of file system.In the prior art, carrying out read write command is by the interface document in the operative intelligence memory device, thereby realize operation to intelligent card unit, and order of every execution all needs the reading and writing interface document at least one time, carry out the operation of a flush buffers, this reading/writing method has caused the read-write operation speed of intelligent storage equipment slow.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of intelligent storage equipment reading/writing method, be intended to solve and adopt the operation of existing method realization to intelligent card unit in the intelligent storage equipment, the operation that need carry out repeatedly read-write interface file and flush buffers causes the slow problem of read or write speed of intelligent storage equipment.
The embodiment of the invention is achieved in that a kind of intelligent storage equipment reading/writing method, and described method comprises the steps:
The batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
Described batch processing script is made an explanation, carry out the order in the batch processing script after explaining;
Execution result is sent to host side.
Another purpose of the embodiment of the invention is to provide a kind of intelligent storage equipment read-write equipment, and described device comprises:
Batch processing script receiving element, the batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
The batch processing script executing unit is used for described batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element is used for execution result is sent to host side as a result.
Another purpose of the embodiment of the invention is to provide a kind of intelligent storage equipment that comprises the intelligent storage equipment read-write equipment, and described device comprises:
Batch processing script receiving element, the batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
The batch processing script executing unit is used for described batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element is used for execution result is sent to host side as a result.
Another purpose of the embodiment of the invention is to provide a kind of intelligent storage equipment reading/writing method, and described method comprises the steps:
Host side is packed to the read write command to intelligent storage equipment of input, generates the batch processing script;
Host side sends the batch processing script that generates to intelligent storage equipment;
Intelligent storage equipment receives the batch processing script that host side generates;
Intelligent storage equipment makes an explanation to the batch processing script, carries out the order in the batch processing script after explaining;
Intelligent storage equipment sends to host side with execution result.
In the embodiment of the invention, intelligent storage equipment is by making an explanation, carry out the batch processing script to the read write command of intelligent storage equipment that receives, and transmission execution result, reduced the number of times of reading and writing the interface document that is mapped as intelligent card unit in the fill order process, then reduce the number of times of flush buffers operation, raising further improves user experience to the read-write operation speed of intelligent storage equipment.
Description of drawings
Fig. 1 is the realization flow figure of the intelligent storage equipment reading/writing method that provides of first embodiment of the invention;
Fig. 2 is the structural drawing of the intelligent storage equipment read-write equipment that provides of second embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is packaged into script with the read-write operation order that host side sends, explain back execution in batches, reduced the number of times of reading and writing the interface document that is mapped as intelligent card unit in the intelligent card unit read-write process, thereby reduced the number of times of flush buffers operation, raising further improves user experience to the read-write operation speed of intelligent storage equipment.
The embodiment of the invention provides a kind of intelligent storage equipment reading/writing method, and described method comprises the steps:
The batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
Described batch processing script is made an explanation, carry out the order in the batch processing script after explaining;
Execution result is sent to host side.
The embodiment of the invention also provides a kind of intelligent storage equipment read-write equipment, and described device comprises:
Batch processing script receiving element, the batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
The batch processing script executing unit is used for described batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element is used for execution result is sent to host side as a result.
The embodiment of the invention also provides a kind of intelligent storage equipment that comprises the intelligent storage equipment read-write equipment, and described intelligent storage equipment read-write equipment comprises:
Batch processing script receiving element, the batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
The batch processing script executing unit is used for described batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element is used for execution result is sent to host side as a result.
The embodiment of the invention also provides a kind of intelligent storage equipment reading/writing method, and described method comprises the steps:
Host side is packed to the read write command to intelligent storage equipment of input, generates the batch processing script;
Host side sends the batch processing script that generates to intelligent storage equipment;
Intelligent storage equipment receives the batch processing script that host side generates;
Intelligent storage equipment makes an explanation to the batch processing script, carries out the order in the batch processing script after explaining;
Intelligent storage equipment sends to host side with execution result.
In the embodiment of the invention, intelligent storage equipment is by making an explanation, carry out the batch processing script to the read write command of intelligent storage equipment that receives, and transmission execution result, reduced the number of times of reading and writing the interface document that is mapped as intelligent card unit in the fill order process, then reduce the number of times of flush buffers operation, raising further improves user experience to the read-write operation speed of intelligent storage equipment.
Below in conjunction with specific embodiment specific implementation of the present invention is described in detail:
Embodiment one:
Fig. 1 shows the realization flow of the intelligent storage equipment reading/writing method that first embodiment of the invention provides, and details are as follows:
1. host side is packed to the read write command to intelligent storage equipment of input, generates the batch processing script;
In embodiments of the present invention, reading and writing the host side of this intelligent storage equipment, can be computing machine, mobile phone, digital camera, digital TV terminal etc.When host side was sent read write command to intelligent storage equipment, these orders were packed by host side, generated the batch processing script.
2. host side sends the batch processing script that generates to intelligent storage equipment;
In embodiments of the present invention, host side sends the errorlevel that generates by the external interface that intelligent storage equipment provides to intelligent storage equipment.
3. intelligent storage equipment receives the batch processing script that host side generates;
In embodiments of the present invention, the external interface of the master controller of intelligent storage equipment by intelligent storage equipment the batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment.
4. intelligent storage equipment makes an explanation to the batch processing script, carries out the order in the batch processing script after explaining;
In embodiments of the present invention, the master controller of intelligent storage equipment makes an explanation to described errorlevel, and the order in the batch processing script after the execution explanation.
5. intelligent storage equipment sends to host side with execution result.
In embodiments of the present invention, the master controller of intelligent storage equipment sends to host side by external interface with execution result.
In embodiments of the present invention, all can regard operation to this hardware respective file as to the operation of hardware, in the access process of carrying out read-write, all can carry out the buffering of file, read write command of so each execution needs the operation of a flush buffers at least, in embodiments of the present invention, intelligent storage equipment makes an explanation to the batch processing script earlier, carry out the order in the batch processing script after explaining again in batches, reduced the number of times of file cache, and then reduced the number of times and the time of flush buffers, thereby improved read-write operation speed to intelligent storage equipment.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
Embodiment two:
Fig. 2 shows the structure of the intelligent storage equipment read-write equipment that second embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Batch processing script receiving element 21 is used to receive that host side generates in advance to the batch processing script of the read write command of intelligent storage equipment;
Batch processing script executing unit 22 is used for the batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element 23 as a result, are used for sending to host side the execution result of batch processing script executing unit 22.
In embodiments of the present invention, this intelligent storage equipment read-write equipment can be built in software unit, hardware cell or the software and hardware combining unit of intelligent storage equipment.
The embodiment of the invention makes an explanation by the batch processing script to the read write command of intelligent storage equipment, and carry out in batches, reduced the number of times of reading and writing the interface document that is mapped as intelligent card unit in the fill order process, thereby reduce the number of times of flush buffers operation, make the read-write operation speed of intelligent storage equipment be improved, user experience has obtained further raising.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. an intelligent storage equipment reading/writing method is characterized in that, described method comprises the steps:
The batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
Described batch processing script is made an explanation, carry out the order in the batch processing script after explaining;
Execution result is sent to host side.
2. the method for claim 1 is characterized in that, the step to the batch processing script of the read write command of intelligent storage equipment that described reception host side generates in advance is specially:
The batch processing script that the external interface of the master controller of intelligent storage equipment by intelligent storage equipment receives that host side generates in advance to the read write command of intelligent storage equipment.
3. the method for claim 1 is characterized in that, described described batch processing script is made an explanation, and the step of carrying out the order in the batch processing script after explaining is specially:
The master controller of intelligent storage equipment makes an explanation to described errorlevel, and the order in the batch processing script after the execution explanation.
4. the method for claim 1 is characterized in that, the described step that execution result is sent to host side is specially:
The master controller of intelligent storage equipment sends to host side by external interface with execution result.
5. an intelligent storage equipment read-write equipment is characterized in that, described device comprises:
Batch processing script receiving element is used to receive that host side generates in advance to the batch processing script of the read write command of intelligent storage equipment;
The batch processing script executing unit is used for described batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element is used for execution result is sent to host side as a result.
6. an intelligent storage equipment is characterized in that, described intelligent storage equipment comprises the intelligent storage equipment read-write equipment, and described intelligent storage equipment read-write equipment comprises:
Batch processing script receiving element, the batch processing script that receives that host side generates in advance to the read write command of intelligent storage equipment;
The batch processing script executing unit is used for described batch processing script is made an explanation, and carries out the order in the batch processing script after explaining; And
Transmitting element is used for execution result is sent to host side as a result.
7. an intelligent storage equipment reading/writing method is characterized in that, described method comprises the steps:
Host side is packed to the read write command to intelligent storage equipment of input, generates the batch processing script;
Host side sends the batch processing script that generates to intelligent storage equipment;
Intelligent storage equipment receives the batch processing script that host side generates;
Intelligent storage equipment makes an explanation to the batch processing script, carries out the order in the batch processing script after explaining;
Intelligent storage equipment sends to host side with execution result.
8. method as claimed in claim 7 is characterized in that, the step that described intelligent storage equipment receives the batch processing script of host side generation is specially:
The batch processing script that the external interface of the master controller of intelligent storage equipment by intelligent storage equipment receives that host side generates to the read write command of intelligent storage equipment.
9. method as claimed in claim 7 is characterized in that described intelligent storage equipment makes an explanation to the batch processing script, and the step of carrying out the order in the batch processing script after explaining is specially:
The master controller of intelligent storage equipment makes an explanation to errorlevel, and the order in the batch processing script after the execution explanation.
10. method as claimed in claim 7 is characterized in that, described intelligent storage equipment is specially the step that execution result sends to host side:
The master controller of intelligent storage equipment sends to host side by external interface with execution result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010271807 CN101944185A (en) | 2010-09-03 | 2010-09-03 | Read-write method and device for intelligent storage device and intelligent storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010271807 CN101944185A (en) | 2010-09-03 | 2010-09-03 | Read-write method and device for intelligent storage device and intelligent storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101944185A true CN101944185A (en) | 2011-01-12 |
Family
ID=43436169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010271807 Pending CN101944185A (en) | 2010-09-03 | 2010-09-03 | Read-write method and device for intelligent storage device and intelligent storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101944185A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112947846A (en) * | 2019-12-11 | 2021-06-11 | 北京金山云网络技术有限公司 | Batch processing task execution method and device of object storage system and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501234A (en) * | 2002-11-18 | 2004-06-02 | �������ʿƿƼ�����˾ | Method for transmitting command and data to portable storage device |
JP2004302642A (en) * | 2003-03-28 | 2004-10-28 | Saxa Inc | Card reader device and program for the same device |
CN101087153A (en) * | 2006-06-06 | 2007-12-12 | 上海市文来中学 | Bluetooth storage box |
CN101163050A (en) * | 2007-11-23 | 2008-04-16 | 上海华为技术有限公司 | Equipment near-end maintenance method, system and equipment |
CN101636712A (en) * | 2006-12-06 | 2010-01-27 | 弗森多系统公司(dba弗森-艾奥) | Apparatus, system, and method for servicing object requests within a storage controller |
-
2010
- 2010-09-03 CN CN 201010271807 patent/CN101944185A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501234A (en) * | 2002-11-18 | 2004-06-02 | �������ʿƿƼ�����˾ | Method for transmitting command and data to portable storage device |
JP2004302642A (en) * | 2003-03-28 | 2004-10-28 | Saxa Inc | Card reader device and program for the same device |
CN101087153A (en) * | 2006-06-06 | 2007-12-12 | 上海市文来中学 | Bluetooth storage box |
CN101636712A (en) * | 2006-12-06 | 2010-01-27 | 弗森多系统公司(dba弗森-艾奥) | Apparatus, system, and method for servicing object requests within a storage controller |
CN101163050A (en) * | 2007-11-23 | 2008-04-16 | 上海华为技术有限公司 | Equipment near-end maintenance method, system and equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112947846A (en) * | 2019-12-11 | 2021-06-11 | 北京金山云网络技术有限公司 | Batch processing task execution method and device of object storage system and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180158527A1 (en) | Volatile memory architecutre in non-volatile memory devices and related controllers | |
CN108091355B (en) | Data inverting circuit | |
US9430423B2 (en) | Embedded multimedia card (eMMC), host controlling eMMC, and method operating eMMC system | |
KR20200025184A (en) | Nonvolatile memory device, data storage apparatus including the same and operating method thereof | |
CN109992201B (en) | Data storage device and method of operating the same | |
CN103761988A (en) | SSD (solid state disk) and data movement method | |
CN110543435B (en) | Mixed mapping operation method, device and equipment of storage unit and storage medium | |
CN103955440A (en) | Nonvolatile storage equipment and method of carrying out data manipulation therethrough | |
WO2023179742A1 (en) | Data access method and system, hardware offloading device, electronic device and medium | |
US20140258247A1 (en) | Electronic apparatus for data access and data access method therefor | |
CN114579055B (en) | Disk storage method, device, equipment and medium | |
CN109375868B (en) | Data storage method, scheduling device, system, equipment and storage medium | |
CN107193693A (en) | A kind of online data storage optimization method based on storage system | |
KR20200114086A (en) | Controller, memory system and operating method thereof | |
CN107577612B (en) | Mobile device and method for storing data in mobile device | |
CN108170376A (en) | The method and system that storage card is read and write | |
CN101944185A (en) | Read-write method and device for intelligent storage device and intelligent storage device | |
CN115963977A (en) | Solid state disk, data operation method and device thereof, and electronic device | |
CN103064926A (en) | Data processing method and device | |
CN102073459B (en) | Computer system based on solid state drive and solid state drive | |
WO2023142114A1 (en) | Data processing method, apparatus, and electronic device | |
US20240103767A1 (en) | Method, electronic device, and computer program product for synchronously accessing data | |
CN212749811U (en) | Wireless data reading device | |
US20240231698A1 (en) | Storage devices and operating methods thereof | |
Takeuchi | NAND flash application and solution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110112 |