CN103442134B - Realize the method and system of mobile terminal touch screen switching function - Google Patents

Realize the method and system of mobile terminal touch screen switching function Download PDF

Info

Publication number
CN103442134B
CN103442134B CN201310361059.9A CN201310361059A CN103442134B CN 103442134 B CN103442134 B CN 103442134B CN 201310361059 A CN201310361059 A CN 201310361059A CN 103442134 B CN103442134 B CN 103442134B
Authority
CN
China
Prior art keywords
touch screen
mobile terminal
value
function
flag bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310361059.9A
Other languages
Chinese (zh)
Other versions
CN103442134A (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

Landscapes

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

Abstract

The invention discloses the method and system realizing mobile terminal touch screen switching function, method includes step: when detecting that mobile terminal is in talking state, starts wide area touch function and the driving of virtual Psensor equipment of mobile terminal touch screen;Wide area touch function is utilized to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual Psensor equipment record for representing the value of the flag bit PS of current proximity state;Utilize virtual Psensor equipment drives the value obtaining flag bit PS, and the value of flag bit PS is transferred to upper strata;Upper strata realizes the function of switch touch screen according to the value of flag bit PS.

Description

Realize the method and system of mobile terminal touch screen switching function
Technical field
The present invention relates to mobile terminal touch screen technical field, particularly relate to a kind of method and system realizing mobile terminal touch screen switching function.
Background technology
Along with gradually popularizing of the mobile terminals such as smart mobile phone, mobile phone industry competition is more and more fierce, and each producer is harsher to the control of product cost.On the smart mobile phone of existing band touch screen, realize the switching function of touch screen generally by Proximity Sensor (P-sensor), to allow user utilizing mobile phone dialing or receive calls when, prevent user misoperation and save electricity.The addition of Proximity Sensor, makes handset structure design more complicated, adds the yoke to handset structure design, and add cost, be 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, it is an object of the invention to provide the method and system realizing mobile terminal touch screen switching function, it is intended to solve existing touch-screen switch function and need to rely on Proximity Sensor, cost height, complex structural designs, add the problem to the yoke that structure designs.
Technical scheme is as follows:
A kind of method realizing mobile terminal touch screen switching function, it includes step:
When detecting that mobile terminal is in talking state, start wide area touch function and the driving of virtual P-sensor equipment of mobile terminal touch screen;
Wide area touch function is utilized to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual P-sensor equipment record for representing the value of the flag bit PS of current proximity state;
Utilize virtual P-sensor equipment drives the value obtaining flag bit PS, and the value of flag bit PS is transferred to upper strata;
Upper strata realizes the function of switch touch screen according to the value of flag bit PS.
The described method realizing mobile terminal touch screen switching function, wherein, the step utilizing wide area touch function to judge whether the proximity state of touch screen of mobile terminal changes specifically includes:
Judge whether touch screen capacitance reaches threshold value, and whether the port number that touch screen is capped reaches predetermined number, when both conditions are satisfied, determine that the proximity state of touch screen is for there being object close, when two condition all not met or only one of which condition meet, determine that the proximity state of touch screen is for close without object.
The described method realizing mobile terminal touch screen switching function, wherein, the mode being driven through poll of virtual P-sensor equipment reads the value of flag bit PS.
The described method realizing mobile terminal touch screen switching function, wherein, further comprises the steps of:
It is pre-created a virtual P-sensor equipment, and creates corresponding driving for it.
A kind of system realizing mobile terminal touch screen switching function, wherein, including:
Start module, for when detecting that mobile terminal is in talking state, start wide area touch function and the driving of virtual P-sensor equipment of mobile terminal touch screen;
Logging modle, for utilizing wide area touch function to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual P-sensor equipment record for representing the value of the flag bit PS of current proximity state;
Acquisition module, for utilizing the value driving acquisition flag bit PS of virtual P-sensor equipment, is transferred to upper strata by the value of flag bit PS;
Switch module, for upper strata, the value according to flag bit PS realizes switching the function of touch screen.
The described system realizing mobile terminal touch screen switching function, wherein, described logging modle includes:
Judging unit, is used for judging whether touch screen capacitance reaches threshold value, and whether the port number that touch screen is capped reaches predetermined number;When both conditions are satisfied, determine that the proximity state of touch screen, for there being object close, when two condition all not met or only one of which condition meet, determines that the proximity state of touch screen is for close without object.
The described system realizing mobile terminal touch screen switching function, wherein, also includes:
Creation module, is used for being pre-created a virtual P-sensor equipment, and creates corresponding driving for it.
Beneficial effect: the present invention reduces mobile phone cost in the case of not changing user's occupation mode, achieve the function of tradition Proximity Sensor equally, after eliminating Proximity Sensor simultaneously, handset structure design is made to become more flexibly and conveniently, in the case of not affecting Consumer's Experience, improve product competitiveness.
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.
Detailed description of the invention
The present invention provides a kind of method and system realizing mobile terminal touch screen switching function, and for making the purpose of the present invention, technical scheme and effect clearer, clear and definite, 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, is not intended to limit the present invention.
Referring 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, as it can be seen, comprising:
S101, when detecting that mobile terminal is in talking state, start the wide area touch function of mobile terminal touch screen and the driving of virtual P-sensor equipment;
S102, wide area touch function is utilized to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual P-sensor equipment record for representing the value of the flag bit PS of current proximity state;
S103, utilize virtual P-sensor equipment drive obtain flag bit PS value, the value of flag bit PS is transferred to upper strata;
S104, upper strata realize the function of switch touch screen according to the value of flag bit PS.
Should be noted that, in above-mentioned steps, for convenience of explanation by each step numbers, but do not represent the execution sequence of step, such as step S102 and step S103 for carry out simultaneously.
Before step S101, virtual P-sensor equipment need to be pre-created, simultaneously according to the driving that the requirement of MTK platform is its establishment correspondence, in P-sensor device drives, the state state of wide area touch shielded with pass and spread its tail is united and is reported upper strata, for upper strata, whole software architecture does not change.
MTK(MediaTek Inc.) platform is to be managed collectively the driver of each touch screen, simultaneously in order to realize the compatibility of different touch screen, carry out the compliant architectures of a set of touch screen, can be operating in normally above MTK platform in order to allow the touch screen in the present invention drive, it is also desirable to follow above-mentioned compliant architectures.MTK platform creates a platform being called " mtk-tpd " Driver(platform drives), the touch screen in the present invention drives and need to be loaded in the driving of this platform, and the function of use is tpd_add_driver ();After touch screen driving is loaded successfully into the driving of this platform, touch screen initializes and coordinate reports and all passes through the driving realization of this touch screen.
Simultaneously, various sensor is managed for convenience in MTK platform, its establishment has a set of sensor management framework, which create a platform driver(platform being called " hwmsensor " to drive) simultaneously, here carry out state reporting work, virtual P-sensor hanging equipment is downloaded in corresponding list by the present invention by hwmsen_attach function, the data of virtual P-sensor equipment thus can be accessed by MTK framework, MTK platform has interruption and poll two ways when of obtaining data, only in driving, corresponding state registration need to be entered.
In step S101, when detecting that mobile terminal is in talking state, start wide area touch function and the driving of virtual P-sensor equipment of mobile terminal touch screen;
Touch screen in the present invention drives after loading accordingly according to MTK platform architecture, just can normally work, drive IC(integrated circuit at touch screen) the firmware(firmware of internal programming) in need to open the function of correspondence, the interruption so triggered with regard to passing through wide area touch function (touch screen need to have wide area touch function) in communication process obtains current state, as needs Guan Pingshi, just this state is saved in the value of variable ps_state(flag bit PS) in, wait that P-sensor drives and obtain.
In whole communication process, need to ensure that touch screen is in running order, it is impossible to dormancy, to ensure that touch screen is capable of wide area touch function, switch touch screen function in the present invention refers to switch the LCD of touch screen simultaneously, and when closing touch screen LCD, touch screen is not responding to user operation.
In step s 102, wide area touch function is utilized to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual P-sensor equipment record for representing the value of the flag bit PS of current proximity state;
It specifically includes: judge whether touch screen capacitance reaches threshold value, and whether the port number that touch screen is capped reaches predetermined number, when both conditions are satisfied, determine that the proximity state of touch screen is for there being object close, when two condition all not met or only one of which condition meet, determine that the proximity state of touch screen is for close without object.When proximity state does not change, touch screen will the most persistently detect, and when changing, will record the value of the flag bit PS of current proximity state.
In step s 103, utilize virtual P-sensor equipment drives the value obtaining flag bit PS, and the value of flag bit PS is transferred to upper strata;Especially by the interface function of the poll that can be provided by upper strata, the state of the ps_state preserved in being driven by touch screen reads, and reports to upper strata.
In step S104, upper strata realizes the function of switch touch screen according to the value of flag bit PS.
In whole flowchart process, touch screen drives and P-sensor drives and can persistently detect mobile terminal whether in communication process, if detecting in communication process, then touch screen drives needs constantly to judge whether current proximity state changes, and P-sensor drives the value needing continuous poll flag bit PS, and report upper strata.And detecting not in communication process, then touch screen drives the pattern exiting wide area touch, and P-sensor drives also can directly exit closedown.
The present invention also provides for realizing another embodiment of method of mobile terminal touch screen switching function, as in figure 2 it is shown, it includes step:
S1, beginning;
S2, start call;After starting call, system can call two threads simultaneously: thread 1 and thread 2;Thread 1 includes that step S3 and S4, S5, thread 2 include step S6, S7.
S3, the wide area touch function of startup touch screen;
Whether S4, the proximity state of detection touch screen change;
S5, when detecting that proximity state changes, record current mark bit PS value;
S6, startup P-sensor drive, the value of poll flag bit PS;
S7, the value of flag bit PS is reported to report upper strata;
S8, judge call whether terminate;When finished, perform step S9, otherwise return step S3 and S6.
S9, end.
Based on said method, the present invention also provides for realizing the system preferred embodiment of mobile terminal touch screen switching function, as it is shown on figure 3, comprising:
Start module 100, for when detecting that mobile terminal is in talking state, start wide area touch function and the driving of virtual P-sensor equipment of mobile terminal touch screen;
Logging modle 200, for utilizing wide area touch function to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual P-sensor equipment record for representing the value of the flag bit PS of current proximity state;
Acquisition module 300, for utilizing the value driving acquisition flag bit PS of virtual P-sensor equipment, is transferred to upper strata by the value of flag bit PS;
Switch module 400, for upper strata, the value according to flag bit PS realizes switching the function of touch screen.
Further, described logging modle includes:
Judging unit, is used for judging whether touch screen capacitance reaches threshold value, and whether the port number that touch screen is capped reaches predetermined number;When both conditions are satisfied, determine that the proximity state of touch screen, for there being object close, when two condition all not met or only one of which condition meet, determines that the proximity state of touch screen is for close without object.
Further, also include:
Creation module, is used for being pre-created a virtual P-sensor equipment, and creates corresponding driving for it.
In sum, the present invention reduces mobile phone cost in the case of not changing user's occupation mode, achieve the function of tradition Proximity Sensor equally, after eliminating Proximity Sensor simultaneously, handset structure design is made to become more flexibly and conveniently, in the case of not affecting Consumer's Experience, improve product competitiveness.
It should be appreciated that the 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, all these modifications and variations all should belong to the protection domain of claims of the present invention.

Claims (2)

1. the method realizing mobile terminal touch screen switching function, it includes step:
When detecting that mobile terminal is in talking state, start wide area touch function and the driving of virtual P-sensor equipment of mobile terminal touch screen;
Wide area touch function is utilized to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual P-sensor equipment record for representing the value of the flag bit PS of current proximity state;
Utilize virtual P-sensor equipment drives the value obtaining flag bit PS, and the value of flag bit PS is transferred to upper strata;The state state of wide area touch shielded with pass and spread its tail is united and is reported upper strata;
Upper strata realizes the function of switch touch screen according to the value of flag bit PS;
The step utilizing wide area touch function to judge whether the proximity state of touch screen of mobile terminal changes specifically includes:
Judge whether touch screen capacitance reaches threshold value, and whether the port number that touch screen is capped reaches predetermined number, when both conditions are satisfied, determine that the proximity state of touch screen is for there being object close, when two condition all not met or only one of which condition meet, determine that the proximity state of touch screen is for close without object;
The mode being driven through poll of virtual P-sensor equipment reads the value of flag bit PS;
Further comprise the steps of:
It is pre-created a virtual P-sensor equipment, and creates corresponding driving for it;
Touch screen drive load is on platform driver, and the function of use is tpd_add_driver ().
2. the system realizing mobile terminal touch screen switching function, it is characterised in that including:
Start module, for when detecting that mobile terminal is in talking state, start wide area touch function and the driving of virtual P-sensor equipment of mobile terminal touch screen;
Logging modle, for utilizing wide area touch function to judge whether the proximity state of mobile terminal touch screen changes, when being, by virtual Psensor equipment record for representing the value of the flag bit PS of current proximity state;
Acquisition module, for utilizing the value driving acquisition flag bit PS of virtual P-sensor equipment, is transferred to upper strata by the value of flag bit PS;The state state of wide area touch shielded with pass and spread its tail is united and is reported upper strata;
Switch module, for upper strata, the value according to flag bit PS realizes switching the function of touch screen;
Described logging modle includes:
Judging unit, is used for judging whether touch screen capacitance reaches threshold value, and whether the port number that touch screen is capped reaches predetermined number;When both conditions are satisfied, determine that the proximity state of touch screen, for there being object close, when two condition all not met or only one of which condition meet, determines that the proximity state of touch screen is for close without object;
The mode being driven through poll of virtual P-sensor equipment reads the value of flag bit PS;
Also include:
Creation module, is used for being pre-created a virtual P-sensor equipment, and creates corresponding driving for it;
Touch screen drive load is on platform driver, and the function of use is tpd_add_driver ().
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 CN103442134A (en) 2013-12-11
CN103442134B true 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)

Families Citing this family (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
CN105721665B (en) * 2015-04-13 2019-11-26 中科创达软件科技(深圳)有限公司 A kind of mobile terminal incoming call sound method and device
NO346144B1 (en) * 2018-09-12 2022-03-21 Elliptic Laboratories As Proximity sensing
CN111104012B (en) 2019-12-12 2021-06-15 惠州Tcl移动通信有限公司 Distance measuring method and device, storage medium and terminal equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100672539B1 (en) * 2005-08-12 2007-01-24 엘지전자 주식회사 Method for recognizing a touch input in mobile communication terminal having touch screen and mobile communication terminal able to implement the same
CN101794197B (en) * 2010-04-06 2012-11-07 华为终端有限公司 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

Also Published As

Publication number Publication date
CN103442134A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN106604369B (en) Terminal equipment with dual-mode switching function
CN103763433B (en) The progress control method of terminal applies and system
CN103744821B (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN103442134B (en) Realize the method and system of mobile terminal touch screen switching function
CN102984352B (en) Method and device of adjusting of screen luminance of terminal and terminal
EP2713254A1 (en) Touch event reporting method, device and mobile terminal
CN103699298A (en) Information processing method and electronic equipment
CN102331835A (en) Method and apparatus for managing an application being executed in a portable terminal
CN103092685A (en) Method and device for closing application program
CN103513748A (en) Method for processing information, information processor and electronic device
CN105791560A (en) Data network access control method and user terminal
CN103067570A (en) Mobile phone, processing method and processing system based on mobile phone and call floating window display
EP2979177B1 (en) Method for controlling process of application and computer system
CN104363335A (en) Intelligent incoming call answering method and mobile terminals
CN107589928A (en) Double screen displaying method of terminal, device, terminal and computer-readable recording medium
US20140181726A1 (en) Method and electronic device for providing quick launch access and storage medium
CN106126337A (en) A kind of EMS memory management process and terminal unit
CN102999252B (en) A kind of method of unlock interface application prestrain, device and terminal
US20130239069A1 (en) Control method for mobile device using setting pattern and mobile device
CN113905425B (en) Data service switching method and device, electronic equipment and readable storage medium
CN105117157A (en) Corner mark switching method and terminal
CN106503543A (en) A kind of method and apparatus of management application program
CN105159503B (en) A kind of control method and system of mobile terminal touch screen drive load
US11914813B2 (en) Ranging method and apparatus thereof, storage medium, and terminal device
CN105072287A (en) Emergency call answering method and mobile 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