The content of the invention
Technical problem to be solved of the embodiment of the present invention is there is provided a kind of method for restarting of electric equipment and device,
The user's request so that restarting process is fully fitted, and effectively reduce reboot time and power consumption.
In order to solve the above-mentioned technical problem, the embodiment of the present invention proposes a kind of method for restarting of electric equipment, including:
When the electric equipment, which enters, restarts, detection is located at the default flag bit in the domain of target storage;Wherein, institute
Default flag bit is stated to write when the electric equipment is in holding state;
When detecting the default flag bit, that detects the electric equipment restarts reason;
When detect it is described restart reason for non-power-off restarting when, non-essential Booting sequence is skipped, to start the electricity
Device equipment;
The working condition of the electric equipment is carried out according to the current operating parameter stored in the target storage domain
Set, to complete to restart;Wherein, the current operating parameter is that last time writes when the electric equipment is in holding state
Operational factor.
Preferably, described when the electric equipment enters and restarted, detection is located at default in the domain of target storage
Before flag bit, in addition to:
When the electric equipment is in holding state, by the real-time fortune of the default flag bit and the electric equipment
Target storage domain described in row parameter read-in.
Preferably, the non-essential Booting sequence with user in the electric equipment start-up course including having what is interacted
Flow.
Preferably, it is described according to work of the current operating parameter stored in the target storage domain to the electric equipment
It is configured, to complete to restart, specifically includes as state:
The working condition of the electric equipment is carried out according to the current operating parameter stored in the target storage domain
Set;
The electric equipment is controlled to enter holding state, to complete to restart.
Preferably, the method for restarting also includes:
Reason is restarted for power-off restarting when detect the electric equipment, or the electric equipment is in the standby state
When being waken up, the default flag bit in the target area is removed.
Correspondingly, the embodiment of the present invention also provides a kind of rebooting device of electric equipment, including:
Flag bit detection module, for when the electric equipment enters and restarted, detection to be located in the domain of target storage
Default flag bit;Wherein, the default flag bit writes when the electric equipment is in holding state;
Reason detection module is restarted, for when detecting the default flag bit, detecting the weight of the electric equipment
Open reason;
Equipment starting module, for when detect it is described restart reason for non-power-off restarting when, skip non-essential startup
Flow, to start the electric equipment;And,
Working condition setup module, for according to the current operating parameter stored in the target storage domain to the electricity
The working condition of device equipment is configured, to complete to restart;Wherein, the current operating parameter is in for the electric equipment and treated
The operational factor of last time write-in during machine state.
Preferably, the rebooting device also includes:
Parameter read-in module, for when the electric equipment is in holding state, by the default flag bit and institute
State target storage domain described in the real time execution parameter read-in of electric equipment.
Preferably, the non-essential Booting sequence with user in the electric equipment start-up course including having what is interacted
Flow.
Preferably, the working condition setup module, is specifically included:
Working condition setting unit, for according to the current operating parameter stored in the target storage domain to the electricity
The working condition of device equipment is configured;And,
Holding state setting unit, for controlling the electric equipment to enter holding state, to complete to restart.
Preferably, in addition to:
Indicate bit clear module, for restarting reason when detect the electric equipment for power-off restarting, or it is described
When electric equipment is waken up in the standby state, the default flag bit in the target area is removed.
Implement the embodiment of the present invention, have the advantages that:
The method for restarting and device of electric equipment provided in an embodiment of the present invention, by electric equipment enter restart when,
Default flag bit when detection device is in holding state in write-in target storage domain, and detecting default mark
Position, and detect equipment restart reason for non-power-off restarting when, that is, judge equipment be to be led because breaking down in the standby state
What is caused restarts, and when restarting of non-user manual operation, directly skips non-essential Booting sequence, with starting device, and then, then
Work of the operational factor of last time write-in to equipment when being in holding state according to the equipment stored in the domain of target storage
State is configured, to complete to restart.It can be seen that, after completing to restart, equipment continues to transport by directly with the working condition before restarting
OK, additionally set without user so that restarting process is fully fitted user's request, also, directly skip and non-essential start stream
Journey, only performs Booting sequence necessary to equipment starts, can efficiently reduce reboot time and power consumption.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Referring to Fig. 1, being the schematic flow sheet of one embodiment of the method for restarting for the electric equipment that the present invention is provided.This
The method for restarting for the electric equipment that inventive embodiments are provided, when it is implemented, can by electric equipment computing device, and extremely
Comprise the following steps less:
S11, when the electric equipment enter restart when, detection be located at target storage domain in default flag bit;Its
In, the default flag bit writes when the electric equipment is in holding state;
It should be noted that electric equipment is carries the electrical equipment of operating system, as carried Android intelligence systems
The home appliance such as lampblack absorber and refrigerator.In actual use, if within the default time, electric equipment does not detect user couple
Its control operation, then automatically into holding state, or, electric equipment detects user and triggers standby button (display circle
Virtual function buttons or physical button on face), then into holding state.In addition, for the electrical equipment with display screen
Equipment, typically when it is in holding state, its display screen is OFF state.
It should be noted that when it is implemented, electric equipment be in holding state when, by default flag bit and electrical equipment
The real time execution parameter read-in target storage domain of equipment.Wherein, target storage domain refers to what is reserved in Flash holders
Data content in one piece of storage region, the storage region will not be automatically eliminated during the normal use of electric equipment
Or modification.
It should be noted that electric equipment is before restarting, holding state is likely to be at, it is also possible in wake-up shape
State, if the situation of wake-up states, is then particularly likely that restarting for user's manual operation generation, then need not skip non-essential open
Dynamic flow and the working condition for after system start-up returning to the working condition of electric equipment before restarting.Therefore, in this hair
In bright embodiment, when electric equipment, which enters, restarts, first detect whether there is default flag bit in the domain of target storage, then root
Select different to restart flow according to testing result.Specifically, if detecting has default flag bit in the domain of target storage,
It is to be in holding state before restarting to illustrate electric equipment, rather than wake-up states, then needs further to perform step
S12。
In addition it is also necessary to which explanation, does not have default flag bit if detecting, illustrates electricity in the domain of target storage
Device equipment is in wake-up states before restarting, then the acquiescence Booting sequence of electric equipment can be performed, without performing again
Step S12.
S12, when detecting the default flag bit, that detects the electric equipment restarts reason;
In embodiments of the present invention, when detecting in the domain of target storage with default flag bit, further examine
The reason for electricity measurer equipment is currently restarted, and selected according to further testing result different to restart flow again.In reality
In, what is occurred when electric equipment is in holding state restarts, it may be possible to extraneous electromagnetic interference or internal processes mistake etc.
That triggers restarts, or is powered off restarting for initiation, and the artificial power cutoff of such as user recloses power supply again, and (such as user is carried out
Power-down reset operation).It should be noted that because of extraneous electromagnetic interference or inside when generally electric equipment is in holding state
When the initiation such as program error is restarted, electric equipment will not be powered off, therefore, and reason is restarted for non-power-off restarting when further detecting
When, then it can be assumed that this is restarted for electric equipment during in holding state because of extraneous electromagnetic interference or internal processes mistake etc.
That triggers restarts.
S13, when detect it is described restart reason for non-power-off restarting when, non-essential Booting sequence is skipped, to start
State electric equipment;
In embodiments of the present invention, when detecting when restarting reason for non-power-off restarting of electric equipment, then this is illustrated
Restart restarting because of initiations such as extraneous electromagnetic interferences or internal processes mistake, Jin Erzhi when being in holding state for electric equipment
Connect and skip non-essential Booting sequence, i.e., there is the flow interacted with user in electric equipment start-up course, set with completing electrical equipment
Standby system starts.In addition, it is necessary to explanation, it is only that the system for completing electric equipment starts to go to this step, and
The restarting process of non-electric equipment.
Furthermore, it is necessary to which explanation, when detecting when restarting reason for power-off restarting of electric equipment, then illustrates that this is heavy
Open is that the artificial power cutoff of such as user recloses power supply again because of restarting that power-off triggers when electric equipment is in holding state
What (power-down reset operation that such as user is carried out) triggered restarts, in this case, then performs the acquiescence Booting sequence of electric equipment
, without skipping non-essential Booting sequence and need not be further continued for performing step S14.
It should be noted that the mode that reason is restarted in electric equipment detection has a variety of, for example, inquiry power management chip
Whether there is power-off to record in (PMU, Power Management Unit), or, can be with for the electric equipment without battery
The current potential situation of some specific capacitor devices, can also detect real-time timepiece chip (RTC, Real-Time in enquiry circuit
Clock time in) whether reset to defaults etc., the concrete mode that reason is restarted in detection is prior art, is not added with herein
Repeat.
As can be seen here, the embodiment of the present invention can fully fit the use habit of user, be effectively improved electric equipment
Degree of intelligence and service efficiency.
S14, according to working condition of the current operating parameter stored in the target storage domain to the electric equipment
It is configured, to complete to restart;Wherein, the current operating parameter is last time when the electric equipment is in holding state
The operational factor of write-in.
It should be noted that when electric equipment is in holding state, by the real time execution parameter read-in mesh of electric equipment
Storage region is marked, i.e., the real time execution parameter that electric equipment is under holding state is repeatedly write based on default frequency.Also,
It is understood that the operational factor correspondence of last time write-in restarts preceding electrical equipment when electric equipment is in holding state
The final working condition of equipment.
In embodiments of the present invention, after the system for completing electric equipment starts, stored further according in the domain of target storage
Current operating parameter (i.e. electric equipment be in holding state when last time write-in operational factor) to the electric equipment
Working condition be configured, to complete restarting for electric equipment so that electric equipment can after restarting still with weight
Final working condition operation before opening.For example, being completed in electric equipment after system starts, according to operational factor by its current work
The final working condition of electric equipment before the restart is reverted to as state, for example, the switch shape of each road relay of lampblack absorber
Operational tapses of state and blower fan etc., or user is to the personal settings of electric equipment, such as design temperature of each icehouse of refrigerator
With setting alarm clock etc..
The method for restarting of electric equipment provided in an embodiment of the present invention, by the way that when electric equipment enters and restarted, detection is set
It is standby to be in the default flag bit write during holding state in the domain of target storage, and detecting default flag bit, and inspection
Measure equipment restart reason for non-power-off restarting when, that is, judge equipment be because caused by breaking down in the standby state weigh
Open, and when restarting of non-user manual operation, non-essential Booting sequence is directly skipped, with starting device, and then, further according to mesh
The operational factor of last time write-in is entered to the working condition of equipment when the equipment stored in mark storage region is in holding state
Row is set, to complete to restart.It can be seen that, after completing to restart, equipment is continued to run with directly with the working condition before restarting, without
User is additionally set so that restarting process is fully fitted user's request, also, directly skips non-essential Booting sequence, only
Booting sequence necessary to equipment starts is performed, reboot time and power consumption can be efficiently reduced.
For further the solution of the present invention is described in detail, hereafter some currently preferred embodiments of the present invention is entered
Row is specifically described or illustrated.
On the basis of above-described embodiment, in a preferred embodiment, described when the electric equipment enters weight
Qi Shi, detection is located at before the default flag bit in the domain of target storage, in addition to:
When the electric equipment is in holding state, by the real-time fortune of the default flag bit and the electric equipment
Target storage domain described in row parameter read-in.
In embodiments of the present invention, may be because of extraneous electromagnetism when it is implemented, when electric equipment works in holding state
Interference or internal processes mistake etc., which trigger, restarts, therefore, and before electric equipment enters and restarted, electric equipment is in holding state
Shi Huixian is by the real time execution parameter read-in target storage domain of default flag bit and electric equipment.Wherein, electric equipment
During in holding state, the real time execution parameter read-in target storage domain of electric equipment can be based on default frequency
Repeatedly write-in electric equipment is in the real time execution parameter under holding state, it is to be understood that electric equipment is in standby shape
The final working condition of electric equipment before the operational factor correspondence of last time write-in during state is restarted.In addition, for pre-
If flag bit write-in, it is preferable that once electric equipment enters holding state, i.e., write into target storage domain default
Flag bit, also, under once lasting holding state, it is only necessary to once default flag bit is write, until electric equipment exists
When being waken up under holding state, the default flag bit in target area is removed, until entering holding state next time, is write again
Enter default flag bit.
On the basis of any of the above-described embodiment, in a preferred embodiment, the non-essential Booting sequence bag
Include in the electric equipment start-up course with user in the presence of the flow interacted.
In embodiments of the present invention, there is the flow interacted with user to refer to and user can be made to perceive electric equipment
Occurred the flow restarted.In other words, if electric equipment is in restarting process, such as startup music, start is performed and welcomes boundary
The above-mentioned any one or more Booting sequence interacted with user's presence such as face and start guide, user is possible to perceive electricity
Device equipment occurred to restart.Therefore, when electric equipment works in holding state because extraneous electromagnetic interference or internal processes is wrong
In the restarting process of initiation such as mistake, non-essential Booting sequence is directly skipped, electric equipment is started in the way of one is simplified
System, on the one hand can reduce user and perceive electric equipment the probability restarted occurred in the standby state, on the other hand
Reboot time and power consumption can be efficiently reduced.
It is in a preferred embodiment, described according to the target storage on the basis of any of the above-described embodiment
The current operating parameter stored in domain is configured to the working condition of the electric equipment, to complete to restart, is specifically included:
The working condition of the electric equipment is carried out according to the current operating parameter stored in the target storage domain
Set;
The electric equipment is controlled to enter holding state, to complete to restart.
In embodiments of the present invention, completed according to the current operating parameter stored in the domain of target storage to electric equipment
Current operating state setting after, i.e. by the current operating state of electric equipment adjust to in the domain of target storage store
The corresponding state of current operating parameter after, and then control apparatus equipment enters holding state again, to complete electric equipment
Restart.For example, user uses intelligent range hood during cooking, user has been fried after dish, and lampblack absorber is reached into minimum gear
Sucked away oil smoke, and lampblack absorber is entered death of monks or nuns screen holding state, user is left behind kitchen, if lampblack absorber system is by unknown dry
Disturb and restart, then all flows in the method for restarting that computing device the present embodiment of lampblack absorber is provided so that oil smoke
Machine is run with the final working condition before restarting, and reenters the screen holding state that goes out, when user turns again to kitchen,
Lampblack absorber before this is then detectable to occur restarting.It can be seen that, the embodiment of the present invention can further reduce user and perceive equipment
The probability restarted occurred in the standby state, Consumer's Experience is enhanced.
On the basis of any of the above-described embodiment, in a preferred embodiment, in addition to:
Reason is restarted for power-off restarting when detect the electric equipment, or the electric equipment is in the standby state
When being waken up, the default flag bit in the target area is removed.
It should be noted that in actual applications, when electric equipment is in holding state, user can call out as needed
Awake electric equipment so that electric equipment completes corresponding function.Accordingly, the weight for occurring during the use of user
Open, if skipping non-essential Booting sequence, and the current operating state of electric equipment be set to the state before restarting, it is clear that
The use habit of user is not met.Therefore, in embodiments of the present invention, when electric equipment is waken up in the standby state, then
Remove the default flag bit in target area, when restarting, do not have flag bit in target area due to detecting, then can be with
Restart electric equipment according to the flow of restarting of acquiescence.
In addition, it should also be noted that, the storage characteristics based on Flash, when electric equipment is powered off, target storage
Default flag bit in domain will not be removed automatically.As can be seen here, if restarting reason detect electric equipment for power-off restarting,
And before the system of electric equipment also starts not successfully, electric equipment is restarted again because of unknown disturbances, in this process,
What is once occurred later restarts for non-power-off restarting, then may in restarting once later, perform above-mentioned steps S13 and its it
Step afterwards, it is clear that this does not meet the use habit of user, generally in this case, is desirable to that weight occurs again more user
Electric equipment is restarted according to the flow of restarting of acquiescence when opening.Therefore, the embodiment of the present invention is power-off weight detecting electric equipment
Default flag bit is just removed when opening, so be ensure that when restarting again in these cases, electric equipment can be by
Flow of restarting according to acquiescence is restarted, rather than perform above-mentioned steps S13 and its afterwards the step of.
Correspondingly, the embodiment of the present invention also provides a kind of rebooting device of electric equipment, for performing above-described embodiment institute
All flows in the method for restarting of the electric equipment of offer.
Referring to Fig. 2, being the structural representation of one embodiment of the rebooting device for the electric equipment that the present invention is provided.This
The rebooting device for the electric equipment that embodiment is provided includes:
Flag bit detection module 11, for when the electric equipment enters and restarted, detection to be located in the domain of target storage
Default flag bit;Wherein, the default flag bit writes when the electric equipment is in holding state;
Reason detection module 12 is restarted, for when detecting the default flag bit, detecting the electric equipment
Restart reason;
Equipment starting module 13, for when detect it is described restart reason for non-power-off restarting when, skip non-essential open
Dynamic flow, to start the electric equipment;And,
Working condition setup module 14, for according to the current operating parameter stored in the target storage domain to described
The working condition of electric equipment is configured, to complete to restart;Wherein, the current operating parameter is that the electric equipment is in
The operational factor of last time write-in during holding state.
The rebooting device of electric equipment provided in an embodiment of the present invention, by the way that when electric equipment enters and restarted, detection is set
It is standby to be in the default flag bit write during holding state in the domain of target storage, and detecting default flag bit, and inspection
Measure equipment restart reason for non-power-off restarting when, that is, judge equipment be because caused by breaking down in the standby state weigh
Open, and when restarting of non-user manual operation, non-essential Booting sequence is directly skipped, with starting device, and then, further according to mesh
The operational factor of last time write-in is entered to the working condition of equipment when the equipment stored in mark storage region is in holding state
Row is set, to complete to restart.It can be seen that, after completing to restart, equipment is continued to run with directly with the working condition before restarting, without
User is additionally set so that restarting process is fully fitted user's request, also, directly skips non-essential Booting sequence, only
Booting sequence necessary to equipment starts is performed, reboot time and power consumption can be efficiently reduced.
Preferably, the rebooting device also includes:
Parameter read-in module, for when the electric equipment is in holding state, by the default flag bit and institute
State target storage domain described in the real time execution parameter read-in of electric equipment.
Preferably, the non-essential Booting sequence with user in the electric equipment start-up course including having what is interacted
Flow.
Preferably, the working condition setup module 14 is specifically included:
Working condition setting unit, for according to the current operating parameter stored in the target storage domain to the electricity
The working condition of device equipment is configured;And,
Holding state setting unit, for controlling the electric equipment to enter holding state, to complete to restart.
Preferably, the rebooting device also includes:
Indicate bit clear module, for restarting reason when detect the electric equipment for power-off restarting, or it is described
When electric equipment is waken up in the standby state, the default flag bit in the target area is removed.
The method for restarting and device of electric equipment provided in an embodiment of the present invention, by electric equipment enter restart when,
Default flag bit when detection device is in holding state in write-in target storage domain, and detecting default mark
Position, and detect equipment restart reason for non-power-off restarting when, that is, judge equipment be to be led because breaking down in the standby state
What is caused restarts, and when restarting of non-user manual operation, directly skips non-essential Booting sequence, with starting device, and then, then
Work of the operational factor of last time write-in to equipment when being in holding state according to the equipment stored in the domain of target storage
State is configured, to complete to restart.It can be seen that, after completing to restart, equipment continues to transport by directly with the working condition before restarting
OK, additionally set without user so that restarting process is fully fitted user's request, also, directly skip and non-essential start stream
Journey, only performs Booting sequence necessary to equipment starts, can efficiently reduce reboot time and power consumption.
Described above is the preferred embodiments of the present invention, it is noted that come for those skilled in the art
Say, under the premise without departing from the principles of the invention, some improvement and deformation can also be made, these are improved and deformation is also considered as this
The protection domain of invention.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..