CN106791047B - A kind of foreign matter detecting method of mobile terminal, device and mobile terminal - Google Patents
A kind of foreign matter detecting method of mobile terminal, device and mobile terminal Download PDFInfo
- Publication number
- CN106791047B CN106791047B CN201611107742.XA CN201611107742A CN106791047B CN 106791047 B CN106791047 B CN 106791047B CN 201611107742 A CN201611107742 A CN 201611107742A CN 106791047 B CN106791047 B CN 106791047B
- Authority
- CN
- China
- Prior art keywords
- proximity sensor
- state
- foreign matter
- terminal
- proximity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/22—Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of foreign matter detecting method of mobile terminal, device and mobile terminals.The described method includes: determining that the proximity sensor state of present terminal is proximity state;Detect that the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area include the region with the smallest preset shape for touching platen edge of the proximity sensor vertical range and/or size;Determine that the proximity sensor is interfered by foreign matter.Technical solution provided in an embodiment of the present invention, by being proximity state in the proximity sensor state for determining terminal, and when detecting the touch event for acting on the predeterminable area of terminal touch screen, determine that the proximity sensor is interfered by foreign matter, it can determine whether terminal is interfered by foreign matter in real time, effectively to evade influence of the foreign matter interference to terminal proximity sensor, and the foreign matter method of determining interference of the technical program is simply easily achieved, fast response time.
Description
Technical field
The present embodiments relate to field of terminal technology more particularly to a kind of foreign matter detecting methods of mobile terminal, device
And mobile terminal.
Background technique
Various sensors are integrated in the mobile terminals such as mobile phone, for assisting the realization of mobile phone various functions.For example, logical
During words, when proximity sensor detects that face contacts mobile phone, screen lamp will extinguish;When detecting that face frames out,
Screen lamp can automatically turn on, and this aspect saves electricity, on the other hand also prevent the maloperation in communication process, be user
Bring preferable experience.
But during user uses mobile phone communication, contact due to skin with mobile phone inevitably can be different by greasy dirt etc.
Object is got on mobile phone, and interference proximity sensor is detected and controlled to screen and bright screen is put out.Such as the presence due to greasy dirt, in user
Terminate call after should bright screen when, mobile phone does not have bright screen, causes mobile terminal that can not accurately control mobile terminal
Screen state.
Summary of the invention
The embodiment of the present invention provides the foreign matter detecting method, device and mobile terminal of a kind of mobile terminal, so that mobile whole
End can accurate detection go out mobile terminal proximity sensor whether by foreign matter interfere.
In a first aspect, the embodiment of the invention provides a kind of foreign matter detecting methods of mobile terminal, comprising:
The proximity sensor state for determining present terminal is proximity state;
Detect the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area include with it is described
The region of the smallest preset shape for touching platen edge of proximity sensor vertical range and/or size;
Determine that the proximity sensor is interfered by foreign matter.
In second aspect, the embodiment of the invention provides a kind of detection device for foreign matter of mobile terminal, comprising:
Proximity sensor state determining module, for determining that the proximity sensor state of present terminal is proximity state;
Touch event detection module, for detecting the touch event for acting on the predeterminable area of present terminal touch screen,
The predeterminable area include and the proximity sensor vertical range it is the smallest touch platen edge preset shape and/or size
Region;
Foreign matter interferes determining module, for determining that the proximity sensor is interfered by foreign matter.
In the third aspect, the embodiment of the invention provides a kind of mobile terminal, including memory, processor and it is stored in
On reservoir and the computer program that can run on a processor, which is characterized in that the processor is realized when executing described program
Following steps:
The proximity sensor state for determining present terminal is proximity state;
Detect the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area include with it is described
The region of the smallest preset shape for touching platen edge of proximity sensor vertical range and/or size;
Determine that the proximity sensor is interfered by foreign matter.
Technical solution provided in an embodiment of the present invention, by being proximity state in the proximity sensor state for determining terminal,
And when detecting the touch event for acting on the predeterminable area of terminal touch screen, determine that the proximity sensor is dry by foreign matter
It disturbs, can determine whether terminal is interfered by foreign matter in real time, effectively to evade influence of the foreign matter interference to terminal proximity sensor, and
The foreign matter method of determining interference of the technical program is simply easily achieved, fast response time.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the foreign matter detecting method for mobile terminal that the embodiment of the present invention one provides;
Fig. 2 is a kind of schematic diagram for mobile terminal touch screen that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow chart of the foreign matter detecting method of mobile terminal provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of flow chart of the foreign matter detecting method for mobile terminal that the embodiment of the present invention three provides;
Fig. 5 is a kind of structural schematic diagram of the detection device for foreign matter for mobile terminal that the embodiment of the present invention four provides;
Fig. 6 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention five provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawing to of the invention specific real
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention,
Rather than limitation of the invention.It also should be noted that illustrating only for ease of description, in attached drawing related to the present invention
Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail
It applies example and is described as the processing or method described as flow chart.Although operations (or step) are described as sequence by flow chart
Processing, but many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations
It can be rearranged.The processing can be terminated when its operations are completed, be not included in attached drawing it is also possible to have
Additional step.The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 gives a kind of flow chart of the foreign matter detecting method of mobile terminal of the offer of the embodiment of the present invention one, this reality
The method for applying example can be executed by the detection device for foreign matter of mobile terminal, which can be by way of hardware and/or software
It realizes, a part that described device can be used as mobile terminal is arranged inside the mobile terminal.
As shown in Figure 1, a kind of foreign matter detecting method of mobile terminal provided in this embodiment specifically includes the following steps:
Step 101, the proximity sensor state for determining present terminal are proximity state.
Terminal described in the present embodiment includes but is not limited to that mobile phone, notebook, tablet computer etc. are provided with close to biography
The equipment of sensor.
The most common proximity sensor configured in mobile terminal includes infrared proximity transducer.Infrared proximity transducer to
Outer transmitting infrared ray, then by measurement object reflected infra-red intensity come between judgment object and sensor away from
From the infrared luminous intensity received is stronger, then it represents that the distance between itself and object are smaller.Infrared proximity transducer can will measure
To infra-red intensity be converted into the measured value with its proportional, which can be known as to proximity values, infrared proximity
The proximity values that sensor obtains are bigger, indicate that the distance between itself and object are smaller.In general, proximity values can pass for infrared proximity
The output valve of analog-digital converter (Analog-to-Digital Converter, ADC) in sensor, abbreviation ADC value or AD value.
Proximity sensor in mobile terminal is specifically as follows for detecting user or object close to the state of mobile terminal
Capacitive proximity sensor or inductive proximity sensor.It can be preset in mobile terminal close to threshold value and separate threshold value,
When the proximity values of proximity sensor are greater than this close to threshold value, it is judged as proximity state, extinguishes touch screen;When proximity sensor
When proximity values are less than far from threshold value, it is judged as far from state, lights touch screen.
If the step may include: to detect that the proximity sensor maximum value of present terminal obtains event and is triggered, really
The fixed proximity sensor state is proximity state.In general, when user is close or contact proximity sensor, close to sensing
Device can reach maximum value.When the proximity sensor for detecting present terminal obtains maximum value, it is determined that proximity sensor state
For proximity state, which determines that method accuracy is high and is easily achieved.
Step 102 detects the touch event for acting on the predeterminable area of present terminal touch screen.
Wherein, the predeterminable area is the preset touch screen zone close proximity to sensor, including is connect with described
Nearly sensor vertical is apart from the smallest preset shape for touching platen edge and/or the region of size.Fig. 2 gives implementation of the present invention
A kind of schematic diagram of the touch screen for mobile terminal that example one provides.As shown in Fig. 2, the region of the terminal screen covering includes tool
There are the touch screen zone 201 of touch function and non-touch screen region 202 (such as the top of screen, bottom without touch function
Portion and left and right edges region).The proximity sensor A of mobile terminal is located at the non-touch screen region 202 of mobile terminal screen, mobile
In terminal at the smallest touch platen edge S of proximity sensor A vertical range d be provided with predeterminable area 203, predeterminable area
203 belong to a part of touch screen zone 201.It should be noted that in Fig. 2 only by predeterminable area 203 be ellipse for into
Explanation is gone, it is to be understood that the shapes and sizes of predeterminable area 203 can be set according to specific requirements.For example, can
Contact by investigation user group to the mobile terminal of different model or shape in communication process with mobile terminal touch screen
Areas case, by most users, exposed to contact touch screen zone is set as predeterminable area in call;In using for user
The contact area data contacted during user's communication with touch screen can be also acquired in journey in real time, and predeterminable area is adjusted
It is whole.
Since the corresponding screen area of proximity sensor A does not have touch function for non-touch screen region 202, so even if
User touches the corresponding screen area of proximity sensor A, and terminal also can't detect the touch event for acting on the screen area.
But user, during call, skin of face or ear or hair can contact the corresponding screen of proximity sensor simultaneously
Curtain region and the predeterminable area 203 with the smallest touch screen of proximity sensor vertical range, then the present embodiment passes through in advance
Predeterminable area 203 is set, is detecting the touch event for acting on the predeterminable area of present terminal touch screen, i.e., it is believed that user
Contact the corresponding screen area of proximity sensor.
Step 103 determines that the proximity sensor is interfered by foreign matter.
In terminal call process, after detecting the touch event for acting on the predeterminable area of present terminal touch screen,
After the touch event for detecting the corresponding screen area of proximity sensor, it is known that the skin or hair of user contacts close
The corresponding screen area of sensor, inevitably gets the foreign matter on skin or hair on touch screen, then
Determine that the proximity sensor is interfered by foreign matter.Wherein, the foreign matter includes greasy dirt, sweat or cosmetics etc..
The foreign matter detecting method of mobile terminal provided in this embodiment, by being in the proximity sensor state for determining terminal
Proximity state, and when detecting the touch event for acting on the predeterminable area of terminal touch screen, determine the proximity sensor
It is interfered by foreign matter, can determine whether terminal is interfered by foreign matter in real time, effectively to evade foreign matter interference to the close sensing of terminal
The influence of device, and the foreign matter method of determining interference of the technical program is simply easily achieved, fast response time.
Based on the above technical solution, after determining the proximity sensor by foreign matter interference, further includes: raw
Prompt information is interfered at foreign matter, to prompt user to handle foreign matter.It is specifically as follows and lights screen, and shows text, figure
The prompt information of the types such as piece, video;Or voice prompt is issued, to prompt user to remove on the corresponding screen of proximity sensor
Foreign matter.
Embodiment two
Fig. 3 gives a kind of flow chart of the foreign matter detecting method of mobile terminal provided by Embodiment 2 of the present invention.This reality
Example is applied to optimize based on above-described embodiment one.In the present embodiment, in the proximity sensor state for determining present terminal
After proximity state, further includes: control the touch screen and do not enter dormant state, act on institute to detect using touch screen
State the touch event of predeterminable area.Correspondingly, as shown in figure 3, method provided in this embodiment includes:
Step 301, the proximity sensor state for determining present terminal are proximity state.
Step 302, the touch screen for controlling the present terminal do not enter dormant state.
In general, terminal can control screen extinguishing, and control when the proximity sensor state of terminal is proximity state
Touch screen enters dormant state.No longer detection is acted on the touch operation of touch screen by the touch screen under dormant state, to prevent
Occur accidentally to touch in communication process or under pocket pattern.
The step breaks through conventional arrangement, after the proximity sensor state for determining present terminal is proximity state, control touching
It touches screen and does not enter dormant state, so that terminal still detects predeterminable area in the case where putting out screen state with the presence or absence of touch event, to be used for
Detect the corresponding screen of proximity sensor whether the interference by foreign matters such as greasy dirts.
Step 303 detects the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area packet
Include the region with the smallest preset shape for touching platen edge of the proximity sensor vertical range and/or size.
Further, after detecting and acting on the touch event of the predeterminable area of present terminal touch screen, further includes:
Controlling terminal is not responding to the touch event.The reason of being arranged in this way is: preventing having application icon or key in predeterminable area
Deng, when touching the application icon or key, generation false triggering.If the application after screen extinguishing, in predeterminable area
Or key still responds, and will seriously affect the experience of user.
The controlling terminal, which is not responding to the touch event, to be accomplished by the following way: when detecting the touch thing
After part, the touch event is not reported to upper layer;After detecting the touch event, the touch event is reported
To upper layer, upper layer is not responded;After detecting the touch event, error message is reported to upper layer, so that upper layer is not rung
It should or cannot respond to the touch event.
Step 304 determines that the proximity sensor is interfered by foreign matter.
Method provided in this embodiment, by determining that the proximity sensor state of present terminal is control after proximity state
The touch screen of present terminal does not enter dormant state, and to detect the touch event of predeterminable area, and determination connects according to testing result
Nearly sensor whether the interference by foreign matter, can accurate detection go out whether proximity sensor is interfered by foreign matter.
Embodiment three
Fig. 4 gives a kind of flow chart of the foreign matter detecting method of mobile terminal of the offer of the embodiment of the present invention three.This reality
It applies example to optimize based on above-described embodiment one and embodiment two, is determining that the proximity sensor interfered it by foreign matter
Afterwards, further includes: according to proximity sensor described in setting adjustment rule adjustment close to threshold value and far from threshold value;According to adjusted
The screen state of the present terminal is controlled close to threshold value and separate threshold value adjusted.Correspondingly, as shown in figure 4, this implementation
Example provide method include:
Step 401, the proximity sensor state for determining present terminal are proximity state.
Step 402 detects the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area packet
Include the region with the smallest preset shape for touching platen edge of the proximity sensor vertical range and/or size.
Step 403 determines that the proximity sensor is interfered by foreign matter.
Step 404, according to proximity sensor described in setting adjustment rule adjustment close to threshold value and far from threshold value.
The step may include: determining described close to the first adjustment value of threshold value and the second adjustment of the separate threshold value
Value;Increase the first adjustment value close to threshold value for described, and the separate threshold value is increased into second adjustment value.
After present terminal is interfered by foreign matter, the proximity values of proximity sensor can generate variation.Illustratively, far from threshold value
It is 400, is 450 close to threshold value, after terminal is by greasy dirt interference, the proximity values of proximity sensor will increase greasy dirt value 100, that
, if the standard proximity values without greasy dirt interference are 320, screen can be lighted far from threshold value due to being less than, but by oil
Practical proximity values become 420 after dirt interference, since 420 not less than far from threshold value, then screen will not be lighted, then will lead to answer
This lights the problem of screen in the case where screen does not work, this will seriously affect the experience of user;If the standard of no greasy dirt interference connects
When close values are 380, it will not then extinguish screen due to being not more than close to threshold value 450, but actually be approached after being interfered by greasy dirt
Value becomes 480, since 480 greater than can then extinguish screen close to threshold value 450, then will lead to this should not extinguish the feelings of screen
Screen is extinguished under condition, seriously affects user experience.
After determining present terminal by foreign matter interference, according to present terminal described in setting adjustment rule adjustment close to biography
Sensor close to threshold value and far from threshold value be suitable for that there are the shiftings that foreign matter interferes close to threshold value and far from threshold value so that adjusted
Dynamic control of the terminal to screen state.
The second adjustment value of the determination the first adjustment value close to threshold value and the separate threshold value may include: to obtain
It takes under proximity state from setting value to the first time of proximity sensor maximum value and far from maximum from proximity sensor under state
It is worth the second time of setting value;According to the ratio or difference between second time and the first time, institute is determined
State the second adjustment value of the first adjustment value and the separate threshold value close to threshold value.Wherein, the first adjustment value and second is adjusted
The value range of whole value is 100~200.
Wherein, the setting value is the pre-set value close proximity to sensor maximum value, for example, proximity sensor
Maximum value is 1023, then the setting value can use any value between 800-900, such as value 900.As long as terminal has distance
Variation, then proximity sensor is easy for reaching the setting value.
The proximity state is that proximity sensor proximity values are in locating in the change procedure from setting value to maximum value
State, the separate state are that proximity sensor proximity values are in shape locating in the change procedure from maximum value to setting value
State.Illustratively, proximity sensor proximity values terminal during tapering to 1023 from 900 is in proximity state, connects
Nearly sensor proximity values terminal during tapering to 900 from 1023 is in far from state.
Wherein, the first adjustment value and second adjustment value can be identical value, or different values.Described
The value range of one adjusted value and second adjustment value can be 100~200.
In the difference or bigger ratio of the second time and first time, then illustrate the journey that terminal is interfered by foreign matter
It spends bigger, then larger value, such as 150 can be set by the first adjustment value and second adjustment value, in the second time and
When the difference or smaller ratio of one time, then the degree for illustrating that terminal is interfered by foreign matter is smaller, then can adjust first
Whole value and second adjustment value are set as smaller value, such as 100.The step passes through the ratio between the second time and first time
Value or difference can quick and precisely really to determine the first adjustment value close to threshold value and the second adjustment value far from threshold value
The fixed adjusted value close to threshold value and separate threshold value.
Step 405, according to adjusted close to threshold value and separate threshold value adjusted controls the screen of the present terminal
State.
The proximity values for the proximity sensor that will acquire are compared close to threshold value with separate threshold value adjusted with adjusted
Compared with lighting screen when proximity values are greater than close to threshold value;When proximity values are less than far from threshold value, extinguish screen.
Method provided in this embodiment, by after determining interference of the present terminal by foreign matters such as greasy dirts, according to setting
Adjust rule adjustment proximity sensor close to threshold value and far from threshold value, according to adjusted close to threshold value and adjusted separate
Threshold value controls the screen state of the present terminal, avoids mobile terminal and is still connect using original after being interfered by foreign matter
Nearly threshold value and far from threshold value, caused mobile terminal can not accurately control flow tentiform state the problem of, improve screen state control
The accuracy of system.
Example IV
Fig. 5 gives a kind of structural schematic diagram of the detection device for foreign matter of mobile terminal of the offer of the embodiment of the present invention four.
Device provided in this embodiment includes proximity sensor state determining module 501, touch event detection module 502 and foreign matter interference
Determining module 503.
The proximity sensor state determining module 501, for determining that the proximity sensor state of present terminal is close
State;
The touch event detection module 502, for detecting the touching for acting on the predeterminable area of present terminal touch screen
Touch event, the predeterminable area include with the smallest preset shape for touching platen edge of the proximity sensor vertical range and/
Or the region of size;
The foreign matter interferes determining module 503, for determining that the proximity sensor is interfered by foreign matter.
The detection device for foreign matter of mobile terminal provided in this embodiment, by being in the proximity sensor state for determining terminal
Proximity state, and when detecting the touch event for acting on the predeterminable area of terminal touch screen, determine the proximity sensor
It is interfered by foreign matter, can determine whether terminal is interfered by foreign matter in real time, effectively to evade foreign matter interference to the close sensing of terminal
The influence of device, and the foreign matter method of determining interference of the technical program is simply easily achieved, fast response time.
Based on the above technical solution, described device further include:
Touch screen dormant state control module, for the proximity sensor state for determining present terminal be proximity state it
Afterwards, it controls the touch screen and does not enter dormant state, to detect the touch thing for acting on the predeterminable area using touch screen
Part.
Based on the above technical solution, described device further include:
Touch event control module, for detecting the touch event for acting on the predeterminable area of present terminal touch screen
Later, controlling terminal is not responding to the touch event.
Based on the above technical solution, the proximity sensor state determining module is specifically used for:
If detecting, the proximity sensor maximum value of present terminal obtains event and is triggered, it is determined that the proximity sensor
State is proximity state.
Based on the above technical solution, described device further includes proximity sensor threshold adjustment module, described close
Sensor threshold value adjustment module is used for:
After determining the proximity sensor by foreign matter interference, according to close sensing described in setting adjustment rule adjustment
Device close to threshold value and far from threshold value;
According to adjusted close to threshold value and separate threshold value adjusted controls the screen state of the present terminal.
Based on the above technical solution, described device further include:
Prompt information generation module, for it is dry to generate foreign matter after determining the proximity sensor by foreign matter interference
Prompt information is disturbed, to prompt user to handle foreign matter.
The detection device for foreign matter of mobile terminal provided in an embodiment of the present invention can be performed what any embodiment of that present invention provided
The foreign matter detecting method of mobile terminal screen has the corresponding functional module of execution method and beneficial effect.
Embodiment five
A kind of mobile terminal is present embodiments provided, which may include the movement that the embodiment of the present invention four provides
Terminal detection device for foreign matter.Fig. 6 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention five provides, as shown in fig. 6,
The mobile terminal includes: that memory 601, central processing unit (Central Processing Unit, CPU) 602 (are also known as handled
Device, hereinafter referred to as CPU);The memory 601, for storing executable program code;The processor 602 is by reading institute
The executable program code that stores in memory 601 is stated to run program corresponding with the executable program code, to be used for
Execute: the proximity sensor state for determining present terminal is proximity state;It detects and acts on the default of present terminal touch screen
The touch event in region, the predeterminable area include default with the smallest touch platen edge of the proximity sensor vertical range
The region of shape and/or size;Determine that the proximity sensor is interfered by foreign matter.
The mobile terminal further include: Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric
Road 606, loudspeaker 611, proximity sensor 613, power management chip 608, input/output (I/O) subsystem 609, touch screen
612, other input/control devicess 610 and outside port 604, these components pass through one or more communication bus or signal
Line 607 communicates.
It should be understood that illustrating the example that mobile terminal 600 is only mobile terminal, and mobile terminal 600
It can have than shown in the drawings more or less component, can combine two or more components, or can be with
It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated
It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the mobile terminal provided in this embodiment for detecting foreign matter is described in detail below, the mobile terminal with
For mobile phone.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can
It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU502 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystem 609, the I/O subsystem 609 can be by the input/output peripherals in equipment, such as touch screen 612
With other input/control devicess 610, it is connected to Peripheral Interface 603.I/O subsystem 609 may include 6091 He of display controller
For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls
Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,
Other input/control devicess 610 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks idler wheel.It is worth noting that input controller 6092 can with it is following any one connect: keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.
Touch screen 612, the touch screen 612 are the input interface and output interface between user terminal and user, can
It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 6091 in I/O subsystem 609 receives electric signal from touch screen 612 or sends out to touch screen 612
Electric signals.Touch screen 612 detects the contact on touch screen, and the contact that display controller 6091 will test is converted to and is shown
The interaction of user interface object on touch screen 612, i.e. realization human-computer interaction, the user interface being shown on touch screen 612
Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light
Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 605 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 605 receives and sends RF letter
Number, RF signal is also referred to as electromagnetic signal, and RF circuit 605 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 605 may include for executing
The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606 is mainly used for receiving audio data from Peripheral Interface 603, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611 is reduced to sound for mobile phone to be passed through RF circuit 605 from the received voice signal of wireless network
And the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface 603 are supplied
Electricity and power management.
Proximity sensor 613, for determining the proximity sensor 613 according to the distance between object and proximity sensor
Proximity values, and proximity values are sent to processor, so that processor determines the state of proximity sensor according to proximity values.
Method provided by any embodiment of the invention can be performed in above-mentioned mobile terminal, has the corresponding function of execution method
Module and beneficial effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to any embodiment of that present invention is mentioned
The foreign matter detecting method of the mobile terminal of confession.
The technical principle that above are only presently preferred embodiments of the present invention and used.The present invention is not limited to spies described here
Determine embodiment, various significant changes, readjustment and the substitution being able to carry out for a person skilled in the art are not departing from
Protection scope of the present invention.Therefore, although the present invention has been described in more detail through the above examples, this hair
It is bright to be not limited only to above embodiments, it can also include other more equivalence enforcements without departing from the inventive concept
Example, and the scope of the present invention is determined by the scope of the claims.
Claims (13)
1. a kind of foreign matter detecting method of mobile terminal characterized by comprising
The proximity sensor state for determining present terminal is proximity state;
Detect that the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area include approaching with described
Sensor vertical apart from it is the smallest touch platen edge preset shape and/or size region, the shape of the predeterminable area and/
Or size can be adjusted according to demand;
Determine that the proximity sensor is interfered by foreign matter.
2. the method according to claim 1, wherein being close in the proximity sensor state for determining present terminal
After state, further includes:
It controls the touch screen and does not enter dormant state, to detect the touch thing for acting on the predeterminable area using touch screen
Part.
3. the method according to claim 1, wherein detecting the preset areas for acting on present terminal touch screen
After the touch event in domain, further includes:
Controlling terminal is not responding to the touch event.
4. the method according to claim 1, wherein the proximity sensor state of the determining present terminal is to connect
Nearly state includes:
If detecting, the proximity sensor maximum value of present terminal obtains event and is triggered, it is determined that the proximity sensor state
For proximity state.
5. method according to claim 1-4, which is characterized in that determining the proximity sensor by foreign matter
After interference, further includes:
According to proximity sensor described in setting adjustment rule adjustment close to threshold value and far from threshold value;
According to adjusted close to threshold value and separate threshold value adjusted controls the screen state of the present terminal.
6. method according to claim 1-4, which is characterized in that determining the proximity sensor by foreign matter
After interference, further includes:
It generates foreign matter and interferes prompt information, to prompt user to handle foreign matter.
7. a kind of detection device for foreign matter of mobile terminal characterized by comprising
Proximity sensor state determining module, for determining that the proximity sensor state of present terminal is proximity state;
Touch event detection module, it is described for detecting the touch event for acting on the predeterminable area of present terminal touch screen
Predeterminable area includes the area with the smallest preset shape for touching platen edge of the proximity sensor vertical range and/or size
Domain, the shape and/or size of the predeterminable area can be adjusted according to demand;
Foreign matter interferes determining module, for determining that the proximity sensor is interfered by foreign matter.
8. device according to claim 7, which is characterized in that further include:
Touch screen dormant state control module, for the proximity sensor state for determining present terminal be proximity state after,
It controls the touch screen and does not enter dormant state, to detect the touch event for acting on the predeterminable area using touch screen.
9. device according to claim 7, which is characterized in that further include:
Touch event control module, for detect the touch event for acting on the predeterminable area of present terminal touch screen it
Afterwards, controlling terminal is not responding to the touch event.
10. device according to claim 7, which is characterized in that the proximity sensor state determining module is specifically used for:
If detecting, the proximity sensor maximum value of present terminal obtains event and is triggered, it is determined that the proximity sensor state
For proximity state.
11. according to the described in any item devices of claim 7-10, which is characterized in that further include proximity sensor adjusting thresholds mould
Block, the proximity sensor threshold adjustment module are used for:
After determining the proximity sensor by foreign matter interference, according to proximity sensor described in setting adjustment rule adjustment
Close to threshold value and far from threshold value;
According to adjusted close to threshold value and separate threshold value adjusted controls the screen state of the present terminal.
12. according to the described in any item devices of claim 7-10-, which is characterized in that further include:
Prompt information generation module, for generating foreign matter interference and mentioning after determining the proximity sensor by foreign matter interference
Show information, to prompt user to handle foreign matter.
13. a kind of mobile terminal including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor performs the steps of when executing the computer program
The proximity sensor state for determining present terminal is proximity state;
Detect that the touch event for acting on the predeterminable area of present terminal touch screen, the predeterminable area include approaching with described
Sensor vertical apart from it is the smallest touch platen edge preset shape and/or size region, the shape of the predeterminable area and/
Or size can be adjusted according to demand;
Determine that the proximity sensor is interfered by foreign matter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611107742.XA CN106791047B (en) | 2016-12-05 | 2016-12-05 | A kind of foreign matter detecting method of mobile terminal, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611107742.XA CN106791047B (en) | 2016-12-05 | 2016-12-05 | A kind of foreign matter detecting method of mobile terminal, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106791047A CN106791047A (en) | 2017-05-31 |
CN106791047B true CN106791047B (en) | 2019-09-27 |
Family
ID=58874320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611107742.XA Active CN106791047B (en) | 2016-12-05 | 2016-12-05 | A kind of foreign matter detecting method of mobile terminal, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106791047B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026300B (en) * | 2019-11-19 | 2021-04-02 | 维沃移动通信有限公司 | Screen display method and electronic equipment |
CN112101340B (en) * | 2020-11-16 | 2021-02-05 | 展讯通信(上海)有限公司 | Screen stain recognition method and device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7633076B2 (en) * | 2005-09-30 | 2009-12-15 | Apple Inc. | Automated response to and sensing of user activity in portable devices |
CN101715020A (en) * | 2008-10-08 | 2010-05-26 | 深圳富泰宏精密工业有限公司 | Method for preventing error touches during conversation and touch mobile phone using same |
KR20090100319A (en) * | 2009-04-28 | 2009-09-23 | 엘지전자 주식회사 | User interface for a hand-held device and controll method thereof |
CN102411425B (en) * | 2011-07-22 | 2014-07-09 | 华为终端有限公司 | Method and device for controlling function of touch screen |
US9116571B2 (en) * | 2012-03-27 | 2015-08-25 | Adonit Co., Ltd. | Method and system of data input for an electronic device equipped with a touch screen |
US9689810B2 (en) * | 2013-10-08 | 2017-06-27 | Htc Corporation | Electronic apparatus with proximity sensor and automatic calibration method thereof |
CN105609085B (en) * | 2015-12-29 | 2018-03-02 | 广东欧珀移动通信有限公司 | A kind of screen luminance adjustment method and mobile terminal |
CN106095164B (en) * | 2016-05-31 | 2019-03-08 | 努比亚技术有限公司 | A kind of method and terminal incuding screen spot |
CN106101450B (en) * | 2016-08-12 | 2019-07-19 | Oppo广东移动通信有限公司 | A kind of compensation method of ambient light intensity and mobile terminal |
-
2016
- 2016-12-05 CN CN201611107742.XA patent/CN106791047B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106791047A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106855782B (en) | A kind of method, apparatus and terminal for preventing from accidentally touching | |
CN106775084B (en) | A kind of false-touch prevention method, device and mobile terminal of touch screen | |
CN106790978B (en) | Control method, device and the mobile terminal of mobile terminal screen state | |
CN106681638B (en) | A kind of touch screen control method, device and mobile terminal | |
CN106598335B (en) | A kind of touch screen control method, device and mobile terminal of mobile terminal | |
CN106648233B (en) | A kind of touch screen control method, device and mobile terminal of mobile terminal | |
CN106681554B (en) | A kind of control method of mobile terminal touch screen, device and mobile terminal | |
CN107422915B (en) | Response control mehtod, device, storage medium and the terminal of touch screen | |
CN106775087B (en) | Touch screen control method and device of mobile terminal and mobile terminal | |
US10466849B2 (en) | Method and terminal for preventing unintentional triggering of a touch key and storage medium | |
CN106681637B (en) | A kind of touch screen display methods, device and mobile terminal | |
CN106708263A (en) | Method and device for preventing mistaken touch of touch screens and mobile terminal | |
CN104182145B (en) | A kind of method for preventing misoperation of touch screen, device and mobile device | |
CN106775407A (en) | A kind of touch-screen control method of mobile terminal, device and mobile terminal | |
CN104636065A (en) | Method and device for awakening terminal | |
CN106681555A (en) | Touch screen control method and device of mobile terminal and mobile terminal | |
CN106406633A (en) | Touch screen edge error touch prevention method and device and mobile terminal | |
CN107291313A (en) | Control method, device, storage medium and mobile terminal that a kind of fingerprint wakes up | |
CN106775404A (en) | A kind of false-touch prevention method of display interface, device and mobile terminal | |
CN106708363A (en) | Mistaken touch preventive method and device for display interface and mobile terminal | |
CN106708520A (en) | Touch screen control method and device of mobile terminal and mobile terminal | |
CN107105090A (en) | A kind of control method, device and the mobile terminal of suspension button | |
CN107357458A (en) | Response method, device, storage medium and the mobile terminal of touch key-press | |
CN109343066A (en) | Control method, device, storage medium and the mobile terminal of proximity sensor | |
CN106791047B (en) | A kind of foreign matter detecting method of mobile terminal, device and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |