CN101546321B - Breakpoint continuous transmission method of mobile storage equipment - Google Patents

Breakpoint continuous transmission method of mobile storage equipment Download PDF

Info

Publication number
CN101546321B
CN101546321B CN2008101030140A CN200810103014A CN101546321B CN 101546321 B CN101546321 B CN 101546321B CN 2008101030140 A CN2008101030140 A CN 2008101030140A CN 200810103014 A CN200810103014 A CN 200810103014A CN 101546321 B CN101546321 B CN 101546321B
Authority
CN
China
Prior art keywords
flash memory
data
storage device
file
document
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.)
Expired - Fee Related
Application number
CN2008101030140A
Other languages
Chinese (zh)
Other versions
CN101546321A (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.)
Aigo Electronic Technology Co Ltd
Original Assignee
Aigo Electronic 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 Aigo Electronic Technology Co Ltd filed Critical Aigo Electronic Technology Co Ltd
Priority to CN2008101030140A priority Critical patent/CN101546321B/en
Publication of CN101546321A publication Critical patent/CN101546321A/en
Application granted granted Critical
Publication of CN101546321B publication Critical patent/CN101546321B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a breakpoint continuous transmission method of mobile storage equipment, a flash memory is adopted as a memory of the mobile storage equipment, the memory comprises a flash memory parameter area and a flash memory storage area; and after the mobile storage equipment and peripheral equipment are connected, the method comprises the following steps: (1) connecting the mobile storage equipment and the peripheral equipment; (2) detecting whether the flash memory parameter area of the mobile storage equipment has the same file name with a transmitted file; if not, then storing the file; if so, then (3) further detecting the flash memory parameter area, and detecting whether the file corresponds to an unfinished mark; if not, then renaming a new file and storing the corresponding address of the file; if so, then (4) continuously transmitting breakpoints; and (5), finishing data transmission and deleting the unfinished mark in the flash memory parameter area.

Description

A kind of method of breakpoint transmission of movable storage device
[affiliated technical field]
The present invention relates to a kind of a kind of method of the method that realizes breakpoint transmission, particularly breakpoint continuous transmission of mobile storage equipment.
[background technology]
Along with the development of technology, most movable storage device, as existing portable hard drive, with the MP3 of memory function etc., because the characteristics such as its volume is small and exquisite, easy to carry, the recording data access is convenient more and more are widely used.
Yet, in such movable storage device of use carries out the process of the transmission of data, break if cause due to factors such as outage or data connecting line and external unit disconnections in the process of transfer files suddenly, make movable storage device the file data content of transmitting can't be preserved fully, cause this document data all not preserve, to the user, bring very large inconvenience or even loss without redemption.
[summary of the invention]
The object of the invention is to address the above problem, by the file data to breaking suddenly in transmitting procedure, carry out breakpoint transmission, realize the preservation of original file from the data of breakpoint.
Concrete technical scheme is as follows:
A kind of method of breakpoint transmission of movable storage device, described movable storage device adopt flash memory as storer, and this storer comprises flash memory parameter region and flash memory storage district, and movable storage device comprises the following steps with after external unit is connected:
(1), movable storage device is connected with external unit;
(2), detect the flash memory parameter region of movable storage device, whether have and be transmitted file and have same file name,, if do not have, store the operation of this document; If have,
(3), further detect the flash memory parameter region, detect the whether correspondence sign that do not finish of this document,, if do not have, rename a new filename, and store this document corresponding address; If have,
(4), carry out the operation of breakpoint transmission;
(5), complete the transmission of data, in the flash memory parameter region deletion sign that do not finish.
Described step (2) if in there is no a same file name, the operation of storing this document further comprises:
(2.1), store the file address of this document at the flash memory parameter region;
(2.2), in the position of the corresponding this document of flash memory parameter region, the sign that do not finish is added in storage;
(2.3), the corresponding data of the position of corresponding this document address storage this document in the flash memory storage district.
The position of the described sign that do not finish is for arranging and complete or carry out the zone that initialization operation defines in advance in movable storage device.
Described step (4) is further comprising the steps:
(4.1), find the address location (A) of end of this document data of preservation in the memory block, address of flash memory parameter region;
(4.2), according to the address location of finding (A), search backward along time sequencing in relevant position, flash data district, know a upper address location (B) that finds the address location of not storing data;
(4.3), the data that will be transmitted institute's corresponding stored between file and location address (A) to (B) compare, and find the repetition (A) that will the transmit file correspondence position point (C) to the data of storage between (B);
(4.4), from relevant position point (C) that is transmitted file, start to transmit data, and at parameter region from (B+1), start address, memory location and corresponding storage area stores data.
The storage mode of the storage mode employing order of described flash memory.
Described electronic voice recording equipment is portable hard drive, digital recording pen, audio/video player, personal digital assistant.
Owing to having used this technical scheme, in the situation that breaking suddenly, movable storage device the transmission of data process also can continue to the file data after breaking transmission, guarantee transmission security and the integrality of data, and met user's preservation requirement to data in the transmission of data situation.
, in order further to understand feature of the present invention and technology contents, below in conjunction with specific embodiments of the invention and accompanying drawing, describe.But the drawings and Examples of lifting not in order to the present invention is limited.
[description of drawings]
Fig. 1 is the block diagram of the first embodiment of relating to of present device.
Fig. 2 is the block diagram of the second embodiment of relating to of present device.
Fig. 3 is the block diagram of the embodiment of system of the present invention.
Fig. 4 is the FB(flow block) that the present invention relates to method.
Fig. 5 is the FB(flow block) that the present invention relates to the breakpoint transmission operation steps in method.
Fig. 6 is the FB(flow block) that the present invention relates to another kind of method.
Fig. 7 is the breakpoint transmission operation steps FB(flow block) that the present invention relates in another kind of method.
[embodiment]
As shown in Figure 1, being the first embodiment of the present invention, in the present embodiment, is take portable hard drive as example.Portable hard drive comprises with external electronic device (external electronic device can be computing machine) storer that carries out the USB interface of data interaction, the controller that is connected with interface, with controller, be connected (described storer take storage mode be sequential storage) and the microprocessor (MPU) that is connected with controller, also comprise, the breakpoint transmission module that is connected with microprocessor (MPU), and the detection module for detection of the file situation that is connected with microprocessor (MPU).Wherein, the breakpoint transmission module increases the flowing water sign for the data of transmission, and described flowing water is designated at regular intervals (for example, at interval of 1 second) and adds in chronological order sign in the file data of positive transmission to.Described detection module carried out scan operation to the legacy data memory block before data transmission, and scanning result was reported to the microprocessing unit of movable storage device.Whether described scanning result is for existing same file name and/or finish sign.
As shown in Figure 2, for the second embodiment of the present invention still take portable hard drive as example.Be with the first embodiment difference, the breakpoint transmission module directly is not connected with controller.Structure is particularly: with external unit, carry out the USB interface of data transmission, the controller that is connected with USB interface, the storer that is connected with controller, the microprocessor that is connected with controller (MPU), the breakpoint transmission module and the detection module that connect microprocessor (MPU), wherein, detection module also is connected with controller, for detection of the transmission of data that enters by USB interface in portable hard drive, before data transmission, scan operation is carried out in the legacy data memory block, and scanning result is reported to the microprocessing unit of movable storage device.Whether described scanning result is for existing same file name and/or finish sign.
The USB interface that the file data information exchange that transmits is crossed the portable hard drive of connection enters portable hard drive, at this moment, detection module has detected data and will transmit, whether the data that first scan attribute definition in this document data and be filename have identical property file-name with the data that are stored in storer, if have, start to carry out the breakpoint transmission operation,, if do not have, carry out normal storage operation.Here, we need to guarantee that the storage order of portable hard drive carries out in chronological order, so just can guarantee that the operation of breakpoint transmission is carried out with time sequencing.In addition, the interpolation of flowing water sign has guaranteed contrast original and the data that will continue between storage file too, guarantees to find the breakpoint on original, in order to can start from correct breakpoint the continuation of data, transmits.
As shown in Figure 3, the working condition after completing portable hard drive and computing machine is connected below in conjunction with the detailed explanation of embodiment system of the present invention.this system comprises an external unit computing machine, computing machine comprises processor (CPU) at least, storage unit, and the USB interface of carrying out data interaction with computing machine, the controller that is connected with USB interface, the storer that is connected with controller, and the microprocessor that is connected with controller (MPU), described computing machine passes through the data USB interface to described portable hard drive transmitting data information, the microprocessor of described portable hard drive scans already present file data with same file name in storer by the transmission of breakpoint transmission module and the instruction to comparing, and comparative result is fed back to the processor (CPU) of computing machine, the processor of computing machine (CPU) is by the corresponding breakpoint location of detection module to the Data Detection in the storage unit of computing machine and definite former transfer files, and from this breakpoint location, start again to transmit the file that is not transmitted of the already present same file name of storing portable hard drive.Described breakpoint transmission module is connected with microprocessor, and the breakpoint transmission module increases the flowing water sign for the data of transmission, described flowing water be designated at regular intervals add in order sign in file data to.Described detection module at computing machine with after portable hard drive is connected, according to the request of the microprocessor (MPU) of portable hard drive, the legacy data in the storage unit of computing machine is carried out scan operation, and determine the breakpoint location of original according to ordinal relation, take this breakpoint location as restarting the starting point of the transmission of data.
Specifically, the file 1 in the Computer Storage unit need to be copied in portable hard drive, but interrupts suddenly in transmitting procedure, is kept at the just part of file 1 in the portable hard drive storer.Connect computing machine and copy this document 1 this moment with portable hard drive.Due in upper once transmitting procedure, the breakpoint transmission module in portable hard drive has been added the flowing water sign in chronological order for the data of transmission,, like this in the place of the upper once end of file, just can find the flowing water sign of the expression time of a corresponding this document.According to this flowing water sign that obtains, can original file 1 be compared by the detection module in computer operating system, find corresponding breakpoint location in original file 1, and from the data of this breakpoint location, start to transmit.
As shown in Figure 4, the method for a kind of breakpoint transmission of portable hard drive is as follows:
1), portable hard drive is connected with computing machine and carries out data transmission;
2), detect the file will carry out data transmission whether the file of same file name is arranged in portable hard drive,, if there is no the file of identical filename, carry out step 5); If the file of identical filename is arranged, carry out step 3),
3), judge that whether the file of this already present same file name has the sign of finishing, and, if having the sign of finishing, changes to the file of a new filename and carry out step 5); If do not finish sign, carry out step 4),
4), portable hard drive carries out the operation of breakpoint transmission;
5), the portable hard drive data add file name that will be transmitted and flowing water sign;
6), complete data transmission, and in file data end, add the sign that finishes.
Described portable hard drive comprises the breakpoint transmission module that is connected with microprocessor in portable hard drive, and the detection module for detection of the file situation that is connected with described microprocessor.Described storer is flash memory or the hard disk of storing in order.Described breakpoint transmission module is connected with controller, is used to the data of transmission to increase the flowing water sign.
In conjunction with shown in Figure 5, in the step 4 of the above method) further comprising the steps:
4.1), find the position of flowing water sign N of maximum of the file of the same file name of having stored;
4.2), be transmitted file and compare, find the relevant position point that will transmit file;
4.3), start to transmit data from the relevant position point that is transmitted file, and from N+1, start to add flowing water sign.
As shown in Figure 6, the method of the breakpoint transmission of another kind of movable storage device, described movable storage device adopt flash memory as storer, and this this storer comprises flash memory parameter region and flash memory storage district, and movable storage device, with after external unit is connected, comprises the following steps:
(1), portable hard drive is connected with computing machine;
(2), detect the flash memory parameter region of portable hard drive, whether have and be transmitted file and have same file name,, if do not have, store the operation of this document; If have,
(3), further detect the flash memory parameter region, detect the whether correspondence sign that do not finish of this document,, if do not have, rename a new filename, and store this document corresponding address; If have,
(4), carry out the operation of breakpoint transmission;
(5), complete the transmission of data, in the flash memory parameter region deletion sign that do not finish.
Described step (2) if in there is no a same file name, the operation of storing this document further comprises:
(2.1), store the file address of this document at the flash memory parameter region;
(2.2), in the position of the corresponding this document of flash memory parameter region, the sign that do not finish is added in storage;
(2.3), the corresponding data of the position of corresponding this document address storage this document in the flash memory storage district.
The position of the described sign that do not finish is for arranging and complete or carry out the zone that initialization operation defines in advance in movable storage device.
As shown in Figure 7, described step (4) is further comprising the steps:
(4.1), find the address location (A) of end of this document data of preservation in the memory block, address of flash memory parameter region;
(4.2), according to the address location of finding (A), search backward along time sequencing in relevant position, flash data district, know a upper address location (B) that finds the address location of not storing data;
(4.3), the data that will be transmitted institute's corresponding stored between file and location address (A) to (B) compare, and find the repetition (A) that will the transmit file correspondence position point (C) to the data of storage between (B);
(4.4), from relevant position point (C) that is transmitted file, start to transmit data, and at parameter region from (B+1), start address, memory location and corresponding storage area stores data.
In sum; for the person of ordinary skill of the art; can make other various corresponding changes and distortion according to technical scheme of the present invention and technical conceive, and all these changes and distortion all should belong to the protection domain of claim of the present invention.

Claims (5)

1. the method for the breakpoint transmission of a movable storage device, described movable storage device adopts flash memory as storer, this storer comprises flash memory parameter region and flash memory storage district, and movable storage device is characterized in that comprising the following steps with after external unit is connected:
(1), movable storage device is connected with external unit;
(2), detect the flash memory parameter region of movable storage device, whether have and be transmitted file and have same file name,, if do not have, store the operation of this document; If have,
(3), further detect the flash memory parameter region, detect the whether correspondence sign that do not finish of this document,, if do not have, rename a new filename, and store this document corresponding address; If have,
(4), carry out the operation of breakpoint transmission;
(5), complete the transmission of data, in the flash memory parameter region deletion sign that do not finish; Described step (4) is further comprising the steps:
(4.1), find the address location A of end of this document data of preservation in the memory block, address of flash memory parameter region;
(4.2), according to the address location A that finds, search backward along time sequencing in relevant position, flash data district, until find a upper address location B of the address location of not storing data;
(4.3), will be transmitted file and location address A and compare to the data of institute's corresponding stored between B, find the repetition A that will the transmit file correspondence position point C to the data of storing between B;
(4.4), from the relevant position point C that is transmitted file, start to transmit data, and at parameter region from address location B+1, start address, memory location and corresponding storage area stores data.
2. the method for the breakpoint transmission of movable storage device according to claim 1, is characterized in that, described step (2) if in there is no a same file name, the operation of storing this document further comprises:
(2.1), store the file address of this document at the flash memory parameter region;
(2.2), in the position of the corresponding this document of flash memory parameter region, the sign that do not finish is added in storage;
(2.3), the corresponding data of the position of corresponding this document address storage this document in the flash memory storage district.
3. the method for the breakpoint transmission of movable storage device according to claim 2, is characterized in that, the position of the described sign that do not finish is for arranging and complete or carry out the zone that initialization operation defines in advance in movable storage device.
4. the method for the breakpoint transmission of movable storage device according to claim 1, is characterized in that, the storage mode of the storage mode employing order of described flash memory.
5. the method for the breakpoint transmission of movable storage device according to claim 1, is characterized in that, described movable storage device is portable hard drive, digital recording pen, audio/video player, personal digital assistant.
CN2008101030140A 2008-03-28 2008-03-28 Breakpoint continuous transmission method of mobile storage equipment Expired - Fee Related CN101546321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101030140A CN101546321B (en) 2008-03-28 2008-03-28 Breakpoint continuous transmission method of mobile storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101030140A CN101546321B (en) 2008-03-28 2008-03-28 Breakpoint continuous transmission method of mobile storage equipment

Publications (2)

Publication Number Publication Date
CN101546321A CN101546321A (en) 2009-09-30
CN101546321B true CN101546321B (en) 2013-11-13

Family

ID=41193461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101030140A Expired - Fee Related CN101546321B (en) 2008-03-28 2008-03-28 Breakpoint continuous transmission method of mobile storage equipment

Country Status (1)

Country Link
CN (1) CN101546321B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951461A (en) * 2010-09-15 2011-01-19 康佳集团股份有限公司 Method for reading electronic book by using set top box
CN103457973B (en) 2012-06-01 2016-04-27 深圳市腾讯计算机系统有限公司 A kind of picture upload method, system, picture uploading client and the webserver
CN103581242B (en) * 2012-07-27 2018-06-15 腾讯科技(深圳)有限公司 Method, client device, server and the system of upper transmitting file
CN103778157A (en) * 2012-10-25 2014-05-07 深圳市快播科技有限公司 File renaming method and system
CN103593314A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 External storage device breakpoint resuming method and device
CN108023906B (en) * 2016-10-31 2020-06-12 杭州海康威视系统技术有限公司 Breakpoint continuous transmission method and device of monitoring video
CN108334282B (en) * 2017-12-28 2021-07-09 宁德时代新能源科技股份有限公司 Method and device for downloading program file of automobile electronic control unit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581178B1 (en) * 1999-02-15 2003-06-17 Nec Corporation Error correction coding/decoding method and apparatus
JP2000307438A (en) * 1999-02-15 2000-11-02 Nec Corp Error correction encoding and decoding method and its device
CN1234239C (en) * 2002-09-30 2005-12-28 北京中视联数字系统有限公司 Software downloading method in digital TV broadcast
CN1627290A (en) * 2003-12-12 2005-06-15 鸿富锦精密工业(深圳)有限公司 Data down loading system and method capable of continuous transmission from breakpoint
TWI266241B (en) * 2005-07-01 2006-11-11 Via Tech Inc Method for booting up a computer system
CN101217295B (en) * 2007-12-29 2011-10-26 华为终端有限公司 File transmitting method, receiving method and device based on Bluetooth technique

Also Published As

Publication number Publication date
CN101546321A (en) 2009-09-30

Similar Documents

Publication Publication Date Title
CN101546321B (en) Breakpoint continuous transmission method of mobile storage equipment
CN101546250B (en) System for realizing breakpoint continuous transmission of mobile storage equipment
JP4850832B2 (en) Method for managing data storage and data storage management system
EP1510921A3 (en) Remote copy storage system
US9229552B2 (en) System and method for synchronized operation of touch device
WO2013143391A1 (en) Method and system for cleaning up files on device
RU2011121151A (en) PROVISION OF SUGGESTED SITES ASSOCIATED WITH TARGET SITES
US8914326B2 (en) Method for presenting files upon switching between system states and portable terminal
JP2004171528A5 (en)
CN101546251B (en) Mobile storage equipment with breakpoint continuous transmission
US8082513B2 (en) Method and system for saving images from web pages
CN101859220A (en) Electronic device and data processing method thereof
EP2487572A1 (en) Systems and methods for screen data management
US20060265425A1 (en) Media management for a computing device
WO2022218192A1 (en) File processing method and apparatus
CN100339828C (en) Method and device for realizing rapid start
CN201188221Y (en) Mobile memory apparatus capable of breakpoint continuous transmission
US20100017863A1 (en) Portable storage apparatus for providing working environment migration service and method thereof
WO2022151707A1 (en) Memory testing method and apparatus, readable storage medium, and electronic device
TWI637616B (en) Controling system and method for cache coherency
CN101546322B (en) Breakpoint continuous transmission method of mobile storage equipment
US20090164534A1 (en) System and method to derive high level file system information by passively monitoring low level operations on a fat file system
WO2021068382A1 (en) Multi-window operation control method and apparatus, and device and storage medium
EP3073360B1 (en) Multi-media data backup method, user terminal and synchronizer
CN102520878B (en) Method and system for visiting intelligent secure digital (SD) 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131113

CF01 Termination of patent right due to non-payment of annual fee