By protective sleeve, control method and the device of the screen state of electronic equipment
Technical field
The present invention relates to a kind of method of controlling the screen state of electronic equipment by protective sleeve; the method is by setting up functional module construction; by computer program instructions, control computer system and complete, these computer program instructions are stored in computer-readable recording medium.
Background technology
The current protective sleeve of the mobile device such as some mobile phone or panel computer, is provided with for the protection of the renovating of screen, and after putting out screen standby, renovating of protective sleeve is closed, and opens, to prevent that screen from being scratched when to be used again.Therefore the state of renovating to control screen of protective sleeve for some mobile phone or panel computer; when renovating of protective sleeve is closed; the state auto-switching of screen is for putting out screen, and when renovating of protective sleeve opened again, the state of screen just automatically switches to bright screen again.
Realize at present this mode of state of renovating to control screen with protective sleeve, normally by hall device, realize, in the mobile device of mobile phone or panel computer, be provided with hall device, the relevant position of renovating at protective sleeve arranges magnet, when renovating of protective sleeve is closed, magnet causes the inner potential change that occurs of hall device near hall device, thereby produce signal controlling screen and put out screen, when renovating of protective sleeve opened, magnet causes the inner potential change that occurs of hall device again away from hall device, thereby produce signal controlling screen bright screen.Yet; the existing this mode of controlling the state of screen with hall device; need to be at the inner hall device of installing of the mobile devices such as mobile phone or panel computer; renovating of protective sleeve, magnet is set simultaneously; hall device is not the conventional senser elements of mobile device such as mobile phone or panel computer; in order to realize this function, increase this transducer and can increase cost, meanwhile, at the interior magnet that arranges of renovating of protective sleeve, equally also can increase cost.
Summary of the invention
The object of this invention is to provide a kind of method of controlling cheaply the screen state of electronic equipment by protective sleeve.
For achieving the above object, the invention provides following technical scheme.
By protective sleeve, control the method for the screen state of electronic equipment, the screen of described electronic equipment is touch-screen, when the state of described screen is bright screen, if sense that having shelter to sense on described screen in the preset distance of described screen the place ahead has touch action, just the state of described screen is switched to and put out screen by bright screen simultaneously; When the state of described screen is when putting out screen and sensing that having shelter sense in the preset distance of described screen the place ahead has touch action on described screen simultaneously, if sense that having removed shelter in the preset distance of described screen the place ahead senses on described screen and removed touch action, just switches to bright screen by the state of described screen by putting out screen simultaneously.
Wherein, by the proximity transducer adjacent with screen, respond to the shelter in screen the place ahead.
Wherein, on described screen, be provided with the default local induction zone for touch sensitive action.
The invention has the beneficial effects as follows: the transducer or the miscellaneous part that use conventional and most of mobile phone in mobile phone or panel computer or panel computer conventionally all can have; for example proximity transducer responds in the preset distance of screen the place ahead whether have shelter; on combining screen, whether sense touch action; come renovating of synthetic determination protective sleeve whether to close; when can reach prior art same effect, saved hall device; saved cost; in addition; at the interior sheet metal that arranges of renovating of protective sleeve, substitute magnet, reduced further cost.
Embodiment
Below in conjunction with specific embodiment, the present invention is elaborated.
The present embodiment be take mobile phone and is carried out the method for controlling the screen state of electronic equipment by protective sleeve to of the present invention as example; the screen of mobile phone is touch-screen, it should be noted that the method for controlling the screen state of electronic equipment by protective sleeve of the present invention is applicable to the protective sleeve of renovating simultaneously.
The existing method of controlling the screen state of electronic equipment by protective sleeve; that hall device is installed on mobile phone; and in (hereinafter referred to as renovating) the upper relevant position of renovating of protective sleeve, magnet is set; renovate and be closed; or opened; the magnet renovated near or away from hall device, cause the inner potential change of hall device, induce thus to renovate and be closed or opened, thereby the system of mobile phone is controlled screen and is put out screen or bright screen.As can be seen here, realize by renovating to control the screen state of electronic equipment, most important is exactly how to induce to renovate to be closed or to be opened.In the present embodiment, adopt following methods to judge that flip-shell is closed or is opened, thereby by renovating the mobile phone screen state of controlling: when the state of the screen of mobile phone is bright screen, if mobile phone senses that having shelter sense in the preset distance of screen the place ahead has touch action on screen simultaneously, just judge to renovate and be closed, the system of mobile phone is just controlled screen and is put out screen, thereby screen state completes by bright screen to the switching of putting out screen; When the screen state of mobile phone shields for putting out, here there is individual precondition, renovate and be closed exactly, be that the screen state of mobile phone is for putting out screen, when simultaneously mobile phone senses and has shelter in the preset distance of screen the place ahead, sense and on screen, have touch action, if now mobile phone senses that not had shelter sense in the preset distance of screen the place ahead has not had touch action on screen simultaneously, just show to renovate and opened by closing, the system of mobile phone is just controlled screen bright screen, thereby screen state completes by putting out the switching of screen to bright screen.
Wherein, can adopt transducer or miscellaneous part conventional and that most of mobile phone all can have conventionally in mobile phone, such as proximity transducer (even luminance sensor and front-facing camera) responds in the preset distance of mobile phone screen the place ahead whether have shelter, proximity transducer can specifically sense that it is apart from the distance of objects in front, proximity transducer is arranged on to the position that screen is adjacent and can responds in the preset distance of screen the place ahead whether had shelter by proximity transducer, because the screen of mobile phone is touch-screen, so the touch action on screen can be by directly being responded to by screen, why touch-screen can respond to the touch action of people's finger, because being people's finger or other capacitive character material, such as sheet metal near touch-screen time, can cause the variation of touch-screen capacitance, therefore sheet metal is set on renovating, after renovating and being closed, further, default local induction zone can be set on screen and respond to described touch action, to avoid misoperation, only at default local induction zone internal induction, arrive described touch action, just can renovate the condition being closed as judgement.
With the proximity transducer of mobile phone, respond in the preset distance of screen the place ahead whether have shelter; on combining screen, whether sense touch action; come renovating of synthetic determination protective sleeve whether to close; when can reach prior art same effect, saved hall device; saved cost; in addition, at the interior sheet metal that arranges of renovating of protective sleeve, substitute magnet, reduced further cost
The method providing herein, all or part of step wherein can, by setting up functional module construction, be controlled computer system by computer program instructions and complete.These computer program instructions are stored in computer-readable recording medium.
Finally should be noted that; above embodiment is only in order to illustrate technical scheme of the present invention; but not limiting the scope of the invention; although the present invention has been done to explain with reference to preferred embodiment; those of ordinary skill in the art is to be understood that; can modify or be equal to replacement technical scheme of the present invention, and not depart from essence and the scope of technical solution of the present invention.