CN103442134A - Method and system for achieving switch function of touch screen of mobile terminal - Google Patents

Method and system for achieving switch function of touch screen of mobile terminal Download PDF

Info

Publication number
CN103442134A
CN103442134A CN2013103610599A CN201310361059A CN103442134A CN 103442134 A CN103442134 A CN 103442134A CN 2013103610599 A CN2013103610599 A CN 2013103610599A CN 201310361059 A CN201310361059 A CN 201310361059A CN 103442134 A CN103442134 A CN 103442134A
Authority
CN
China
Prior art keywords
touch
mobile terminal
screen
state
virtual
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
CN2013103610599A
Other languages
Chinese (zh)
Other versions
CN103442134B (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201310361059.9A priority Critical patent/CN103442134B/en
Publication of CN103442134A publication Critical patent/CN103442134A/en
Application granted granted Critical
Publication of CN103442134B publication Critical patent/CN103442134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and system for achieving the switch function of a touch screen of a mobile terminal. The method includes the steps that when the mobile terminal is detected to be in a calling state, a large-area touch function of the touch screen of the mobile terminal and driving of virtual Psensor equipment are started; the large-area touch function is used for judging whether an approaching state of the touch screen of the mobile terminal is changed or not, if yes, the virtual Psensor equipment is used for recording the value of a zone bit PS used for showing the current approaching state, driving of the virtual Psensor equipment is used for obtaining the value of the zone bit PS, and the value of the zone bit PS is transmitted to an upper layer; the upper layer is used for achieving the switch function of the touch screen according to the value of the zone bit PS.

Description

Realize the method and system of mobile terminal touch screen switching function
Technical field
The present invention relates to the mobile terminal touch screen technical field, relate in particular to a kind of method and system that realize the mobile terminal touch screen switching function.
Background technology
Along with popularizing gradually of the mobile terminals such as smart mobile phone, the mobile phone industry competition is more and more fierce, and each producer is also more and more harsher to the control of product cost.On the existing smart mobile phone with touch-screen, be generally to realize the switching function of touch-screen by Proximity Sensor (P-sensor), allowing the user when utilizing mobile phone dialing or receiving calls, prevent user misoperation and save electric weight.Adding of Proximity Sensor, make the handset structure design more complicated, increased the yoke to the mobile phone structural design, and increased cost, is unfavorable for improving 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 the method and system that realize the mobile terminal touch screen switching function, be intended to solve that existing touch-screen switch function need rely on that Proximity Sensor, cost are high, complex structural designs, the problem to the yoke of structural design that increased.
Technical scheme of the present invention is as follows:
A kind of method that realizes the mobile terminal touch screen switching function, it comprises step:
When mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
Utilize the large tracts of land touch function to judge whether the state that approaches of mobile terminal touch screen changes, when being, by virtual P-sensor equipment records, be used for meaning the current value that approaches the flag bit PS of state;
Utilize the driving of virtual P-sensor equipment to obtain the value of flag bit PS, the value of flag bit PS is passed to upper strata;
The function of switch touch-screen is realized on upper strata according to the value of flag bit PS.
The described method that realizes the mobile terminal touch screen switching function, wherein, the step of utilizing the large tracts of land touch function to judge whether the state that approaches of the touch-screen of mobile terminal changes specifically comprises:
Judge whether the touch-screen capacitance reaches threshold value, and whether the capped port number of touch-screen reaches predetermined number, when two conditions all meet, determine that the state that approaches of touch-screen is for there being object close, when two conditions all do not meet or only have a condition to meet, determine that the state that approaches of touch-screen is for close without object.
The described method that realizes the mobile terminal touch screen switching function, wherein, the value of flag bit PS is read in the driving of virtual P-sensor equipment by the mode of poll.
The described method that realizes the mobile terminal touch screen switching function wherein, also comprises step:
Be pre-created a virtual P-sensor equipment, and create corresponding driving for it.
A kind of system that realizes the mobile terminal touch screen switching function wherein, comprising:
Start module, for when mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
Logging modle, judge for utilizing the large tracts of land touch function whether the state that approaches of mobile terminal touch screen changes, and when being, by virtual P-sensor equipment records, is used for meaning the current value that approaches the flag bit PS of state;
Acquisition module, obtain the value of flag bit PS for the driving that utilizes virtual P-sensor equipment, the value of flag bit PS is passed to upper strata;
Switch module, realize the function of switch touch-screen according to the value of flag bit PS for upper strata.
The described system that realizes the mobile terminal touch screen switching function, wherein, described logging modle comprises:
Whether judging unit, reach threshold value for judging the touch-screen capacitance, and whether the capped port number of touch-screen reaches predetermined number; When two conditions all meet, determine that the state that approaches of touch-screen is for there being object close, when two conditions all do not meet or only have a condition to meet, determine that the state that approaches of touch-screen is for close without object.
The described system that realizes the mobile terminal touch screen switching function wherein, also comprises:
Creation module, for being pre-created a virtual P-sensor equipment, and create corresponding driving for it.
Beneficial effect: the present invention has reduced the mobile phone cost in the situation that do not change user's occupation mode, realized equally the function of traditional Proximity Sensor, after having removed Proximity Sensor simultaneously, make the handset structure design become more flexible and convenient, experience in the situation that do not affect the user, promoted product competitiveness.
The accompanying drawing explanation
Fig. 1 is the flow chart that the present invention realizes the method preferred embodiment of mobile terminal touch screen switching function.
Fig. 2 is the flow chart that the present invention realizes another embodiment of method of mobile terminal touch screen switching function.
Fig. 3 is the structured flowchart that the present invention realizes the system preferred embodiment of mobile terminal touch screen switching function.
Embodiment
The invention provides a kind of method and system that realize the mobile terminal touch screen switching function, clearer, clear and definite for making purpose of the present invention, technical scheme and effect, below the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart that the present invention realizes the method preferred embodiment of mobile terminal touch screen switching function, and as shown in the figure, it comprises:
S101, when mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
S102, utilize the large tracts of land touch function to judge whether the state that approaches of mobile terminal touch screen changes, when being, by virtual P-sensor equipment records for meaning the current value that approaches the flag bit PS of state;
S103, utilize the driving of virtual P-sensor equipment to obtain the value of flag bit PS, the value of flag bit PS is passed to upper strata;
The function of switch touch-screen is realized on S104, upper strata according to the value of flag bit PS.
Should be noted that, in above-mentioned steps, for convenience of description by each step numbers, but do not represent the execution sequence of step, for example step S102 and step S103 are for carry out simultaneously.
Before step S101, need be pre-created virtual P-sensor equipment, requirement according to the MTK platform simultaneously creates corresponding driving for it, in the P-sensor device drives, the state that large tracts of land is touched is united and is reported upper strata with the state that closes screen and spread its tail, for upper strata, whole software architecture does not change.
MTK(MediaTek Inc.) platform is for the driver of each touch-screen of unified management, simultaneously in order to realize the compatibility of different touch-screens, carry out the compliant architectures of a set of touch-screen, in order to allow the touch-screen in the present invention drive and can, on operate in normally the MTK platform, also need to follow above-mentioned compliant architectures.The MTK platform has created a platform driver(platform that is called " mtk-tpd " and has driven), the touch-screen in the present invention drives and need be loaded into this platform driving above, and the function of use is tpd_add_driver (); After touch-screen drives and successfully is loaded into this platform and drives, touch-screen initialization and coordinate report and all pass through this touch-screen and drive realization.
Simultaneously, manage various transducers for convenience in the MTK platform, its establishment has a set of sensor management framework, it has created a platform driver(platform driving that is called " hwmsensor " simultaneously), carried out state reporting work here, the present invention is downloaded to virtual P-sensor hanging equipment in corresponding list by the hwmsen_attach function, so just can the data of virtual P-sensor equipment have been visited by the MTK framework, the MTK platform has interruption and two kinds of modes of poll when obtaining data, only need in driving, corresponding state registration be entered and get final product.
In step S101, when mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
After touch-screen in the present invention drives and loads accordingly according to the MTK platform architecture, just can work, firmware(firmware in the inner programming of touch-screen drive IC (integrated circuit)) need to open corresponding function in, current state is obtained in the interruption that just can trigger by large tracts of land touch function (touch-screen need have the large tracts of land touch function) in communication process like this, as needs Guan Pingshi, just this state is kept to the value of variable ps_state(flag bit PS) in, wait for that P-sensor drives to obtain.
In whole communication process, need to guarantee that touch-screen is in running order, can not dormancy, can realize the large tracts of land touch function to guarantee touch-screen, switch touch screen function in the present invention simultaneously refers to the LCD of switch touch-screen, and when closing touch-screen LCD, touch-screen does not respond user's operation.
In step S102, utilize the large tracts of land touch function to judge whether the state that approaches of mobile terminal touch screen changes, when being, by virtual P-sensor equipment records, be used for meaning the current value that approaches the flag bit PS of state;
It specifically comprises: judge whether the touch-screen capacitance reaches threshold value, and whether the capped port number of touch-screen reaches predetermined number, when two conditions all meet, determine that the state that approaches of touch-screen is for there being object close, when two conditions all do not meet or only have a condition to meet, determine that the state that approaches of touch-screen is for close without object.When the state that approaches does not change, touch-screen will constantly continue to detect, and when changing, will record the current value that approaches the flag bit PS of state.
In step S103, utilize the driving of virtual P-sensor equipment to obtain the value of flag bit PS, the value of flag bit PS is passed to upper strata; Specifically, by the interface function of the poll that can provide by upper strata, the state of the ps_state preserved during touch-screen is driven reads, and reports to upper strata.
In step S104, the function of switch touch-screen is realized on upper strata according to the value of flag bit PS.
In whole flowchart process, touch-screen drives and the P-sensor driving all can continue to detect mobile terminal whether in communication process, if detect in communication process, touch-screen drives needs constantly to judge whether the current state that approaches changes, and P-sensor drives the value that needs continuous poll flag bit PS, and report upper strata.And detect not in communication process, touch-screen drives the pattern that large tracts of land touches that exits, and P-sensor drives and also can directly exit and close.
The present invention also provides the method that realizes the mobile terminal touch screen switching function another embodiment, and as shown in Figure 2, it comprises step:
S1, beginning;
S2, start the conversation; After starting conversation, system can be called two threads simultaneously: thread 1 and thread 2; Thread 1 comprises step S3 and S4, S5, and thread 2 comprises step S6, S7.
The large tracts of land touch function of S3, startup touch-screen;
Whether the state that approaches of S4, detection touch-screen changes;
S5, when detecting when approaching state and changing, record the value of current mark bit PS;
S6, startup P-sensor drive, the value of poll flag bit PS;
S7, report the value of flag bit PS to report upper strata;
Whether S8, judgement conversation finish; When finishing, execution step S9, otherwise return to step S3 and S6.
S9, end.
Based on said method, the present invention also provides the system that realizes mobile terminal touch screen switching function preferred embodiment, and as shown in Figure 3, it comprises:
Start module 100, for when mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
Logging modle 200, judge for utilizing the large tracts of land touch function whether the state that approaches of mobile terminal touch screen changes, and when being, by virtual P-sensor equipment records, is used for meaning the current value that approaches the flag bit PS of state;
Acquisition module 300, obtain the value of flag bit PS for the driving that utilizes virtual P-sensor equipment, the value of flag bit PS is passed to upper strata;
Switch module 400, realize the function of switch touch-screen according to the value of flag bit PS for upper strata.
Further, described logging modle comprises:
Whether judging unit, reach threshold value for judging the touch-screen capacitance, and whether the capped port number of touch-screen reaches predetermined number; When two conditions all meet, determine that the state that approaches of touch-screen is for there being object close, when two conditions all do not meet or only have a condition to meet, determine that the state that approaches of touch-screen is for close without object.
Further, also comprise:
Creation module, for being pre-created a virtual P-sensor equipment, and create corresponding driving for it.
In sum, the present invention has reduced the mobile phone cost in the situation that do not change user's occupation mode, realized equally the function of traditional Proximity Sensor, after having removed Proximity Sensor simultaneously, make the handset structure design become more flexible and convenient, experience in the situation that do not affect the user, promoted product competitiveness.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (7)

1. a method that realizes the mobile terminal touch screen switching function, it comprises step:
When mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
Utilize the large tracts of land touch function to judge whether the state that approaches of mobile terminal touch screen changes, when being, by virtual P-sensor equipment records, be used for meaning the current value that approaches the flag bit PS of state;
Utilize the driving of virtual P-sensor equipment to obtain the value of flag bit PS, the value of flag bit PS is passed to upper strata;
The function of switch touch-screen is realized on upper strata according to the value of flag bit PS.
2. the method that realizes the mobile terminal touch screen switching function according to claim 1, is characterized in that, the step of utilizing the large tracts of land touch function to judge whether the state that approaches of the touch-screen of mobile terminal changes specifically comprises:
Judge whether the touch-screen capacitance reaches threshold value, and whether the capped port number of touch-screen reaches predetermined number, when two conditions all meet, determine that the state that approaches of touch-screen is for there being object close, when two conditions all do not meet or only have a condition to meet, determine that the state that approaches of touch-screen is for close without object.
3. the method that realizes the mobile terminal touch screen switching function according to claim 1, is characterized in that, the value of flag bit PS is read in the driving of virtual P-sensor equipment by the mode of poll.
4. the method that realizes the mobile terminal touch screen switching function according to claim 1, is characterized in that, also comprises step:
Be pre-created a virtual P-sensor equipment, and create corresponding driving for it.
5. a system that realizes the mobile terminal touch screen switching function, is characterized in that, comprising:
Start module, for when mobile terminal being detected in talking state, start the large tracts of land touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
Logging modle, judge for utilizing the large tracts of land touch function whether the state that approaches of mobile terminal touch screen changes, and when being, by virtual Psensor equipment records, is used for meaning the current value that approaches the flag bit PS of state;
Acquisition module, obtain the value of flag bit PS for the driving that utilizes virtual P-sensor equipment, the value of flag bit PS is passed to upper strata;
Switch module, realize the function of switch touch-screen according to the value of flag bit PS for upper strata.
6. the system that realizes the mobile terminal touch screen switching function according to claim 5, is characterized in that, described logging modle comprises:
Whether judging unit, reach threshold value for judging the touch-screen capacitance, and whether the capped port number of touch-screen reaches predetermined number; When two conditions all meet, determine that the state that approaches of touch-screen is for there being object close, when two conditions all do not meet or only have a condition to meet, determine that the state that approaches of touch-screen is for close without object.
7. the system that realizes the mobile terminal touch screen switching function according to claim 5, is characterized in that, also comprises:
Creation module, for being pre-created a virtual P-sensor equipment, and create corresponding driving for it.
CN201310361059.9A 2013-08-19 2013-08-19 Realize the method and system of mobile terminal touch screen switching function Active CN103442134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310361059.9A CN103442134B (en) 2013-08-19 2013-08-19 Realize the method and system of mobile terminal touch screen switching function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310361059.9A CN103442134B (en) 2013-08-19 2013-08-19 Realize the method and system of mobile terminal touch screen switching function

Publications (2)

Publication Number Publication Date
CN103442134A true CN103442134A (en) 2013-12-11
CN103442134B CN103442134B (en) 2016-12-28

Family

ID=49695796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310361059.9A Active CN103442134B (en) 2013-08-19 2013-08-19 Realize the method and system of mobile terminal touch screen switching function

Country Status (1)

Country Link
CN (1) CN103442134B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841263A (en) * 2014-02-18 2014-06-04 上海华掌通信技术有限公司 Distance sensor scheme achieved based on CTP
CN105721665A (en) * 2015-04-13 2016-06-29 中科创达软件科技(深圳)有限公司 Mobile terminal incoming call answering method and device
NO20181316A1 (en) * 2018-09-12 2020-03-13 Elliptic Laboratories As Proximity sensing
WO2021114478A1 (en) * 2019-12-12 2021-06-17 惠州Tcl移动通信有限公司 Ranging method and apparatus thereof, storage medium, and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912819A (en) * 2005-08-12 2007-02-14 乐金电子(中国)研究开发中心有限公司 Touch input recognition method for terminal provided with touch screen and terminal thereof
CN101794197A (en) * 2010-04-06 2010-08-04 华为终端有限公司 Triggering method of touch screen, touch device and handheld device
CN102662524A (en) * 2012-04-24 2012-09-12 深圳市拓盛电子科技有限公司 Electronic device
CN102761670A (en) * 2012-07-26 2012-10-31 江西联创电子有限公司 Method for preventing misoperation of capacitive touch screen during phone call
CN102857598A (en) * 2012-09-19 2013-01-02 惠州Tcl移动通信有限公司 Control method for eliminating noise of double microphones of cellphone automatically and cellphone utilizing control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912819A (en) * 2005-08-12 2007-02-14 乐金电子(中国)研究开发中心有限公司 Touch input recognition method for terminal provided with touch screen and terminal thereof
CN101794197A (en) * 2010-04-06 2010-08-04 华为终端有限公司 Triggering method of touch screen, touch device and handheld device
CN102662524A (en) * 2012-04-24 2012-09-12 深圳市拓盛电子科技有限公司 Electronic device
CN102761670A (en) * 2012-07-26 2012-10-31 江西联创电子有限公司 Method for preventing misoperation of capacitive touch screen during phone call
CN102857598A (en) * 2012-09-19 2013-01-02 惠州Tcl移动通信有限公司 Control method for eliminating noise of double microphones of cellphone automatically and cellphone utilizing control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RONGWEI84N: "《Android距离感应器P-Sensor浅析 》", 《HTTP://BBS.51CTO.COM/THREAD-1021568-1.HTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841263A (en) * 2014-02-18 2014-06-04 上海华掌通信技术有限公司 Distance sensor scheme achieved based on CTP
CN105721665A (en) * 2015-04-13 2016-06-29 中科创达软件科技(深圳)有限公司 Mobile terminal incoming call answering method and device
CN105721665B (en) * 2015-04-13 2019-11-26 中科创达软件科技(深圳)有限公司 A kind of mobile terminal incoming call sound method and device
NO20181316A1 (en) * 2018-09-12 2020-03-13 Elliptic Laboratories As Proximity sensing
NO346144B1 (en) * 2018-09-12 2022-03-21 Elliptic Laboratories As Proximity sensing
WO2021114478A1 (en) * 2019-12-12 2021-06-17 惠州Tcl移动通信有限公司 Ranging method and apparatus thereof, storage medium, and terminal device
US11914813B2 (en) 2019-12-12 2024-02-27 Huizhou Tcl Mobile Communication Co., Ltd Ranging method and apparatus thereof, storage medium, and terminal device

Also Published As

Publication number Publication date
CN103442134B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN102662557B (en) Mobile terminal and unlock method
EP2713254A1 (en) Touch event reporting method, device and mobile terminal
CN103513869A (en) Method and device for displaying terminal lock screen interface and Widget
CN105573538B (en) Sliding broken line compensation method and electronic equipment
CN103699298A (en) Information processing method and electronic equipment
CN106886766B (en) A kind of fingerprint identification method, fingerprint recognition circuit and mobile terminal
US11079930B2 (en) Method and terminal for displaying a plurality of content cards
CN102331835A (en) Method and apparatus for managing an application being executed in a portable terminal
CN102681642B (en) Terminal device
CN102375579B (en) Input method and device based on large touch screen
CN103294290A (en) Touch panel driving method capable of eliminating charging noise
CN103442134A (en) Method and system for achieving switch function of touch screen of mobile terminal
US20170255284A1 (en) Method and apparatus for operating mobile terminal
US20140181726A1 (en) Method and electronic device for providing quick launch access and storage medium
CN103365469A (en) Method and device for detecting touch points, touch control drive circuit and touch screen
WO2014153998A1 (en) Method for controlling process of application and computer system
CN106095143A (en) A kind of information processing method and electronic equipment
US20130239069A1 (en) Control method for mobile device using setting pattern and mobile device
CN106445113A (en) Control method and system for mobile terminal, and mobile terminal
CN109074187A (en) Determination method, capacitance touch-control device and the electronic device of touch control detection wrong report point
US11914813B2 (en) Ranging method and apparatus thereof, storage medium, and terminal device
CN103533411A (en) Method and device for controlling motion of selection cursor
KR102106354B1 (en) Method and apparatus for controlling operation in a electronic device
CN105302347A (en) Method and apparatus for simulating distance sensor by using touch screen
CN102129321A (en) Touch screen-based track recording and comparing method

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