The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, there is provided one kind prevents touch-screen
The method and mobile terminal of mistaken touch, there is provided a kind of method for preventing touch-screen mistaken touch;Prevent intelligent mobile terminal in quilt
During wake-up the defects of easy mistaken touch.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of method for preventing touch-screen mistaken touch, including:
A, mobile terminal is waken up in the standby state when detecting, initialize touch-screen and display screen;
B, when there is touch operation, whether the backlight for detecting display screen is lighted, and is lighted when backlight and then judges that touch is defeated
Enter effectively, otherwise judge that touch input is invalid.
The described method for preventing touch-screen mistaken touch, wherein, the step A is specifically included:
A1, when detect in the standby state wake up mobile terminal when, central processing unit start simultaneously initialize touch-screen,
The program of display screen;
A2, initialization display screen program in, it first initializes display screen, then lights the backlight of display screen again;
When the backlight of display screen is lighted, then display screen is initialized finishes.
The described method for preventing touch-screen mistaken touch, wherein, the step B is specifically included
B1, when there is touch operation, the backlight of display screen is detected within a scheduled time by a timer opened
Whether light;
B2, think that touch input is effective if the backlight of display screen is lighted, otherwise it is assumed that touch input is invalid.
The described method for preventing touch-screen mistaken touch, wherein, the scheduled time is 100 milliseconds.
Based on the above-mentioned method for preventing touch-screen mistaken touch, a kind of mobile end for preventing touch-screen mistaken touch is also provided
End, including:
Initialization control module, for waking up mobile terminal in the standby state when detecting, initialization touch-screen with it is aobvious
Display screen;
Effective judge module is touched, whether the backlight for when there is touch operation, detecting display screen is lighted, and works as backlight
Lamp, which is lighted, then judges that touch input is effective, otherwise judges that touch input is invalid.
Described mobile terminal, wherein, the initialization control module includes:
Initialization unit, for when detecting wake-up mobile terminal in the standby state, control central processing unit to be simultaneously
Start initialization touch-screen, the program of display screen;
Control module is lighted, in the program of initialization display screen, control first to initialize display screen, then lights again
The backlight of display screen;When the backlight of display screen is lighted, then display screen is initialized finishes.
Described mobile terminal, wherein, the effective judge module of touch includes:
Detection unit, for when there is touch operation, display to be detected within a scheduled time by a timer opened
Whether the backlight of screen is lighted;
Judging unit, for being lighted if the backlight of display screen if think that touch input is effective, otherwise it is assumed that touch it is defeated
It is invalid to enter.
Described mobile terminal, wherein, the scheduled time is 100 milliseconds.
The method and mobile terminal provided by the present invention for preventing touch-screen mistaken touch, effectively can prevent mobile terminal from existing
Mistaken touch when being waken up under ideal case caused by touch-screen completes initialization prior to display screen, can effectively prevent from touching
Screen mistaken touch is touched, is provided users with the convenient.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the flow chart of the preferred embodiment for the method that the present invention prevents touch-screen mistaken touch.Fig. 1 institutes
A kind of method for preventing touch-screen mistaken touch shown, comprises the following steps:
S100, mobile terminal is waken up in the standby state when detecting, initialize touch-screen and display screen.
When i.e. mobile terminal is waken up in the standby state, mobile terminal system will run touch-screen and display screen is carried out just
Beginningization program.
S200, when there is touch operation, whether the backlight for detecting display screen is lighted, when backlight light then judge touch
Input is effective, otherwise judges that touch input is invalid.
I.e. when mobile terminal is waken up and receives the touch operation of user, mobile terminal system is by the back of the body of display screen
Light lamp is detected.If when user carries out touch operation, backlight is in illuminating state and then judges that this touch input has
Effect, perform the instruction of user's touch operation;But if detecting that backlight is non-lit up, then judge this touch operation for false touch
Touch, do not perform this touching instruction.
Further, to make the present invention more fully be illustrated, with reference to the schematic flow diagram of present pre-ferred embodiments
The present invention is described in detail.As shown in Figure 2:
S310, detect that mobile terminal wakes up in the standby state.
That is mobile terminal under holding state when being waken up, but because the input area of touch-screen is larger, user
Can imprudence generation mistaken touch in operating process;Particularly in intelligent mobile terminal, when user pushes button wake-up movement eventually
During end, because screen display and touch-screen input are belonging respectively to different system program management control, it is possible to can be because touching
Screen initialization is completed prior to display screen, and now if touching touch-screen, mobile terminal thinks that the operation of touch-screen is effective, but
This operation is not the subjective instruction for needing to operate of user, thus can cause mistaken touch, and mistaken touch may control need not
The application program of opening, the application for transfering to unnecessary call, video or other influences Consumer's Experience, to prevent mistaken touch from performing
Step S320 and step S330.
S320, mobile terminal control central processing unit start initialization touch-screen, the program of display screen simultaneously.
That is the wake operation instruction of mobile terminal control central processing unit response user, by the touch to mobile terminal simultaneously
Screen and display screen are initialized.In initialisation procedure is run, touch-screen completes speed with display screen initialization program
Tend not to enough synchronous.If display screen is completed to initialize prior to touch-screen, user touches if producing maloperation
Touch-screen, because the completion of touch-screen no initializtion will not produce corresponding operational order and show;But if touch-screen initialization is first
Completed in display screen, if the instruction that user produces mistaken touch will be performed and responded in display screen.
S330, display screen is first initialized, then light the backlight of display screen.
I.e. in display screen program process is initialized, the backlight of display screen and display screen is separately handled, can make to show
The initialization of display screen is prior to touch-screen, while whether can light backlight as judging that user operates is maloperation.
S340, opening timing device detect backlight in the given time, and the scheduled time is preferably 100 milliseconds.
I.e. when there is user's touch operation, a timer can be opened display screen is detected within 100 milliseconds of scheduled time
Whether backlight is lit, this step cycle carry out, when terminate first 100 milliseconds detection programs will continue it is next
The program detected to backlight in 100 milliseconds of times.
S350, judge whether backlight is lighted, judge that backlight lights then execution step S360, otherwise perform step
S370。
S360, touch input are effective.
I.e. if backlight is in illuminating state, then judge to be used to operate effectively, system performs user operation instruction.
S370, touch input are invalid.
If backlight is non-lit up, it is invalid that system judges that user touches, and does not perform associative operation instruction.
Above-described embodiment provides a kind of method for preventing touch-screen mistaken touch, can effectively prevent mobile terminal in standby feelings
Mistaken touch when being waken up under condition caused by touch-screen completes initialization prior to display screen, effectively can prevent touch-screen from missing
Touch, provide users with the convenient.
Based on above-described embodiment, the present invention also provides a kind of mobile terminal for being used to prevent touch-screen mistaken touch, including:
Initialization control module 410, for waking up mobile terminal in the standby state when detecting, initialization touch-screen with
Display screen, as detailed above.
Effective judge module 420 is touched, whether the backlight for when there is touch operation, detecting display screen is lighted, when
Backlight, which is lighted, then judges that touch input is effective, otherwise judges that touch input is invalid, as detailed above.
Wherein initialization control module 410 includes:
Initialization unit 411, for when detecting wake-up mobile terminal in the standby state, control central processing unit to be same
Shi Qidong initialization touch-screen, the program of display screen, as detailed above.
Control module 412 is lighted, in the program of initialization display screen, control first to initialize display screen, Ran Houzai
Light the backlight of display screen;When the backlight of display screen is lighted, then display screen is initialized finishes, as detailed above.
Wherein touching effective judge module 420 includes:
Detection unit 421, for when there is touch operation, being detected by a timer opened within a scheduled time aobvious
Whether the backlight of display screen is lighted, as detailed above.
Judging unit 422, for being lighted if the backlight of display screen if think that touch input is effective, otherwise it is assumed that touch
It is invalid to input, as detailed above.
The scheduled time that timer is set is 100 milliseconds, as detailed above.
Based on above-described embodiment, mobile terminal of the invention in the specific implementation, as shown in figure 4, mobile eventually for the present invention
Hold each functional module workflow diagram.
Being provided with the central processing unit 500 in mobile terminal includes initialization control module 410, touches effectively judgement
Module 420 and timer 503.Wherein initialization control module 410 is connected with touch-screen 600 and display screen 700, in holding state
Lower mobile terminal is waken up, then initializes control module 410 and be used to perform initialization program to touch-screen 600 and display screen 700.
Initialization control module 410 is connected with the backlight 701 of display screen 700 again and it is lighted, and backlight 701 can make to show
Show any backlight 701 in frequency 700.
Wake up GPIO1 of the key 800 by central processing unit 500(Universal input/output interface)It is connected with timer 503,
And GPIO1 is configured to interrupt status, when detecting that waking up key 800 presses, it is fixed to be triggered if being currently holding state
When device 503 start working.Timer 503 detects the GPIO2 being connected with backlight 701 after start-up operation every 100 milliseconds
No is high level, if it is thinks that touch-screen input is effective, performs for operational order, if GPIO2 is low level explanation
Backlight 701 is non-lit up, judges that touch input is invalid.
The mobile terminal operation principle of concrete application embodiment i.e. of the present invention, comprises the following steps:
Step S1, GPIO1(Universal input/output interface)Interrupt signal is detected, is held if being currently holding state
Row step S2;
Step S2, while by initialization control module 410 touch-screen 600 is initialized, and it is initial to initialize control module 410
Change display screen 300;And start timer 503;Step S3 is performed afterwards;
Step S3, GPIO2 level is obtained, and determines whether high level;Step is performed if GPIO2 is high level
S4;Otherwise step S5 is performed;
Step S4, think that touching the touch-screen that effective judge module 420 is got inputs effectively;
Step S5, it is invalid to think to touch the touch-screen input that effective judge module 420 is got.
In summary.The method and mobile terminal provided by the present invention for preventing touch-screen mistaken touch, can effectively be prevented
Mistaken touch when mobile terminal is waken up under ideal case caused by touch-screen completes initialization prior to display screen, can be with
Touch-screen mistaken touch effectively is prevented, is provided users with the convenient.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.