CN107526471A - Touch-screen control method, device and storage medium - Google Patents
Touch-screen control method, device and storage medium Download PDFInfo
- Publication number
- CN107526471A CN107526471A CN201710752734.9A CN201710752734A CN107526471A CN 107526471 A CN107526471 A CN 107526471A CN 201710752734 A CN201710752734 A CN 201710752734A CN 107526471 A CN107526471 A CN 107526471A
- Authority
- CN
- China
- Prior art keywords
- touch
- screen
- noise
- frequency
- condition
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
Abstract
The disclosure is directed to a kind of touch-screen control method, device and storage medium, it is related to field of terminal technology.This method includes:Receive the status information of signal and the model identification of the charger device of charger device output, the status information is used for the output state for describing the signal, based on the status information and the model identification, change the touch condition of touch-screen, the touch condition refers to that the touch-screen detects the condition that touch operation is met, the touch-screen is controlled based on the touch condition after change.It that is to say, the status information and model identification of the signal exported according to charger device, change the touch condition of touch-screen, to evade falling interference caused by the common-mode noise of charger device output, it is abnormal to avoid touch-screen work appearance.
Description
Technical field
This disclosure relates to field of terminal technology, more particularly to a kind of touch-screen control method, device and storage medium.
Background technology
With the fast development of terminal technology, the terminal of such as mobile phone etc is widely used.In practical application
In scene, in order to enable the terminal to keep normal work for a long time, it usually needs terminal is charged by charger device.
However, during being charged using charger device to terminal, charger device meeting output common mode noise, the common mode is made an uproar
Acoustic capacitance easily produces interference to touch-screen so that touch-screen carries out the touch information reporting of mistake, causes terminal-pair touch-screen to carry out
Wrong control, so as to influence touch-screen normal work.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of touch-screen control method, device and computer
Readable storage medium storing program for executing.
First aspect, there is provided a kind of touch-screen control method, methods described include:
Receive the status information of signal and the model identification of the charger device of charger device output, the state
Information is used for the output state for describing the signal;
Based on the status information and the model identification, the touch condition of touch-screen is changed, the touch condition refers to
The touch-screen detects the condition that touch operation is met;
The touch-screen is controlled based on the touch condition after change.
Alternatively, the status information includes output current and output voltage.
Alternatively, the touch condition for being based on the status information and the model identification, changing touch-screen, including:
Based on the output current and the output voltage, determination power output;
Noise parameter corresponding to the power output and the model identification, institute are determined from the specified corresponding relation of storage
Specified corresponding relation is stated to be used to store the corresponding relation between model identification, power output and noise parameter three;
Based on identified noise parameter, the touch condition of the touch-screen is changed.
Alternatively, the noise parameter based on determined by, changes the touch condition of the touch-screen, including be implemented as described below
At least one of mode:
When the noise parameter is more than or equal to the upper of the touch-screen including noise threshold and the noise threshold
When reporting threshold value, threshold value is reported to increase on the noise threshold touch-screen, it is described to report threshold value to use
At least one of duration, touch signal intensity and touch size are touched in limiting;
When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm is used for
Increase the number for reporting threshold value that touch condition meets the touch-screen in the touch condition;
When the noise parameter includes noise frequency, and the difference between the noise frequency and screen scanning frequency is less than
When first predeterminated frequency or the noise frequency are N times of the frequency scanning frequency, by screen scanning frequency increase
Or reducing the second predeterminated frequency, the N is the integer more than or equal to 1.
Second aspect, there is provided a kind of touch screen control device, described device include:
Receiving module, for receiving the status information of signal and the model of the charger device of charger device output
Mark, the status information are used for the output state for describing the signal;
Module is changed, it is described for based on the status information and the model identification, changing the touch condition of touch-screen
Touch condition refers to that the touch-screen detects the condition that touch operation is met;
Control module, for being controlled based on the touch condition after change to the touch-screen.
Alternatively, the status information includes output current and output voltage.
Alternatively, the change module includes:
First determination sub-module, for based on the output current and the output voltage, determination power output;
Second determination sub-module, for determining the power output and the model mark from the specified corresponding relation of storage
Noise parameter corresponding to knowledge, the specified corresponding relation are used to store between model identification, power output and noise parameter three
Corresponding relation;
Submodule is changed, for based on identified noise parameter, changing the touch condition of the touch-screen.
Alternatively, the change submodule is used for:
When the noise parameter is more than or equal to the upper of the touch-screen including noise threshold and the noise threshold
When reporting threshold value, threshold value is reported to increase on the noise threshold touch-screen, it is described to report threshold value to use
At least one of duration, touch signal intensity and touch size are touched in limiting;
When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm is used for
Increase the number for reporting threshold value that touch condition meets the touch-screen in the touch condition;
When the noise parameter includes noise frequency, and the difference between the noise frequency and screen scanning frequency is less than
When first predeterminated frequency or the noise frequency are N times of the frequency scanning frequency, by screen scanning frequency increase
Or reducing the second predeterminated frequency, the N is the integer more than or equal to 1.
The third aspect, there is provided a kind of touch screen control device, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as performing the touch-screen control method described in above-mentioned any one of first aspect.
Fourth aspect, there is provided a kind of computer-readable recording medium, be stored with finger on the computer-readable recording medium
The touch-screen control method described in above-mentioned any one of first aspect is realized in order, the instruction when being executed by processor.
5th aspect, there is provided a kind of computer program product for including instruction, when run on a computer so that
Computer performs the touch-screen control method described in above-mentioned any one of first aspect.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The method that the embodiment of the present disclosure provides, receive the status information and the charger of the signal of charger device output
Model identification, the touch condition based on the status information and model identification change touch-screen so that touch-screen evades falling charging
Disturbed caused by the common-mode noise of device equipment output, in this way, when being controlled based on the touch condition after change to touch-screen, can
It is abnormal to avoid touch-screen work from occurring.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Figure 1A is a kind of schematic diagram for realizing framework according to an exemplary embodiment.
Figure 1B is a kind of flow chart of touch-screen control method according to an exemplary embodiment.
Fig. 2A is a kind of flow chart of touch-screen control method according to another exemplary embodiment.
Fig. 2 B are a kind of hardware architecture diagrams of charger device involved in Fig. 2A embodiments.
Fig. 3 A are a kind of block diagrams of touch screen control device according to an exemplary embodiment.
Fig. 3 B are a kind of structural representations of change module 320 according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of touch screen control device 400 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Before the touch-screen control method being related to the embodiment of the present disclosure describes in detail, first to the embodiment of the present disclosure
The noun that is related to, implementation environment and realize that framework is simply introduced.
First, the noun being related to the embodiment of the present disclosure is simply introduced.
Common-mode noise:The noise of charger device output, it is related to the power output of charger device, as charger is set
The change of standby power output, frequency, size (noise amplitude), the dutycycle of common-mode noise can change.In addition, common mode
The noise amplitude of noise is bigger, bigger to being disturbed caused by touch-screen.
Multiframe filtering algorithm:Performed mathematical calculations for continuous more frame data caused by continuous touch, to judge to touch
Whether state meets the trigger condition pre-set always.
Secondly, the implementation environment being related to the embodiment of the present disclosure is simply introduced.
At present, as the rapid popularization of fast charge specification, the output characteristics of charger device become dynamic variation, for example,
Charger device can be based on the charged state of load (such as mobile phone), dynamically adjust the voltage and/or electric current of output.Wherein,
The voltage and/or electric current for dynamically adjusting output include:The voltage of output is dynamically adjusted, or, dynamically adjust output
Electric current, or, dynamically adjust output voltage and electric current.
When the change occurs for electric current, voltage when charger device output, the power output of the charger device also will be with
Change.Further, when the power output of the charger device changes, the common mode of charger device output
Noise will also change, so as to produce the interference of varying strength to touch-screen.Charged to evade the charger device
A kind of touch-screen control method is provided to interference, the embodiment of the present disclosure caused by touch-screen in journey, it implements process please
Referring to the embodiment shown in below figure 1A or Fig. 2A.
Next, what the embodiment of the present disclosure was related to realizes that framework is simply introduced.
Figure 1A is refer to, the Figure 1A is a kind of schematic diagram for realizing framework according to an exemplary embodiment, mainly
Include charger device 110 and terminal 120.The charger device 110 can pass through such as USB (Universal Serial
Bus, USB) etc data wire be connected with the terminal 120.
Wherein, the charger device 110 is mainly used in charging to the terminal 120.In practical application scene, this fills
Electric equipment 110 includes charger module, and the charger module is located in the body of charger device, for controlling charger device
Working condition, and by USB etc data wire to terminal transmission information.In addition, the charger device 110 can come from not
Same manufacturer, and model corresponding to different manufacturers is generally also different.
Wherein, the terminal 120 is mainly used in performing the touch-screen control method that the embodiment of the present disclosure provides, the terminal 120
In be configured with touch-screen.In practical application scene, state machine module and touch screen module can also be included in the terminal.
Wherein, the state machine module is the equal of the connection tie of touch screen module and above-mentioned charger module.The state
Machine module is used for the information for receiving the transmission of above-mentioned charger module, and the operation that the information is changed into touch-screen can be performed is ordered
Order, to change the touch condition of touch-screen.In practical implementations, the state machine module can be soft by bottom by the hardware of terminal
Part driving is realized.Wherein, such as IIC (Inter-Integrated can be used between the state machine module and touch screen module
Circuit, IC bus), SPI (Serial Peripheral Interface, serial external interface), MIPI
The communication interface of (mobile industry processor interface, mobile Industry Processor Interface) etc, which is realized, to be handed over
Mutually.
The touch screen module is used for the operational order for receiving above-mentioned state machine module transmission, and performs the operational order, with
Change the touch condition of touch-screen.Further, the touch screen module also has the energy to state machine module execution result back
Power.
It should be noted that the terminal 120 can be the equipment of such as mobile phone, tablet personal computer, computer etc, the disclosure
Embodiment is not limited this.
, next will be to the disclosure after noun, implementation environment and the system architecture that the embodiment of the present disclosure is related to is described
The specific implementation for the touch-screen control method that embodiment is related to describes in detail.
Figure 1B is a kind of flow chart of touch-screen control method according to an exemplary embodiment, as shown in Figure 1B,
The touch-screen control method is used in terminal, and the touch-screen control method can realize step including following:
In a step 101, the status information of signal and the model mark of the charger device of charger device output are received
Know, the status information is used for the output state for describing the signal.
In a step 102, based on the status information and the model identification, the touch condition of touch-screen, the touch bar are changed
Part refers to that the touch-screen detects the condition that touch operation is met.
In step 103, the touch-screen is controlled based on the touch condition after change.
In the disclosed embodiments, the status information of signal and the model mark of the charger of charger device output are received
Know, the touch condition based on the status information and model identification change touch-screen so that touch-screen evades falling charger device
Disturb caused by the common-mode noise of output, in this way, when being controlled based on the touch condition after change to touch-screen, can avoid
Touch-screen work occurs abnormal
Alternatively, the status information includes output current and output voltage.
Alternatively, based on the status information and the model identification, the touch condition of touch-screen is changed, including:
Based on the output current and the output voltage, determination power output;
Noise parameter corresponding to the power output and the model identification is determined from the specified corresponding relation of storage, this is specified
Corresponding relation is used to store the corresponding relation between model identification, power output and noise parameter three;
Based on identified noise parameter, the touch condition of the touch-screen is changed.
Alternatively, based on identified noise parameter, the touch condition of the touch-screen is changed, including is implemented as described below in mode
At least one:
When the noise parameter reports thresholding including noise threshold and the noise threshold more than or equal to the touch-screen
During value, report threshold value to increase on the noise threshold touch-screen, this report threshold value be used for limit touch when
At least one of long, touch signal intensity and touch size;
When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm is used to touch at this
Touching increases the number for reporting threshold value that touch condition meets the touch-screen in condition;
When the noise parameter includes noise frequency, and the difference between the noise frequency and screen scanning frequency is less than first
When predeterminated frequency or the noise frequency are N times of the frequency scanning frequency, the screen scanning frequency is increasedd or decreased second
Predeterminated frequency, the N are the integer more than or equal to 1.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real
Example is applied no longer to repeat this one by one.
Fig. 2A is a kind of flow chart of touch-screen control method according to an exemplary embodiment, as shown in Figure 2 A,
The touch-screen control method is applied to realizing in structure shown in above-mentioned Figure 1A, and the touch-screen control method can include following several
It is individual to realize step:
In step 201, the status information of signal and the model mark of the charger device of charger device output are received
Know, the status information is used for the output state for describing the signal.
As it was noted above, can include charger module in the charger device, the charger device can be by this
Charger module controls the working condition of charger device, and the model mark of the status information of output signal and the charger device
Know.In a kind of possible implementation, the status information includes output current and output voltage.
In actual applications, same terminal can be often adapted to the charger device of a variety of different models, with by more
The charger device of kind different model can be charged.In the specific implementation, the hardware of the charger device of different model
Design incomplete same, in the embodiment of the present disclosure, can be distinguished by different model identifications.
It that is to say, the model identification can be used for a kind of charger device of model of unique mark.Further, the model
Mark can be specially hardware ID (Identity, identity).Wherein, the model identification can be stored by multi-bit register, example
Such as, the model identification can be " 0001 ", " 0010 ", " 0100 " etc..
It is different according to the model of charger device, when the charger device exports identical or different power output, produce
The interference size of common-mode noise may be different.Therefore, made an uproar in order to accurately determine the common mode of charger device output
Interference strength caused by sound, herein, the charger device export the charger device by the charger module to terminal
Model identification.
For example, refer to Fig. 2 B, Fig. 2 B are a kind of hardware of charger device according to an exemplary embodiment
Structural representation, the IC that above-mentioned model identification can be stored in inside charger device (Integrated Circuit, integrate electricity
Road) in U2, the IC U2 can be by controlling two current potentials of D+, D- in USB data line, by the model mark of the charger device
Knowledge is transferred to terminal.
Correspondingly, terminal receives the status information of signal and the model mark of the charger device of charger device transmission
Know.Further, the terminal receives the status information for the signal that the charger module exports by above-mentioned state machine module and is somebody's turn to do
The model identification of charger device.
It should be noted that the embodiment of the present disclosure is entered so that the status information includes output current and output voltage as an example
Row explanation, in another embodiment, the status information is also possible that other information, for example, the status information is also possible that
Working frequency etc., and different working frequencies may can also have different degrees of interference, the embodiment of the present disclosure is not limited this
It is fixed.
In step 202, based on the output current and the output voltage, determination power output.
As it was noted above, because the different output power that the charger device of same model exports caused by touch-screen to doing
Disturbing intensity may be different, or, the identical power output of the charger device output of different model caused by touch-screen to doing
Disturbing intensity may be also different, therefore, needs exist for determining the power output size that the charger device is current, with for the output
Power takes corresponding pre- anti-interference method.
In the specific implementation, the terminal can be based on the output current and the output voltage by the state machine module, really
Determine power output.Further, the state machine module can be based on the output current and the output voltage, pass through equation below
(1) determination power output:
P=UI (1)
Wherein, P represents power output, and U represents output voltage, and I represents output current.
In step 203, determine to make an uproar corresponding to the power output and the model identification from the specified corresponding relation of storage
Sound parameter, this specifies corresponding relation to be used to store the corresponding relation between model identification, power output and noise parameter three.
Wherein, the terminal storage has the corresponding relation between the storage model identification, power output and noise parameter three.
Further, technical staff is researching and developing the debugging stage, the charger device of standard configuration can be adapted to, to test different model
Charger device output noise and power output between corresponding relation, that is, determine model identification, power output and noise
Corresponding relation between parameter three, afterwards, store above-mentioned specified corresponding relation in the terminal, and by model identification and output
Power is as index.
For example, in a kind of possible implementation, pair between the model identification, power output and noise parameter three
Should be related to can be with as shown in table 1 below.
Table 1
Model identification | Power output | Noise parameter |
0001 | P1 | Parameter 1 |
… | … | … |
0110 | Pn | Parameter n |
Certainly, it is necessary to which explanation, above-mentioned is only that the model identification, power output and noise ginseng are stored in the form of table 1
Illustrated exemplified by corresponding relation between number three, in another embodiment, terminal can also pass through other forms storage-type
Corresponding relation number between mark, power output and noise parameter three, for example, it is also possible to be deposited using modes such as files
Storage, the embodiment of the present disclosure are not limited this.
In this way, the state machine module can determine the power output and the model identification from the specified corresponding relation of storage
Corresponding noise parameter.If for example, be P1 based on output current and output voltage determination power output, and the model received
" 0001 " is identified as, then the noise parameter according to corresponding to can determining the specified corresponding relation as shown in table 1 of storage is noise
Parameter 1.
It should be noted that only it is to be stored with specified corresponding relation, and specified corresponding relation use in the terminal here
Illustrated exemplified by corresponding relation between storage model identification, power output and noise parameter three, in another embodiment
In, this specifies corresponding relation to can be also used for storing the corresponding relation between other information, for example, this specifies corresponding relation may be used also
For the corresponding relation between storage model identification, output current, output voltage and noise parameter, the embodiment of the present disclosure
This is not limited.
Further, can after the state machine module determines noise parameter corresponding to the power output and the model identification
By by the noise parameter by operational order in a manner of be transferred to touch screen module.
In step 204, based on identified noise parameter, the touch condition of the touch-screen is changed.
In the specific implementation, the terminal can receive the operation life of above-mentioned state machine module transmission by touch screen module
Order, the operational order include determined noise parameter, and the operational order is used to indicate the touch screen module based on determined by
Noise parameter, change the touch condition of the touch-screen.Wherein, the touch condition refers to that the touch-screen detects that touch operation is expired
The condition of foot.
Further, the content included according to identified noise parameter is different, changes the touch condition of the touch-screen
Specific implementation also differs.In the specific implementation, based on determined by noise parameter, change the tool of the touch condition of the touch-screen
Body, which is realized, can include at least one of mode is implemented as described below:
First way:When the noise parameter is more than or equal to the touch-screen including noise threshold and the noise threshold
When reporting threshold value, report threshold value to increase on the noise threshold touch-screen, this reports threshold value to be used for
Limit and touch at least one of duration, touch signal intensity and touch size.
Wherein, the noise threshold can be based on the determination of the parameters such as noise amplitude size.If noise threshold be more than or
Equal to the threshold value that reports of the touch-screen, then easily cause the touch screen module to carry out mistake and report, that is to say, terminal receives
Touch signal, but actually user does not touch the touch-screen, and the touch signal is triggered by the common-mode noise, in this way,
Touch screen module progress mistake is may result in report, it is abnormal so as to cause work to occur.
Therefore, when the noise parameter is more than or equal to reporting for the touch-screen including noise threshold and the noise threshold
, will noise threshold tune, it is necessary to report threshold value to increase on the noise threshold touch-screen during threshold value
Whole reporting under threshold value to touch-screen, done in this way, can evade falling caused by the common-mode noise of charger device output
Disturb.
The second way:When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm
The number for reporting threshold value for meeting the touch-screen for increasing touch condition in the touch condition.
Wherein, the noise size can be indicated by noise amplitude.Under noiseless situation, terminal will not start more
Frame filtering algorithm, i.e. the multiframe filtering algorithm are generally in closed mode.When noise parameter includes noise size, illustrate current
The common-mode noise of output can to touch-screen produce interference, due to caused by common-mode noise disturb duration be it is limited, therefore, in order to
Evade falling interference, the touch screen module in the terminal can start multiframe filtering algorithm.In this way, the touch screen module will be multiple
Whether detection touch condition meets the threshold value that reports of the touch-screen always, in other words, detects the touch condition and meets the touch
Whether the number for reporting threshold value of screen reaches preset times.
Wherein, the preset times can by user's self-defined setting according to the actual requirements, can also by terminal default setting,
The embodiment of the present disclosure is not construed as limiting to this.
If that detects that the touch condition meets the touch-screen always reports threshold value, the touch screen module just determines to touch
Touching signal is triggered by user, otherwise, then it is assumed that the touch signal is triggered by common-mode noise.As can be seen here, start more
It can equally evade after frame filtering algorithm and be disturbed caused by common-mode noise.
The third mode:When the noise parameter includes noise frequency, and between the noise frequency and screen scanning frequency
Difference is less than the first predeterminated frequency or the noise frequency when being N times of the frequency scanning frequency, and the screen scanning frequency is increased
Add deduct small second predeterminated frequency, and the N is the integer more than or equal to 1.
Wherein, first predeterminated frequency can be by technical staff's self-defined setting according to the actual requirements, can also be by the end
Default setting is held, the embodiment of the present disclosure is not limited this.
Wherein, above-mentioned second predeterminated frequency can be by technical staff's self-defined setting according to the actual requirements, can also be by this
Terminal default setting, the embodiment of the present disclosure are not limited this.
If noise frequency and screen scanning frequency are very close, or, the noise frequency is times of screen scanning frequency
During number, the common-mode noise of charger device output can produce very strong interference to touch-screen.Therefore, when the noise frequency and screen
Difference between curtain scan frequency is less than the first predeterminated frequency or the noise frequency when being N times of the frequency scanning frequency, should
The screen scanning frequency is increasedd or decreased the second predeterminated frequency by touch screen module, to cause the noise frequency and the screen scanning
Frequency phase-difference is larger, and it is not in multiple proportion between the noise frequency and the screen scanning frequency to cause.
In practical implementations, above-mentioned first predeterminated frequency is traditionally arranged to be different values from the second predeterminated frequency.It that is to say,
In order to ensure adjustment after screen scanning frequency and noise frequency between keep off, generally by first predeterminated frequency and this second
Predeterminated frequency is arranged to different values.
For example, it is assumed that the noise frequency is 500Hz, the screen scanning frequency is 502Hz, and first predeterminated frequency is
10Hz, second predeterminated frequency are 20.Because the difference between the noise frequency and the screen scanning frequency is 2Hz, it is less than
10Hz, therefore, illustrate between the noise frequency and the screen scanning frequency that closely the common-mode noise can produce to touch-screen
Interference.Therefore, the screen scanning frequency can be increased or decreased into 20Hz, the screen scanning frequency after being adjusted is 522Hz
Or 482Hz.
It should be noted that only it is to change the touch condition of the target touch key-press including above-mentioned several possible here
Illustrated exemplified by implementation.In practical implementations, it can also be included by changing the touch condition of the target touch key-press
Its form, information reporting function is touched for example, it is also possible to close, that is, closes touch function, or, reset mode can also be passed through
Software and hardware is calibrated etc., the embodiment of the present disclosure is not construed as limiting to this.
In addition, it is necessary to explanation, by above-mentioned steps 202 to step 204, is realized based on the status information and the type
Number mark, changes the implementation process of the touch condition of touch-screen.
In step 205, the touch-screen is controlled based on the touch condition after change.
In actual applications, after the touch condition of touch-screen is changed, it can evade falling being total to for charger device output
Disturb caused by mode noise, for example, threshold value can be reported by improve touch-screen so that charger device output is total to
Interference strength caused by mode noise is in and reported below threshold value, that is to say, touch condition after based on change is to touching
When screen is controlled, the mistake caused by the caused interference of common-mode noise that charger device can be avoided to export reports, to keep away
Exempt from terminal-pair touch-screen and carry out Wrong control, so as to ensure touch-screen normal work.
In the disclosed embodiments, the status information of signal and the model mark of the charger of charger device output are received
Know, the touch condition based on the status information and model identification change touch-screen so that touch-screen evades falling charger device
Disturb caused by the common-mode noise of output, in this way, when being controlled based on the touch condition after change to touch-screen, can avoid
Touch-screen work occurs abnormal.
Fig. 3 A are a kind of block diagrams of touch screen control device according to an exemplary embodiment.Reference picture 3A, the dress
Put including receiving module 310, change module 320 and control module 330.
The receiving module 310, for the status information and the charger device of the signal for receiving charger device output
Model identification, the status information are used for the output state for describing the signal;
The change module 320, for based on the status information and the model identification, changing the touch condition of touch-screen, being somebody's turn to do
Touch condition refers to that the touch-screen detects the condition that touch operation is met;
The control module 330, for being controlled based on the touch condition after change to the touch-screen.
Alternatively, the status information includes output current and output voltage.
Alternatively, Fig. 3 B are refer to, the change module 320 includes:
First determination sub-module 320a, for based on the output current and the output voltage, determination power output;
Second determination sub-module 320b, for determining the power output and the model mark from the specified corresponding relation of storage
Noise parameter corresponding to knowledge, this specifies corresponding relation to be used to store between model identification, power output and noise parameter three
Corresponding relation;
Submodule 320c is changed, for based on identified noise parameter, changing the touch condition of the touch-screen.
Alternatively, change submodule 320c is used for:
When the noise parameter reports thresholding including noise threshold and the noise threshold more than or equal to the touch-screen
During value, report threshold value to increase on the noise threshold touch-screen, this report threshold value be used for limit touch when
At least one of long, touch signal intensity and touch size;
When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm is used to touch at this
Touching increases the number for reporting threshold value that touch condition meets the touch-screen in condition;
When the noise parameter includes noise frequency, and the difference between the noise frequency and screen scanning frequency is less than first
When predeterminated frequency or the noise frequency are N times of the frequency scanning frequency, the screen scanning frequency is increasedd or decreased second
Predeterminated frequency, the N are the integer more than or equal to 1.
In the disclosed embodiments, the status information of signal and the model mark of the charger of charger device output are received
Know, the touch condition based on the status information and model identification change touch-screen so that touch-screen evades falling charger device
Disturb caused by the common-mode noise of output, in this way, when being controlled based on the touch condition after change to touch-screen, can avoid
Touch-screen work occurs abnormal.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of touch screen control device 400 according to an exemplary embodiment.For example, device 400
Can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices,
Body-building equipment, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply
Component 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and
Communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just
Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate
Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown
Example includes the instruction of any application program or method for being operated on device 400, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of device 400.Power supply module 406 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing power supply for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike
Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set
Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented
Estimate.For example, sensor cluster 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 400, and sensor cluster 414 can be with 400 1 components of detection means 400 or device
Position change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and device 400
Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device
400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing shown in above-mentioned Figure 1B or Fig. 2A
The touch-screen control method that embodiment provides.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out the touch-screen control method that above-mentioned Figure 1B or Fig. 2A illustrated embodiments provide.
A kind of computer-readable recording medium, instruction, the instruction quilt are stored with the computer-readable recording medium
The touch-screen control method that above-mentioned Figure 1B or Fig. 2A illustrated embodiments provide is realized during computing device.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (10)
1. a kind of touch-screen control method, it is characterised in that methods described includes:
Receive the status information of signal and the model identification of the charger device of charger device output, the status information
For describing the output state of the signal;
Based on the status information and the model identification, the touch condition of touch-screen is changed, the touch condition refers to described
Touch-screen detects the condition that touch operation is met;
The touch-screen is controlled based on the touch condition after change.
2. the method as described in claim 1, it is characterised in that the status information includes output current and output voltage.
3. method as claimed in claim 2, it is characterised in that it is described to be based on the status information and the model identification, more
Change the touch condition of touch-screen, including:
Based on the output current and the output voltage, determination power output;
Noise parameter corresponding to the power output and the model identification, the finger are determined from the specified corresponding relation of storage
Determine corresponding relation to be used to store the corresponding relation between model identification, power output and noise parameter three;
Based on identified noise parameter, the touch condition of the touch-screen is changed.
4. method as claimed in claim 3, it is characterised in that the noise parameter based on determined by, change the touch
The touch condition of screen, including at least one of mode is implemented as described below:
When the noise parameter reports door including noise threshold and the noise threshold more than or equal to the touch-screen
During limit value, threshold value is reported to increase on the noise threshold touch-screen, it is described to report threshold value to be used to limit
Surely duration, touch signal intensity are touched and touches at least one of size;
When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm is used for described
Increase the number for reporting threshold value that touch condition meets the touch-screen in touch condition;
When the noise parameter includes noise frequency, and the difference between the noise frequency and screen scanning frequency is less than first
When predeterminated frequency or the noise frequency are N times of the frequency scanning frequency, the screen scanning frequency is increased and added deduct
Small second predeterminated frequency, the N are the integer more than or equal to 1.
5. a kind of touch screen control device, it is characterised in that described device includes:
Receiving module, for receiving the status information of signal and the model mark of the charger device of charger device output
Know, the status information is used for the output state for describing the signal;
Module is changed, for based on the status information and the model identification, changing the touch condition of touch-screen, the touch
Condition refers to that the touch-screen detects the condition that touch operation is met;
Control module, for being controlled based on the touch condition after change to the touch-screen.
6. device according to claim 5, it is characterised in that the status information includes output current and output voltage.
7. device as claimed in claim 6, it is characterised in that the change module includes:
First determination sub-module, for based on the output current and the output voltage, determination power output;
Second determination sub-module, for determining the power output and the model identification pair from the specified corresponding relation of storage
The noise parameter answered, the specified corresponding relation are used to store pair between model identification, power output and noise parameter three
It should be related to;
Submodule is changed, for based on identified noise parameter, changing the touch condition of the touch-screen.
8. device as claimed in claim 7, it is characterised in that the change submodule is used for:
When the noise parameter reports door including noise threshold and the noise threshold more than or equal to the touch-screen
During limit value, threshold value is reported to increase on the noise threshold touch-screen, it is described to report threshold value to be used to limit
Surely duration, touch signal intensity are touched and touches at least one of size;
When the noise parameter includes noise size, start multiframe filtering algorithm, the multiframe filtering algorithm is used for described
Increase the number for reporting threshold value that touch condition meets the touch-screen in touch condition;
When the noise parameter includes noise frequency, and the difference between the noise frequency and screen scanning frequency is less than first
When predeterminated frequency or the noise frequency are N times of the frequency scanning frequency, the screen scanning frequency is increased and added deduct
Small second predeterminated frequency, the N are the integer more than or equal to 1.
9. a kind of touch screen control device, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as the step of perform claim requires any one method described in 1-4.
10. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, it is characterised in that
The step of instruction realizes any one method described in claim 1-4 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710752734.9A CN107526471B (en) | 2017-08-28 | 2017-08-28 | Touch screen control method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710752734.9A CN107526471B (en) | 2017-08-28 | 2017-08-28 | Touch screen control method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107526471A true CN107526471A (en) | 2017-12-29 |
CN107526471B CN107526471B (en) | 2021-05-18 |
Family
ID=60682529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710752734.9A Active CN107526471B (en) | 2017-08-28 | 2017-08-28 | Touch screen control method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107526471B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271124A (en) * | 2018-09-27 | 2019-01-25 | 联想(北京)有限公司 | A kind of processing method and electronic equipment |
CN113093945A (en) * | 2021-04-21 | 2021-07-09 | 北京集创北方科技股份有限公司 | Touch screen scanning control device, method, chip, display panel and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102414652A (en) * | 2009-07-13 | 2012-04-11 | 密克罗奇普技术公司 | Capacitive touch system with noise immunity |
US20120268415A1 (en) * | 2011-04-19 | 2012-10-25 | Anton Konovalov | Method and apparatus to improve noise immunity of a touch sense array |
CN103091586A (en) * | 2013-01-22 | 2013-05-08 | 青岛海信移动通信技术股份有限公司 | Standard configuration charger discriminated method for capacitive touch screen |
CN103150048A (en) * | 2011-12-06 | 2013-06-12 | 三星电子株式会社 | Method and apparatus for configuring touch sensing parameters |
CN105144048A (en) * | 2013-03-12 | 2015-12-09 | 谷歌技术控股有限责任公司 | Adaptive touch sensor control based on identification of attached accessory |
CN105874413A (en) * | 2014-01-07 | 2016-08-17 | 高通股份有限公司 | System and method for host-augmented touch processing |
-
2017
- 2017-08-28 CN CN201710752734.9A patent/CN107526471B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102414652A (en) * | 2009-07-13 | 2012-04-11 | 密克罗奇普技术公司 | Capacitive touch system with noise immunity |
US20120268415A1 (en) * | 2011-04-19 | 2012-10-25 | Anton Konovalov | Method and apparatus to improve noise immunity of a touch sense array |
CN103150048A (en) * | 2011-12-06 | 2013-06-12 | 三星电子株式会社 | Method and apparatus for configuring touch sensing parameters |
CN103091586A (en) * | 2013-01-22 | 2013-05-08 | 青岛海信移动通信技术股份有限公司 | Standard configuration charger discriminated method for capacitive touch screen |
CN105144048A (en) * | 2013-03-12 | 2015-12-09 | 谷歌技术控股有限责任公司 | Adaptive touch sensor control based on identification of attached accessory |
CN105874413A (en) * | 2014-01-07 | 2016-08-17 | 高通股份有限公司 | System and method for host-augmented touch processing |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271124A (en) * | 2018-09-27 | 2019-01-25 | 联想(北京)有限公司 | A kind of processing method and electronic equipment |
CN113093945A (en) * | 2021-04-21 | 2021-07-09 | 北京集创北方科技股份有限公司 | Touch screen scanning control device, method, chip, display panel and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107526471B (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105657173B (en) | Volume adjusting method, device and mobile terminal | |
CN105446646A (en) | Virtual keyboard based content input method, apparatus and touch device | |
CN104281432A (en) | Method and device for regulating sound effect | |
CN105653085B (en) | Touch-responsive method and apparatus | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN104238912A (en) | Application control method and application control device | |
CN105353870A (en) | Method and apparatus for controlling terminal by means of intelligent wearable device | |
CN108040171A (en) | Voice operating method, apparatus and computer-readable recording medium | |
CN104021148A (en) | Method and device for adjusting sound effect | |
CN103995666A (en) | Method and device for setting work mode | |
CN106201108B (en) | Gloves control mode touch mode control method and device and electronic equipment | |
CN105159496A (en) | Touch event response method and mobile terminal | |
CN106033397A (en) | Method and device for adjusting memory buffer, and terminal | |
CN107105517A (en) | Method for connecting network and device | |
CN104378715A (en) | Device and method for lowering earphone POP sound | |
CN107529699A (en) | Control method of electronic device and device | |
CN105323152A (en) | Message processing method, device and equipment | |
CN105975038A (en) | Prompt method and device of charging port detection result | |
CN104182039A (en) | Equipment control method and device as well as electronic equipment | |
CN107368280A (en) | Method for controlling volume, device and the interactive voice equipment of interactive voice | |
CN107896355A (en) | The control method and device of AI audio amplifiers | |
CN107562500A (en) | Debugging apparatus, method and apparatus | |
CN107526471A (en) | Touch-screen control method, device and storage medium | |
CN106484296A (en) | Mobile terminal prevents processing method, device and the equipment of false touch | |
CN104035764A (en) | Object control method and relevant device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |