CN105302347A - Method and apparatus for simulating distance sensor by using touch screen - Google Patents

Method and apparatus for simulating distance sensor by using touch screen Download PDF

Info

Publication number
CN105302347A
CN105302347A CN201410332932.6A CN201410332932A CN105302347A CN 105302347 A CN105302347 A CN 105302347A CN 201410332932 A CN201410332932 A CN 201410332932A CN 105302347 A CN105302347 A CN 105302347A
Authority
CN
China
Prior art keywords
screen
touch
register
range sensor
enable
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.)
Pending
Application number
CN201410332932.6A
Other languages
Chinese (zh)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201410332932.6A priority Critical patent/CN105302347A/en
Publication of CN105302347A publication Critical patent/CN105302347A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a method and an apparatus for simulating a distance sensor by using a touch screen. The method comprises the following steps: A, when it is detected that a mobile terminal is in a phone calling state, improving sensitivity of a touch screen by enabling a first register; and B, determining whether a human face is approaching or leaving by using the touch screen, and controlling on and off of the touch screen according to a determining result. According to the method and apparatus provided by the present invention, no distance sensor is required to be added into the mobile terminal, so that not only the hardware cost of the mobile terminal is reduced, but also the on and off function of the touch screen during a phone call is ensured.

Description

A kind of method and device utilizing touch-screen simulated range sensor
Technical field
The present invention relates to touch screen induction technical field, particularly relate to a kind of method and the device that utilize touch-screen simulated range sensor.
Background technology
Current smart mobile phone, its screen size is increasing, and in communication process, face easily touches touch-screen and causes maloperation when touch-screen, so need to close touch-screen when near face.Current way arranges range sensor in smart mobile phone, by range sensor respond to pressing close to of user's face or away from, thus realize call time architrave go out screen function.
Although way of the prior art can realize architrave and to go out the function of screen, due to need additionally to increase range sensor to realize by time bright screen or the function of the screen that goes out, so add the hardware cost of intelligent terminal, reduce product competitiveness.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of method and the device that utilize touch-screen simulated range sensor, being intended to solve existing touch-screen needs to rely on range sensor and to realize going out the problem of screen, bright screen function when talking state.
Technical scheme of the present invention is as follows:
Utilize a method for touch-screen simulated range sensor, wherein, comprise step:
A, when detect mobile terminal be in call state time, improve the sensitivity of touch-screen by enable first register;
B, by touch-screen identification face be press close to or away from, and control the light on and off of touch-screen according to recognition result.
The described method utilizing touch-screen simulated range sensor, wherein, described steps A specifically comprises:
A1, in touch-screen parameter, specify the value of the first register to control sensitivity of touch screen in advance;
A2, when detect mobile terminal be in call state time, this first register enable, improves the sensitivity of touch-screen.
The described method utilizing touch-screen simulated range sensor, wherein, described steps A 2 specifically comprises:
A21, touch-screen drive in create a range sensor virtual unit;
A22, mobile terminal be in call state time, this range sensor virtual unit enable;
A23, by enable first register of this range sensor virtual unit.
The described method utilizing touch-screen simulated range sensor, wherein, described step B specifically comprises:
B1, in touch-screen parameter, one second register is specified to store the parameter that touch-screen reports;
When B2, touch-screen detect that face is pressed close to, write a fixed value to this second register, and report upper strata, to control bright screen, detect face away from time, write another fixed value to this second register, and report upper strata, to control the screen that goes out.
The described method utilizing touch-screen simulated range sensor, wherein, in described steps A 1, controls the sensitivity of touch-screen the first half by specifying the value of the first register in touch-screen parameter.
Utilize a device for touch-screen simulated range sensor, wherein, comprising:
Sensitivity arranges module, for when detect mobile terminal be in call state time, improve the sensitivity of touch-screen by enable first register;
Touch screen control module, for by touch-screen identification face be press close to or away from, and control the light on and off of touch-screen according to recognition result.
The described device utilizing touch-screen simulated range sensor, wherein, described sensitivity arranges module and specifically comprises:
First designating unit, for specifying the value of the first register to control sensitivity of touch screen in advance in touch-screen parameter;
The enable unit of first register, for when detect mobile terminal be in call state time, this first register enable, improves the sensitivity of touch-screen.
The described device utilizing touch-screen simulated range sensor, wherein, the enable unit of described first register specifically comprises:
Virtual unit creates subelement, in driving at touch-screen, create a range sensor virtual unit;
The enable subelement of virtual unit, when calling state for being at mobile terminal, this range sensor virtual unit enable;
The enable subelement of first register, for passing through enable first register of this range sensor virtual unit.
The described device utilizing touch-screen simulated range sensor, wherein, described touch screen control module specifically comprises:
Second designating unit, stores for specifying one second register in touch-screen parameter the parameter that touch-screen reports;
Touch-screen control module, when detecting that face is pressed close to for touch-screen, writes a fixed value to this second register, and report upper strata, to control bright screen, detect face away from time, write another fixed value to this second register, and report upper strata, to control the screen that goes out.
The described device utilizing touch-screen simulated range sensor, wherein, described first designating unit is used for by specifying the value of the first register to control the sensitivity of touch-screen the first half in touch-screen parameter.
Beneficial effect: the present invention by detect mobile terminal be in call state time, enable first register improves the sensitivity of touch-screen, pressing close to of face is responded to or away from action by touch-screen, and the light on and off of touch-screen are controlled according to recognition result, because method of the present invention is without the need to increasing range sensor in the terminal, so both reduced mobile terminal hardware cost, the bright screen that in turn ensure that when touch-screen is conversed goes out screen function.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram utilizing the method preferred embodiment of touch-screen simulated range sensor of the present invention.
Fig. 2 is the particular flow sheet of step S101 in flow process shown in Fig. 1.
Fig. 3 is the particular flow sheet of step S201 in flow process shown in Fig. 2.
Fig. 4 is the particular flow sheet of step S102 in flow process shown in Fig. 1.
Fig. 5 is a kind of structured flowchart utilizing the device preferred embodiment of touch-screen simulated range sensor of the present invention.
Fig. 6 is the concrete structure block diagram that Fig. 5 shown device medium sensitivity arranges module.
Fig. 7 is the concrete structure block diagram of the enable unit of the first register in module shown in Fig. 6.
Fig. 8 is the concrete structure block diagram of touch screen control module in Fig. 5 shown device.
Embodiment
The invention provides a kind of method and the device that utilize touch-screen simulated range sensor, for making object of the present invention, technical scheme and effect clearly, clearly, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is a kind of process flow diagram utilizing the method preferred embodiment of touch-screen simulated range sensor of the present invention, and as shown in the figure, it comprises step:
S101, when detect mobile terminal be in call state time, improve the sensitivity of touch-screen by an enable register;
S102, by touch-screen identification face be press close to or away from, and control the light on and off of touch-screen according to recognition result.
In the present embodiment, it realizes principle: detect mobile terminal be in call state time, the sensitivity of touch-screen is improved by an enable register, the data reported according to touch-screen again identify user's face be away from or press close to touch-screen, then controlling the light on and off of touch-screen according to recognition result, namely when identifying user away from touch-screen, controlling touch-screen bright screen, when identifying user near touch-screen, then control touch-screen and to go out screen.
The basis that the present embodiment realizes is after the sensitivity of touch-screen is brought up to a certain degree, its identifiable design go out face away from or the action of pressing close to, preferably, the sensitivity of touch-screen is brought up to can identify within the scope of 3 ~ 5cm away from or press close to action, such as 5cm, touch-screen can detect face from the position of distance touch-screen 5cm to the action that touch-screen is close, also can to detect from the position within distance touch-screen 5cm then away from action.Touch-screen is after above-mentioned action being detected, upper strata can be transferred to process, to control the light on and off of touch-screen according to recognition result, when close action namely being detected, then control touch-screen to go out screen, detect away from action time, then control touch-screen bright screen, thus the function realized by simulated range sensor, control touch-screen bright screen and the screen that goes out.
After detecting that talking state terminates, then this first register of forbidden energy, the sensitivity by this touch-screen returns to arm's length standard, reduces sensitivity of touch screen, enables user normally use the function of touch-screen.
As the preferred embodiment of the present invention, as shown in Figure 2, described step S101 specifically comprises:
S201, in touch-screen parameter, specify the value of the first register to control sensitivity of touch screen in advance;
S202, when detect mobile terminal be in call state time, this first register enable, improves the sensitivity of touch-screen.
The present embodiment first resets touch-screen parameter, make touch-screen can simulate the function of range sensor, need specifically in touch-screen parameter, specify the value of the first register to control sensitivity of touch screen, detect mobile terminal be in call state time, then this first register enable, thus strengthen the sensitivity of this touch-screen.
In the present embodiment, in touch-screen parameter, preferably specify the value of the first register to control the sensitivity of touch-screen the first half.
Because user is in communication process, generally need the latter half holding touch-screen, if improve the sensitivity of monoblock touch-screen, just likely make user when holding touch-screen, cause touch-screen the action of pressing close to be detected always, cause and identify by mistake, cause touch-screen to be in screen state of going out always.So the preferred mode of the present invention is the sensitivity only improving touch-screen the first half, only when touch-screen is pressed close to face in talking state by user, the action of pressing close to just can be detected, or only user by touch-screen away from face time, just can detect away from action, make to detect identification more accurate, and this also existing range sensor cannot realize, so the function of simulated range sensor of the present invention, can not only realize controlling touch-screen in the bright screen called in process and screen function of going out, control procedure hommization more can also be made simultaneously, more accurate.In the specific implementation, the value 0xB0 of the first register can be specified in touch-screen parameter to control the sensitivity of touch-screen the first half.Certainly, its region controlled also specifically can adjust according to actual conditions, such as, for large-screen mobile phone and little screen mobile phone, suitably can adjust the control band of sensitivity of touch screen, to make touch-screen recognition detection more accurate.
As the preferred embodiment of the present invention, as shown in the figure, described step S202 specifically comprises:
S301, touch-screen drive in create a range sensor virtual unit;
S302, mobile terminal be in call state time, this range sensor virtual unit enable;
S303, by enable first register of this range sensor virtual unit.
In the present embodiment, except need configuring touch-screen parameter, also in touch-screen drives, a range sensor virtual unit is created at software section, detect mobile terminal be in call state time, then this range sensor virtual unit enable, this range sensor virtual unit will open the function of this first register, i.e. this first register enable further, thus open the function of touch-screen simulated range sensor, and detecting that mobile terminal is called after state terminates, then this range sensor virtual unit of forbidden energy, this first register of further forbidden energy, namely the value of the first register can not be specified, sensitivity of touch screen is in the standard of normal using forestland, thus close the function of touch-screen simulated range sensor, meet the function that user normally uses.
After creating range sensor virtual unit, also can build a communication interface, such as sysfs communication interface, this communication interface is used to provide to upper strata, upper strata is operated this range sensor virtual unit by this communication interface, operation wherein comprises this range sensor virtual unit enable, or this range sensor virtual unit of forbidden energy.
As the preferred embodiment of the present invention, as shown in the figure, described step S102 specifically comprises:
S401, in touch-screen parameter, one second register is specified to store the parameter that touch-screen reports;
When S402, touch-screen detect that face is pressed close to, write a fixed value to this second register, and report upper strata, to control bright screen, detect face away from time, write another fixed value to this second register, and report upper strata, to control the screen that goes out.
This second register is used for receiving and stores the parameter that touch-screen reports, touch-screen is when the action identifying that user's face is close or press close to, corresponding parameter can be reported, stored by the second register, specifically, touch-screen detect be in sensing range near or away from action, such as, when there is close action within 5cm, then write a fixed value to this second register, such as C0, then the data of write are reported upper strata, upper strata is transferred to process, thus control the screen that goes out of touch-screen, when have within 5cm away from action time, then to this second register write another one fixed value, such as E0, then the data of write are reported upper strata, upper strata is transferred to process, thus control the bright screen of touch-screen.
As the preferred embodiment of the present invention, in described step S401, in touch-screen drives, build communication interface, by this communication interface, this range sensor virtual unit is operated for upper strata.
Based on said method, the present invention also provides a kind of device preferred embodiment utilizing touch-screen simulated range sensor, and as shown in Figure 5, it comprises:
Sensitivity arranges module 100, for when detect mobile terminal be in call state time, improve the sensitivity of touch-screen by enable first register;
Touch screen control module 200, for by touch-screen identification face be press close to or away from, and control the light on and off of touch-screen according to recognition result.
Further, as shown in Figure 6, described sensitivity arranges module 100 and specifically comprises:
First designating unit 110, for specifying the value of the first register to control sensitivity of touch screen in advance in touch-screen parameter;
The enable unit 120 of first register, for when detect mobile terminal be in call state time, this first register enable, improves the sensitivity of touch-screen.
Further, as shown in Figure 7, the enable unit 120 of described first register specifically comprises:
Virtual unit creates subelement 121, in driving at touch-screen, create a range sensor virtual unit;
The enable subelement 122 of virtual unit, when calling state for being at mobile terminal, this range sensor virtual unit enable;
The enable subelement 123 of first register, for passing through enable first register of this range sensor virtual unit.
Further, as shown in Figure 8, described touch screen control module 200 specifically comprises:
Second designating unit 210, stores for specifying one second register in touch-screen parameter the parameter that touch-screen reports;
Touch-screen control module 220, when detecting that face is pressed close to for touch-screen, writes a fixed value to this second register, and report upper strata, to control bright screen, detect face away from time, write another fixed value to this second register, and report upper strata, to control the screen that goes out.
Further, described first designating unit 110 for by specifying the value of the first register to control the sensitivity of touch-screen the first half in touch-screen parameter.
Ins and outs about above-mentioned modular unit are existing in method above to be described in detail, therefore repeats no more.
In sum, the present invention by detect mobile terminal be in call state time, enable first register improves the sensitivity of touch-screen, pressing close to of face is responded to or away from action by touch-screen, and the light on and off of touch-screen are controlled according to recognition result, because method of the present invention is without the need to increasing range sensor in the terminal, so both reduced mobile terminal hardware cost, the bright screen that in turn ensure that when touch-screen is conversed goes out screen function.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1. utilize a method for touch-screen simulated range sensor, it is characterized in that, comprise step:
A, when detect mobile terminal be in call state time, improve the sensitivity of touch-screen by enable first register;
B, by touch-screen identification face be press close to or away from, and control the light on and off of touch-screen according to recognition result.
2. the method utilizing touch-screen simulated range sensor according to claim 1, is characterized in that, described steps A specifically comprises:
A1, in touch-screen parameter, specify the value of the first register to control sensitivity of touch screen in advance;
A2, when detect mobile terminal be in call state time, this first register enable, improves the sensitivity of touch-screen.
3. the method utilizing touch-screen simulated range sensor according to claim 2, is characterized in that, described steps A 2 specifically comprises:
A21, touch-screen drive in create a range sensor virtual unit;
A22, mobile terminal be in call state time, this range sensor virtual unit enable;
A23, by enable first register of this range sensor virtual unit.
4. the method utilizing touch-screen simulated range sensor according to claim 1, is characterized in that, described step B specifically comprises:
B1, in touch-screen parameter, one second register is specified to store the parameter that touch-screen reports;
When B2, touch-screen detect that face is pressed close to, write a fixed value to this second register, and report upper strata, to control bright screen, detect face away from time, write another fixed value to this second register, and report upper strata, to control the screen that goes out.
5. the method utilizing touch-screen simulated range sensor according to claim 2, is characterized in that, in described steps A 1, controls the sensitivity of touch-screen the first half by specifying the value of the first register in touch-screen parameter.
6. utilize a device for touch-screen simulated range sensor, it is characterized in that, comprising:
Sensitivity arranges module, for when detect mobile terminal be in call state time, improve the sensitivity of touch-screen by enable first register;
Touch screen control module, for by touch-screen identification face be press close to or away from, and control the light on and off of touch-screen according to recognition result.
7. the device utilizing touch-screen simulated range sensor according to claim 6, is characterized in that, described sensitivity arranges module and specifically comprises:
First designating unit, for specifying the value of the first register to control sensitivity of touch screen in advance in touch-screen parameter;
The enable unit of first register, for when detect mobile terminal be in call state time, this first register enable, improves the sensitivity of touch-screen.
8. the device utilizing touch-screen simulated range sensor according to claim 7, is characterized in that, the enable unit of described first register specifically comprises:
Virtual unit creates subelement, in driving at touch-screen, create a range sensor virtual unit;
The enable subelement of virtual unit, when calling state for being at mobile terminal, this range sensor virtual unit enable;
The enable subelement of first register, for passing through enable first register of this range sensor virtual unit.
9. the device utilizing touch-screen simulated range sensor according to claim 6, is characterized in that, described touch screen control module specifically comprises:
Second designating unit, stores for specifying one second register in touch-screen parameter the parameter that touch-screen reports;
Touch-screen control module, when detecting that face is pressed close to for touch-screen, writes a fixed value to this second register, and report upper strata, to control bright screen, detect face away from time, write another fixed value to this second register, and report upper strata, to control the screen that goes out.
10. the device utilizing touch-screen simulated range sensor according to claim 7, is characterized in that, described first designating unit is used for by specifying the value of the first register to control the sensitivity of touch-screen the first half in touch-screen parameter.
CN201410332932.6A 2014-07-14 2014-07-14 Method and apparatus for simulating distance sensor by using touch screen Pending CN105302347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410332932.6A CN105302347A (en) 2014-07-14 2014-07-14 Method and apparatus for simulating distance sensor by using touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410332932.6A CN105302347A (en) 2014-07-14 2014-07-14 Method and apparatus for simulating distance sensor by using touch screen

Publications (1)

Publication Number Publication Date
CN105302347A true CN105302347A (en) 2016-02-03

Family

ID=55199693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410332932.6A Pending CN105302347A (en) 2014-07-14 2014-07-14 Method and apparatus for simulating distance sensor by using touch screen

Country Status (1)

Country Link
CN (1) CN105302347A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817497A (en) * 2017-03-31 2017-06-09 努比亚技术有限公司 A kind of screen processing method and mobile terminal
CN108958544A (en) * 2018-06-29 2018-12-07 青岛海信移动通信技术股份有限公司 A kind of touch screen control method and device applied to terminal
CN109254656A (en) * 2018-08-22 2019-01-22 Oppo广东移动通信有限公司 Proximity test method and apparatus
CN110308850A (en) * 2019-06-26 2019-10-08 珠海格力电器股份有限公司 Equipment close to induction control method and control device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387252A (en) * 2011-10-11 2012-03-21 惠州Tcl移动通信有限公司 Handheld equipment and method for preventing touch screen from spurious triggering in call process of handheld equipment
CN103369142A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction
WO2013159483A1 (en) * 2012-04-23 2013-10-31 Mediatek Inc. Apparatus and method for performing proximity detection according to capacitive sensing output and status output
CN103516861A (en) * 2012-06-15 2014-01-15 国基电子(上海)有限公司 Handheld device and its control method for automatically answering phone and locking touch screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387252A (en) * 2011-10-11 2012-03-21 惠州Tcl移动通信有限公司 Handheld equipment and method for preventing touch screen from spurious triggering in call process of handheld equipment
WO2013159483A1 (en) * 2012-04-23 2013-10-31 Mediatek Inc. Apparatus and method for performing proximity detection according to capacitive sensing output and status output
CN103516861A (en) * 2012-06-15 2014-01-15 国基电子(上海)有限公司 Handheld device and its control method for automatically answering phone and locking touch screen
CN103369142A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817497A (en) * 2017-03-31 2017-06-09 努比亚技术有限公司 A kind of screen processing method and mobile terminal
CN108958544A (en) * 2018-06-29 2018-12-07 青岛海信移动通信技术股份有限公司 A kind of touch screen control method and device applied to terminal
CN109254656A (en) * 2018-08-22 2019-01-22 Oppo广东移动通信有限公司 Proximity test method and apparatus
CN109254656B (en) * 2018-08-22 2021-03-23 Oppo广东移动通信有限公司 Proximity detection method and device
CN110308850A (en) * 2019-06-26 2019-10-08 珠海格力电器股份有限公司 Equipment close to induction control method and control device

Similar Documents

Publication Publication Date Title
CN103455278B (en) Association processing method and processing device
CN106201170B (en) A kind of the footmark processing method and terminal of application icon
CN104156073A (en) Mobile terminal and operation method thereof
EP4322539A2 (en) Method for an all-in-one machine to realize quick touch in all channels
EP3693843A1 (en) Method and apparatus for designating entire area using partial area touch in a portable equipment
CN103647875B (en) Method and apparatus for screen state controlling, and mobile terminal
CN105159530A (en) Application display object switching method and apparatus
CN105302347A (en) Method and apparatus for simulating distance sensor by using touch screen
CN104598151A (en) Recognition method and recognition device for blank screen gestures
CN103793137A (en) Display method and electronic device
CN105607853B (en) A kind of information processing method and electronic equipment
CN103793175A (en) Touch screen communication terminal and touch response method and system in communication state thereof
CN104063092A (en) Method and device for controlling touch screen
CN104536643A (en) Icon dragging method and terminal
CN107315531A (en) The control method and system of intelligent terminal application
US20180284970A1 (en) Mobile electronic device, control method, and control medium
CN105630241A (en) Scaling method and system for screen displayed content
CN103870120B (en) A kind of information processing method and electronic equipment
KR20140134940A (en) Mobile terminal and method for controlling touch screen and system threefor
CN203694612U (en) Electronic building block and electronic building block group
CN106484304A (en) The control method, system of touch panel device brightness and volume and touch panel device
CN105578313B (en) Long-range control method, system are remote to control execution method, system and mobile terminal
CN105808089A (en) Data transmission method and first electronic device
CN103442134A (en) Method and system for achieving switch function of touch screen of mobile terminal
CN103677616A (en) Operating method of electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160203