Summary of the invention
Object of the present invention is a kind of method that proposes electronic installation, portable electronic devices, electronic system and be applied to it, it can utilize electronic installation, and for example, to the file of redaction (application program), compression produces variable package, to allow portable electronic devices carry out image renewal according to this variable package.In this, the file size that can avoid carrying out redaction in image renewal and legacy version is greater than the problem of the operating system memory body upper limit.So, can allow user utilize variable package to carry out needn't worrying that total credit union of the file size of redaction and legacy version surpasses the memory body maximum upper limit of operating system when image upgrades, and utilize download variable package (capacity is less) to save expenses of surfing Internet (that is save and download frequency range) and time.
According to an aspect of the present invention, propose a kind of variable package production method, variable package production method comprises the following steps: the first model file to carry out package, to produce the first model file package; Compress the first model file package to export a compression package; Compression package is added to the second model file; The second model file is carried out to package, to produce the second model file package; The second model file package is carried out to a differentiation processing to export a variable package.
According to a further aspect in the invention, propose a kind of method for updating program, this update method comprises the following steps: according to variable package and source file to be reduced into the second model file package; According to the second model file package, carrying out image for the first time upgrades with output squeezing package; Decompress compression package to export the first model file package; According to the first model file package, carrying out image for the second time upgrades.
According to of the present invention more on the other hand, a kind of method of utilizing variable package to carry out program updates is proposed, the method is applicable to electronic system, this electronic system comprises electronic installation and portable electronic devices, the method comprises the following steps: that electronic installation carries out package to the first model file, to produce the first model file package; Electronic installation compresses the first model file package with output squeezing package; Electronic installation adds the second model file by compression package; Electronic installation carries out package to the second model file, to produce the second model file package; Electronic installation carries out a differentiation processing with output variable package by the second model file package; Portable electronic devices according to variable package and source file to be reduced into the second model file package; Portable electronic devices carries out image for the first time according to the second model file package to be upgraded with output squeezing package; Portable electronic devices decompresses this compression package to export the first model file package; Portable electronic devices carries out image for the second time according to the first model file package to be upgraded.
According on the other hand of the present invention, a kind of electronic installation is proposed, comprise packet element, compression unit, file plug-in unit, variable package generation unit.Packet element is in order to the first model file is carried out to package, to produce the first model file package.Compression unit is in order to compress the first model file package to export a compression package.File plug-in unit adds the second model file by compression package, and packet element carries out package to the second model file, to produce the second model file package.Variable package generation unit carries out a differentiation processing with output variable package by the second model file package.
According on the other hand of the present invention, a kind of portable electronic devices is proposed, comprise decompression unit, reduction unit and updating block.Reduction unit according to variable package and source file to be reduced into the second model file package.Updating block carries out image for the first time according to the second model file package to be upgraded with output squeezing package, decompression unit is in order to this compression package that decompresses to export the first model file package, and updating block more upgrades in order to carry out image for the second time according to the first model file package.
According on the other hand of the present invention, a kind of electronic system is proposed, comprise electronic installation and portable electronic devices.Electronic installation comprises packet element, compression unit, file plug-in unit and variable package generation unit.Portable electronic devices comprises decompression unit, reduction unit and updating block.Packet element is in order to the first model file is carried out to package, to produce the first model file package.Compression unit is in order to compress the first model file package with output squeezing package.File plug-in unit adds the second model file by compression package, and packet element carries out package to the second model file, to produce the second model file package.Variable package generation unit carries out a differentiation processing with output variable package by the second model file package.Reduction unit according to variable package and source file to be reduced into the second model file package.Updating block carries out image for the first time according to the second model file package to be upgraded with output squeezing package, decompression unit decompresses this compression package to export the first model file package, and updating block more carries out image for the second time according to the first model file package to be upgraded.
Effect of the present invention is, the electronic installation of the embodiment of the present invention, portable electronic devices, electronic system and the method that is applied to it have utilize memory body maximum upper limit that variable package carries out can avoiding when image upgrades operating system with function.So, user utilize variable package carry out image more newly arrive save mail downloading charge use with the time in, also can be limited to the memory body maximum upper limit of operating system.So, compared to prior art, the electronic installation that the present invention is relevant, portable electronic devices, electronic system and be applied to its method, except can effectively avoiding utilizing variable package to carry out image while upgrading, the problem that surpasses the operating system maximal memory body upper limit, also can save the advantage of mail downloading charge with the time.
Below in conjunction with the drawings and specific embodiments, describe the present invention, but not as a limitation of the invention.
Embodiment
Below in conjunction with accompanying drawing, structural principle of the present invention and principle of work are described in detail:
The invention provides a kind of electronic installation, comprise packet element, compression unit, file plug-in unit and variable package generation unit.Packet element carries out package to the first model file, to produce the first model file package.Compression unit compresses the first model file package to export a compression package.File plug-in unit adds the second model file by compression package, and packet element carries out package to the second model file, to produce the second model file package.Variable package generation unit carries out a differentiation processing to export a variable package by the second model file package.
The invention provides a kind of portable electronic devices, comprise decompression unit, reduction unit and updating block.Reduction unit according to variable package and source file to be reduced into the second model file package.Updating block upgrades to export a compression package in order to carry out image for the first time according to the second model file package, decompression unit is in order to this compression package that decompresses to export the first model file package, and updating block more upgrades in order to carry out image for the second time according to the first model file package.Hereby the embodiment with the mutual application of electronic installation and portable electronic devices is described as follows.
Please refer to Fig. 1 and Fig. 2, the block scheme of the electronic system that Fig. 1 is embodiments of the invention.Fig. 2 is the process flow diagram of variable package production method that is applied to the electronic installation of Fig. 1.Electronic system 300 comprises electronic installation 200 and portable electronic devices 100.Electronic installation 200 comprises 210 packet elements, compression unit 230, file plug-in unit 240 and variable package generation unit 250.Packet element 210 is for example that file is carried out to package to produce file package.Compression unit 230 for example can compress file or file package, to reduce the capacity of file.File plug-in unit 250 is for example that the file after compression is added in other file.Variable package generation unit is with producing variable package (Delta Package).Electronic installation 200 is for example mobile computer, desktop PC, or has the device of similar processing power.
Portable electronic devices 100 comprises decompression unit 110, reduction unit 130 and updating block 150.Decompression unit 110 is the files that compressed in order to decompress.Reduction unit 130 be for example in order to according to variable package and source file to be reduced into a file package.Updating block 150 is for example to carry out image refresh routine.
As shown in Figure 2, in step S202,210 pairs of the first model files of packet element carry out package, to produce the first model file package.For instance, the first model file can be for example the file that electronic installation 200 comprises, and this file is for example application program, driver or its combination.Electronic installation 200 for example comprises source file, upgrade file, and electronic installation 200 also can compress to produce original compression file to source file.
Wherein, upgrade file is for example the redaction file of source file for this reason, and the first model file for example comprises upgrade file.For instance, this upgrade file and source file are to be application program, and this application program is to be for example multimedia short message service (Multimedia Messaging Service, MMS) application program, email application.
In step S204, compression unit 230 compression the first model file packages are to export a compression package.For instance, suppose that the first model file (upgrade file) capacity is very large, at electronic installation 200 output variable packages to allow portable electronic devices 100 carry out image while upgrading, have the problem of the maximal memory body upper limit that surpasses the operating system on portable electronic devices 100, if surpass this maximal memory body upper limit, 100 of portable electronic devices cannot utilize variable package to carry out image renewal.In this, in the present embodiment, the first model file package is compressed to avoid to the problem of the maximal memory body upper limit.
For instance, suppose that this maximal memory body upper limit is to be 32Mbyte, portable electronic devices 100 needs first backup source file (such as 17Mbyte) when utilizing variable package to carry out image renewal, if the capacity of the first model file package is to be 17Mbyte, now, if the first model file package is not compressed, can surpass the maximal memory body upper limit (such as being 32Mbyte) of operating system.
In step S206, file plug-in unit 250 adds the second model file by compression package.In step S208,210 pairs of the second model files of packet element carry out package, to produce the second model file package.Hereby describe for example step S206~208 in detail as follows.
For instance, suppose that a file can only carry out package one time, in above-mentioned step S202, the first model file (meaning is upgrade file) is carried out to package, it is compressed to produce compression package, while if desired the rear less compression package of file size of this compression being carried out to package, after need adding the second model file, just can carry out again the action of package processing, so can avoid operating system can only carry out to a file restriction of a package.This second model file is similar to the first above-mentioned model file, for example, be the file comprising in electronic installation 200.
In step S210, variable package generation unit 250 carries out a differentiation processing to export a variable package by the second model file package.For instance, this differentiation processing example contrasts the first model file package in source file (such as legacy version), original compression file or original compression file package and the second model file package (meaning is the upgrade file of redaction) in this way, to find out two file difference parts, and the i.e. variable package for this reason of this little difference.Because being takes out difference place, so the capacity of variable package is for very little.So, can allow user save network charges and time when utilizing general packet wireless service (General Packet Radio Service, GPRS) or other mode that need pay to download.
Further, this source file, original compression file or original compression file package are to be for example pre-stored in electronic installation 200.For instance, the packet element 210 of electronic installation 200 for example first carries out package to produce source file package to source file (such as the application program of legacy version).Then, compression unit 230 these source file packages of compression also add the source file package after compression in one model file, and packet element 210 carries out package to obtain original compression file package to this model file.Wherein, this model file is to be similar to first, second above-mentioned model file.
Please refer to Fig. 3, it is the part process flow diagram according to the variable package production method of Fig. 2.In an example, the variable package production method of the embodiment of the present invention is in front step S302~304 that also for example comprise of step S202.In step S302, variable package generation unit 250 judges whether the capacity of the first model file is greater than a predetermined volumes, if the capacity of the first model file is to be greater than predetermined volumes, carry out 210 pairs of the first model files of packet element and carry out package, to produce the step S304 of the first model file package; If the capacity of the first model file is less than predetermined volumes, re-execute step S302.
For instance, this predetermined volumes depends on the maximal memory body upper limit of operating system, and user can design this predetermined volumes according to different file types, also can adjust according to different operating system.
Please refer to Fig. 4, it is the process flow diagram of method for updating program that is applied to the portable electronic devices of Fig. 1.In step S402, reduction unit 130 is according to variable package and a source file, to be reduced into the second model file package.For instance, in this second model file, be for example to comprise above-mentioned upgrade file, this reducing program is for example that the file of variable package and legacy version (source document) is merged.Further, reduction unit 130 for example can be according to original compression file or original compression file package and variable package to reduce the second model file.
In step S404, updating block 150 carries out image for the first time according to the second model file package and upgrades to export a compression package.For instance, this image renewal is for the first time for example that portable electronic devices 100 upgrades built-in operating system after again starting shooting, and the operating system platform of getting back to portable electronic devices 100 after image upgrades, with output squeezing package.
In step S406, decompression unit 110 decompresses, and this compresses package, to export the first model file package.Wherein, this first model file for example comprises upgrade file.
In step S408, updating block 150 carries out image for the second time according to the first model file package to be upgraded.For instance, this image renewal is for the second time for example to carry out this upgrade file, to replace the file of the legacy version in portable electronic devices 100.Judge whether to carry out image upgrades for the second time mode can have many enforcement aspects for example the program of writing judge, or as by the file header of the first model file, judge, or can judge by the flag state of log file (register).
Please refer to Fig. 5, the part process flow diagram of its method for updating program that is Fig. 4.In an example, the step S404 of the variable package production method of the embodiment of the present invention also for example comprises step S502~508.
In step S502, updating block 150 carries out image for the first time to be upgraded.In step S504, updating block 150 judges whether successful image upgrades for the first time; When image is for the first time updated successfully, carry out updating block 150 according to the step S506 of the second model file package output squeezing package; When image for the first time upgrades unsuccessfully, carry out the step S508 of updating block 150 passback one fail messages.For instance, this fail message is for example the display unit (not illustrating) that transfers to electronic installation 200 or portable electronic devices 100, to inform that user's image upgrades unsuccessfully, again, the message kind that other can be used to inform user, also can be applicable in the present embodiment.
Please refer to Fig. 6, the part process flow diagram of its method for updating program that is Fig. 4.In an example, the step S408 of the variable package production method of the embodiment of the present invention also for example comprises step S602~604.
In step S602, updating block 150 carries out image for the second time to be upgraded.In step S604, judge that whether image renewal is for the second time successful, if image upgrades unsuccessfully for the second time, updating block 150 repeats image renewal for the second time; If shadow is updated successfully for the second time, process ends.
The packet element of the electronic installation of the present embodiment, compression unit, file plug-in unit and variable package generation unit are to utilize the mode of software or hardware to realize, and relatively the decompression unit of portable electronic devices, reduction unit and updating block are as the same.
The electronic installation of the above embodiment of the present invention, portable electronic devices, electronic system and be applied to its method, the effect having is as follows.The electronic installation of the embodiment of the present invention, portable electronic devices, electronic system and the method that is applied to it have utilize memory body maximum upper limit that variable package carries out can avoiding when image upgrades operating system with function.So, user utilize variable package carry out image more newly arrive save mail downloading charge use with the time in, also can be limited to the memory body maximum upper limit of operating system.So, compared to prior art, the electronic installation that the present invention is relevant, portable electronic devices, electronic system and be applied to its method, except can effectively avoiding utilizing variable package to carry out image while upgrading, the problem that surpasses the operating system maximal memory body upper limit, also can save the advantage of mail downloading charge with the time.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.