A kind of detection method of new Leather cover for handset
Technical field
The present invention relates to communication technique field, more particularly to a kind of detection method of new Leather cover for handset.
Background technology
The screen of current mobile phone is increasing, in order to prevent mobile phone screen to be scratched, and user can be protected from some leather sheaths
Screen is protected, it is necessary to which folding of the mobile phone to leather sheath carries out Intelligent Recognition.Prior art is to increase magnet in the leather sheath of mobile phone, in hand
Increase Hall switch in mainboard, the folding of the leather sheath for detecting mobile phone.Leather sheath is opened, and Hall switch can't detect magnet
In the presence of notice CPU leather sheaths have already turned on;Otherwise Hall switch detects the presence of magnet, notify that CPU leather sheaths are closed.
There is series of malpractice in prior art, such as magnet is added in leather sheath, and Hall is added at cell phone mainboard end
Switch, causing the cost of complete machine increases;In addition, adding Hall switch at cell phone mainboard end, this switch does not occupy mainboard
Space, and also need to away from magnetic component such as mobile phone receiver and loudspeaker, it has not been convenient to the layout of mainboard, meanwhile,
Increase magnet in leather sheath on the one hand to be inconvenient to produce, another aspect leather sheath easily comes unglued damage.How to realize is not increasing extra
The folding of mobile phone Intelligent Recognition Leather cover for handset is set to have very important significance while configuration.
The content of the invention
The present invention is in view of the above-mentioned problems, a kind of detection method of new Leather cover for handset of offer, is passed using distance in mobile phone
The infra-red ray detection device of sensor, and the device is connected with mobile phone CPU processor, the folding of leather sheath is entered by software design patterns
Row intelligent decision, realizes the automatic detection to Leather cover for handset.
The technical scheme is that:
A kind of detection method of new Leather cover for handset, wherein:
The infra-red ray detection device of the range sensor of mobile phone is connected with mobile phone CPU processor, according to infrared detection
Whether device receives the infrared ray that reflects to judge the folding condition of Leather cover for handset, and automatically controls mobile phone CPU processing
Device enters normal operating conditions or resting state.
Preferably, in the detection method of described new Leather cover for handset, by the infra-red ray detection device and hand of mobile phone
The communication module connection of machine CPU processor, and folding according to the working condition of the communication module to Leather cover for handset patrols
Collect and judge:
When mobile communication module is in non-communicating state, the infra-red ray detection device of mobile phone receives reflect red
Leather cover for handset is judged during outside line for closure state, and controls mobile phone CPU processor to enter sleep state;
When mobile communication module is in communications status, the infra-red ray detection device of mobile phone receives reflect infrared
Leather cover for handset is judged during line for non-occluded state, mobile phone CPU processor maintains normal manipulation mode.
Preferably, in the detection method of described new Leather cover for handset, the infra-red ray detection device of mobile phone is set
Regular hour threshold values, and the ultrared duration reflected is received to Leather cover for handset according to infra-red ray detection device
Folding carries out logic judgment:
When mobile phone infra-red ray detection device receives the ultrared duration reflected more than set time threshold values,
Leather cover for handset is judged for closure state, and controls mobile phone CPU processor to enter sleep state;
When mobile phone infra-red ray detection device receives the ultrared duration reflected less than set time threshold values,
Leather cover for handset is judged for non-occluded state, and mobile phone CPU processor maintains normal manipulation mode.
Preferably, in the detection method of described new Leather cover for handset, the time threshold values is set to 1-5s.
Preferably, in the detection method of described new Leather cover for handset, the infra-red ray detection device is set to continue
Mode of operation.
Preferably, in the detection method of described new Leather cover for handset, the infra-red ray detection device is by infrared ray
Transmitter and infrared receiver composition, wherein the RF transmitter is set to impulse ejection mode, pulse frequency is 30-
60Hz, the RF transmitter launches an infrared ray every 10-30ms.
Preferably, in the detection method of described new Leather cover for handset, the pulse frequency is set to 50Hz, described red
Outside line transmitter launches an infrared ray every 20ms.
The invention has the advantages that:It is first in a kind of detection method of new Leather cover for handset of the present invention
First, by certain software design patterns, the folding using the infra-red ray detection device of the range sensor carried in mobile phone to leather sheath
Carry out intelligent decision, realize to the automatic detection of Leather cover for handset, it is not necessary to mobile phone and leather sheath are increased other be used for recognize device,
It is convenient and easy, and without extra cost input.
Secondly, can be to call by the way that the infra-red ray detection device of mobile phone is connected with the communication module of mobile phone CPU processor
When face close to mobile phone screen situation judge, state that itself and leather sheath are closed is distinguished;By by the infrared of mobile phone
Line detector sets regular hour threshold values, and mobile phone can be made using situation when middle palm or other object proximity screens
Judge, equally distinguish its state closed with leather sheath, so that folding of the device being had by oneself using mobile phone to leather sheath carries out intelligence
Can detection.
Brief description of the drawings:
Fig. 1 is control system architecture schematic diagram in the detection method of new Leather cover for handset of the present invention.
Embodiment:
The present invention is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art with reference to specification text
Word can be implemented according to this.
As shown in figure 1, a kind of detection method of new Leather cover for handset, wherein:
The infra-red ray detection device of the range sensor of mobile phone is connected with mobile phone CPU processor, according to infrared detection
Whether device receives the infrared ray that reflects to judge the folding condition of Leather cover for handset, and automatically controls mobile phone CPU processing
Device enters normal operating conditions or resting state, realizes that carrying out intelligence to the folding of leather sheath using the device carried in mobile phone sentences
It is disconnected, it is not necessary to mobile phone and leather sheath are increased other be used for recognize device, it is convenient and easy, and put into without extra cost.
In the detection method of described new Leather cover for handset, by the infra-red ray detection device of mobile phone and mobile phone CPU processing
The communication module connection of device, and logic judgment is carried out to the folding of Leather cover for handset according to the working condition of the communication module:
When mobile communication module is in non-communicating state, the infra-red ray detection device of mobile phone receives reflect red
Leather cover for handset is judged during outside line for closure state, and controls mobile phone CPU processor to enter sleep state;
When mobile communication module is in communications status, the infra-red ray detection device of mobile phone receives reflect infrared
Leather cover for handset is judged during line for non-occluded state, mobile phone CPU processor maintains normal manipulation mode.Carry out this logic judgment
Purpose is that the situation of face close to mobile phone screen is judged when can be to call, and its state closed with leather sheath is distinguished,
During mobile phone use, under the situation that face is conversed close to screen, infra-red ray detection device will not be mistaken for mobile phone
Set closes and forces mobile phone to enter sleep state.
In the detection method of described new Leather cover for handset, the infra-red ray detection device of mobile phone is set into the regular hour
Threshold values, and the folding of ultrared duration for reflecting to Leather cover for handset is received according to infra-red ray detection device patrolled
Collect and judge:
When mobile phone infra-red ray detection device receives the ultrared duration reflected more than set time threshold values,
Leather cover for handset is judged for closure state, and controls mobile phone CPU processor to enter sleep state;
When mobile phone infra-red ray detection device receives the ultrared duration reflected less than set time threshold values,
Leather cover for handset is judged for non-occluded state, and mobile phone CPU processor maintains normal manipulation mode.Carry out the purpose of this logic judgment
It is that palm or situation during other object proximity screens are judged when can use mobile phone, so as to by itself and leather sheath closure
State is distinguished, it is to avoid even if mobile phone enters resting state to the slight covering mobile phone of screen using process, realized to handset rind
The Intelligent Measurement of set.
In the detection method of described new Leather cover for handset, the time threshold values is set to 1-5s.More than this time threshold values,
Then automatic decision Leather cover for handset is in closure state, during less than this threshold values, then is probably to screen in the operating process to mobile phone
Of short duration covering, then the continuous locating cellphone leather sheath of system be in closure state.This threshold values user can sets itself one as needed
The fixed time.
In the detection method of described new Leather cover for handset, the infra-red ray detection device is set to continuous firing pattern.
Both the startup of RF transmitter was independently of the startup of mobile phone CPU processor, and its working condition is not by mobile phone CPU processor state
Influence, infrared ray is persistently launched under the resting state of mobile phone normal operating state and mobile phone, and detected.
In the detection method of described new Leather cover for handset, the infra-red ray detection device is by RF transmitter and red
Outer line receiver composition, wherein the RF transmitter is set to impulse ejection mode, pulse frequency is 30-60Hz, described red
Outside line transmitter launches an infrared ray every 10-30ms.Electricity can be saved using impulse ejection mode, when extending cell phone is standby
Between.
In the detection method of described new Leather cover for handset, the pulse frequency is set to 50Hz, the infrared emitting
Device launches an infrared ray every 20ms.Cellphone subscriber can also in cell phone software sets itself other pulse frequencies or infrared
Line emission duration value.
Although embodiment of the present invention is disclosed as above, it is not restricted in specification and embodiment listed
With it can be applied to various suitable the field of the invention completely, can be easily for those skilled in the art
Other modification is realized, therefore under the universal limited without departing substantially from claim and equivalency range, the present invention is not limited
In specific details and shown here as the legend with description.