Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of electronic equipment and prevents the method for the frequent switch operating state of electronic equipment, can prevent the phenomenon of the frequent switch operating state of electronic equipment from occurring.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of method preventing the frequent switch operating state of electronic equipment, containment vessel is installed on an electronic device, electronic equipment and containment vessel cover tactile side and are provided with magnetic field strength transducer, the side that containment vessel contacts with magnetic field strength transducer is provided with magnetic material, and method comprises: by the magnetic field intensity that magnetic field strength transducer detects, electronic equipment judges whether containment vessel covers and/or open; When electronic equipment is covered by magnetic field strength transducer detection magnetic field intensity determination containment vessel and/or is opened, the number of times covering by the first counters count containment vessel and/or open; Electronic equipment judges that the first counter is added up the number of times that containment vessel covers and/or open and whether reached the first higher limit in the first predetermined amount of time; Electronic equipment determines that the first counter adds up number of times that containment vessel covers and/or open when reaching the first higher limit in the first predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, wherein duty handoff functionality comprises the switching between the dormant state of electronic equipment and the normal operating conditions of electronic equipment.
Wherein, the method also comprises: electronic equipment determines that the first counter adds up number of times that containment vessel covers and/or open when not reaching the first higher limit in the first predetermined amount of time; automatic unlatching duty handoff functionality; meanwhile, the number of times that containment vessel covers and/or opens added up again by the first counter.
Wherein, the method also comprises: electronic equipment forbid electronic equipment open duty handoff functionality time, the number of times covering by the second counters count containment vessel and/or open; Electronic equipment judges that the second counter is added up the number of times that containment vessel covers and/or open and whether reached the second higher limit in the second predetermined amount of time; Electronic equipment determines that the second counter adds up number of times that containment vessel covers and/or open when not reaching the second higher limit in the second predetermined amount of time, automatically opens duty handoff functionality.
Wherein, the method also comprises: it is when reaching the second higher limit that electronic equipment determines that the number of times that containment vessel covers and/or open added up by the second counter in the second predetermined amount of time; keep forbidding that duty handoff functionality opened by electronic equipment; meanwhile, the number of times that containment vessel covers and/or opens added up again by the second counter.
Wherein, the second higher limit is less than the first higher limit.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of electronic equipment, containment vessel is installed on an electronic device, electronic equipment and containment vessel cover contacted side and are provided with magnetic field strength transducer, the side that containment vessel contacts with magnetic field strength transducer is provided with magnetic material, electronic equipment comprises: magnetic field sensor module, for detecting magnetic field intensity by magnetic field strength transducer; Judge module, for judging by magnetic field intensity whether containment vessel covers and/or open; First counter module, for when judge module is covered by magnetic field intensity determination containment vessel and/or is opened, the number of times covering by the first counters count containment vessel and/or open; First number judge module, for judging that the first counter is added up the number of times that containment vessel covers and/or open and whether reached the first higher limit in the first predetermined amount of time; Switch disabled module; for determine at first number judge module the first counter add up in the first predetermined amount of time number of times that containment vessel covers and/or open reach the first higher limit time; automatically forbid that duty handoff functionality opened by electronic equipment, wherein duty handoff functionality comprises the switching between the dormant state of electronic equipment and the normal operating conditions of electronic equipment.
Wherein, electronic equipment also comprises the module that returns to form; for determine at first number judge module the first counter add up in the first predetermined amount of time number of times that containment vessel covers and/or open do not reach the first higher limit time; automatic unlatching duty handoff functionality; meanwhile, the number of times that containment vessel covers and/or opens added up again by the first counter of the first counter module.
Wherein, electronic equipment also comprises: the second counter module, for when switching disabled module and forbidding that duty handoff functionality opened by electronic equipment, and the number of times covering by the second counters count containment vessel and/or open; Second number judge module, for judging that the second counter is added up the number of times that containment vessel covers and/or open and whether reached the second higher limit in the second predetermined amount of time; The module that returns to form also for determine at second number judge module the second counter add up in the second predetermined amount of time number of times that containment vessel covers and/or open do not reach the second higher limit time, automatically open duty handoff functionality.
Wherein, switching disabled module, to determine that the number of times that containment vessel covers and/or open added up by the second counter in the second predetermined amount of time at second number judge module be when reaching the second higher limit; keep forbidding that duty handoff functionality opened by electronic equipment; meanwhile, the number of times that containment vessel covers and/or opens added up again by the second counter of the second counter module.
Wherein, the second higher limit is less than the first higher limit.
The invention has the beneficial effects as follows: the situation being different from prior art, the method for the frequent switch operating state of electronic equipment that prevents of the present invention comprises: by the magnetic field intensity that magnetic field strength transducer detects, electronic equipment judges whether containment vessel covers and/or open; If so, then the electronic equipment number of times that covers by the first counters count containment vessel and/or open; Electronic equipment judges that the first counter is added up the number of times that containment vessel covers and/or open and whether reached the first higher limit in the first predetermined amount of time; If so, then electronic equipment forbids that duty handoff functionality opened by electronic equipment automatically.By the way; the present invention is when detecting that the containment vessel of electronic equipment frequently covers and/or opens; forbid that duty handoff functionality opened by electronic equipment; the phenomenon that can prevent electronic equipment from carrying out frequently switching in its dormant state and normal operating conditions between the two occurs, reduces the loss of electronic equipment.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
As shown in Figure 1, Fig. 1 is the schematic flow sheet that the present invention prevents the first embodiment of the method for the frequent switch operating state of electronic equipment.Wherein, containment vessel (not shown) is installed on an electronic device, can play the effect of protection electronic equipment.Further, electronic equipment and containment vessel cover contacted side and are provided with magnetic field strength transducer, and the side that containment vessel contacts with magnetic field strength transducer is provided with magnetic material, and magnetic field strength transducer can detect the magnetic field intensity of magnetic material.The method comprises the following steps:
Step S101: by the magnetic field intensity that magnetic field strength transducer detects, electronic equipment judges whether containment vessel covers and/or open.
In step S101, when the magnetic field intensity that magnetic field strength transducer detects is greater than default magnetic field intensity, judge that containment vessel covers; When the magnetic field intensity that magnetic field strength transducer detects is not greater than default magnetic field intensity, judge that containment vessel is opened.
Step S102: when electronic equipment is covered by magnetic field strength transducer detection magnetic field intensity determination containment vessel and/or opened, the number of times covering by the first counters count containment vessel and/or open.
In an embodiment of the present invention, by number of times that the first counters count containment vessel covers and opens.Should understand; the time interval that containment vessel covers and opens should be less than the first preset time value; first counter just can add up the number of times that containment vessel covers and opens; the time interval covered as containment vessel and open is less than 1s (second); then the first counters count containment vessel number of times of covering and opening; cover as containment vessel and open interval greater than 1s, the number of times that containment vessel covers and beats do not added up by the first counter, the first counter reclocking.
In an alternative embodiment of the invention, by number of times that the first counters count containment vessel covers.Should understand.The time interval that containment vessel covers should be less than the second preset time value, and the first counter just can add up the number of times that containment vessel covers.Be less than the second preset time value as containment vessel covers the time interval covered with the second containment vessel, then the number of times that the first timer statistics containment vessel covers is 1 time.Be not less than the second preset time value as containment vessel covers the time interval covered with the second containment vessel, then the number of times that containment vessel covers do not added up by the first timer, again adds up the number of times that containment vessel covers.
In still another embodiment of the process, by number of times that the first counters count containment vessel is opened.Should understand.The time interval that containment vessel is opened should be less than the 3rd preset time value, and the first counter just can be added up containment vessel and open once.Open the time interval of opening with the second containment vessel as first time containment vessel and be less than the 3rd preset time value, then the number of times that containment vessel is opened added up by the first timer.Open the time interval of opening with the second containment vessel as first time containment vessel and be not less than the 3rd preset time value, then the number of times that containment vessel is opened do not added up by the first timer, again adds up the number of times that containment vessel is opened.
Step S103: electronic equipment judges that the first counter is added up the number of times that containment vessel covers and/or open and whether reached the first higher limit in the first predetermined amount of time.
In an embodiment of the present invention, electronic equipment judges that the first counter is added up the number of times that containment vessel covers and open and whether reached the first higher limit in the first predetermined amount of time.In an alternative embodiment of the invention, electronic equipment judges that the first counter is added up the number of times that containment vessel covers and whether reached the first higher limit in the first predetermined amount of time.In still another embodiment of the process, electronic equipment judges that the first counter is added up the number of times that containment vessel opens and whether reached the first higher limit in the first predetermined amount of time.
In the present embodiment, preferably by first timer timing, in the first predetermined amount of time of first timer timing, the first counter starts statistics number; After the first predetermined amount of time, namely during first timer stopping timing, the first counter also stops statistics number.
Step S104: electronic equipment determines that the first counter adds up number of times that containment vessel covers and/or open when reaching the first higher limit in the first predetermined amount of time, automatically forbids that duty handoff functionality opened by electronic equipment.
Wherein, duty handoff functionality comprises the switching between the dormant state of electronic equipment and the normal operating conditions of electronic equipment.In addition, determine the first counter add up in the first predetermined amount of time number of times that containment vessel covers and/or open reach the first higher limit time, electronic equipment has been forbidden opening duty handoff functionality with mode of vibration reminding user electronic equipment.
In an embodiment of the present invention; electronic equipment determines that the first counter adds up number of times that containment vessel covers and open when reaching the first higher limit in the first predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
In an alternative embodiment of the invention; electronic equipment determines that the first counter adds up number of times that containment vessel covers when reaching the first higher limit in the first predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
In still another embodiment of the process; electronic equipment determines that the first counter adds up number of times that containment vessel opens when reaching the first higher limit in the first predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
In the present embodiment, if electronic equipment determines that the first counter is added up the number of times whether containment vessel cover and/or open and do not reached the first higher limit in the first predetermined amount of time, then duty handoff functionality opened automatically by electronic equipment.
Should understand, in other embodiments, after electronic equipment forbids that in preset time value the number of times that duty handoff functionality opened by electronic equipment reaches preset times, electronic equipment will enter dormant state in preset time value, allow user again can not unlocking electronic equipment at Preset Time.After electronic equipment forbids that in one hour the number of times that duty handoff functionality opened by electronic equipment reaches 10 times, electronic equipment will enter dormant state in one hour, allow user again can not unlocking electronic equipment in one hour.
As shown in Figure 2, Fig. 2 is the schematic flow sheet that the present invention prevents the second embodiment of the method for the frequent switch operating state of electronic equipment.The method comprises the following steps:
Step S201: electronic equipment detects magnetic field intensity by magnetic field strength transducer.
Step S202: electronic equipment judges whether containment vessel covers and/or open.
If electronic equipment determination containment vessel does not cover and/or opens, then return step S201; If electronic equipment determination containment vessel covers and/or opens, then perform step S203: the number of times whether electronic equipment is covered by the first counters count containment vessel and/or opened.
Step S204: electronic equipment judges to add up in the first predetermined amount of time the number of times whether containment vessel cover and/or open and whether reaches the first higher limit.
If electronic equipment determines to add up in the first predetermined amount of time the number of times whether containment vessel cover and/or open do not reach the first higher limit, then perform step S205: duty handoff functionality opened automatically by electronic equipment; Return step S204 simultaneously.
If electronic equipment determines to add up in the first predetermined amount of time the number of times whether containment vessel cover and/or open reach the first higher limit, then perform step S206: electronic equipment forbids that duty handoff functionality opened by electronic equipment automatically.
Wherein step S101, the step S102 of step S201, step S202, step S203, step S204, step S205 and step S206 and Fig. 1, step S103 are identical with step S104, do not repeat one by one at this.
Step S207: the number of times whether electronic equipment is covered by the second counters count containment vessel and/or opened.
In an embodiment of the present invention, by number of times that the second counters count containment vessel covers and opens.Should be understood that the time interval that containment vessel covers and opens should be less than the first preset time value, the second counter just can add up the number of times that containment vessel covers and opens, otherwise the second counter reclocking.
In an alternative embodiment of the invention, by number of times that the second counters count containment vessel covers.Should understand.The time interval that containment vessel covers should be less than the second preset time value, and the second counter just can add up the number of times that containment vessel covers.Otherwise the number of times that containment vessel covers added up again by the second counter.
In still another embodiment of the process, by number of times that the second counters count containment vessel is opened.Should understand.The time interval that containment vessel is opened should be less than the 3rd preset time value, and the second counter just can add up the number of times that containment vessel is opened.Otherwise the number of times that containment vessel is opened added up again by the second counter.
Step S208: electronic equipment judges that the second timer is added up the number of times whether containment vessel cover and/or open and whether reached the second higher limit in the second predetermined amount of time.
In an embodiment of the present invention, electronic equipment judges that the second counter is added up the number of times that containment vessel covers and open and whether reached the second higher limit in the second predetermined amount of time.In an alternative embodiment of the invention, electronic equipment judges that the second counter is added up the number of times that containment vessel covers and whether reached the second higher limit in the second predetermined amount of time.In still another embodiment of the process, electronic equipment judges that the second counter is added up the number of times that containment vessel opens and whether reached the second higher limit in the second predetermined amount of time.
In the present embodiment, preferably by second timer timing, in the second predetermined amount of time of second timer timing, the second counter starts statistics number; After the second predetermined amount of time, after namely second timer stops timing, the second counter also stops statistics number.
If electronic equipment determines that the second timer is added up the number of times whether containment vessel cover and/or open and reached the second higher limit in the second predetermined amount of time, then perform step S209: electronic equipment forbids that duty handoff functionality opened by electronic equipment automatically.
In an embodiment of the present invention; electronic equipment determines that the second counter adds up number of times that containment vessel covers and open when reaching the second higher limit in the second predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
In an alternative embodiment of the invention; electronic equipment determines that the second counter adds up number of times that containment vessel covers when reaching the second higher limit in the second predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
In still another embodiment of the process; electronic equipment determines that the second counter adds up number of times that containment vessel opens when reaching the second higher limit in the second predetermined amount of time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
Electronic equipment determines that the second timer is added up the number of times whether containment vessel cover and/or open and do not reached the second higher limit in the second predetermined amount of time, then perform step S210: duty handoff functionality opened automatically by electronic equipment.
In the present embodiment, the second higher limit is less than the first higher limit.First higher limit is user's setting value.Second higher limit can be the value of user's setting, and preferably, the second higher limit is 0.Certainly, in other embodiments of the present invention, the second higher limit is can be other numerical value, and concrete needs is designed according to the time and determine.
Should understand, in other embodiments, after the number of times of the switching between the dormant state of the electronic equipment produced in preset time value when electronic equipment and the normal operating conditions of electronic equipment reaches preset times, electronic equipment will enter dormant state in preset time value, allow user again can not unlocking electronic equipment at Preset Time.After number of times as the switching between the dormant state of electronic equipment generating electronic equipment in hour and the normal operating conditions of electronic equipment reaches 10 times, electronic equipment will enter dormant state in one hour, allow user again can not unlocking electronic equipment in one hour.
As shown in Figure 3, Fig. 3 is the structural representation of electronic equipment of the present invention.This electronic equipment is corresponding with the method for Fig. 1 and Fig. 2.Wherein, containment vessel is installed on an electronic device, can play the effect of protection electronic equipment.Further, electronic equipment and containment vessel cover contacted side and are provided with magnetic field strength transducer, and the side that containment vessel contacts with magnetic field strength transducer is provided with magnetic material, and magnetic field strength transducer can detect the magnetic field intensity of magnetic material.This electronic equipment comprises magnetic field sensor module 11, judge module 12, first counter module 13, second counter module 14, first number judge module 15, second number judge module 16, switches disabled module 17 and the module 18 that returns to form.
Magnetic field sensor module 11 is for detecting magnetic field intensity by magnetic field strength transducer.
Judge module 12 is for judging by magnetic field intensity whether containment vessel covers and/or open.
First counter module 13 for when judge module 12 is covered by magnetic field intensity determination containment vessel and/or is opened, the number of times covering by the first counters count containment vessel and/or open.
In an embodiment of the present invention, the number of times of the first counter module 13 for covering by the first counters count containment vessel and open.In an alternative embodiment of the invention, the number of times of the first counter module 13 for being covered by the first counters count containment vessel.In still another embodiment of the process, the number of times of the first counter module 13 for being opened by the first counters count containment vessel.
First number judge module 15 is for judging that the first counter is added up the number of times that containment vessel covers and/or open and whether reached the first higher limit in the first predetermined amount of time.
In an embodiment of the present invention, first number judge module 15 judges that the first counter is added up the number of times that containment vessel covers and open and whether reached the first higher limit in the first predetermined amount of time.In an alternative embodiment of the invention, first number judge module 15 judges that the first counter is added up the number of times that containment vessel covers and whether reached the first higher limit in the first predetermined amount of time.In still another embodiment of the process, first number judge module 15 judges that the first counter is added up the number of times that containment vessel opens and whether reached the first higher limit in the first predetermined amount of time.
In the present embodiment, electronic equipment also comprises first timer module, and for passing through first timer timing, in the first predetermined amount of time of first timer timing, the first counter of first number judge module 15 starts statistics number; After the first predetermined amount of time, namely during first timer stopping timing, the first counter also stops statistics number.
Switch disabled module 17 for determine at first number judge module 15 first counter add up in the first predetermined amount of time number of times that containment vessel covers and/or open reach the first higher limit time, automatically forbid electronic equipment unlatching duty handoff functionality.Wherein duty handoff functionality comprises the switching between the dormant state of electronic equipment and the normal operating conditions of electronic equipment.
In the present embodiment; switch disabled module 17 for determine at first number judge module 15 first counter add up in the first predetermined amount of time number of times that containment vessel covers and/or open reach the first higher limit time; automatically forbid that duty handoff functionality opened by electronic equipment, keep electronic equipment to be in dormant state simultaneously or keep electronic equipment to be in normal operating conditions.
The module that returns to form 18 for determine at first number judge module 15 first counter add up in the first predetermined amount of time number of times that containment vessel covers and/or open do not reach the first higher limit time; automatic unlatching duty handoff functionality; meanwhile, the number of times that containment vessel covers and/or opens added up again by the first counter of the first counter module 13.
Second counter module 14 is for forbidding electronic equipment unlatching duty handoff functionality during in switching disabled module 17, the number of times covering by the second counters count containment vessel and/or open.
In an embodiment of the present invention, the number of times of the second counter module 14 for covering by the second counters count containment vessel and open.In an alternative embodiment of the invention, the number of times of the second counter module 14 for being covered by the second counters count containment vessel.In still another embodiment of the process, the number of times of the second counter module 14 for being opened by the second counters count containment vessel.
Second number judge module 16 is for judging that the second counter is added up the number of times that containment vessel covers and/or open and whether reached the second higher limit in the second predetermined amount of time.
In an embodiment of the present invention, second number judge module 16 judges that the second counter is added up the number of times that containment vessel covers and open and whether reached the second higher limit in the second predetermined amount of time.In an alternative embodiment of the invention, second number judge module 16 judges that the second counter is added up the number of times that containment vessel covers and whether reached the second higher limit in the second predetermined amount of time.In still another embodiment of the process, second number judge module 16 judges that the second counter is added up the number of times that containment vessel opens and whether reached the second higher limit in the second predetermined amount of time.
In the present embodiment, electronic equipment also comprises second timer module, and for passing through second timer timing, in the second predetermined amount of time of second timer timing, the second counter of second number judge module 16 starts statistics number; After the second predetermined amount of time, namely during second timer stopping timing, the second counter also stops statistics number.
The module that returns to form 18 also for determine at second number judge module 16 second counter add up in the second predetermined amount of time number of times that containment vessel covers and/or open do not reach the second higher limit time, automatically open duty handoff functionality.
Switching disabled module 17 is also when reaching the second higher limit for determining that at second number judge module 16 number of times that containment vessel covers and/or open added up by second counter in the second predetermined amount of time; keep forbidding that duty handoff functionality opened by electronic equipment; meanwhile, the number of times that containment vessel covers and/or opens added up again by the second counter of the second counter module 14.
In the present embodiment; switch disabled module 17 for determine at second number judge module 16 second counter add up in the second predetermined amount of time number of times that containment vessel covers and/or open reach the second higher limit time; keep forbidding that duty handoff functionality opened by electronic equipment; the number of times that containment vessel covers and/or opens added up again by second counter of the second counter module 14, keeps electronic equipment to be in dormant state simultaneously or keeps electronic equipment to be in normal operating conditions.
In the present embodiment, the second higher limit is less than the first higher limit.First higher limit is user's setting value.Second higher limit can be the value of user's setting, and preferably, the second higher limit is 0.Certainly, in other embodiments of the present invention, the second higher limit is can be other numerical value, and concrete needs is designed according to the time and determine.
In sum, the method for the frequent switch operating state of electronic equipment that prevents of the present invention comprises: by the magnetic field intensity that magnetic field strength transducer detects, electronic equipment judges whether containment vessel covers and/or open; If so, then the electronic equipment number of times that covers by the first counters count containment vessel and/or open; Electronic equipment judges that the first counter is added up the number of times that containment vessel covers and/or open and whether reached the first higher limit in the first predetermined amount of time; If so, then electronic equipment forbids that duty handoff functionality opened by electronic equipment automatically.By the way; the present invention is when detecting that the containment vessel of electronic equipment frequently covers and/or opens; forbid that duty handoff functionality opened by electronic equipment; the phenomenon that can prevent electronic equipment from carrying out frequently switching in its dormant state and normal operating conditions between the two occurs, reduces the loss of electronic equipment.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.