CN102411425A - Method and device for controlling functions of touch screen - Google Patents

Method and device for controlling functions of touch screen Download PDF

Info

Publication number
CN102411425A
CN102411425A CN2011102064150A CN201110206415A CN102411425A CN 102411425 A CN102411425 A CN 102411425A CN 2011102064150 A CN2011102064150 A CN 2011102064150A CN 201110206415 A CN201110206415 A CN 201110206415A CN 102411425 A CN102411425 A CN 102411425A
Authority
CN
China
Prior art keywords
sensor
value
key
predetermined operations
obtaining
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.)
Granted
Application number
CN2011102064150A
Other languages
Chinese (zh)
Other versions
CN102411425B (en
Inventor
陶锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201110206415.0A priority Critical patent/CN102411425B/en
Publication of CN102411425A publication Critical patent/CN102411425A/en
Application granted granted Critical
Publication of CN102411425B publication Critical patent/CN102411425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for controlling functions of a touch screen, and belongs to the field of electronics. The method comprises the following steps: acquiring a current basic value of a sensor; the current basic value is the value of infrared light collected by the sensor when the sensor is in a working state and no object is close to the sensor; summing the current basic value and a preset difference value to obtain a threshold value of the sensor; the preset difference value is used for representing the difference between the intensity value of the externally reflected infrared light received by the sensor when an object contacts the sensor and the intensity value of the externally reflected infrared light received by the sensor when no object approaches the sensor; and controlling the working state of a touch screen of the terminal where the sensor is located according to the threshold value of the sensor. According to the invention, the threshold value is dynamically adjusted by dynamically acquiring the difference value between the basic value and the threshold value, and even if the surface of the sensor lens is dirty or scratched after a period of use, the self-adaption can be carried out by automatically adjusting the threshold value, so that the function of the proximity sensor is stabilized.

Description

The method and apparatus of control touch screen function
Technical field
The present invention relates to electronic technology field, particularly a kind of method and apparatus of controlling touch screen function.
Background technology
Proximity transducer is desirable electronic switch quantity sensor.Wherein, the catoptrics proximity transducer is a kind of of proximity transducer, and this sensor is integrated with an infrared efficiently thin slice transmitter, an optical detector and a special IC (Application Specific Intergrated Circuits usually in the encapsulation of a mounted on surface; ASIC), it is very little that volume can be done, in the earphone of complete implantable minimum; Transmitter sends the infrared light that human eye can't see; Optical detector detects the total amount of the light that reflects from target (such as finger, hand, cheek or ear) then, and ASIC converts light signal into electric signal through calculating, thereby processor is confirmed the distance of reflecting surface to sensor; With this apart from judging that whether proximity transducer is near human body skin; When human body near and away from the time, this sensor can detect, and spreads out of corresponding signal.
In the prior art, in the scheme of using touch-screen as the portable terminal input, can be when receiving calls because face causes false triggering near touch-screen.In order to address this problem, a lot of products have adopted the scheme of proximity transducer.When using proximity transducer, with proximity transducer be a fixed value near threshold settings, if the reflective infrared light intensity value of sensor acquisition surpasses threshold value, be judged to be approachingly, close touch screen function; If surpass threshold value, be judged to be not approachingly, enable touch screen function.
In the prior art proximity transducer be set to a fixed value near threshold value, proximity transducer is controlled touch screen functionality according to this fixed value, still; If environment has dirty or other variations a little near the sensor; Total amount that can the light that reflects of influence, thus the calculating of ASIC influenced, when value that will calculate as ASIC and fixed value compare; It is disconnected erroneous judgement to occur, possibly cause the disabler of proximity transducer under the serious situation.
Summary of the invention
In order to solve the problem that occurs in the prior art, the embodiment of the invention provides a kind of method and apparatus of controlling touch screen function.Said technical scheme is following:
On the one hand, a kind of method of controlling touch screen function is provided, said method comprises:
Obtain the current basic value of sensor; Said current basic value is that said sensor is in running order, and during the approaching said proximity transducer of outside no object, the value of the infrared light that said sensor acquisition arrives;
Said current basic value and preset difference value are carried out anded, obtain the threshold value of said sensor; The intensity level of the infrared light of the external reflection that said sensor receives during the approaching said sensor of the intensity level of the infrared light of the external reflection that said sensor received when said preset difference value was used to represent to have object to contact said sensor and no object poor;
According to the threshold value of said sensor, control the duty of the touch-screen at terminal, said sensor place.
On the one hand, a kind of sensor is provided, said sensor comprises:
Acquisition module is used to obtain the current basic value of sensor; Said current basic value is that said sensor is in running order, and during the approaching said proximity transducer of outside no object, the value of the infrared light that said sensor acquisition arrives;
Computing module is used for said current basic value and preset difference value are carried out anded, obtains the threshold value of said sensor; The intensity level of the infrared light of the external reflection that said sensor receives during the approaching said sensor of the intensity level of the infrared light of the external reflection that said sensor received when said preset difference value was used to represent to have object to contact said sensor and no object poor;
Control module is used for the threshold value according to said sensor, controls the duty of the touch-screen at terminal, said sensor place.
Another fermentation also provides a kind of mobile phone, and said mobile phone comprises: aforesaid sensor, shell, circuit board, processor, touch-screen, radio circuit, microphone, loudspeaker, power supply;
Said touch-screen is placed on the said shell, and said sensor is arranged on the said shell or below said touch-screen, said circuit board is placed in the interior volume that said shell surrounds, and said processor and said radio circuit are arranged on the said circuit board;
Said processor comprises all or part of in aforesaid each module; Said processor is used for the data of importing through said touch-screen are handled, and/or the data result after will handling is through said touch-screen output;
Said radio circuit is used to set up communicating by letter of mobile phone and wireless network, realizes the Data Receiving and the transmission of mobile phone and wireless network;
Said microphone is used to gather sound and the sound of gathering is converted into voice data, so that said mobile phone sends said voice data through said radio circuit to wireless network;
Said loudspeaker is used for said mobile phone is passed through said radio circuit from the voice data that wireless network receives, and is reduced to sound and plays this sound to the user;
Said power supply is used to each circuit or the device power supply of said mobile phone.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is: the threshold value of sensor is divided into basic value and difference two parts; The user is when using the terminal; Can adjust basic value dynamically; Thereby the threshold value of sensor can be adjusted according to user's demand in use,, also can carry out self-adaptation through automatic adjustment threshold value even use after a period of time the sensor lens surface to have dirty like this or cut etc.; Thereby stablized the function of proximity transducer, made sensor control terminal touch screen functionality more accurately.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of process flow diagram of controlling the method for touch screen function that the embodiment of the invention provides;
Fig. 2 is a kind of process flow diagram of controlling the method for touch screen function that the embodiment of the invention provides;
Fig. 3 is the structural representation of a kind of sensor of providing of the embodiment of the invention;
Fig. 4 is the structural representation of the another kind of sensor that provides of the embodiment of the invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Referring to Fig. 1, the embodiment of the invention provides a kind of method of controlling touch screen function, comprising:
101: obtain the current basic value of sensor; Said basic value is that said sensor is in running order, and during the approaching said proximity transducer of outside no object, the value of the infrared light that said sensor acquisition arrives;
102: current basic value and preset difference value are carried out anded, obtain the threshold value of said sensor; The intensity level of the infrared light of the external reflection that said sensor receives during the approaching said sensor of the intensity level of the infrared light of the external reflection that said sensor received when said preset difference value was used to represent to have object to contact said sensor and no object poor;
103:, control the duty of the touch-screen at terminal, said sensor place according to the threshold value of said sensor.
Alternatively, obtain the current basic value of sensor, comprising: whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives; If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key, with said first sampled value as the current basic value of sensor.
Present embodiment obtains the current basic value of sensor alternatively, comprising: whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives; If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key; Write down said N first sampled value of obtaining when N said user presses said predetermined operations key; Said N is the natural number greater than 1; Ask for the mean value of a said N sampled value, with said mean value as the current basic value of sensor.
Present embodiment obtains the current basic value of sensor alternatively, comprising: whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said proximity transducer of no object, the intensity level of the infrared light of the external reflection that said sensor receives; If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key; Judge said first sampled value whether less than the basic value of storage in advance, if said first sampled value less than the basic value of storage in advance, then with said first sampled value as the current basic value of said sensor.
Alternatively, in the present embodiment, obtain the current basic value of sensor, also comprise:, obtain the preset difference value of said sensor before according to the basic value of storing in the sensor.
Preferably, in the present embodiment,, obtain the difference of said sensor, comprising: second sampled value when obtaining the user and clicking the acknowledgement key on the preset interface according to the basic value of said sensor; Said second sampled value is that said sensor is in running order, and when object is arranged near said sensor, the infrared light intensity level of the reflection that said sensor receives; With the difference of the basic value of storing in said second sampled value and the said sensor preset difference value as said sensor.
The beneficial effect of method embodiment provided by the invention is: the threshold value of sensor is divided into basic value and difference two parts; The user is when using the terminal; Can adjust basic value dynamically; Thereby the threshold value of sensor can be adjusted according to user's demand in use,, also can carry out self-adaptation through automatic adjustment threshold value even use after a period of time the sensor lens surface to have dirty like this or cut etc.; Thereby stablized the function of proximity transducer, made sensor control terminal touch screen functionality more accurately.
Referring to Fig. 2, the embodiment of the invention provides a kind of method of controlling touch screen function, comprises;
201: obtain the current basic value B of proximity transducer.
In the present embodiment, sensor is a proximity transducer, and wherein, basic value is that proximity transducer is in running order, and outside no object near the time, the value of the various infrared lights that sensor acquisition arrives comprises the value of ambient infrared light and internal leakage infrared light etc.Wherein, proximity transducer through on the product line, it being carried out manual calibration, obtains basic value, with this basic value write store ad-hoc location after being assembled on the touch terminal.Basic value in the present embodiment is a dynamic adjustments, and in terminal user's use, basic value is a fixed value when conversing at every turn, but conversation may be with preceding once different when beginning to gather in next time.
Alternatively, in the present embodiment, obtain the current basic value B of proximity transducer and comprise: whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said proximity transducer of no object, the intensity level of the infrared light of the external reflection that said sensor receives; If, first sampled value when then obtaining said user and pressing said predetermined operations key, with said first sampled value as the current basic value of sensor.In the present embodiment; The predetermined operations key is a dial key, and when receiving calls, sensor is in running order; Go to enable touch screen functionality; After the user dialled at every turn or presses the operational motion of dial key when answering, sensor obtained the sampling numerical value b1 of this moment, with b1 as as time basic value B of comparison.Because when dialing and answer, need to press dial key, it is general that mobile phone all can be away from face before user plane at this moment.If extraneous like this have extra infrared signal,, can balance out through real-time collection like the infrared part in the sunshine.Here, sampling numerical value is no object during near proximity transducer, the intensity level of the infrared light of the external reflection that proximity transducer receives, and wherein, intensity is big or small relevant with the distance of reflecting surface.The concrete sampled value of how obtaining belongs to prior art, and present embodiment repeats no more to this.
Optional; Said predetermined operations key also can be provided with as required; Do not do qualification at this, for example said predetermined operations key can be the combination of any key in dial key, numerical key, letter key, return key, on-hook key, Menu key, the search key or a plurality of keys.
Alternatively; In the present embodiment, obtaining of current basic value B also can be adopted the average form of rolling, and specifically comprise: whether the operating key on the terminal that judges is pressed is the predetermined operations key; If, first sampled value when then obtaining said user and pressing said predetermined operations key; Write down said N first sampled value of obtaining when N said user presses said predetermined operations key; Said N is the natural number greater than 1; Ask for the mean value of a said N sampled value, obtain the current basic value of said sensor.The value of sampling when for example, when the user dials at every turn or answers, pressing dial key is as basic value b1, b2 ... Bn, because when pressing dial key, mobile phone all can be before user plane, away from face.In order to prevent accident, adopt the form of multiple averaging, the data of sampling are made even all when conversing with nearest n time, i.e. B=(b1+b2+ ... + bn)/and n, can eliminate cause because of certain appearance is unexpected unusual like this.
Alternatively, in the present embodiment, obtain current basic value B and comprise: whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said proximity transducer of no object, the intensity level of the infrared light of the external reflection that said sensor receives; If, first sampled value when then obtaining said user and pressing said predetermined operations key; Judge that whether said first sampled value is less than the basic value of storing in advance; If, then with said first sampled value as the current basic value of said sensor.For example, when each conversation, get the minimum value of collection, if first value of when connecting, gathering is b1, be made as basic value B, when certain value b2 constantly was less than b1 afterwards, B was updated to b2; And the like, keep B is the minimum value of this conversation always.Like this, if be to answer actually when being certain position of body contact when answering, can evade through this scheme because of false touch.
202:, obtain the preset difference value D of sensor according to the basic value of storing in the proximity transducer.
In the present embodiment, the intensity level of the infrared light of the external reflection that said sensor received when the difference D of sensor was the approaching said sensor of intensity level and the no object of infrared light of the external reflection that said sensor receives when having object to contact said sensor poor; , the terminal just can set this difference D when dispatching from the factory; But in the use at terminal; Also can obtain the preset difference value D of sensor, specifically comprise: second sampled value when obtaining the user and clicking the acknowledgement key on the preset interface according to the basic value of storing in the proximity transducer; Said second sampled value is that sensor is in running order, and when object is arranged near said sensor, the infrared light intensity level of the reflection that said sensor receives; With the difference of the basic value of storing in said second sampled value and the said proximity transducer preset difference value as said sensor.Concrete, preset interface is exactly that special operation interface is set on the terminal, obtains difference D through this operation interface; Wherein, operation divides two parts, and a part is the nearly sensor that catches; At this moment can read the numerical value that sensor acquisition arrives through the interface, with set about constantly near, sampled value can constantly increase; Another part is that acknowledgement key is arranged on the interface, can the value of this moment be read when pressing, and obtains second sampled value.Because judging the thresholding close screen is not to be only the best fully near sensor the time when face; When just having closed near to certain distance the time; Usually about 5cm, just having closed screen as threshold value, is more rational so the user goes artificially to set second sampled value according to the mobile phone individuality.For example, the user when touch screen function is insensitive, the special operation interface on opening a terminal; When user oneself with hand near when the certain distance, click ok and confirm that proximity transducer obtains the sampled value of this moment; Here, sampled value is that sensor is in running order, and when object proximity sensor is arranged; The infrared light intensity level of the reflection that sensor receives is defined as the difference d1 of this sampled value and basic value the difference D of sensor.Like this, the user can calibrate the proximity transducer function of the equipment of oneself at any time, can avoid causing disabler because of surface abrasion and dirty.
In actual use; Because it is different that assembling difference can cause emission to receive the lamp position, causes sampled data that certain difference is arranged, and all can increase such as the basic value and second sampled value; But trend is the same; Just difference is the same, in the present embodiment, can detect through difference and balance out assembling difference.
In the present embodiment, alternatively, when Default Value, can carry out this step 202; This moment, step 202 was carried out before step 201, in the use of reality, when touch-screen is insensitive; Also can carry out this step 202, this step 202 is alternatively certainly, also can be when Default Value; Directly specify preset difference value, do not carry out this step, this present embodiment is not done concrete qualification.
203: current basic value and preset difference value are carried out anded, obtain the threshold value of proximity transducer.
In the present embodiment, the threshold value of sensor is divided into basic value and difference two parts, threshold value is the summation of current basic value of sensor and preset difference value; In the process that reality is used; Current basic value is to implement to regulate, and preset difference value also can be regulated when touch-screen lost efficacy or be insensitive; Thereby obtain the threshold value of sensor, with the control touch screen functionality.For example, in actual production, can not can only be that an empirical value is used on all terminals to all debugging separately of each terminal; Concerning the terminal is individual, possibly not optimum value like this; But, can adjust threshold value through the adjustment difference for dissimilar terminals because in the present embodiment, thresholding is user-defined fully; So the process of debugging on the line producing has all been removed at the terminal of various models from, so just can avoid the individual difference that causes because of assembling difference.
Step 204: according to the threshold value of proximity transducer, the duty of the touch-screen at terminal, control proximity transducer place.
In the present embodiment, confirm the threshold value of proximity transducer after, proximity transducer just can come the duty of control terminal touch-screen through threshold value, if the reflective infrared light intensity value of sensor acquisition surpasses threshold value, is judged to be approachingly, closes touch screen function; If surpass threshold value, be judged to be not approachingly, enable touch screen function.
The beneficial effect of method embodiment provided by the invention is: the threshold value of sensor is divided into basic value and difference two parts; The user is when using the terminal; Can adjust basic value dynamically; Thereby the threshold value of sensor can be adjusted according to user's demand in use,, also can carry out self-adaptation through automatic adjustment threshold value even use after a period of time the sensor lens surface to have dirty like this or cut etc.; Thereby stablized the function of proximity transducer, made sensor control terminal touch screen functionality more accurately.Simultaneously since the user can own setting sensor difference, can reduce because the redundant problem such as little or critical of the thresholding that position difference is brought during assembling; Can not need readjust thresholding when changing the infraluminescence pipe, the user can adjust the threshold value of proximity transducer voluntarily through setting difference; No matter which kind of type can directly use this programme, need not to transfer to survey the back and set thresholding; And in case occur serious etc. causing failure conditions, can set, proofread and correct again, make functional rehabilitation through the user because of dirty.
Referring to Fig. 3, the embodiment of the invention provides a kind of sensor, comprising: acquisition module 301, computing module 302 and control module 303.
Acquisition module 301 is used to obtain the current basic value of sensor; Said current basic value is that said sensor is in running order, and during the approaching said sensor of outside no object, the value of the infrared light that said sensor acquisition arrives;
Computing module 302 is used for said current basic value and preset difference value are carried out anded, obtains the threshold value of said sensor; The intensity level of the infrared light of the external reflection that said sensor receives during the approaching said sensor of the intensity level of the infrared light of the external reflection that said sensor received when said preset difference value was used to represent to have object to contact said sensor and no object poor;
Control module 303 is used for the threshold value according to said sensor, controls the duty of the touch-screen at terminal, said sensor place.
Alternatively, acquisition module specifically is used for:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key, with said first sampled value as the current basic value of sensor.
Alternatively, acquisition module specifically is used for:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is no object proximity transducer, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key;
Write down said N first sampled value of obtaining when N said user presses said predetermined operations key; Said N is the natural number greater than 1;
Ask for the mean value of a said N sampled value, with said mean value as the current basic value of said sensor.
Alternatively, acquisition module specifically is used for:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is no object proximity transducer, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key;
Judge that whether said first sampled value is less than the basic value of storing in advance;
If said first sampled value less than in advance the storage basic value, then with said first sampled value as the current basic value of said sensor.
Alternatively, sensor also comprises:
Second acquisition module 304 is used for acquisition module 301 and obtains before the current basic value of sensor, according to the basic value of storing in the said sensor, obtains the preset difference value of said sensor.
Preferably, second acquisition module specifically is used for:
Second sampled value when obtaining the user and clicking the acknowledgement key on the preset interface; Said second sampled value is that said sensor is in running order, and when object is arranged near said sensor, the infrared light intensity level of the reflection that said sensor receives;
With the difference of the basic value of storing in said second sampled value and the said sensor difference as said sensor.
The embodiment of the invention also provides a kind of terminal, and this terminal comprises aforesaid sensor.Need to prove that this terminal can be a mobile phone, e-book, navigating instrument; Personal digital assistant (PDA, personal digital assistant), PC (personal computer); Palm PC, human-computer interaction terminal or other have the terminal device of Presentation Function.In embodiments of the present invention, when said device was mobile phone, said mobile phone may further include: shell, circuit board, processor, touch-screen, infrared proximity transducer, radio circuit, microphone, loudspeaker, power supply;
Above-mentioned touch-screen is placed on the above-mentioned shell; Above-mentioned infrared proximity transducer is arranged under the above-mentioned touch-screen or above-mentioned infrared sensor is set directly on the above-mentioned shell; The foregoing circuit plate is placed in the interior volume that above-mentioned shell surrounds, and above-mentioned processor and above-mentioned radio circuit are arranged on the foregoing circuit plate;
Above-mentioned processor comprises all or part of in aforesaid each module or the unit; Above-mentioned processor be used for the data of importing through above-mentioned touch-screen or above-mentioned infrared proximity transducer are handled, and/or the data result after will handling is through above-mentioned touch-screen output;
Above-mentioned radio circuit is used to set up communicating by letter of mobile phone and wireless network, realizes the Data Receiving and the transmission of mobile phone and wireless network;
Above-mentioned microphone is used to gather sound and the sound of gathering is converted into voice data, so that above-mentioned mobile phone sends the tut data through above-mentioned radio circuit to wireless network;
Above-mentioned loudspeaker is used for above-mentioned mobile phone is passed through above-mentioned radio circuit from the voice data that wireless network receives, and is reduced to sound and plays this sound to the user;
Above-mentioned power supply is used to each circuit or the device power supply of above-mentioned mobile phone.
The beneficial effect of device embodiment provided by the invention is: the threshold value of sensor is divided into basic value and difference two parts; The user is when using the terminal; Can adjust basic value dynamically; Thereby the threshold value of sensor can be adjusted according to user's demand in use,, also can carry out self-adaptation through automatic adjustment threshold value even use after a period of time the sensor lens surface to have dirty like this or cut etc.; Thereby stablized the function of proximity transducer, made sensor control terminal touch screen functionality more accurately.
The device that present embodiment provides, specifically can, belong to same design with method embodiment, its concrete implementation procedure sees method embodiment for details, repeats no more here.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be accomplished through hardware; Also can instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a method of controlling touch screen function is characterized in that, said method comprises:
Obtain the current basic value of sensor; Said current basic value is that said sensor is in running order, and during the approaching said sensor of outside no object, the value of the infrared light that said sensor acquisition arrives;
Said current basic value and preset difference value are carried out anded, obtain the threshold value of said sensor; The intensity level of the infrared light of the external reflection that said sensor receives during the approaching said sensor of the intensity level of the infrared light of the external reflection that said sensor received when said preset difference value was used to represent to have object to contact said sensor and no object poor;
According to the threshold value of said sensor, control the duty of the touch-screen at terminal, said sensor place.
2. method according to claim 1 is characterized in that, the said current basic value of sensor of obtaining comprises:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key, with said first sampled value as the current basic value of sensor.
3. method according to claim 1 is characterized in that, the said current basic value of sensor of obtaining comprises:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key;
Write down said N first sampled value of obtaining when N said user presses said predetermined operations key; Said N is the natural number greater than 1;
Ask for the mean value of a said N sampled value, with said mean value as the current basic value of sensor.
4. method according to claim 1 is characterized in that, the said current basic value of sensor of obtaining comprises:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key;
Judge that whether said first sampled value is less than the basic value of storing in advance; If said first sampled value less than in advance the storage basic value, then with said first sampled value as the current basic value of said sensor.
5. according to each described method of claim 1 to 4, it is characterized in that the said current basic value of sensor of obtaining also comprises before:
According to the basic value of storing in the sensor, obtain the preset difference value of said sensor.
6. method according to claim 5 is characterized in that, and is said according to the basic value of storing in the said sensor, obtains the difference of said sensor, comprising:
Second sampled value when obtaining the user and clicking the acknowledgement key on the preset interface; Said second sampled value is that said sensor is in running order, and when object is arranged near said sensor, the infrared light intensity level of the reflection that said sensor receives;
With the difference of the basic value of storing in said second sampled value and the said sensor preset difference value as said sensor.
7. a sensor is characterized in that, said sensor comprises:
Acquisition module is used to obtain the current basic value of said sensor; Said current basic value is that said sensor is in running order, and during the approaching said sensor of outside no object, the value of the infrared light that said sensor acquisition arrives;
Computing module is used for said current basic value and preset difference value are carried out anded, obtains the threshold value of said sensor; The intensity level of the infrared light of the external reflection that said sensor received when said preset difference value was the approaching said sensor of intensity level and the no object of infrared light of the external reflection that said sensor receives when having object to contact said sensor poor;
Control module is used for the threshold value according to said sensor, controls the duty of the touch-screen at terminal, said sensor place.
8. sensor according to claim 7 is characterized in that, said acquisition module specifically is used for:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key, with said first sampled value as the current basic value of sensor.
9. sensor according to claim 7 is characterized in that, said acquisition module specifically is used for:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key;
Write down said N first sampled value of obtaining when N said user presses said predetermined operations key; Said N is the natural number greater than 1;
Ask for the mean value of a said N sampled value, with said mean value as the current basic value of said sensor.
10. sensor according to claim 7 is characterized in that, said acquisition module specifically is used for:
Whether the operating key on the terminal that judges is pressed is the predetermined operations key, and said predetermined operations key is meant the button that is used for obtaining first sampled value; When the said first sampling numerical value is the approaching said sensor of no object, the intensity level of the infrared light of the external reflection that said sensor receives;
If the operating key on the terminal that said user presses is the predetermined operations key, first sampled value when then obtaining said user and pressing said predetermined operations key;
Judge that whether said first sampled value is less than the basic value of storing in advance;
If said first sampled value less than in advance the storage basic value, then with said first sampled value as the current basic value of said sensor.
11., it is characterized in that said sensor also comprises according to the described sensor of claim 7-10:
Second acquisition module is used for said acquisition module and obtains before the current basic value of sensor, according to the basic value of storing in the said sensor, obtains the preset difference value of said sensor.
12. sensor according to claim 11 is characterized in that, said second acquisition module specifically is used for:
Second sampled value when obtaining the user and clicking the acknowledgement key on the preset interface; Said second sampled value is that said sensor is in running order, and when object is arranged near said sensor, the infrared light intensity level of the reflection that said sensor receives;
With the difference of the basic value of storing in said second sampled value and the said sensor preset difference value as said sensor.
13. a mobile phone is characterized in that, said mobile phone comprises: like each described sensor of claim 7-12, shell, circuit board, processor, touch-screen, radio circuit, microphone, loudspeaker, power supply;
Said touch-screen is placed on the said shell, and said sensor is arranged on the said shell or below said touch-screen, said circuit board is placed in the interior volume that said shell surrounds, and said processor and said radio circuit are arranged on the said circuit board;
Said processor comprises all or part of in aforesaid each module; Said processor is used for the data of importing through said touch-screen are handled, and/or the data result after will handling is through said touch-screen output;
Said radio circuit is used to set up communicating by letter of mobile phone and wireless network, realizes the Data Receiving and the transmission of mobile phone and wireless network;
Said microphone is used to gather sound and the sound of gathering is converted into voice data, so that said mobile phone sends said voice data through said radio circuit to wireless network;
Said loudspeaker is used for said mobile phone is passed through said radio circuit from the voice data that wireless network receives, and is reduced to sound and plays this sound to the user;
Said power supply is used to each circuit or the device power supply of said mobile phone.
CN201110206415.0A 2011-07-22 2011-07-22 Method and device for controlling function of touch screen Active CN102411425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110206415.0A CN102411425B (en) 2011-07-22 2011-07-22 Method and device for controlling function of touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110206415.0A CN102411425B (en) 2011-07-22 2011-07-22 Method and device for controlling function of touch screen

Publications (2)

Publication Number Publication Date
CN102411425A true CN102411425A (en) 2012-04-11
CN102411425B CN102411425B (en) 2014-07-09

Family

ID=45913531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110206415.0A Active CN102411425B (en) 2011-07-22 2011-07-22 Method and device for controlling function of touch screen

Country Status (1)

Country Link
CN (1) CN102411425B (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833419A (en) * 2012-08-31 2012-12-19 华为终端有限公司 Method and terminal for controlling screen state
CN102932527A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Mobile terminal and calibration method of distance sensor thereof
CN103389834A (en) * 2012-05-11 2013-11-13 敦南科技股份有限公司 Method and system for correcting electronic devices
WO2013166803A1 (en) * 2012-05-08 2013-11-14 广东欧珀移动通信有限公司 Detection algorithm for touchscreen mobile phone infrared proximity sensor
WO2014035557A1 (en) * 2012-08-30 2014-03-06 Apple Inc. Electronic device with adaptive proximity sensor threshold
CN103777818A (en) * 2012-10-17 2014-05-07 敦南科技股份有限公司 Proximity sensing method and device
CN103837910A (en) * 2014-03-20 2014-06-04 深圳市金立通信设备有限公司 Method for determining threshold value of proximity sensor and terminal
CN104407399A (en) * 2014-12-02 2015-03-11 三星半导体(中国)研究开发有限公司 Method for calibrating proximity sensor in portable terminal
CN104702790A (en) * 2015-03-16 2015-06-10 上海与德通讯技术有限公司 Threshold value calibration method of distance sensor and mobile terminal
CN104731505A (en) * 2015-03-31 2015-06-24 上海盈方微电子有限公司 Method for controlling touch screen operation response of terminal
CN106019260A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Distance sensor anti-fouling method and system on mobile terminal
CN106094055A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 The calibration steps of a kind of proximity transducer and terminal
CN106249897A (en) * 2016-08-12 2016-12-21 广东欧珀移动通信有限公司 Control the method and device that screen extinguishes
CN106357922A (en) * 2016-10-12 2017-01-25 广东欧珀移动通信有限公司 State monitoring method and device for terminal equipment and terminal equipment
CN106502819A (en) * 2016-11-08 2017-03-15 广东欧珀移动通信有限公司 A kind of based on the control method of proximity transducer, device and mobile terminal
CN106598444A (en) * 2016-12-06 2017-04-26 广东欧珀移动通信有限公司 Mobile terminal control method and mobile terminal
CN106791108A (en) * 2016-12-22 2017-05-31 广东欧珀移动通信有限公司 A kind of threshold value update method of proximity transducer, device and terminal
CN106791047A (en) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 A kind of foreign matter detecting method of mobile terminal, device and mobile terminal
CN106973163A (en) * 2017-03-30 2017-07-21 努比亚技术有限公司 The dynamic calibration method and its device of a kind of infrared proximity transducer
CN107422876A (en) * 2017-07-18 2017-12-01 广东欧珀移动通信有限公司 A kind of control method of proximity transducer, device, storage medium and mobile terminal
CN108989566A (en) * 2018-08-01 2018-12-11 Oppo广东移动通信有限公司 control method, electronic device and computer readable storage medium
CN112283882A (en) * 2020-10-16 2021-01-29 珠海格力电器股份有限公司 Method and device for acquiring sampling value and air conditioner
CN112802229A (en) * 2021-01-09 2021-05-14 徐占奇 Automobile data recorder based on wireless communication and video recording function control method thereof
CN113514902A (en) * 2021-06-22 2021-10-19 Tcl通讯(宁波)有限公司 Infrared proximity sensor dynamic threshold adjustment method and mobile device
CN115014408A (en) * 2021-09-17 2022-09-06 荣耀终端有限公司 Electronic device
CN115371850A (en) * 2021-08-10 2022-11-22 武汉康亿顺体育有限公司 Cold weapon sword head data acquisition sensor based on fencing motion

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340477A (en) * 2007-07-06 2009-01-07 希姆通信息技术(上海)有限公司 Method for implementing sensitivity regulation of touch key on mobile phone
CN101741983A (en) * 2009-12-10 2010-06-16 中兴通讯股份有限公司 Method and terminal for realizing proximity induction
US20100164479A1 (en) * 2008-12-29 2010-07-01 Motorola, Inc. Portable Electronic Device Having Self-Calibrating Proximity Sensors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340477A (en) * 2007-07-06 2009-01-07 希姆通信息技术(上海)有限公司 Method for implementing sensitivity regulation of touch key on mobile phone
US20100164479A1 (en) * 2008-12-29 2010-07-01 Motorola, Inc. Portable Electronic Device Having Self-Calibrating Proximity Sensors
CN101741983A (en) * 2009-12-10 2010-06-16 中兴通讯股份有限公司 Method and terminal for realizing proximity induction

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013166803A1 (en) * 2012-05-08 2013-11-14 广东欧珀移动通信有限公司 Detection algorithm for touchscreen mobile phone infrared proximity sensor
CN103389834B (en) * 2012-05-11 2016-05-11 敦宏科技股份有限公司 The method of correcting electronic device and system thereof
CN103389834A (en) * 2012-05-11 2013-11-13 敦南科技股份有限公司 Method and system for correcting electronic devices
WO2014035557A1 (en) * 2012-08-30 2014-03-06 Apple Inc. Electronic device with adaptive proximity sensor threshold
US9411048B2 (en) 2012-08-30 2016-08-09 Apple Inc. Electronic device with adaptive proximity sensor threshold
CN102833419A (en) * 2012-08-31 2012-12-19 华为终端有限公司 Method and terminal for controlling screen state
CN102833419B (en) * 2012-08-31 2014-11-05 华为终端有限公司 Method and terminal for controlling screen state
CN102932527A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Mobile terminal and calibration method of distance sensor thereof
CN103777818A (en) * 2012-10-17 2014-05-07 敦南科技股份有限公司 Proximity sensing method and device
CN103777818B (en) * 2012-10-17 2016-08-17 敦宏科技股份有限公司 Proximity method for sensing and device
CN103837910A (en) * 2014-03-20 2014-06-04 深圳市金立通信设备有限公司 Method for determining threshold value of proximity sensor and terminal
CN104407399A (en) * 2014-12-02 2015-03-11 三星半导体(中国)研究开发有限公司 Method for calibrating proximity sensor in portable terminal
CN104407399B (en) * 2014-12-02 2017-01-04 三星半导体(中国)研究开发有限公司 For the method at portable terminal alignment proximity transducer
CN104702790B (en) * 2015-03-16 2017-05-10 上海与德通讯技术有限公司 Threshold value calibration method of distance sensor and mobile terminal
CN104702790A (en) * 2015-03-16 2015-06-10 上海与德通讯技术有限公司 Threshold value calibration method of distance sensor and mobile terminal
CN104731505A (en) * 2015-03-31 2015-06-24 上海盈方微电子有限公司 Method for controlling touch screen operation response of terminal
CN106019260A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Distance sensor anti-fouling method and system on mobile terminal
WO2017185701A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Distance sensor antifouling method and system on mobile terminal
CN106094055A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 The calibration steps of a kind of proximity transducer and terminal
CN106249897A (en) * 2016-08-12 2016-12-21 广东欧珀移动通信有限公司 Control the method and device that screen extinguishes
CN106357922A (en) * 2016-10-12 2017-01-25 广东欧珀移动通信有限公司 State monitoring method and device for terminal equipment and terminal equipment
CN106502819B (en) * 2016-11-08 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on proximity sensor and mobile terminal
CN106502819A (en) * 2016-11-08 2017-03-15 广东欧珀移动通信有限公司 A kind of based on the control method of proximity transducer, device and mobile terminal
CN106791047A (en) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 A kind of foreign matter detecting method of mobile terminal, device and mobile terminal
CN106598444A (en) * 2016-12-06 2017-04-26 广东欧珀移动通信有限公司 Mobile terminal control method and mobile terminal
CN106598444B (en) * 2016-12-06 2020-01-14 Oppo广东移动通信有限公司 Control method of mobile terminal and mobile terminal
CN106791108A (en) * 2016-12-22 2017-05-31 广东欧珀移动通信有限公司 A kind of threshold value update method of proximity transducer, device and terminal
CN106791108B (en) * 2016-12-22 2020-03-10 Oppo广东移动通信有限公司 Threshold updating method and device of proximity sensor and terminal
CN106973163A (en) * 2017-03-30 2017-07-21 努比亚技术有限公司 The dynamic calibration method and its device of a kind of infrared proximity transducer
CN106973163B (en) * 2017-03-30 2020-07-14 深圳市君利信达科技有限公司 Dynamic calibration method and device of infrared proximity sensor
CN107422876A (en) * 2017-07-18 2017-12-01 广东欧珀移动通信有限公司 A kind of control method of proximity transducer, device, storage medium and mobile terminal
CN107422876B (en) * 2017-07-18 2019-06-28 Oppo广东移动通信有限公司 A kind of control method of proximity sensor, device, storage medium and mobile terminal
WO2019015417A1 (en) * 2017-07-18 2019-01-24 Oppo广东移动通信有限公司 Proximity sensor control method and device, storage medium and mobile terminal
US11159672B2 (en) 2017-07-18 2021-10-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling proximity sensor, device, and mobile terminal
CN108989566A (en) * 2018-08-01 2018-12-11 Oppo广东移动通信有限公司 control method, electronic device and computer readable storage medium
CN112283882A (en) * 2020-10-16 2021-01-29 珠海格力电器股份有限公司 Method and device for acquiring sampling value and air conditioner
CN112802229A (en) * 2021-01-09 2021-05-14 徐占奇 Automobile data recorder based on wireless communication and video recording function control method thereof
CN113514902A (en) * 2021-06-22 2021-10-19 Tcl通讯(宁波)有限公司 Infrared proximity sensor dynamic threshold adjustment method and mobile device
CN115371850A (en) * 2021-08-10 2022-11-22 武汉康亿顺体育有限公司 Cold weapon sword head data acquisition sensor based on fencing motion
CN115014408A (en) * 2021-09-17 2022-09-06 荣耀终端有限公司 Electronic device

Also Published As

Publication number Publication date
CN102411425B (en) 2014-07-09

Similar Documents

Publication Publication Date Title
CN102411425A (en) Method and device for controlling functions of touch screen
CN110139262B (en) Bluetooth communication control method and related product
US9891719B2 (en) Impact and contactless gesture inputs for electronic devices
US20110206215A1 (en) Personal listening device having input applied to the housing to provide a desired function and method
CN108540900B (en) Volume adjusting method and related product
CN105163234B (en) A kind of adaptation method of self-shooting bar, device and corresponding mobile device
CN110839190B (en) Earphone wearing detection method and device, earphone and readable storage medium
CN108924706A (en) Bluetooth headset method for handover control, bluetooth headset and computer readable storage medium
CN105391853A (en) Voice call control method and voice call control device
CN102833419B (en) Method and terminal for controlling screen state
CN105794186A (en) Method, device and electronic device for controlling application program
CN106303023A (en) Screen state control method and device
CN103458113A (en) Method and terminal for adjusting communication volume
CN109918039A (en) A kind of volume adjusting method and mobile terminal
EP1670221B1 (en) Receiver position optimizing device for mobile communication terminal and method thereof
CN113360005B (en) Color cast adjusting method and related product
US20240163603A1 (en) Smart glasses, system and control method thereof
CN111314560A (en) Method for adjusting sound loudness and communication terminal
CN108777741A (en) antenna switching control method and related product
CN108712563B (en) Call control method and device and mobile terminal
CN202004844U (en) Mobile terminal utilizing gravity sensor to identify user's use habits
CN108668018B (en) Mobile terminal, volume control method and related product
CN110418023A (en) Jingle bell processing method, device, mobile terminal and storage medium
CN108429956B (en) Wireless earphone, control operation method and related product
CN110427149A (en) The operating method and terminal of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171031

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: Huawei terminal (Dongguan) Co.,Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: Huawei terminal (Dongguan) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20210420

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right