Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method and terminal of display module of control terminal, the release time 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 judges that whether the display module of terminal is normal, generates judged result; When described, when the determination result is NO, turn to step 2;
Step 2, described primary processor sends recovery instruction to described display module, makes described display module revert to normal condition according to described recovery instruction;
Step 3, described primary processor sends refreshing instruction to 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, and the value by described status register judges that whether described display module is normal;
Described step 2 is specially: described primary processor sends recovery instruction to described display module, makes described display module that the value of described status register is reverted to normal value.
Before 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 described step 1, also comprise:
Whether the ground pin that described primary processor detects described display module has 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 being connected with described primary processor,
Described primary processor comprises:
Judgement submodule, whether normal for judging the display module of terminal, generate judged result;
Send submodule, for when the determination result is NO, sending recovery instruction to described display module when described, make described display module revert to normal condition according to described recovery instruction; Send refreshing instruction to described display module, described display module is refreshed.
Described primary processor also comprises:
Timing submodule, for judging whether to arrive the duration of predetermined period, when when being, triggers described judgement submodule.
Described terminal, also comprises:
Whether electrostatic pulse detection module, is connected with described primary processor with the ground pin of described display module respectively, for detection of the ground pin of described display module, have instantaneous pressure pulse to produce, and generates testing result; When described testing result is when being, 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, and the value by described status register judges that whether described display module is normal;
Described transmission submodule is specially, and when described, when the determination result is NO, send to described display module and recovers instruction, makes described display module that the value of described status register is reverted to normal value; Send refreshing instruction to 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 such scheme, whether the duty of the display module of inspection terminal is normal, when breaking down, by described display module force revert, is normal condition, and display module can normally be shown.Do not need to restart terminal, reduced the time that display module returns to normal operating conditions, improved user's experience.
Embodiment
For technical matters, technical scheme and advantage that embodiments of the invention will be solved are 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, comprising:
Step 11, the primary processor of terminal judges that whether the display module of terminal is normal, generates judged result; When described, when the determination result is NO, turn to step 12;
Step 12, described primary processor sends recovery instruction to described display module, makes described display module revert to normal condition according to described recovery instruction;
Step 13, described primary processor sends refreshing instruction to 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, and the value by described status register judges that whether described display module is normal;
Described step 12 is specially: described primary processor sends recovery instruction to 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 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 described step 11, described method also comprises: whether the ground pin that described primary processor detects described display module has instantaneous pressure pulse to produce, and when when being, turns to step 1.
In such scheme, whether the duty of the display module of inspection terminal is normal, when breaking down, by described display module force revert, is normal condition, and display module can normally be shown.Do not need to restart terminal, reduced the time that display module returns to normal operating conditions, improved user's experience.
As shown in Figure 4, the method for the display module of control terminal shown in the present, comprising:
Step 41, whether the ground pin that described primary processor detects described display module has instantaneous pressure pulse to produce, and generates testing result; When described testing result is while being no, turn to step 42; When described testing result is when being, 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 being no, turn to step 41;
Step 43, described primary processor judges that 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, and the value by described status register judges that whether described display module is normal; When being no, turn to step 44; When being, turn to step 45; Different value in status register in display module represents that display module is in different conditions, can represent that whether display module is in normal condition.
Step 44, described primary processor sends recovery instruction to described display module, makes described display module revert to normal condition according to described recovery instruction; This step 44 is specially: described primary processor sends recovery instruction to described display module, makes described display module that the value of described status register is reverted to normal value.; Then turn to step 45;
Step 45, described primary processor sends refreshing instruction to described display module, and described display module is refreshed.This step is specially: described primary processor sends demonstration data to described display module, and described display module, according to the data register of display module described in described demonstration Data Update, then shows according to the value after the renewal of described data register.
In such scheme, when the status register of display module is undesired, may there is flower screen in screen, and the situation of screen or fixed screen, now needs to force to upgrade status register in vain, then the demonstration data of data register is upgraded; When if status register is normal, only need to upgrade the demonstration data of data register.
The duration of predetermined period is 20s at least.Described display module is LCD MODULE.Described terminal can be mobile terminal, such as being 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 being connected with described primary processor, described primary processor 51 comprises:
Described primary processor 51 comprises:
Judgement submodule 511, whether normal for judging the display module of terminal, generate judged result;
Send submodule 512, for when the determination result is NO, sending recovery instruction to described display module when described, make described display module revert to normal condition according to described recovery instruction; Send refreshing instruction to 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, and the value by described status register judges that whether described display module is normal;
Described transmission submodule 512 is specially, and when described, when the determination result is NO, send to described display module and recovers instruction, makes described display module that the value of described status register is reverted to normal value; Send refreshing instruction to described display module, described display module is refreshed.
Described primary processor 51 also comprises: timing submodule 513, for judging whether to arrive the duration of predetermined period, when when being, triggers 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 for detection of the ground pin of described display module, whether there is instantaneous pressure pulse to produce, generate testing result; When described testing result is when being, trigger described judgement submodule.
Described terminal is landline telephone, mobile phone, personal digital assistant, MP3 player or MP4 player.
In such scheme, whether the duty of the display module of inspection terminal is normal, when breaking down, by described display module force revert, it is normal condition, display module can normally be shown, do not need to restart terminal, reduced the time that display module returns to normal operating conditions, improved user's 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.For the display screen of terminal when the impact that is subject to extraneous strong static occurs to show phenomenon of the failure, utilize regular and/or 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 LCD directly to monitor LCD state, directly effectively judge and remove 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 subject to electrostatic impact to cause that flower screen, white screen, blank screen, fixed screen etc. show the generation of phenomenon of the failure.Without LCD being restarted to (Reset), only need upgrade the value of the status register of LCD; Time is shorter, rapider, and whole process is for user, only feels screen slight jitter.
The present invention by whether being subject to static (ESD) on timing and/or detection liquid crystal display (LCD) earth signal pin impacts, the state of detection trigger liquid crystal display.When static occurs, this GND pin will be subject to electrostatic influence, there is instantaneous pressure to produce, this signal will be caught by electrostatic testing apparatus, electrostatic testing apparatus is by generation and export a useful signal to mobile phone primary processor, and mobile phone sends the value that instruction removes to read the show state of LCD, judges that whether duty is normal, if genus normal condition, refreshes demonstration data in time; If abnomal condition, sends instruction the status register of LCD and display register are forced to refresh, avoid occurring to show abnormal phenomenon.Can eliminate fast and cause the phenomenon that mobile phone liquid crystal display is abnormal because of electrostatic impact, this treatment mechanism is in mobile phone backstage fast processing, therefore mobilephone terminal user to having removed almost and cannot having discovered, does not affect the normal use of mobile phone to the generation of abnormal occurrence completely.
Described embodiment of the method is corresponding with described device embodiment, the description of relevant portion in the part comparable device embodiment not describing in detail in embodiment of the method, the description of relevant portion in the part reference method embodiment not describing in detail in device embodiment.
One of ordinary skill in the art will appreciate that, the all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a computer read/write memory medium, this program is when carrying out, comprise the step as above-mentioned embodiment of the method, described storage medium, as: magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
In each embodiment of the method for the present invention; the sequence number of described each step can not be for limiting the sequencing of each step; for those of ordinary skills, do not paying under the prerequisite of creative work, the priority of each step is changed also within protection scope of the present invention.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of 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.