Summary of the invention
The technical problem to be solved in the present invention is that in view of the deficiencies of the prior art, providing one kind prevents unexpected modification LCD
The method and system of setting, to solve the existing easy interference by electrostatic of LCD setting, LCD register under the action of electrostatic
The value of write operation write error is executed, and makes LCD setting by bug patch, the problem for causing LCD display abnormal.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A method of prevent the unexpected LCD that modifies to be arranged comprising:
It listens to several LCD registers and makees write operation, obtain the first write-in rule that said write operation carries;
Judge whether the first write-in rule and preset write-in rule are consistent;
If inconsistent, said write operation is filtered.
It is described to prevent the unexpected method for modifying LCD setting, wherein the method also includes:
If consistent, said write operation is carried out to several LCD registers according to the first write-in rule.
It is described to prevent the unexpected method for modifying LCD setting, wherein described listen to several LCD registers makees write-in behaviour
Make, obtains said write operation carries first and be written before rule further include: preset to LCD register and make write operation
Write-in rule, specifically include:
It obtains the device identification of all LCD registers, and all devices mark is ranked up suitable to be written
Sequence;
Said write rule is sequentially generated according to said write, wherein said write rule is every time according to said write
Sequence carries out write operation at least two continuous LCD registers.
It is described to prevent the unexpected method for modifying LCD setting, wherein if described consistent, according to the first write-in rule
Said write operation is carried out to several LCD registers to specifically include:
If consistent, several LCD registers are grouped according to the serial relation in said write sequence, and obtains respectively
The number of every group of LCD register;
When the number is greater than 1, write operation is executed according to said write sequence;
When the number is equal to 1, the current value of the first adjacent LCD register of the LCD register is obtained;
Write operation is carried out to the LCD register and the first LCD register according to said write sequence, wherein
The value of the first LCD register write-in is the current value.
It is described to prevent the unexpected method for modifying LCD setting, wherein described listen to several LCD registers makees write-in behaviour
Make, obtain said write operation carries first and be written before rule further include:
When terminal device generate to several LCD registers carry out write operation when, according to several LCD registers with
And preset write-in rule generates the first write-in rule, and the first write-in rule is configured in said write operation.
It is a kind of to prevent the unexpected system for modifying LCD setting comprising:
Module is obtained, makees write operation for listening to several LCD registers, obtain that said write operation carries the
One write-in rule;
Judgment module, for judging whether the first write-in rule and preset write-in rule are consistent;
Filtering module, for when there is inconsistency, filtering said write to operate.
It is described to prevent the unexpected system for modifying LCD setting, further include:
Writing module, for when consistent, then carrying out institute to several LCD registers according to the first write-in rule
State write operation.
It is described to prevent the unexpected system for modifying LCD setting, further include:
Presetting module, for presetting the write-in rule of write-in LCD register;
The presetting module specifically includes:
Sequencing unit is ranked up for obtaining the device identification of all LCD registers, and by all devices mark
To be written sequence;
Generation unit, for being sequentially generated said write rule according to said write, wherein said write rule is each
Write operation is carried out at least two continuous LCD registers according to said write sequence.
It is described to prevent the unexpected system for modifying LCD setting, wherein the write module specifically includes:
Grouped element is used for when consistent, by several LCD registers according to the serial relation in said write sequence
Grouping, and the number of every group of LCD register is obtained respectively;
First execution unit, for executing write operation according to said write sequence when the number is greater than 1;
Acquiring unit, for obtaining the first adjacent LCD register of the LCD register when the number is equal to 1
Current value;
Second execution unit, for being write according to said write sequence to the LCD register and the first LCD register
Enter operation, wherein the value of the first LCD register write-in is the current value.
It is described to prevent the unexpected system for modifying LCD setting, further include:
Configuration module, for when terminal device generate to several LCD registers carry out write operation when, if according to described
Dry LCD register and preset write-in rule generate the first write-in rule, and described in the first write-in rule is configured at
In write operation.
The utility model has the advantages that compared with prior art, the present invention provides the invention discloses one kind to prevent the unexpected LCD that modifies from setting
The method and system set, which comprises listen to several LCD registers and make write operation, obtain said write operation
The the first write-in rule carried;Judge whether the first write-in rule and preset write-in rule are consistent;If inconsistent, mistake
Filter said write operation.The present invention configures preset write-in rule by the write operation generated to terminal device, will not carry
The write operation of said write rule is defaulted as accidental operation and filters out.The write-in behaviour that LCD register can be made to execute in this way
It is generated as system, avoids the write operation made to LCD register surprisingly generated, and then solved LCD and be arranged because of quilt
The problem surprisingly modified and cause LCD display abnormal.
Specific embodiment
The present invention provides a kind of method and system for preventing unexpected modification LCD setting, to make the purpose of the present invention, technical side
Case and effect are clearer, clear, and the present invention is described in more detail as follows in conjunction with drawings and embodiments.It should be appreciated that
Described herein specific examples are only used to explain the present invention, is not intended to limit the present invention.
In the present invention, using the suffix for indicating such as " module ", " component " or " unit " of element only for advantageous
In explanation of the invention, there is no specific meanings for itself.Therefore, module ", " component " or " unit " can mixedly make
With.
Terminal device can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated
Determine terminal.However, it will be understood by those skilled in the art that other than the element for being used in particular for mobile purpose, according to this hair
The construction of bright embodiment can also apply to the terminal of fixed type.
With reference to the accompanying drawing, by the description of the embodiment, further explanation of the contents of the invention are made.
Fig. 1 is please referred to, Fig. 1 is the stream of the preferred embodiment provided by the invention for preventing the unexpected method for modifying LCD setting
Cheng Tu.The described method includes:
S100, it listens to several LCD registers and makees write operation, obtain the first write-in rule that said write operation carries
Then.
Specifically, several LCD registers are in the register for storing setting parameter of LCD display configuration
One or more.The LCD display is the display screen of the terminal device with touch function.The LCD display is set
Set is realized and making write operation to LCD register, wherein said write operation is referred to the progress of LCD register
The operation of data is written.Said write operation is divided into two kinds, a kind of write-in behaviour generated for terminal device for modifying LCD setting
Make, another kind is the write operation that LCD display receives electrostatic and surprisingly generates.
In the present embodiment, it in order to filter the write operation surprisingly generated due to electrostatic, is generated in terminal device
It is the preset write-in rule of said write operative configuration when write operation.Therefore, described listen to is made to several LCD registers
Write operation, obtaining before said write operates the first write-in rule carried to include:
S01, when terminal device generates the write operation carried out to several LCD registers, deposited according to several LCD
Device and preset write-in rule generate the first write-in rule, and the first write-in rule is configured at said write operation
It is interior.
Specifically, the preset write-in rule is to preset and be stored in terminal device.In the present embodiment,
Said write rule can be to carry out write-in behaviour at least two continuous LCD registers according to preset write sequence every time
Make.That is, said write rule includes write sequence and writing mode, said write sequence can be device identification
Sequence, said write mode are at least to carry out write operation to two at least continuous LCD registers every time.First write-in
Rule is corresponding for several LCD registers determined according to several LCD registers and preset write-in rule
Write-in rule.
Illustratively, described when terminal device generates the write operation carried out to several LCD registers, if according to described
Dry LCD register and preset write-in rule generate the first write-in rule, and described in the first write-in rule is configured at
It can specifically include in write operation:
S001, when terminal device generates the write operation carried out to several LCD registers, obtain several LCD and post
The device identification of all registers in storage;
S002, the device identification is ranked up according to the write sequence that default write-in rule carries to obtain first and write
Enter sequence;
S003, the first write-in is generated according to the writing mode of first write sequence and the preset write-in rule
Rule;
S004, the first write-in rule is configured in said write operation.
In the present embodiment, described listen to several LCD registers makees write operation, obtains said write operation and carries
First write-in rule before can also include preset to LCD register make write operation write-in rule, specifically may be used
To include:
All devices mark is ranked up to be written by S10, the device identification for obtaining all LCD registers
Sequentially;
S20, said write rule is sequentially generated according to said write, wherein said write rule is every time according to described
Write sequence carries out write operation at least two continuous LCD registers.
Specifically, in the step S10, the device identification refers to capableing of unique identification LCD register
Identification information, for example, sequence code.The device identification is one-to-one relationship with the LCD register.Said write sequence
Refer to that the sequencing of several LCD registers is written in write operation.In the present embodiment, said write sequence is to preset
And be stored in a text file, when listening to write operation, it is suitable to obtain said write to directly acquire the text file
Sequence improves the treatment effeciency of write operation without resetting every time.
In the step S10, described be ranked up all devices mark can be specific to be written sequence
It include: that all devices mark is uniformly numbered first, so that corresponding one unique number of each device identification;Again by institute
Number is stated to be arranged according to sequence from big to small or from small to large to obtain said write sequence, it is finally that said write is suitable
Sequence is stored in a text file.For example, the device identification of all LCD registers is respectively as follows: R1, R2, R3 ... ...;It will be described
Device identification carries out Unified number, so that each device identification uniquely corresponds to a number, e.g., corresponding 0001, the R2 of R1 is corresponding
0002, R3 corresponding 0003 ... ...;Create a text file, by it is described number according to from small to large be sequentially written in the text
In file, it may be assumed that 0001,0002,0003 ... ....The number order saved in the text file is said write sequence.When
So, in practical applications, directly all device identifications can also be ranked up according to other sequences, then will sequence
Device identification afterwards is written in a text file.For example, the device identification of all LCD registers be respectively R1, R2, R3, R4,
5 device identifications are directly ranked up by R5 are as follows: R3, R2, R5, R2, R4, and the sequence of the device identification is saved
Into a text file, the sequence of the preservation is said write sequence, i.e. R3 ranked first position, and R2 claps second, with such
It pushes away.
It is described said write rule is sequentially generated according to said write to refer specifically to according to institute in the step S20
It states the serial relation in write sequence between the location of all LCD registers and each LCD register and generates said write
Rule.Said write rule is to carry out write operation at least two continuous LCD registers according to said write sequence every time.
For example, the corresponding LCD register of number 0001 makes number one, the corresponding LCD register of number 0002 comes second ...
The corresponding LCD register of number 0007 comes the 7th, and the corresponding LCD register of number 0008 comes the 8th, number 0009
Corresponding LCD register comes the 9th ..., and so on, the position of all LCD registers can be determined by the sequence
It sets.Wherein, described first and second LCD register are continuous two LCD registers, described 7th, the 8th and
9th LCD register is continuous three LCD registers.According to said write rule, in write-once operation, Ke Yiyi
It secondary write-in first LCD register and second LCD register and/or is sequentially written in the 7th, the 8th and the 9th LCD and posts
Storage.
It is worth explanation, the step S01 is between the step S20 and the step S100.The i.e. described terminal is set
It is posted after the completion of the preset write-in rule setting generating to several LCD for the preset write-in rule is preset
When storage makees write operation, the first write-in rule is configured in said write operation, so that when listening to several
When LCD register makees write operation, the first write-in rule that available said write operation carries, in order to which subsequent basis obtains
Rule and the preset corresponding relationship being written between rule is written to filter unexpected write operation in first taken.
S200, judge whether the first write-in rule and preset write-in rule are consistent.
Specifically, described to judge the first write-in rule and preset write-in rule whether unanimously specially by described the
Compared with one write-in rule carries out one by one with preset write-in rule, determine whether the first write-in rule meets preset write-in rule
Then.The default write-in rule is to carry out write-in behaviour at least two continuous LCD registers according to said write sequence every time
Make.Judge whether the first write-in rule unanimously can specifically include with preset write-in rule correspondingly, described:
S201, the first write sequence that the first write-in rule carries is obtained, and judges that first write sequence is
The no preset write sequence for meeting preset write-in rule and carrying;
S202, when first write sequence meets preset write sequence, determine it is described first write-in rule carry
To LCD register carry out writing mode;
S203, judge whether said write mode is that at least two continuous LCD registers execute write operation every time;
S204, when to be, determine the first write-in rule with preset write-in rule unanimously;If it has not, then determining
The first write-in rule and preset write-in rule are inconsistent.
Specifically, described to judge whether first write sequence meets preset write-in rule in the step 201
The process of the preset write sequence then carried may include: to obtain setting for all LCD registers in first write sequence
The first order sequence of standby mark;By it is described put in order in the preset write sequence all devices identify arrangement it is suitable
Sequence is compared, and judges whether the first order sequence meets putting in order in the preset write sequence;If meeting,
Then follow the steps S202;If not meeting, directly determine that the first write-in rule and preset write-in rule are inconsistent.
If S300, inconsistent, said write operation is filtered.
Specifically, the filtering said write operation, which refers to operating said write, deletes, and does not execute described write
Enter operation.It filters out in this way, realizing configured with the write operation inconsistent with the preset write-in rule, so that described write
Entering operation can not modify to the setting of LCD, be effectively reduced LCD and be arranged by the probability of bug patch.
In the present embodiment, the method also includes:
If S400, consistent, said write behaviour are carried out to several LCD registers according to the first write-in rule
Make.
Specifically, since said write rule provides that write-in must be sequentially written at least two companies according to said write every time
Continuous LCD register, but in practical applications, it is understood that there may be a LCD register or write-in need to be only written in write operation
The operation LCD register to be written is discrete situation.Therefore, it is posted in one LCD register of write-in or discrete LCD
When storage, in order to make single LCD register can satisfy said write rule, it is adjacent to need to obtain one LCD register
LCD register value, be then written according still further to write sequence and one post LCD storage and LCD register adjacent thereto.
Illustratively, if it is described consistent, according to the first write-in rule to described in several LCD registers progress
Write operation specifically includes:
If S401, consistent, several LCD registers are grouped according to the serial relation in said write sequence, and point
The number of every group of LCD register is not obtained;
S402, when the number be greater than 1 when, according to said write sequence execute write operation;
S403, when the number be equal to 1 when, obtain the current value of the first adjacent LCD register of the LCD register;
S404, write operation is carried out to the LCD register and the first LCD register according to said write sequence,
Wherein, the value of the first LCD register write-in is the current value.
Specifically, in the step S401, what the serial relation grouping according in said write sequence referred to
It is that continuous LCD register is divided into one group according to said write sequence, discontinuous LCD register is respectively divided into one group.
The number is 1 or the value greater than 1, if a certain group of number is 1,1 LCD register of the grouping is several with remaining
LCD register is discontinuous;If a certain group of number is the value greater than 1, the grouping includes described several continuous LCD
Register.
In the step S402, when the number is greater than 1, the grouping is by least two continuous LCD registers
Composition will need the value being written to be sequentially written in described at least two continuous LCD registers in sequence.
In the step S403 and S404, when the number is equal to 1, the grouping only includes a LCD register.
The first LCD register refers to an adjacent LCD register of the LCD register.It can be the LCD register
Adjacent previous position LCD register, or the adjacent latter position LCD register of the LCD register.In the present embodiment
In, the adjacent previous position LCD register of the LCD register is set by the first LCD register.Due to making number one
LCD register adjacent previous position LCD register is not present, therefore when the LCD register makes number one, described the
One LCD register is the adjacent latter position LCD register of the LCD register.The current value is the first LCD register
Currently stored value.
It is described that write operation is carried out to the LCD register and the first LCD register according to said write sequence,
In, the value of the first LCD register write-in is that the current value specifically includes: judging whether the LCD register comes the
One;If the LCD register makes number one, the LCD first is written into the value for needing to be written according to said write sequence
Register, then the first LCD register is written into the current value;If the LCD register does not make number one, according to
First current value is written in the first LCD register for said write sequence, then the LCD is written in the value of the write-in of needs and is posted
In storage.In this way, being deposited by reading the current value of the first LCD register using the current value as the first LCD
Device needs the value being written, and so that it is formed one group of continuous two LCD register with the LCD register and is executed in sequence and writes
Enter operation, realizes the value for changing the LCD register while not changing the value of the first LCD register.
Said write is operated below by a specific embodiment and is further illustrated: several LCD register packets
It includes: 0001,0002,0005,0007,0008,0009, since 0002 and 0005 is discontinuous, 0005 and 0007 is discontinuous, therefore will
Several registers are divided into three groups, are respectively as follows: 0001,0002 for first group, and 0005 is second group, and 0007,0008,0009
For third group;Then the number of first group of LCD register is 2, and it is 3 that second group, which is the 1, the 3rd group, illustrates that described first group has 2
A continuous LCD register group is at described second group only includes 1 LCD register, and the third group is posted by 3 continuous LCD
Storage composition.Due to described first group and third group be by least two continuous LCD register groups at, be written
When, directly the value being written will be needed to be sequentially written in several continuous LCD registers according to write sequence.That is, writing
It is fashionable, it is sequentially written in 0001 and 0002 value in sequence, in sequence the value of write-once 0007,0008 and 0009.It is writing
When entering 0005, described 0005 the first LCD register, i.e., 0004 value, then according to write sequence write-once are first obtained
0004,0005.It is worth noting that each group is also to write according to described when several LCD registers are grouped write-in
Enter sequence be written, i.e., be first written 0001,0002 in first group, write-in second group 0005, be ultimately written third group
0007,0008 and 0009.
The unexpected system for modifying LCD setting is prevented the present invention also provides a kind of, as described in Figure 2 comprising:
Module 100 is obtained, makees write operation for listening to several LCD registers, said write operation is obtained and carries
First write-in rule;
Judgment module 200, for judging whether the first write-in rule and preset write-in rule are consistent;
Filtering module 300, for when there is inconsistency, filtering said write to operate.
It is described to prevent the unexpected system for modifying LCD setting, further include:
Writing module, for when consistent, then carrying out institute to several LCD registers according to the first write-in rule
State write operation.
It is described to prevent the unexpected system for modifying LCD setting, further include:
Presetting module, for presetting the write-in rule of write-in LCD register;
The presetting module specifically includes:
Sequencing unit is ranked up for obtaining the device identification of all LCD registers, and by all devices mark
To be written sequence;
Generation unit, for being sequentially generated said write rule according to said write, wherein said write rule is each
Write operation is carried out at least two continuous LCD registers according to said write sequence.
It is described to prevent the unexpected system for modifying LCD setting, wherein the write module specifically includes:
Grouped element is used for when consistent, by several LCD registers according to the serial relation in said write sequence
Grouping, and the number of every group of LCD register is obtained respectively;
First execution unit, for executing write operation according to said write sequence when the number is greater than 1;
Acquiring unit, for obtaining the first adjacent LCD register of the LCD register when the number is equal to 1
Current value;
Second execution unit, for being write according to said write sequence to the LCD register and the first LCD register
Enter operation, wherein the value of the first LCD register write-in is the current value.
It is described to prevent the unexpected system for modifying LCD setting, further include:
Configuration module, for when terminal device generate to several LCD registers carry out write operation when, if according to described
Dry LCD register and preset write-in rule generate the first write-in rule, and described in the first write-in rule is configured at
In write operation.
In embodiment provided by the present invention, it should be understood that disclosed system and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.