Summary of the invention
The technical problem to be solved in the present invention provides a kind of method and terminal of display module of control terminal, the release time the when screen that has reduced terminal breaks down.
For solving the problems of the technologies described above, embodiments of the invention provide technical scheme as follows:
On the one hand, provide a kind of method of display module of control terminal, comprising:
Step 1, the primary processor of terminal judge whether the display module of terminal is normal, generate judged result; When described judged result for not the time, then turn to step 2;
Step 2, described primary processor send the recovery instruction for described display module, make described display module revert to normal condition according to described recovery instruction;
Step 3, described primary processor send refreshing instruction for described display module, and described display module is refreshed.
Described step 1 is specially: described primary processor reads the value of the status register of described display module, judges by the value of described status register whether described display module is normal;
Described step 2 is specially: described primary processor sends the recovery instruction for described display module, makes described display module that the value of described status register is reverted to normal value.
Before the described step 1, also comprise:
The primary processor of described terminal judges whether to arrive the duration of predetermined period, when when being, turns to step 1.
Before the described step 1, also comprise:
Whether the ground pin that described primary processor detects described display module has the instantaneous pressure pulse to produce, and when when being, turns to step 1.
On the other hand, provide a kind of terminal, described terminal comprises primary processor and the display module that is connected with described primary processor,
Described primary processor comprises:
Judge submodule, be used to judge whether the display module of terminal is normal, generate judged result;
Send submodule, be used for when described judged result for not the time, send for described display module and recover instruction, described display module is instructed according to described recovery reverts to normal condition; Send refreshing instruction for described display module, described display module is refreshed.
Described primary processor also comprises:
The timing submodule is used to judge whether to arrive the duration of predetermined period, when when being, then triggers described judgement submodule.
Described terminal also comprises:
The electrostatic pulse detection module is connected with described primary processor with the ground pin of described display module respectively, and whether the ground pin that is used to detect described display module has the instantaneous pressure pulse to produce, and generates testing result; When described testing result when being, then trigger described judgement submodule.
Described display module comprises: status register;
Described judgement submodule is specially, and reads the value of the status register of described display module, judges by the value of described status register whether described display module is normal;
Described transmission submodule is specially, when described judged result for not the time, send for described display module and recover instruction, make described display module that the value of described status register is reverted to normal value; Send refreshing instruction for described display module, described display module is refreshed.
Described terminal is landline telephone, mobile phone, personal digital assistant, MP3 player or MP4 player.
Embodiments of the invention have following beneficial effect:
In the such scheme, whether the duty of the display module of inspection terminal is normal, when breaking down, is normal condition with described display module force revert, makes display module normally to show.Do not need to restart terminal, reduced the time that display module returns to normal operating conditions, improved user experience.
Embodiment
For technical matters, technical scheme and advantage that embodiments of the invention will be solved is clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, the method for the display module of control terminal shown in the present comprises:
Step 11, the primary processor of terminal judge whether the display module of terminal is normal, generate judged result; When described judged result for not the time, then turn to step 12;
Step 12, described primary processor send the recovery instruction for described display module, make described display module revert to normal condition according to described recovery instruction;
Step 13, described primary processor send refreshing instruction for described display module, and described display module is refreshed.
Described step 11 is specially: described primary processor reads the value of the status register of described display module, judges by the value of described status register whether described display module is normal;
Described step 12 is specially: described primary processor sends the recovery instruction for described display module, makes described display module that the value of described status register is reverted to normal value.
As shown in Figure 2, before the described step 11, described method also comprises: the primary processor of described terminal judges whether to arrive the duration of predetermined period, when when being, turns to step 1.
Optionally, as shown in Figure 3, before the described step 11, described method also comprises: whether the ground pin that described primary processor detects described display module has the instantaneous pressure pulse to produce, and when when being, turns to step 1.
In the such scheme, whether the duty of the display module of inspection terminal is normal, when breaking down, is normal condition with described display module force revert, makes display module normally to show.Do not need to restart terminal, reduced the time that display module returns to normal operating conditions, improved user experience.
As shown in Figure 4, the method for the display module of control terminal shown in the present comprises:
Whether the ground pin that step 41, described primary processor detect described display module has the instantaneous pressure pulse to produce, and generates testing result; When described testing result for not the time, then turn to step 42; When described testing result when being, then turn to step 43;
Step 42, the primary processor of terminal judges whether to arrive the duration of predetermined period, when when being, turns to step 43; When for not the time, turn to step 41;
Step 43, described primary processor judge whether the display module of terminal is normal; This step 4 is specially: described primary processor reads the value of the status register of described display module, judges by the value of described status register whether described display module is normal; When for not the time, then turn to step 44; When being, then turn to step 45; Different value in the status register in the display module represents that display module is in different conditions, can represent whether display module is in normal condition.
Step 44, described primary processor send the recovery instruction for described display module, make described display module revert to normal condition according to described recovery instruction; This step 44 is specially: described primary processor sends the recovery instruction for described display module, makes described display module that the value of described status register is reverted to normal value. Turn to step 45 then;
Step 45, described primary processor send refreshing instruction for described display module, and described display module is refreshed.This step is specially: described primary processor sends video data for described display module, and described display module upgrades the data register of described display module according to described video data, shows according to the value after the renewal of described data register then.
In the such scheme, when the status register of display module was undesired, the flower screen may appear in screen, and the situation of screen or fixed screen needs to force the update mode register this moment in vain, and the video data to the data register upgrades then; If status register just often, then only need the video data of data register be upgraded.
The duration of predetermined period is 20s at least.Described display module is a LCD MODULE.Described terminal can be portable terminal, for example is landline telephone, mobile phone, personal digital assistant, MP3 player or MP4 player etc.
As shown in Figure 5, be a kind of terminal of the present invention, described terminal comprises primary processor 51 and the display module 52 that is connected with described primary processor, and described primary processor 51 comprises:
Described primary processor 51 comprises:
Judge submodule 511, be used to judge whether the display module of terminal is normal, generate judged result;
Send submodule 512, be used for when described judged result for not the time, send for described display module and recover instruction, described display module is instructed according to described recovery reverts to normal condition; Send refreshing instruction for described display module, described display module is refreshed.
Described display module comprises: status register;
Described judgement submodule 511 is specially, and reads the value of the status register of described display module, judges by the value of described status register whether described display module is normal;
Described transmission submodule 512 is specially, when described judged result for not the time, send for described display module and recover instruction, make described display module that the value of described status register is reverted to normal value; Send refreshing instruction for described display module, described display module is refreshed.
Described primary processor 51 also comprises: timing submodule 513, be used to judge whether to arrive the duration of predetermined period, and when when being, then trigger described judgement submodule.
Described terminal also comprises: electrostatic pulse detection module 53, be connected with described primary processor with the ground pin of described display module respectively, and whether the ground pin that is used to detect described display module has the instantaneous pressure pulse to produce, and generates testing result; When described testing result when being, then trigger described judgement submodule.
Described terminal is landline telephone, mobile phone, personal digital assistant, MP3 player or MP4 player.
In the such scheme, whether the duty of the display module of inspection terminal is normal, when breaking down, with described display module force revert is normal condition, make display module normally to show, do not need to restart terminal, reduced the time that display module returns to normal operating conditions, improved user experience.
Fig. 6 is the structural representation of the application scenarios of terminal of the present invention.In this application scenarios, terminal can be mobile phone, and primary processor can be baseband chip.Display module is LCD.At the display screen of terminal when the influence that is subjected to extraneous strong static takes place to show phenomenon of the failure, utilize regular and/or the electrostatic pulse detection, whether triggering detects normally to the duty of liquid crystal display, and fault is judged and removed, and reaches the effect of normal use terminal.Utilize the signal wire of communicating by letter between primary processor and the LCD directly to monitor the LCD state, directly effectively judge and the removing fault, reduced maloperation, and saved a part of hardware circuit cost and design space, prevented that liquid crystal display screen of mobile phone (LCD) is subjected to electrostatic impact to cause that flower screen, white screen, blank screen, fixed screen etc. show the generation of phenomenon of the failure.Need not LCD is restarted (Reset), only need upgrade the value of the status register of LCD; Time is shorter, and is rapider, and whole process is for the user, only feels the screen slight jitter.
The present invention is by timing and/or detect whether be subjected to static (ESD) impact, the state of detection trigger liquid crystal display on liquid crystal display (LCD) the earth signal pin.When static takes place, this GND pin will be subjected to electrostatic influence, there is instantaneous pressure to produce, this signal will be caught by electrostatic testing apparatus, electrostatic testing apparatus will produce and export a useful signal and send the value that instruction removes to read the show state of LCD for mobile phone primary processor, mobile phone, and whether the judgment task state is normal, if belong to normal condition, in time refresh video data; If abnomal condition is sent instruction status register and the display register of LCD are forced to refresh, avoid taking place the phenomenon of display abnormality.Can eliminate fast because of electrostatic impact and cause the phenomenon that the mobile phone liquid crystal display is unusual, this processing mechanism is in mobile phone backstage fast processing, so the mobile phone terminal user finishes almost and can't discover to removing the generation of abnormal occurrence, does not influence the normal use of mobile phone fully.
Described method embodiment is corresponding with described device embodiment, the description of relevant portion gets final product among the part comparable device embodiment that does not describe in detail in method embodiment, and the description of relevant portion gets final product among the part reference method embodiment that does not describe in detail in device embodiment.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise step as above-mentioned method embodiment, described storage medium, as: magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
In each method embodiment of the present invention; the sequence number of described each step can not be used to limit the sequencing of each step; for those of ordinary skills, under the prerequisite of not paying creative work, the priority of each step is changed also within protection scope of the present invention.
The above is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.