The content of the invention
The embodiments of the invention provide a kind of upgrade method of intelligent appliance and device, intelligent appliance failure can be reduced
Probability.
In a first aspect, the embodiments of the invention provide a kind of upgrade method of intelligent appliance, including:
The system upgrade bag of intelligent appliance is obtained, and the system upgrade bag is stored to default backup subregion;
To store to the system upgrade bag setting upgrading mark of the backup subregion;
Also include:
In this described intelligent appliance of startup, detect that the upgrading of the system upgrade bag identifies whether to characterize the intelligence
Can household electrical appliances fail upgrading power-off mark;
When detect it is described upgrading be designated it is described power-off mark when, according to the system for being stored in the backup subregion
AKU, upgrades to the intelligent appliance.
Preferably,
After the system upgrade bag of the acquisition intelligent appliance, the system upgrade bag is stored to default described
Before backup subregion, further comprise:
The corresponding copy mark of the system upgrade bag obtained is set;
The system upgrade bag is stored to default backup subregion described, further comprised:
Delete the corresponding copy mark of the system upgrade bag.
Preferably,
Identify whether to fail upgrading to characterize the intelligent appliance in the upgrading of the detection system upgrade bag
Power-off mark before, further comprise:
The corresponding copy mark of the system upgrade bag is judged whether, if it is, performing A1 and A2, is otherwise performed
A2;
A1:The system upgrade bag of acquisition is stored to the default backup subregion;
A2:Detect that the upgrading of the system upgrade bag identifies whether to fail the disconnected of upgrading to characterize the intelligent appliance
Electricity mark.
Preferably,
The system upgrade bag is stored to default backup subregion described, further comprised:
Determine with the presence or absence of the AKU prestored in the default backup subregion, if it is, prestored described in deleting
AKU.
Preferably,
The default partition holding includes:It is arranged on the storage region in non-volatile memory medium.
Second aspect, the embodiments of the invention provide a kind of update device of intelligent appliance, including:Memory cell, setting
Unit and upgrade unit;Wherein,
The memory cell, the system upgrade bag for obtaining intelligent appliance, and the system upgrade bag is stored to pre-
If backup subregion;
The setting unit, for being stored for the memory cell to the system upgrade bag setting of the backup subregion
Upgrading mark;
The upgrade unit, in this described intelligent appliance of startup, detecting the upgrading mark of the system upgrade bag
Whether know is to characterize the intelligent appliance to fail the power-off mark of upgrading;The power-off is designated when detecting the upgrading
During mark, stored according to the memory cell to the system upgrade bag of the backup subregion, the intelligent appliance is carried out
Upgrading.
Preferably,
The memory cell, is further used for after the system upgrade bag is got, by the system upgrade bag
Store to before default backup subregion, the corresponding copy mark of the system upgrade bag is set;By the system upgrade bag
Store to default backup subregion, delete the corresponding copy mark of the system upgrade bag.
Preferably,
The upgrade unit, is further used for before detecting that the upgrading identifies whether as the power-off mark, judges
With the presence or absence of the corresponding copy mark of the system upgrade bag, if it is, triggering the memory cell;Otherwise the inspection is performed
The upgrading for surveying the system upgrade bag identifies whether to fail the power-off mark of upgrading to characterize the intelligent appliance.
Preferably,
The memory cell, is further used for storing to the backup subregion by the system upgrade bag, it is determined that
It whether there is default AKU in the default backup subregion, if it is, the AKU prestored described in deleting.
Preferably,
The default partition holding includes:It is arranged on the storage region in non-volatile memory medium.
The embodiments of the invention provide a kind of upgrade method of intelligent appliance and device, by getting system upgrade bag
Afterwards, system upgrade bag default backup subregion has been backed up into so that when intelligent appliance fails upgrading, using standby
The system upgrade bag stored in part subregion, upgrades to intelligent appliance, so as to avoid intelligent appliance because upgrading is not completed
Caused control system failure, and then reduce the probability of intelligent appliance failure.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of upgrade method of intelligent appliance, this method can include following
Step:
Step 101:The system upgrade bag of intelligent appliance is obtained, and the system upgrade bag is stored to default backup point
Area;
Step 102:To store to the system upgrade bag setting upgrading mark of the backup subregion;
Step 103:In this described intelligent appliance of startup, detect that the upgrading of the system upgrade bag is identified whether as table
Levy the intelligent appliance fail upgrading power-off mark;
Step 104:When detecting the upgrading and being designated the power-off mark, according to being stored in the backup subregion
The system upgrade bag, upgrades to the intelligent appliance.
In above-described embodiment, after the system upgrade bag of intelligent appliance is got, system upgrade bag is stored to default
Backup subregion, and for storage to backup subregion system upgrade bag set upgrading identify.In this startup intelligent appliance, when
Detect system upgrade bag upgrading be designated characterize intelligent appliance fail upgrading power-off mark when, it is standby according to being stored in
The system upgrade bag of part subregion, upgrades to intelligent appliance.Due to after system upgrade bag is got, by system upgrade bag
Default backup subregion is backed up to so that when intelligent appliance fails upgrading, be using what is stored in backup subregion
System AKU, upgrades to intelligent appliance, so as to avoid control system event caused by intelligent appliance is not completed due to upgrading
Barrier, and then reduce the probability of intelligent appliance failure.
In one embodiment of the invention, after the system upgrade bag of the acquisition intelligent appliance, described by the system
System AKU is stored to before default backup subregion, may further include:
The corresponding copy mark of the system upgrade bag obtained is set;
After step 101, it may further include:
Delete the corresponding copy mark of the system upgrade bag.
For example, default backup subregion is in memory block A, and the system upgrade bag downloaded to is deposited according to default store path
Store up to memory block B, then after the completion of the download of system upgrade bag, the system upgrade bag for being memory block B sets copy mark, when will deposit
Storage area B system upgrade bag is stored to after the A of memory block by modes such as copies, the copy mark of deletion system AKU, is said
Bright system upgrade bag has successfully been stored to default backup subregion.It is noted that when the system upgrade bag downloaded directly is deposited
When storing up to memory block A, then deleted again after corresponding copy mark need not be set for system upgrade bag, to improve upgrading efficiency.
Correspondingly, in one embodiment of the invention, before step 103, it may further include:
The corresponding copy mark of the system upgrade bag is judged whether, if it is, performing A1 and A2, is otherwise performed
A2;
A1:The system upgrade bag of acquisition is stored to the default backup subregion;
A2:Detect that the upgrading of the system upgrade bag identifies whether to fail the disconnected of upgrading to characterize the intelligent appliance
Electricity mark.
Herein, before whether detection intelligent appliance successfully upgrades, judge that the corresponding copy mark of system upgrade bag is
It is no to still have, if it is, explanation system upgrade bag fails and stored to default backup subregion, now again by system
AKU is stored to default backup subregion, after storing successfully, then the upgrading of detecting system AKU identifies whether to characterize intelligence
Can household electrical appliances fail upgrading power-off mark, if it is, using the system upgrade bag of backup subregion, entering to intelligent appliance
Row upgrading.Thus, can avoid storing to backup subregion because system upgrade bag fails, caused by fail when smart home
When success is upgraded, no available system AKU is upgraded again, so as to reduce further the machine of smart home failure
Rate.
In order to save in memory space, one embodiment of the invention, after step 101, it may further include:
Determine with the presence or absence of the AKU prestored in the default backup subregion, if it is, prestored described in deleting
AKU.
When intelligent appliance dispatches from the factory, system upgrade can be packed and be made file system mirror by producer, and is burnt to standby
In part subregion.When user in use, intelligent appliance gets new system upgrade bag, and is stored to backup subregion
Afterwards, then the AKU originally stored in backup subregion can be deleted.Circulated with this, being then only stored with backup subregion newest is
System AKU, this aspect can save memory space, and intelligent appliance on the other hand can be made in each upgrading, be all using newest
System upgrade bag upgraded so that be conducive to improve intelligent appliance performance.
Removed by mistake to prevent the system upgrade in backup subregion to be coated with, it is described default in one embodiment of the invention
Partition holding includes:It is arranged on the storage region in non-volatile memory medium.
Below exemplified by upgrading to intelligent refrigerator, the upgrade method to intelligent appliance provided in an embodiment of the present invention is entered
Row is described in detail, as shown in Fig. 2 this method may comprise steps of:
Step 201:The system upgrade bag of intelligent refrigerator is obtained, and corresponding copy mark is set for the system upgrade bag
Know.
Stored for example, downloading to the system upgrade bag of intelligent refrigerator according to default store path to memory block A, then to deposit
Storage area A system upgrade bag sets corresponding copy mark.
Step 202:The system upgrade bag is stored to default backup subregion, and deletes the system upgrade bag correspondence
Copy mark, and the AKU prestored in backup subregion.
For example, default backup subregion is memory block B, deposited when by memory block A system upgrade bag by modes such as copies
Store up to after the B of memory block, the copy mark of deletion system AKU illustrates that system upgrade bag has successfully been stored to backup subregion.
Meanwhile, the old system upgrade bag prestored in backup subregion is deleted, to save memory space.
Step 203:To store to the system upgrade bag setting upgrading mark of the backup subregion.
Step 204:In this startup intelligent refrigerator, the corresponding copy mark of system upgrade bag is judged whether, such as
Fruit is then to perform step 205, otherwise performs step 206.
Step 205:The system upgrade bag is stored to default backup subregion again, and deletes the copy mark.
If the corresponding copy mark of system upgrade bag still has, illustrate that system upgrade bag fails and store to default
Backup subregion, now system upgrade bag is stored to default backup subregion again.
Step 206:Judge that the upgrading of the system upgrade bag identifies whether the liter that failed for the sign intelligent refrigerator
The power-off mark of level, if it is, performing step 207, otherwise performs step 208.
Step 207:According to the system upgrade bag for being stored in the backup subregion, the intelligent refrigerator is risen
Level, after the completion of upgrading, deletes the power-off mark.
Herein, intelligent refrigerator fail upgrading when, using the system upgrade bag stored in backup subregion, to intelligence
Household electrical appliances are upgraded
Step 208:Restart the intelligent refrigerator, so that the system of the intelligent refrigerator enters normal mode, start working.
In above-described embodiment, due to after system upgrade bag is got, system upgrade bag having been backed up to default standby
Part subregion so that when intelligent appliance fails upgrading, using the system upgrade bag stored in backup subregion, to intelligent family
Electricity is upgraded, so as to avoid control system failure caused by intelligent appliance is not completed due to upgrading, and then reduces intelligence
The probability that household electrical appliances break down.
As shown in figure 3, the embodiments of the invention provide a kind of update device of intelligent appliance, including:Memory cell 301,
Setting unit 302 and upgrade unit 303;Wherein,
The memory cell 301, the system upgrade bag for obtaining intelligent appliance, and by the system upgrade bag store to
Default backup subregion;
The setting unit 302, for being stored for the memory cell 301 to the system upgrade of the backup subregion
Bag sets upgrading mark;
The upgrade unit 303, in this described intelligent appliance of startup, detecting that the setting unit 302 is set
The upgrading of system upgrade bag identify whether to fail the power-off mark of upgrading to characterize the intelligent appliance;When detecting
State upgrading be designated it is described power-off mark when, stored according to the memory cell 301 to the system liter of the backup subregion
Level bag, upgrades to the intelligent appliance.
In above-described embodiment, after the system upgrade bag of intelligent appliance is got, system upgrade bag is stored to default
Backup subregion, and for storage to backup subregion system upgrade bag set upgrading identify.In this startup intelligent appliance, when
Detect system upgrade bag upgrading be designated characterize intelligent appliance fail upgrading power-off mark when, it is standby according to being stored in
The system upgrade bag of part subregion, upgrades to intelligent appliance.Due to after system upgrade bag is got, by system upgrade bag
Default backup subregion is backed up to so that when intelligent appliance fails upgrading, be using what is stored in backup subregion
System AKU, upgrades to intelligent appliance, so as to avoid control system event caused by intelligent appliance is not completed due to upgrading
Barrier, and then reduce the probability of intelligent appliance failure.
In one embodiment of the invention, the memory cell 301, be further used for get the system upgrade bag it
Afterwards, stored by the system upgrade bag to before default backup subregion, the corresponding copy mark of the system upgrade bag is set
Know;Stored by the system upgrade bag to default backup subregion, delete the corresponding copy mark of the system upgrade bag
Know.
For example, default backup subregion is in memory block A, and the system upgrade bag downloaded to is deposited according to default store path
Store up to memory block B, then after the completion of the download of system upgrade bag, the system upgrade bag for being memory block B sets copy mark, when will deposit
Storage area B system upgrade bag is stored to after the A of memory block by modes such as copies, the copy mark of deletion system AKU, is said
Bright system upgrade bag has successfully been stored to default backup subregion.It is noted that when the system upgrade bag downloaded directly is deposited
When storing up to memory block A, then deleted again after corresponding copy mark need not be set for system upgrade bag, to improve upgrading efficiency.
Correspondingly, in one embodiment of the invention, the upgrade unit 303 is further used for detecting the upgrading mark
Whether know is before the power-off is identified, the corresponding copy mark of the system upgrade bag to be judged whether, if it is, touching
Send out memory cell described;Otherwise the upgrading for performing the detection system upgrade bag identifies whether to characterize the intelligent appliance
Fail upgrading power-off mark.
Herein, before whether detection intelligent appliance successfully upgrades, judge that the corresponding copy mark of system upgrade bag is
It is no to still have, if it is, explanation system upgrade bag fails and stored to default backup subregion, now again by system
AKU is stored to default backup subregion, after storing successfully, then the upgrading of detecting system AKU identifies whether to characterize intelligence
Can household electrical appliances fail upgrading power-off mark, if it is, using the system upgrade bag of backup subregion, entering to intelligent appliance
Row upgrading.Thus, can avoid storing to backup subregion because system upgrade bag fails, caused by fail when intelligent appliance
When success is upgraded, no available system AKU is upgraded again, so as to reduce further the machine of intelligent appliance failure
Rate.
In order to save in memory space, one embodiment of the invention, the memory cell 301 is further used for by institute
State system upgrade bag to store to the backup subregion, determine to whether there is default upgrading in the default backup subregion
Bag, if it is, the AKU prestored described in deleting.
When intelligent appliance dispatches from the factory, system upgrade can be packed and be made file system mirror by producer, and is burnt to standby
In part subregion.When user in use, intelligent appliance gets new system upgrade bag, and is stored to backup subregion
Afterwards, then the AKU originally stored in backup subregion can be deleted.Circulated with this, being then only stored with backup subregion newest is
System AKU, this aspect can save memory space, and intelligent appliance on the other hand can be made in each upgrading, be all using newest
System upgrade bag upgraded so that be conducive to improve intelligent appliance performance.
Removed by mistake to prevent the system upgrade in backup subregion to be coated with, it is described default in one embodiment of the invention
Partition holding includes:It is arranged on the storage region in non-volatile memory medium.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
Present invention also offers a kind of computer-readable recording medium, including execute instruction, when described in the computing device of storage control
During execute instruction, the storage control performs the method that any of the above-described embodiment of the invention is provided.
In addition, present invention also offers a kind of storage control, including:Processor, memory and bus;The memory
For storing execute instruction, the processor is connected with the memory by the bus, when storage control operation
When, the execute instruction of memory storage described in the computing device, so that the storage control is performed in the present invention
The method that any embodiment offer is provided.
In summary, each embodiment of the invention at least has the advantages that:
1st, in embodiments of the present invention, after the system upgrade bag of intelligent appliance is got, system upgrade bag is stored
To default backup subregion, and for the system upgrade bag of storage to backup subregion, upgrading mark is set.In the intelligent family of this startup
When electric, when the upgrading for detecting system upgrade bag be designated characterize intelligent appliance fail upgrading power-off mark when, according to
The system upgrade bag of backup subregion is stored in, intelligent appliance is upgraded.Due to after system upgrade bag is got, will be
System AKU has backed up to default backup subregion so that when intelligent appliance fails upgrading, using in backup subregion
The system upgrade bag of storage, upgrades to intelligent appliance, is controlled so as to avoid caused by intelligent appliance is not completed due to upgrading
The system failure processed, and then reduce the probability of intelligent appliance failure.
2nd, in embodiments of the present invention, after system upgrade bag is got, for the system upgrade bag setting pair got
The copy mark answered, system upgrade bag is being stored to default backup subregion, deletes corresponding copy mark.And
Before detecting whether intelligent appliance successfully upgrades, judge that the corresponding copy of system upgrade bag identifies whether to still have, if it is,
Then system upgrade bag is stored to default backup subregion again.Thus, it can avoid because system upgrade bag fails storage
To backup subregion, caused by when intelligent appliance fails and upgraded, no available system AKU is upgraded again so that
It reduce further the probability of intelligent appliance failure.
3rd, in embodiments of the present invention, the new system upgrade bag got is stored to backup subregion, deleted standby
The old system upgrade bag prestored in part subregion so that the system upgrade bag for being only stored with newest in backup subregion, this aspect
Memory space can be saved, on the other hand can make intelligent appliance in each upgrading, is all to utilize newest system upgrade bag progress
Upgrading, so as to be conducive to improving the performance of intelligent appliance.
4th, in embodiments of the present invention, backup subregion is arranged on the storage region in non-volatile memory medium, can prevent
System upgrade coating in backup subregion is removed by mistake.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply exist between these entities or operation
Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements,
But also other key elements including being not expressly set out, or also include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged
Except also there is other identical factor in the process including the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in the storage medium of embodied on computer readable, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention,
Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.