CN101894000A - Read-write methods and systems of ISO file - Google Patents
Read-write methods and systems of ISO file Download PDFInfo
- Publication number
- CN101894000A CN101894000A CN 201010224717 CN201010224717A CN101894000A CN 101894000 A CN101894000 A CN 101894000A CN 201010224717 CN201010224717 CN 201010224717 CN 201010224717 A CN201010224717 A CN 201010224717A CN 101894000 A CN101894000 A CN 101894000A
- Authority
- CN
- China
- Prior art keywords
- data
- iso file
- read
- write
- byte
- 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
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000010586 diagram Methods 0.000 description 4
- 241001269238 Data Species 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 230000000576 supplementary effect Effects 0.000 description 2
- SYSZENVIJHPFNL-UHFFFAOYSA-N (alpha-D-mannosyl)7-beta-D-mannosyl-diacetylchitobiosyl-L-asparagine, isoform B (protein) Chemical compound COC1=CC=C(I)C=C1 SYSZENVIJHPFNL-UHFFFAOYSA-N 0.000 description 1
- 102000001708 Protein Isoforms Human genes 0.000 description 1
- 108010029485 Protein Isoforms Proteins 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a write method of an ISO file, which comprises the steps of: judging whether currently received data to be written is data of specific bytes of the ISO file, if so, discarding the data; and if not, sequentially writing the data into a storage region. The invention also provides a read method of the ISO file, which comprises the steps of: judging whether data to be read currently is data of front specific bytes of the ISO file, if so, constructing the data value to be currently read to be 0, and if not, sequentially reading the data from the storage region. The invention also provides read-write systems of the ISO film correspondingly. By using the invention, the expansion of storage capacity of a no-software drive-free KEY can be realized.
Description
Technical field
The present invention relates to a kind of reading/writing method and read-write system that is applied to not have the ISO file that drives no soft intelligent code key external memory device.
Background technology
For intelligent code key, as KEY, it is mainly used to store authentication information.When operating computer need authenticate (as the computer software authentication, or the authentication of logging in network bank etc.), with the USB interface of the insertion of the USB plug on KEY computer, finish authentication by the information that computer reads among the KEY.
Need in early days to use before the KEY, corresponding driving program and software need be installed in computer to discern and to read the information among the KEY.Then, drive, remove install driver gradually from, and the USB that uses operating system to preset drives along with operating system in the computer (as operating systems such as WindowsXP) presets USB.At present, in order to make the use of KEY more convenient, occurred not having and driven no soft KEY.
Do not have and to drive no soft KEY and be meant promptly not need to install and drive (drive by the USB that uses computer operating system to preset and realize) that also do not need install software, the corresponding USB interface of insertion computer can be used.Not having soft nothing, to drive the principle of KEY be that required user program is written in the memory block of KEY with the ISO file layout, moves automatically thereby can be used as virtual drive, without install software.
Wherein, the file of ISO form is based on the ISO9660 standard, and the preceding 32k byte of its ISO file generally is 0, and content afterwards is only effective content.
Be understood that in the ISO file was written to the KEY memory block, the 32k byte also was written into corresponding space, memory block before this ISO file, equals to be wasted.For the KEY memory block of low capacity, 32k bytes of memory space is still very important.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of reading/writing method and read-write system of ISO file, with the KEY expansion of storage capacity that realizes that no soft nothing is driven.
The write method of a kind of ISO file provided by the invention comprises: judge whether the current data that will write that receive are the data of the specified byte of ISO file, if then abandon described data; Otherwise described data are write storage area successively.
By last, when being the specified byte data of non-valid data, then discardable data are so that storage area can hold more valid data.
Wherein, describedly judge that whether the current data that will write that receive are that the step of data of the specified byte of ISO file comprises: the mode that adopts counting is counted from first specified byte data of the ISO file that receives, judges by judging whether the byte data of receiving length-specific whether the current data that will write that receive are the data of the specified byte of ISO file.
By last, can adopt the mode of counting to judge whether to be the specified byte data.
Wherein, describedly judge that whether the current data that will write that receive are that the step of data of the specified byte of ISO file comprises: be used for indicating the particular value that the specified byte data finish and judge whether the current data that will write that receive are the data of the specified byte of ISO file according to judging whether to receive.
By last, can adopt the mode of particular value to judge whether to be the specified byte data.
Wherein, the data of described specified byte are meant the preceding 32k byte data of described ISO file.
A kind of method of reading of ISO file also is provided, has comprised: judged whether the current data that will read are the data of the preceding specified byte of ISO file, are 0 if then construct the current data value that will read, otherwise from storage area, read described data successively.
By last, when reading the data of storage in the manner described above, adopting the mode of construction data is the ISO file that meets the ISO9660 standard with the file build that is read out, thereby can be so that this ISO file is correctly validated.
Wherein, describedly judge that whether the current data that will read are that the step of data of the preceding specified byte of ISO file comprises: the mode that adopts counting is counted from first specified byte data of the ISO file that read, judges by judging whether the byte data of receiving length-specific whether the current data that read that receive are the data of the specified byte of ISO file.
Wherein, the data of described specified byte are 32k byte data before the ISO file.
The present invention also provides a kind of read-write system of ISO file, comprising:
Byte judging unit 320 is used to judge whether the current data that will read and write are the data of the preceding specified byte of ISO file;
Write control unit 330, be used for when byte judging unit 320 is judged the data of the preceding specified byte that the current data that will write are the ISO file, control read-write cell 350 abandons the data that will write, and controls read-write cell 350 write storage unit 310 successively during for the data after the preceding specified byte of ISO file;
Read-out control unit 340 is used for when byte judging unit 320 is judged the data of the preceding specified byte that the current data that will read are the ISO file control read-write cell 350 direct output datas 0; Control read-write cell 350 is successively from storage unit 310 reading of data during for the data after the preceding specified byte of ISO file;
Read-write cell 350 is used for carrying out the data write operation according to the instruction of write control unit 330 and read-out control unit 340.
By last, system provided by the invention can realize that the ISO file writes the fashionable invalid specified byte data that abandon, when reading described ISO file, then construct the specified byte data, guarantee that the read-write of ISO is normal, and make storage area have more spaces to store other data.
As seen from the above, the present invention expands does not have the memory capacity of driving no soft KEY, has solved the problem of the lack of memory capacity of KEY sometimes.
By last because the content of true read-write is the later content of file 32k, so do not have drive no soft KEY can imprinting under greater than the ISO file of its capacity 32k.For example to drive the memory capacity of no soft KEY be 1MB to certain nothing, add so after this module can imprinting under the ISO file of maximum 1MB+32KB.Often there is great value in this 32k space in actual use.
Description of drawings
Fig. 1 writes the process flow diagram of KEY memory block for the ISO file;
Fig. 2 is for reading the process flow diagram of ISO file from the KEY memory block;
Fig. 3 is the read-write system of ISO file.
Embodiment
At first introduce ultimate principle of the present invention down, when the present invention carries out the ISO file read-write to the KEY storage space, the preceding 32k byte content of ISO file is carried out virtual read-write.Promptly, the preceding 32k byte of ISO file is not really write the storage space of KEY, thereby the storage space of KEY can go out the data that the 32k byte is stored other free time when the KEY storage space writes the ISO file.And when needs when the KEY storage space reads the ISO file, the preceding 32k byte 0 of described ISO file is not really to read out from the KEY storage space, but when reading, construct, so that the ISO file that is read out is the ISO file that meets the ISO9660 standard.
The present invention is described in detail below in conjunction with accompanying drawing.
At first write the process flow diagram of KEY memory block,, may further comprise the steps when receiving after described ISO file writes KEY memory block instruction referring to the ISO file shown in Fig. 1:
Step 110: judge whether the current data that will write that receive are the data of the preceding 32k byte of ISO file, if then carry out next step, otherwise execution in step 130.
Wherein, when receiving the data of ISO, can adopt the mode of counter to carry out timing, till receiving the 32k data from the data of first byte of reception.
Step 120: the preceding 32k byte data of the ISO file that receives is abandoned, return step 110.
Step 130: the data with after the 32k byte of the ISO file that receives, be written to KEY storage space specified memory domain addresses successively, write end to the ISO file data.
As above, after write operation finishes, the preceding 32k byte of ISO file data have afterwards only been stored in the KEY storage space.
Show the process flow diagram that reads the ISO file from the KEY memory block as Fig. 2, when receive read the ISO file instruction from the KEY memory block after, may further comprise the steps:
Step 210: judge whether the current data that will read are the data of the preceding 32k byte of ISO file, if then carry out next step, otherwise execution in step 230.
Wherein, can count the mode of the The data counter of the ISO that will read, up to execute read before till the operation of 32k byte data.
Step 220: constructing the current data value that will read is 0, returns step 110.
Step 230: from KEY storage space specified memory domain addresses, read out the data of ISO file successively, read end to the ISO file data.
As above, after finishing read operation, the 32k byte is assigned 0 before the ISO in the read operation process, and the data after the preceding 32k byte are the data that read from the KEY storage area, two parts data have constituted the ISO file data that meets the ISO9660 standard, and this ISO file can be identified as a CD by computer.
Wherein, for above-mentioned steps 110 and step 120, only the read-write operation of the preceding 32k byte of ISO file is counted judgement, and no longer carry out the operation that judges whether to preceding 32k byte for the read-write operation after the 32k byte before the ISO file, whether with respect to all data manipulations of ISO file all will be judged is to the data manipulation of the preceding 32k byte of ISO file, can accelerate data processing speed.
Also show the read-write system that is applied to not have the ISO file that drives no soft KEY as Fig. 3, comprising:
Byte judging unit 320 is used to judge whether the current data that will read and write are the data of the preceding 32k byte of ISO file;
Write control unit 330, be used for when byte judging unit 320 judges that the current data that will write are the data of preceding 32k byte of ISO file, control read-write cell 350 abandons the data that will write, and controls read-write cell 350 write storage unit 310 successively during for the data after the preceding 32k byte of ISO file;
Read-out control unit 340 is used for controlling read-write cell 350 direct output datas 0 when byte judging unit 320 judges that the current data that will read are the data of preceding 32k byte of ISO file; Control read-write cell 350 is successively from storage unit 310 reading of data during for the data after the preceding 32k byte of ISO file;
Read-write cell 350 is used for carrying out the data write operation according to the instruction of write control unit 330 and read-out control unit 340.
In addition, though the 32k byte value was 0 for embodiment before the present invention constructed when reading the ISO file, but be understood that, also can this 32k byte of assignment or certain certain bits be certain particular value, for example the last position of this 32k byte is these particular value data, the 32k byte finishes before being used for indicating, like this when the ISO file is write the KEY memory block, can judge whether the data that will write are the data of the preceding 32k byte of ISO file according to this particular value for step 110, the data of for example then representing the back when judgment data is particular value are the preceding 32k byte data afterwards of ISO file.
In addition, because the preceding 32k byte of ISO file also may be used to add a little supplementarys.For example to brief introduction of ISO file etc., therefore, the present invention only carries out virtual read-write to the data of the specified byte in the preceding 32k byte, as only preceding 20k or 10k byte being carried out virtual read-write, specifically can set according to the shared byte of supplementary.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. the write method of an ISO file is characterized in that, comprising:
Judge whether the current data that will write that receive are the data of the specified byte of ISO file, if then abandon described data; Otherwise described data are write storage area successively.
2. method according to claim 1 is characterized in that, describedly judges that whether the current data that will write that receive are that the step of data of the specified byte of ISO file comprises:
The mode that adopts counting is counted from first specified byte data of the ISO file that receives, judges by judging whether the byte data of receiving length-specific whether the current data that will write that receive are the data of the specified byte of ISO file.
3. method according to claim 1, it is characterized in that, describedly judge that whether the current data that will write that receive are that the step of data of the specified byte of ISO file comprises: be used for indicating the particular value that the specified byte data finish and judge whether the current data that will write that receive are the data of the specified byte of ISO file according to judging whether to receive.
4. according to claim 2 or 3 described methods, it is characterized in that the data of described specified byte are 32k byte data before the ISO file.
5. the method for reading of an ISO file is characterized in that, comprising:
Judge whether the current data that will read are the data of the preceding specified byte of ISO file, are 0 if then construct the current data value that will read, otherwise from storage area, read described data successively.
6. method according to claim 5 is characterized in that, describedly judges that whether the current data that will read are that the step of data of the preceding specified byte of ISO file comprises:
The mode that adopts counting is counted from first specified byte data of the ISO file that read, judges by judging whether the byte data of receiving length-specific whether the current data that read that receive are the data of the specified byte of ISO file.
7. method according to claim 6 is characterized in that, the data of described specified byte are 32k byte data before the ISO file.
8. the read-write system of an ISO file is characterized in that, comprising:
Storage unit (310), the preceding specified byte data afterwards that are used to store the ISO file;
Byte judging unit (320) is used to judge whether the current data that will read and write are the data of the preceding specified byte of ISO file;
Write control unit (330), be used for when byte judging unit (320) is judged the data of the preceding specified byte that the current data that will write are the ISO file, control read-write cell (350) abandons the data that will write, and controls read-write cell (350) write storage unit (310) successively during for the data after the preceding specified byte of ISO file;
Read-out control unit (340) is used for when byte judging unit (320) is judged the data of the preceding specified byte that the current data that will read are the ISO file, and control read-write cell (350) is output data 0 directly; Control read-write cell (350) is successively from storage unit (310) reading of data during for the data after the preceding specified byte of ISO file;
Read-write cell (350) is used for carrying out the data write operation according to the instruction of write control unit (330) and read-out control unit (340).
9. system according to claim 8 is characterized in that, described specified byte is the 32k byte.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010224717 CN101894000A (en) | 2010-07-02 | 2010-07-02 | Read-write methods and systems of ISO file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010224717 CN101894000A (en) | 2010-07-02 | 2010-07-02 | Read-write methods and systems of ISO file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101894000A true CN101894000A (en) | 2010-11-24 |
Family
ID=43103204
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010224717 Pending CN101894000A (en) | 2010-07-02 | 2010-07-02 | Read-write methods and systems of ISO file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101894000A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016786A1 (en) * | 2005-07-13 | 2007-01-18 | Lenovo Pte Ltd. | System and method for ISO image update and ISO image deconstruction into modular components |
CN101145089A (en) * | 2007-10-31 | 2008-03-19 | 广东威创日新电子有限公司 | Touch panel device and method for communicating with computer and the device |
CN101221543A (en) * | 2007-01-10 | 2008-07-16 | 国际商业机器公司 | Method for performing DMA block movement, DMA device and data processing system |
US20090067414A1 (en) * | 2007-09-09 | 2009-03-12 | Francis Toscano | Systems and Methods for Communicating Documents |
CN101446887A (en) * | 2009-01-09 | 2009-06-03 | 华为技术有限公司 | Method, device and system for primitive processing |
-
2010
- 2010-07-02 CN CN 201010224717 patent/CN101894000A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016786A1 (en) * | 2005-07-13 | 2007-01-18 | Lenovo Pte Ltd. | System and method for ISO image update and ISO image deconstruction into modular components |
CN101221543A (en) * | 2007-01-10 | 2008-07-16 | 国际商业机器公司 | Method for performing DMA block movement, DMA device and data processing system |
US20090067414A1 (en) * | 2007-09-09 | 2009-03-12 | Francis Toscano | Systems and Methods for Communicating Documents |
CN101145089A (en) * | 2007-10-31 | 2008-03-19 | 广东威创日新电子有限公司 | Touch panel device and method for communicating with computer and the device |
CN101446887A (en) * | 2009-01-09 | 2009-06-03 | 华为技术有限公司 | Method, device and system for primitive processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI475385B (en) | Method of programming memory cells and reading data, memory controller and memory storage device using the same | |
JP5418808B2 (en) | Adaptive hybrid density memory storage control method and adaptive hybrid density memory storage | |
KR100610647B1 (en) | Mass storage device with direct execution control and storage | |
CN109933545B (en) | Data storage device and data processing method of memory device | |
US7600090B2 (en) | Microcontroller based flash memory digital controller system | |
KR100816761B1 (en) | Memory card including NAND flash memory and SRAM / NOR flash memory and its data storage method | |
JP2003015929A (en) | Non-volatile memory control method | |
US11176035B2 (en) | Data storage devices and data processing methods | |
JP2007004234A (en) | Storage device | |
JP2008198206A (en) | Data processing system and operation method thereof, data processing device, and operation method of data storage device | |
TWI423022B (en) | Memory management method, memory controller and memory storage apparatus | |
US9442834B2 (en) | Data management method, memory controller and memory storage device | |
CN111694510B (en) | Data storage device and data processing method | |
CN102184143B (en) | Data protection method, device and system for storage device | |
KR100987205B1 (en) | Externally connected devices, host devices and data communication systems | |
US8812756B2 (en) | Method of dispatching and transmitting data streams, memory controller and storage apparatus | |
CN103218300B (en) | Data processing method, memory controller and memory storage device | |
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 | |
CN103914391A (en) | Data reading method, memory controller and memory storage device | |
CN103577344B (en) | Data writing method, memory controller and memory storage device | |
TWI521345B (en) | Method for reading response and data transmission system | |
CN103324581B (en) | Programming storage unit and data reading method, memory controller and storage device | |
CN100535872C (en) | NOR FLASH equalising method based on address mapping | |
CN101894000A (en) | Read-write methods and systems of ISO file | |
CN103870408B (en) | Data processing method, memory controller and memory storage device |
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: 20101124 |