CN107526471B - Touch screen control method and device and storage medium - Google Patents

Touch screen control method and device and storage medium Download PDF

Info

Publication number
CN107526471B
CN107526471B CN201710752734.9A CN201710752734A CN107526471B CN 107526471 B CN107526471 B CN 107526471B CN 201710752734 A CN201710752734 A CN 201710752734A CN 107526471 B CN107526471 B CN 107526471B
Authority
CN
China
Prior art keywords
touch
touch screen
noise
threshold value
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.)
Active
Application number
CN201710752734.9A
Other languages
Chinese (zh)
Other versions
CN107526471A (en
Inventor
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710752734.9A priority Critical patent/CN107526471B/en
Publication of CN107526471A publication Critical patent/CN107526471A/en
Application granted granted Critical
Publication of CN107526471B publication Critical patent/CN107526471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The disclosure relates to a touch screen control method, a touch screen control device and a storage medium, and relates to the technical field of terminals. The method comprises the following steps: receiving state information of a signal output by charger equipment and a model identification of the charger equipment, wherein the state information is used for describing the output state of the signal, changing the touch condition of the touch screen based on the state information and the model identification, the touch condition refers to the condition met by touch operation detected by the touch screen, and controlling the touch screen based on the changed touch condition. That is, the touch condition of the touch screen is changed according to the state information and the model identification of the signal output by the charger device, so that the interference generated by the common-mode noise output by the charger device is avoided, and the abnormal operation of the touch screen is avoided.

Description

Touch screen control method and device and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a touch screen control method and apparatus, and a storage medium.
Background
With the rapid development of terminal technology, terminals such as mobile phones are widely used. In practical application scenarios, in order to enable the terminal to keep working normally for a long time, the terminal generally needs to be charged by a charger device. However, in the process of charging the terminal by using the charger device, the charger device may output common mode noise, which is likely to interfere with the touch screen, so that the touch screen may report an erroneous touch message, which may cause the terminal to perform erroneous control on the touch screen, thereby affecting the normal operation of the touch screen.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a touch screen control method, apparatus, and computer-readable storage medium.
In a first aspect, a touch screen control method is provided, where the method includes:
receiving state information of a signal output by charger equipment and a model identification of the charger equipment, wherein the state information is used for describing the output state of the signal;
changing the touch condition of the touch screen based on the state information and the model identification, wherein the touch condition is a condition which is met by the touch operation detected by the touch screen;
controlling the touch screen based on the changed touch condition.
Optionally, the state information includes an output current and an output voltage.
Optionally, the changing the touch condition of the touch screen based on the state information and the model identifier includes:
determining an output power based on the output current and the output voltage;
determining the noise parameters corresponding to the output power and the model identification from the stored specified corresponding relation, wherein the specified corresponding relation is used for storing the corresponding relation among the model identification, the output power and the noise parameters;
altering a touch condition of the touch screen based on the determined noise parameter.
Optionally, the altering the touch condition of the touch screen based on the determined noise parameter includes at least one of the following implementation manners:
when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to a reporting threshold value of the touch screen, increasing the reporting threshold value of the touch screen to be above the noise threshold value, wherein the reporting threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size;
when the noise parameters comprise noise magnitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that touch states all accord with the reporting threshold value of the touch screen in the touch condition;
when the noise parameter comprises a noise frequency, and the difference between the noise frequency and a screen scanning frequency is less than a first preset frequency or the noise frequency is N times of the frequency scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein N is an integer greater than or equal to 1.
In a second aspect, there is provided a touch screen control apparatus, the apparatus comprising:
the receiving module is used for receiving state information of a signal output by charger equipment and a model identifier of the charger equipment, wherein the state information is used for describing the output state of the signal;
a changing module, configured to change a touch condition of the touch screen based on the state information and the model identifier, where the touch condition is a condition that is satisfied by a touch operation detected by the touch screen;
and the control module is used for controlling the touch screen based on the changed touch condition.
Optionally, the state information includes an output current and an output voltage.
Optionally, the altering module comprises:
a first determining submodule for determining an output power based on the output current and the output voltage;
the second determining submodule is used for determining the noise parameters corresponding to the output power and the model identification from the stored specified corresponding relation, and the specified corresponding relation is used for storing the corresponding relation among the model identification, the output power and the noise parameters;
a modification submodule for modifying a touch condition of the touch screen based on the determined noise parameter.
Optionally, the modification submodule is configured to:
when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to a reporting threshold value of the touch screen, increasing the reporting threshold value of the touch screen to be above the noise threshold value, wherein the reporting threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size;
when the noise parameters comprise noise magnitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that touch states all accord with the reporting threshold value of the touch screen in the touch condition;
when the noise parameter comprises a noise frequency, and the difference between the noise frequency and a screen scanning frequency is less than a first preset frequency or the noise frequency is N times of the frequency scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein N is an integer greater than or equal to 1.
In a third aspect, a touch screen control apparatus is provided, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the touch screen control method of any of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, which stores instructions that, when executed by a processor, implement the touch screen control method of any one of the above first aspects.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the touch screen control method of any of the first aspects above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method provided by the embodiment of the disclosure receives the state information of the signal output by the charger device and the model identifier of the charger, and changes the touch condition of the touch screen based on the state information and the model identifier, so that the touch screen avoids the interference generated by the common-mode noise output by the charger device, and thus, when the touch screen is controlled based on the changed touch condition, the abnormal operation of the touch screen can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1A is a schematic diagram illustrating one implementation architecture in accordance with an illustrative embodiment.
FIG. 1B is a flow chart illustrating a touch screen control method according to an exemplary embodiment.
Fig. 2A is a flowchart illustrating a touch screen control method according to another exemplary embodiment.
Fig. 2B is a schematic diagram of a hardware structure of a charger device involved in the embodiment of fig. 2A.
FIG. 3A is a block diagram illustrating a touch screen control device according to an exemplary embodiment.
Fig. 3B is a schematic diagram illustrating a structure of a modification module 320 according to an example embodiment.
Fig. 4 is a block diagram illustrating a touch screen control apparatus 400 according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before describing the touch screen control method related to the embodiment of the present disclosure in detail, terms, implementation environments, and implementation architectures related to the embodiment of the present disclosure are briefly described.
First, terms related to the embodiments of the present disclosure will be briefly described.
Common mode noise: the noise output by the charger device is related to the output power of the charger device, and the frequency, the magnitude (noise amplitude value) and the duty ratio of the common mode noise are changed along with the change of the output power of the charger device. In addition, the larger the noise amplitude of the common mode noise, the greater the interference generated to the touch screen.
Multi-frame filtering algorithm:and performing mathematical operation on continuous multi-frame data generated by continuous touch to judge whether the touch state always meets the preset triggering condition.
Next, a brief description is given of an implementation environment related to the embodiments of the present disclosure.
Currently, with the rapid popularization of the fast charging standard, the output characteristics of the charger device become dynamically diversified, for example, the charger device can dynamically adjust the output voltage and/or current based on the charging state of a load (such as a mobile phone). Wherein dynamically adjusting the output voltage and/or current comprises: the output voltage is dynamically adjusted, or the output current is dynamically adjusted, or both the output voltage and the output current are dynamically adjusted.
When the current and the voltage output by the charger device change, the output power of the charger device also changes. Further, when the output power of the charger device changes, the common-mode noise output by the charger device will also change, thereby generating interference with different intensities on the touch screen. In order to avoid interference generated by the charger device on the touch screen during the charging process, an embodiment of the disclosure provides a touch screen control method, and a specific implementation process of the method is as shown in the following embodiment shown in fig. 1A or fig. 2A.
Next, a brief description is given of an implementation architecture related to the embodiments of the present disclosure.
Referring to fig. 1A, fig. 1A is a schematic diagram illustrating an implementation architecture according to an exemplary embodiment, which mainly includes a charger device 110 and a terminal 120. The charger device 110 may be connected to the terminal 120 through a data line such as a USB (Universal Serial Bus).
The charger device 110 is mainly used for charging the terminal 120. In a practical application scenario, the charging device 110 includes a charger module, which is located in a body of the charger device and is used for controlling an operating state of the charger device and transmitting information to a terminal through a data line such as a USB. In addition, the charger device 110 may come from different manufacturers, and the corresponding models of different manufacturers are usually different.
The terminal 120 is mainly used for executing the touch screen control method provided by the embodiment of the present disclosure, and the touch screen is configured in the terminal 120. In an actual application scenario, the terminal may further include a state machine module and a touch screen module.
The state machine module is equivalent to a connecting link between the touch screen module and the charger module. The state machine module is used for receiving the information transmitted by the charger module and converting the information into an operation command which can be executed by the touch screen so as to change the touch condition of the touch screen. In practical implementations, the state machine module may be implemented by hardware of the terminal through an underlying software driver. The state machine module and the touch screen module may interact with each other through a communication Interface, such as an Inter-Integrated Circuit (IIC), a Serial Peripheral Interface (SPI), and a Mobile Industry Processor Interface (MIPI).
The touch screen module is used for receiving the operation command transmitted by the state machine module and executing the operation command so as to change the touch condition of the touch screen. Further, the touch screen module also has the capability of feeding back the execution result to the state machine module.
It should be noted that the terminal 120 may be a device such as a mobile phone, a tablet computer, a computer, and the like, which is not limited in this disclosure.
After introducing the terms, the implementation environment, and the system architecture related to the embodiments of the present disclosure, a detailed description will be given next to specific implementations of the touch screen control method related to the embodiments of the present disclosure.
Fig. 1B is a flowchart illustrating a touch screen control method according to an exemplary embodiment, where as shown in fig. 1B, the touch screen control method is used in a terminal, and the touch screen control method may include the following implementation steps:
in step 101, status information of a signal output by a charger device and a model identifier of the charger device are received, wherein the status information is used for describing the output status of the signal.
In step 102, based on the state information and the model identifier, a touch condition of the touch screen is changed, where the touch condition is a condition that is satisfied by the touch operation detected by the touch screen.
In step 103, the touch screen is controlled based on the changed touch condition.
In the embodiment of the disclosure, the state information of the signal output by the charger device and the model identifier of the charger are received, and the touch condition of the touch screen is changed based on the state information and the model identifier, so that the touch screen avoids the interference generated by the common-mode noise output by the charger device, and thus, when the touch screen is controlled based on the changed touch condition, the phenomenon that the touch screen works abnormally can be avoided
Optionally, the state information includes an output current and an output voltage.
Optionally, based on the state information and the model identifier, changing a touch condition of the touch screen includes:
determining an output power based on the output current and the output voltage;
determining the noise parameters corresponding to the output power and the model identifier from the stored specified corresponding relation, wherein the specified corresponding relation is used for storing the corresponding relation among the model identifier, the output power and the noise parameters;
based on the determined noise parameter, a touch condition of the touch screen is altered.
Optionally, based on the determined noise parameter, altering a touch condition of the touch screen includes at least one of:
when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to the reported threshold value of the touch screen, increasing the reported threshold value of the touch screen to be higher than the noise threshold value, wherein the reported threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size;
when the noise parameter comprises the noise magnitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that the touch states all accord with the reporting threshold value of the touch screen in the touch condition;
when the noise parameter comprises a noise frequency, and the difference between the noise frequency and the screen scanning frequency is less than a first preset frequency or N times of the frequency scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein N is an integer greater than or equal to 1.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 2A is a flowchart illustrating a touch screen control method according to an exemplary embodiment, where as shown in fig. 2A, the touch screen control method is applied to the implementation structure shown in fig. 1A, and the touch screen control method may include the following implementation steps:
in step 201, status information of a signal output by a charger device and a model identifier of the charger device are received, wherein the status information is used for describing the output status of the signal.
As described above, the charger device may include a charger module, and the charger device may control an operating state of the charger device through the charger module and output state information of a signal and a model identifier of the charger device. In one possible implementation, the state information includes an output current and an output voltage.
In practical application, the same terminal can be adapted to various types of charger devices, so that the charger devices of various types can be charged. In a specific implementation, hardware designs of different models of charger devices are not identical, and in the embodiment of the present disclosure, the different models may be distinguished through different model identifiers.
That is, the model identification may be used to uniquely identify a model of charger device. Further, the model identification may be embodied as a hardware ID (Identity). Wherein the model identification may be stored by a multi-bit register, for example, the model identification may be "0001", "0010", "0100", etc.
According to different models of charger devices, the interference levels of the generated common-mode noise may be different when the charger devices output the same or different output powers. Therefore, in order to accurately determine the interference strength caused by the common-mode noise output by the charger device, the charger device outputs the model identification of the charger device to the terminal through the charger module.
For example, referring to fig. 2B, fig. 2B is a schematic diagram illustrating a hardware structure of a charger device according to an exemplary embodiment, where the model identifier may be stored in an IC (Integrated Circuit) U2 inside the charger device, and the IC U2 may transmit the model identifier of the charger device to a terminal by controlling two potentials, i.e., D + and D-on a USB data line.
Accordingly, the terminal receives the state information of the signal sent by the charger device and the model identification of the charger device. Further, the terminal receives the state information of the signal output by the charger module and the model identifier of the charger device through the state machine module.
It should be noted that, the embodiment of the present disclosure is only described by taking the example that the state information includes the output current and the output voltage, and in another embodiment, the state information may further include other information, for example, the state information may further include an operating frequency and the like, and different operating frequencies may also have different degrees of interference, which is not limited by the embodiment of the present disclosure.
In step 202, an output power is determined based on the output current and the output voltage.
As described above, since the interference strength generated by different output powers output by the same type of charger device on the touch screen may be different, or the interference strength generated by the same output power output by different types of charger devices on the touch screen may also be different, the current output power of the charger device needs to be determined to take corresponding interference prevention measures for the output power.
In a particular implementation, the terminal may determine an output power based on the output current and the output voltage via the state machine module. Further, the state machine module may determine an output power based on the output current and the output voltage by the following equation (1):
P=U·I (1)
where P represents the output power, U represents the output voltage, and I represents the output current.
In step 203, the noise parameter corresponding to the output power and the model identifier is determined from the stored specified corresponding relationship, which is used to store the corresponding relationship among the model identifier, the output power and the noise parameter.
The terminal stores the corresponding relation among the storage model identification, the output power and the noise parameter. Furthermore, in the research, development and debugging stage, technicians may adapt the standard charger device to test the correspondence between the output noise and the output power of the charger devices of different models, that is, determine the correspondence between the model identifier, the output power and the noise parameter, and then store the specified correspondence in the terminal, and use the model identifier and the output power as an index.
For example, in one possible implementation, the correspondence between the model identifier, the output power and the noise parameter may be as shown in table 1 below.
TABLE 1
Model identification Output power Noise parameter
0001 P1 Parameter 1
0110 Pn Parameter n
It should be noted that, it is described above only by taking the form of table 1 to store the correspondence among the model identifier, the output power, and the noise parameter as an example, in another embodiment, the terminal may also store the correspondence among the model identifier, the output power, and the noise parameter in another form, for example, may also store the correspondence by using a file or the like, which is not limited in the embodiment of the present disclosure.
In this way, the state machine module can determine the noise parameter corresponding to the output power and the model identifier from the stored specified corresponding relationship. For example, if the output power is determined to be P1 based on the output current and the output voltage, and the received model identification is "0001", the corresponding noise parameter may be determined to be noise parameter 1 according to the stored specified correspondence as shown in table 1.
It should be noted that, here, only the specific correspondence relationship stored in the terminal is described as an example, and the specific correspondence relationship is used to store correspondence relationships among the model identifier, the output power and the noise parameter, in another embodiment, the specific correspondence relationship may also be used to store correspondence relationships among other information, for example, the specific correspondence relationship may also be used to store correspondence relationships among the model identifier, the output current, the output voltage and the noise parameter, which is not limited in this disclosure.
Further, after the state machine module determines the noise parameter corresponding to the output power and the model identifier, the noise parameter may be transmitted to the touch screen module by way of an operation command.
In step 204, touch conditions of the touch screen are altered based on the determined noise parameters.
In a specific implementation, the terminal may receive, through the touch screen module, an operation command transmitted by the state machine module, where the operation command includes the determined noise parameter, and the operation command is used to instruct the touch screen module to change the touch condition of the touch screen based on the determined noise parameter. The touch condition refers to a condition that the touch operation is detected by the touch screen.
Further, the specific implementation of changing the touch condition of the touch screen is different according to different contents included in the determined noise parameters. In particular implementations, based on the determined noise parameter, particular implementations of altering the touch condition of the touch screen can include at least one of the following implementations:
the first mode is as follows: and when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to the reported threshold value of the touch screen, increasing the reported threshold value of the touch screen to be higher than the noise threshold value, wherein the reported threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size.
The noise threshold value may be determined based on parameters such as the amplitude of the noise. If the noise threshold is greater than or equal to the reporting threshold of the touch screen, the touch screen module is easily reported incorrectly, that is, the terminal receives the touch signal, but actually, the user does not touch the touch screen, and the touch signal is triggered by the common mode noise, so that the touch screen module is reported incorrectly, and thus, the operation is abnormal.
Therefore, when the noise parameter includes a noise threshold and the noise threshold is greater than or equal to the reported threshold of the touch screen, the reported threshold of the touch screen needs to be increased to be higher than the noise threshold, that is, the noise threshold is adjusted to be lower than the reported threshold of the touch screen, so that the interference generated by the common-mode noise output by the charger device can be avoided.
The second mode is as follows: and when the noise parameter comprises the noise magnitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that the touch states all accord with the reporting threshold value of the touch screen in the touch condition.
Wherein the noise magnitude can be represented by a noise amplitude. In case of no interference, the terminal does not start the multi-frame filtering algorithm, i.e. the multi-frame filtering algorithm is normally in an off state. When the noise parameter includes a noise magnitude, it is indicated that the currently output common mode noise may generate interference on the touch screen, and since the interference duration generated by the common mode noise is limited, in order to avoid the interference, the touch screen module in the terminal may start a multi-frame filtering algorithm. Therefore, the touch screen module can detect whether the touch state always meets the reporting threshold value of the touch screen for many times, or whether the times that the touch state meets the reporting threshold value of the touch screen reach the preset times.
The preset times can be set by a user according to actual needs in a self-defined manner, or can be set by a terminal in a default manner, which is not limited by the embodiment of the disclosure.
If the touch state is detected to be consistent with the reported threshold value of the touch screen all the time, the touch screen module determines that the touch signal is triggered by the user, otherwise, the touch signal is considered to be triggered by the common mode noise. Therefore, the interference generated by the common-mode noise can be avoided after the multi-frame filtering algorithm is started.
The third mode is as follows: when the noise parameter comprises a noise frequency, and the difference between the noise frequency and the screen scanning frequency is less than a first preset frequency or N times of the frequency scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein N is an integer greater than or equal to 1.
The first preset frequency may be set by a technician in a user-defined manner according to actual needs, or may be set by the terminal in a default manner, which is not limited in the embodiment of the present disclosure.
The second preset frequency may be set by a technician in a user-defined manner according to actual requirements, or may be set by the terminal in a default manner, which is not limited in the embodiment of the present disclosure.
If the noise frequency is very close to the screen scanning frequency or is a multiple of the screen scanning frequency, the common mode noise output by the charger device can cause strong interference to the touch screen. Therefore, when the difference between the noise frequency and the screen scanning frequency is smaller than a first preset frequency or the noise frequency is N times of the frequency scanning frequency, the touch screen module increases or decreases the screen scanning frequency by a second preset frequency, so that the difference between the noise frequency and the screen scanning frequency is larger, and the noise frequency and the screen scanning frequency are not in a multiple relation.
In practical implementations, the first preset frequency and the second preset frequency are generally set to different values. That is, in order to ensure that the adjusted screen scanning frequency is not close to the noise frequency, the first preset frequency and the second preset frequency are usually set to different values.
For example, assume that the noise frequency is 500Hz, the screen scanning frequency is 502Hz, the first predetermined frequency is 10Hz, and the second predetermined frequency is 20 Hz. Since the difference between the noise frequency and the screen scanning frequency is 2Hz, which is less than 10Hz, it indicates that the noise frequency and the screen scanning frequency are very close to each other, and the common mode noise may cause interference to the touch screen. For this purpose, the screen scanning frequency can be increased or decreased by 20Hz, and the adjusted screen scanning frequency is 522Hz or 482 Hz.
It should be noted that, here, the description is only given by taking as an example the case of changing the touch condition of the target touch key, including the above several possible implementations. In practical implementation, changing the touch condition of the target touch key may also include other forms, for example, the touch message reporting function may also be turned off, that is, the touch function is turned off, or the software and the hardware may also be calibrated in a reset manner, which is not limited in this embodiment of the disclosure.
In addition, it should be noted that, through the above steps 202 to 204, an implementation process of changing the touch condition of the touch screen based on the state information and the model identifier is implemented.
In step 205, the touch screen is controlled based on the changed touch condition.
In practical applications, after the touch condition of the touch screen is changed, the interference generated by the common mode noise output by the charger device can be avoided, for example, the reported threshold value of the touch screen can be increased, so that the interference intensity generated by the common mode noise output by the charger device is below the reported threshold value, that is, when the touch screen is controlled based on the changed touch condition, the wrong reporting caused by the interference generated by the common mode noise output by the charger device can be avoided, so as to avoid the terminal from performing the wrong control on the touch screen, thereby ensuring the normal operation of the touch screen.
In the embodiment of the disclosure, the state information of the signal output by the charger device and the model identifier of the charger are received, and the touch condition of the touch screen is changed based on the state information and the model identifier, so that the touch screen avoids the interference generated by the common-mode noise output by the charger device, and thus, when the touch screen is controlled based on the changed touch condition, the abnormal operation of the touch screen can be avoided.
FIG. 3A is a block diagram illustrating a touch screen control device according to an exemplary embodiment. Referring to fig. 3A, the apparatus includes a receiving module 310, a modifying module 320, and a control module 330.
The receiving module 310 is configured to receive status information of a signal output by a charger device and a model identifier of the charger device, where the status information is used to describe an output status of the signal;
the changing module 320 is configured to change a touch condition of the touch screen based on the state information and the model identifier, where the touch condition is a condition that is satisfied by a touch operation detected by the touch screen;
the control module 330 is configured to control the touch screen based on the changed touch condition.
Optionally, the state information includes an output current and an output voltage.
Optionally, referring to fig. 3B, the modifying module 320 includes:
a first determining submodule 320a for determining an output power based on the output current and the output voltage;
a second determining submodule 320b, configured to determine, from a stored specified correspondence relationship, a noise parameter corresponding to the output power and the model identifier, where the specified correspondence relationship is used to store a correspondence relationship among the model identifier, the output power, and the noise parameter;
an altering sub-module 320c for altering a touch condition of the touch screen based on the determined noise parameter.
Optionally, the modification submodule 320c is configured to:
when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to the reported threshold value of the touch screen, increasing the reported threshold value of the touch screen to be higher than the noise threshold value, wherein the reported threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size;
when the noise parameter comprises the noise magnitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that the touch states all accord with the reporting threshold value of the touch screen in the touch condition;
when the noise parameter comprises a noise frequency, and the difference between the noise frequency and the screen scanning frequency is less than a first preset frequency or N times of the frequency scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein N is an integer greater than or equal to 1.
In the embodiment of the disclosure, the state information of the signal output by the charger device and the model identifier of the charger are received, and the touch condition of the touch screen is changed based on the state information and the model identifier, so that the touch screen avoids the interference generated by the common-mode noise output by the charger device, and thus, when the touch screen is controlled based on the changed touch condition, the abnormal operation of the touch screen can be avoided.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating a touch screen control apparatus 400 according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the touch screen control method provided by the embodiments shown in fig. 1B or fig. 2A described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the touch screen control method provided in the embodiment shown in fig. 1B or fig. 2A.
A computer-readable storage medium, wherein instructions are stored on the computer-readable storage medium, and when executed by a processor, the instructions implement the touch screen control method provided in the embodiment shown in fig. 1B or fig. 2A.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (6)

1. A touch screen control method, characterized in that the method comprises:
receiving state information of a signal output by charger equipment and a model identification of the charger equipment, wherein the state information is used for describing the output state of the signal, the state information comprises output current and output voltage, and the model identification is a hardware ID for uniquely identifying the charger equipment with one model;
determining an output power based on the output current and the output voltage; determining the noise parameters corresponding to the output power and the model identification from the stored specified corresponding relation, wherein the specified corresponding relation is used for storing the corresponding relation among the model identification, the output power and the noise parameters; changing a touch condition of the touch screen based on the determined noise parameter, wherein the touch condition is a condition which is met by the touch screen when the touch screen detects a touch operation, and the touch condition comprises at least one of a reporting threshold value of the touch screen, the number of times that a touch state meets the reporting threshold value of the touch screen and screen scanning frequency;
controlling the touch screen based on the changed touch condition;
the altering the touch condition of the touch screen based on the determined noise parameter includes:
when the noise parameter comprises the noise magnitude represented by the noise amplitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that the touch states all accord with the reporting threshold value of the touch screen in the touch condition;
when the noise parameter comprises a noise frequency, and the difference between the noise frequency and the screen scanning frequency is smaller than a first preset frequency or the noise frequency is N times of the screen scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein the first preset frequency is different from the second preset frequency, and N is an integer greater than or equal to 1.
2. The method of claim 1, wherein the altering the touch condition of the touch screen based on the determined noise parameter further comprises:
and when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to the reported threshold value of the touch screen, increasing the reported threshold value of the touch screen to be above the noise threshold value, wherein the reported threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size.
3. A touch screen control apparatus, the apparatus comprising:
the receiving module is used for receiving state information of a signal output by charger equipment and a model identifier of the charger equipment, wherein the state information is used for describing the output state of the signal, the state information comprises output current and output voltage, and the model identifier is a hardware ID which uniquely identifies the charger equipment with one model;
a changing module, configured to change a touch condition of the touch screen based on the state information and the model identifier, where the touch condition is a condition that is met by the touch screen when the touch screen detects a touch operation, and the touch condition includes at least one of a reporting threshold of the touch screen, a number of times that a touch state meets the reporting threshold of the touch screen, and a screen scanning frequency;
the control module is used for controlling the touch screen based on the changed touch condition;
the change module includes:
a first determining submodule for determining an output power based on the output current and the output voltage;
the second determining submodule is used for determining the noise parameters corresponding to the output power and the model identification from the stored specified corresponding relation, and the specified corresponding relation is used for storing the corresponding relation among the model identification, the output power and the noise parameters;
a modification submodule for modifying a touch condition of the touch screen based on the determined noise parameter;
the modification submodule is configured to:
when the noise parameter comprises the noise magnitude represented by the noise amplitude, starting a multi-frame filtering algorithm, wherein the multi-frame filtering algorithm is used for increasing the times that the touch states all accord with the reporting threshold value of the touch screen in the touch condition;
when the noise parameter comprises a noise frequency, and the difference between the noise frequency and the screen scanning frequency is smaller than a first preset frequency or the noise frequency is N times of the screen scanning frequency, increasing or decreasing the screen scanning frequency by a second preset frequency, wherein the first preset frequency is different from the second preset frequency, and N is an integer greater than or equal to 1.
4. The apparatus of claim 3, wherein the modification submodule is further to:
and when the noise parameter comprises a noise threshold value and the noise threshold value is greater than or equal to the reported threshold value of the touch screen, increasing the reported threshold value of the touch screen to be above the noise threshold value, wherein the reported threshold value is used for limiting at least one of touch duration, touch signal strength and touch area size.
5. A touch screen control apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any one of claims 1-2.
6. A computer readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-2.
CN201710752734.9A 2017-08-28 2017-08-28 Touch screen control method and device and storage medium Active CN107526471B (en)

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 CN107526471A (en) 2017-12-29
CN107526471B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102414652A (en) * 2009-07-13 2012-04-11 密克罗奇普技术公司 Capacitive touch system with noise immunity
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092098B2 (en) * 2011-04-19 2015-07-28 Cypress Semiconductor Corporation Method and apparatus to improve noise immunity of a touch sense array
KR20130063131A (en) * 2011-12-06 2013-06-14 삼성전자주식회사 Method and apparatus for configuring touch sensing parameter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102414652A (en) * 2009-07-13 2012-04-11 密克罗奇普技术公司 Capacitive touch system with noise immunity
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

Also Published As

Publication number Publication date
CN107526471A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
US9860844B2 (en) Method and apparatus of temperature control
CN107491214B (en) Touch screen control method and device and storage medium
CN107102772B (en) Touch control method and device
US20160063927A1 (en) Method and device for adjusting backlight brightness
US11343741B2 (en) Data transmission method and device based on mobile network, and storage medium
CN105163290B (en) roaming prompting method and device
CN108922479B (en) Method and device for managing liquid crystal display module
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN110875769A (en) Wireless communication device and antenna switching method
CN107734613B (en) Power management method and device
CN107526471B (en) Touch screen control method and device and storage medium
EP3327896A1 (en) Power supply control method and apparatus of power strip, computer program and recording medium
CN112448423A (en) Charging method and device, electronic equipment and storage medium
CN107681727B (en) Control method and device of electronic equipment
CN107733021B (en) Control method and device of electronic equipment
CN106060104B (en) Application management method and device
CN106446827B (en) Iris recognition function detection method and device
CN114935902A (en) Control method, device and equipment applied to electronic equipment
CN112019681B (en) Control method of mobile terminal, mobile terminal and storage medium
CN108539823B (en) Charging method and device
CN111313950B (en) Antenna control method and device
CN113727248A (en) Method, device and medium for playing audio by loudspeaker
CN107708106B (en) User identification card management method and user identification card management device
CN108334357B (en) Intelligent terminal and flashing method thereof
CN113645695B (en) Method, device and storage medium for processing radio resource control link configuration signaling

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