Summary of the invention
Purpose of the present invention solves and transmits the interim problem that data can not be preserved of interrupting in the renewal process for proposing a kind of renewal data protection system and method.
Technical scheme of the present invention is: a kind of renewal data protection system, and this system comprises:
One determination module, this determination module is provided with a monitoring unit, and whether monitor has updated data file to transmit; Whether one search identification unit, search one will receive in the electronic equipment of updated data file has the updated data file that to be ready transmitting to exist; This determination module also is provided with a layout unit, and the updated data file that is received is carried out identification and layout in order;
One memory module, immediate status information in this memory module record updated data file transport process;
One temporary storage module is created interim storage file for the updated data file that begins to receive, and preserves this updated data file, and the interim storage file that will create after finishing receiving is converted to official document;
Wherein, when the updated data file that does not search just transmission when this search identification unit exists, the transmission of updated data file is set up, and this determination module at first sends one to this temporary storage module and receives instruction, and this temporary storage module is created interim storage file and received updated data file; This determination module needs to send identification and arrangement information to this memory module preservation; When this search identification unit searches when the updated data file that to be ready transmitting exists, this determination module calls the information of this memory module preservation, and continues the transmission of uncompleted updated data file according to this information.
The invention allows for a kind of renewal data guard method, this method step comprises:
A. the interim storage file that judges whether the updated data file that receives to some extent exists, if having, then according to the instant delivery status of record, carries out step c;
B. create an interim storage file; This temporary file is preserved before transmission is not finished always;
C. updated data file that identification received and chronological order;
D. write down the instant delivery status of updated data file;
E. interim storage file is converted to official document.
The present invention is by preservation and record to file data information in transmitting, is disconnected to when connecting once more in transmission, can continue original transmission, unlikelyly makes the original loss of data that transmits, and can save more new data delivery time once more.
Embodiment
Below in conjunction with accompanying drawing in detail inventive embodiment is described in detail.
Fig. 1 is a system module structural representation of the present invention, as shown in the figure, a kind of renewal data protection system 10, this system 10 is provided with and is applied in the electronic equipment, hand-held electronic equipment especially, as equipment such as PDA, GPS, this system 10 comprises:
One determination module 11, this determination module 11 is provided with a monitoring unit 110, and whether monitor has updated data file to transmit; When having listened to the updated data file transmission, this judge module then starts its set search identification unit 111 that is equipped with, and whether this search identification unit 111 will be searched for has the updated data file that will just transmit to exist in the electronic equipment; Simultaneously, this determination module 11 also is provided with a layout unit 112, and the updated data file that is received is carried out identification and layout in order.
One memory module 12, immediate status information in these memory module 12 record updated data file transport process; Such as, the arrangement information of the updated data file of 11 pairs of transmission of this determination module, or the transmission quantity of the updated data file that transmits etc.
One temporary storage module 13 for the updated data file that begins to receive is created interim storage file, before the updated data file transmission does not finish, is preserved this updated data file always; And the interim storage file that will create after finishing receiving is converted to official document.
Monitoring unit 110 when determination module 11, listened to after updated data file begins to transmit, and the search of this determination module 11 identification unit 111 does not search the relative recording that just requires the updated data file that transmits, and the transmission of updated data file is formally set up; At first, this determination module 11 will send one and receive and to instruct this temporary storage module 13; This temporary storage module 13 is created an interim storage file at the updated data file that is receiving; Simultaneously, this determination module 11 will carry out identification and chronological order to the updated data file that begins to transmit, and these identifications and chronological order information are sent to this memory module 12 preservations; Receive beginning, this updated data file that has received will store in the interim storage file of establishment, finish receiving up to updated data file.
Search the relative recording that just requires the updated data file that transmits when the search of this determination module 11 identification unit 111, this determination module 11 will call the relevant information of recorded and stored in this memory module 12, according to the transmission of the uncompleted updated data file of these record continuation, finish until the updated data file transmission; Simultaneously, can check with the information that has been stored in the memory module 12 the updated data file information of this transmission, to guarantee the correctness of updated data file.
Fig. 2 is a method flow synoptic diagram of the present invention, as shown in the figure, a kind of renewal data guard method, the corresponding said system 10 of the method and establishing, the method step comprises:
A. the interim storage file that judges whether the updated data file that receives to some extent exists; If have, then, carry out step c according to the instant delivery status of record;
B. updated data file transmits beginning, creates an interim storage file; This temporary file is preserved before transmission is not finished always;
C. updated data file that identification received and chronological order; By this identification and chronological order, this updated data file of decidable is for transmitting or not transmitting; Simultaneously, can guarantee the correctness of the updated data file that transmitted.
D. write down the relevant information and the instant delivery status of updated data file;
E. updated data file transmits and finishes, and interim storage file is converted to official document, and renewal is finished.
Transmitting when carrying out as updated data file, at first, judge whether that the interim storage file of the updated data file that receives to some extent exists, is firstly to pass or retransmit by judging this updated data file of decision; Be to transmit first then to need newly-built interim storage file and preserve relevant information; Be to transmit then the transmission that continues last time according to keeping records once more, transmit finish after, convert interim storage file to after formal renewal file, renewal is finished.
When this kind mode is applied to the transmission of hand-held electronic equipment updated data file, can save a large amount of delivery times; For example, one GPS is connected to external device by USB, during updating map data, USB connects moment disconnection or external device outage, connect when transmitting once more, the map datum that has before transmitted still is kept among the GPS, need not to repeat once more to transmit, save the time, can guarantee the correctness of updated data file simultaneously.