CN112783354A - Control method, device and equipment of touch device and storage medium - Google Patents
Control method, device and equipment of touch device and storage medium Download PDFInfo
- Publication number
- CN112783354A CN112783354A CN201911088935.9A CN201911088935A CN112783354A CN 112783354 A CN112783354 A CN 112783354A CN 201911088935 A CN201911088935 A CN 201911088935A CN 112783354 A CN112783354 A CN 112783354A
- Authority
- CN
- China
- Prior art keywords
- touch device
- working state
- touch
- controlling
- static electricity
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000003068 static effect Effects 0.000 claims abstract description 77
- 230000005611 electricity Effects 0.000 claims abstract description 73
- 238000001514 detection method Methods 0.000 claims abstract description 40
- 230000002159 abnormal effect Effects 0.000 claims abstract description 15
- 230000000737 periodic effect Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 230000000630 rising effect Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000001052 transient effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000005684 electric field Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001681 protective effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035484 reaction time Effects 0.000 description 1
Images
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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention provides a control method, a control device, control equipment and a storage medium of a touch device. A control method of a touch device is applied to control equipment and comprises the following steps: when the preset detection time is up, detecting whether a working state indicating signal output by the touch device meets an electrostatic generation condition; and when the working state indicating signal is detected to meet the static electricity generation condition, determining that the working state of the touch device is abnormal, and controlling the touch device to execute reset operation so as to restore the working state of the touch device to be normal.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method, an apparatus, and a device for controlling a touch device, and a storage medium.
Background
Some current touch devices have a weak electrostatic protection capability due to their structural configuration, such as a fingerprint module. Taking the capacitive fingerprint module as an example, the capacitive fingerprint sensor is structured in an array exposed form, when a user places a finger on the front surface of the capacitive fingerprint sensor, the skin becomes one polar plate of the capacitive array, the back surface of the capacitive array is the other polar plate, and the capacitive touch device is easily influenced by interference of external static electricity and the like due to the collection array exposed form.
The touch device may fail and fail to work normally when affected by interference such as static electricity, and usually, a static protection measure is adopted to avoid the situation. For example, an electrostatic protection circuit or structure is provided for the touch device, and an insulating layer is added on the acquisition surface of the touch device or a protection device is added in the touch device, so that the antistatic interference capability of the touch device is enhanced.
However, although there is an electrostatic protection circuit or structure, the touch device cannot be guaranteed not to be interfered by static electricity any more, in other words, even if the above protection measures are adopted, the touch device may still not work normally due to the electrostatic interference.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a storage medium for controlling a touch device, so that the touch device can resume normal operation as soon as possible after being subjected to electrostatic interference.
The invention provides a control method of a touch device, which is applied to control equipment and comprises the following steps:
when the preset detection time is up, detecting whether a working state indicating signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected to meet the static electricity generation condition, determining that the working state of the touch device is abnormal, and controlling the touch device to execute reset operation so as to restore the working state of the touch device to be normal.
According to one embodiment of the present invention, detecting whether an operation state indicating signal output from a touch device satisfies a static electricity generation condition includes:
detecting whether the working state indicating signal output by the touch device has a specified waveform characteristic or not;
if yes, determining that the working state indicating signal does not meet the static electricity generation condition;
and if not, determining that the working state indicating signal meets the static electricity generation condition.
According to one embodiment of the present invention, detecting whether an operation state indicating signal output from a touch device satisfies a static electricity generation condition includes:
starting an interruption operation to detect whether a working state indication signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected not to meet the static electricity generation condition or the touch device finishes the reset operation, closing the interrupt operation.
According to an embodiment of the present invention, the controlling the touch device to perform a reset operation includes:
and after controlling the touch device to execute the power-off operation, controlling the touch device to execute the power-on operation again so as to reset the touch device.
According to one embodiment of the invention, a switch is connected between the control device and the touch device; the switch is used for controlling the power supply and the power off of the touch device;
the controlling the touch device to perform a power-down operation includes: the switch is turned off so that the touch device stops working when being powered down;
the controlling the touch device to perform the power-on operation comprises: and closing the switch to enable the touch device to be electrified and reset.
The second aspect of the present invention provides a control apparatus for a touch apparatus, which is applied to a control device, the control apparatus comprising:
the signal detection module is used for detecting whether a working state indicating signal output by the touch device meets an electrostatic generation condition or not when the preset detection time is up;
and the reset control module is used for determining that the working state of the touch device is abnormal when the working state indicating signal is detected to meet the static electricity generation condition, and controlling the touch device to execute reset operation so as to restore the working state of the touch device to be normal.
According to an embodiment of the present invention, when the signal detection module detects whether the operating state indicating signal output by the touch device satisfies the static electricity generating condition, the signal detection module is specifically configured to:
detecting whether the working state indicating signal output by the touch device has a specified waveform characteristic or not;
if yes, determining that the working state indicating signal does not meet the static electricity generation condition;
and if not, determining that the working state indicating signal meets the static electricity generation condition.
According to an embodiment of the present invention, when the signal detection module detects whether the operating state indicating signal output by the touch device satisfies the static electricity generating condition, the signal detection module is specifically configured to:
starting an interruption operation to detect whether a working state indication signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected not to meet the static electricity generation condition or the touch device finishes the reset operation, closing the interrupt operation.
According to an embodiment of the present invention, when the reset control module controls the touch device to perform the reset operation, the reset control module is specifically configured to:
and after controlling the touch device to execute the power-off operation, controlling the touch device to execute the power-on operation again so as to reset the touch device.
According to one embodiment of the invention, a switch is connected between the control device and the touch device; the switch is used for controlling the power supply and the power off of the touch device;
when the reset control module controls the touch device to execute the power-off operation, the reset control module is specifically used for: the switch is turned off so that the touch device stops working when being powered down;
when the reset control module controls the touch device to execute the power-on operation again, the reset control module is specifically configured to: and closing the switch to enable the touch device to be electrified and reset.
A third aspect of the invention provides a control device comprising a processor and a memory; the memory stores a program that can be called by the processor; when the processor executes the program, the control method of the touch device according to the foregoing embodiment is implemented.
A fourth aspect of the present invention provides a machine-readable storage medium on which a program is stored, the program, when executed by a processor, implementing a method of controlling a touch device as described in the foregoing embodiments.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, whether the working state indicating signal output by the touch device meets the static electricity generating condition is detected through the control equipment, if the working state indicating signal meets the static electricity generating condition, the static electricity is generated on the touch device, the working state of the touch device is likely to be interfered by the static electricity, the touch device is controlled to execute the reset operation, and the working state of the touch device is timely restored to be normal, so that the touch device can restore to be normal after being interfered by the static electricity, the touch device is prevented from being in a failure state after being interfered by the static electricity, protective measures can be omitted for the touch device, the cost is saved, and the reliability of the touch device is improved.
Drawings
Fig. 1 is a flowchart illustrating a control method of a touch device according to an embodiment of the invention;
fig. 2 is a block diagram of a control device of a touch device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a connection relationship between a control device and a touch device according to an embodiment of the present invention;
fig. 4 is a block diagram of a control device according to an embodiment of the present invention.
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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one type of device from another. For example, a first device may also be referred to as a second device, and similarly, a second device may also be referred to as a first device, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the embodiment of the present invention, the touch device may be any touch device that may be subjected to electrostatic interference, such as a fingerprint sensor, a fingerprint module (including fingerprint modules with various functions, such as an acquisition function and an identification function), a touch screen, and a touch key.
Since the touch device needs to be frequently in contact with a human hand, the touch device is highly likely to be interfered by static electricity. Even if the touch device is provided with a hardware protection circuit or structure, it cannot be guaranteed to have a complete protection capability against static electricity, it is not possible to completely avoid the influence of static electricity interference in practice, and the protection cost and process are also increased.
After a human hand or other parts touch the touch device, static electricity may be generated on the touch device, and the touch device may be interfered by the static electricity to fail to work, for example: the established communication connection between the touch apparatus and the other device may be disconnected.
The embodiment of the invention can solve the problem that the touch device cannot work normally due to electrostatic interference, and particularly, the touch device with weak electrostatic protection capability, such as a capacitive fingerprint module, can timely recover normal work after the touch device is subjected to electrostatic interference.
The following describes a control method of a touch device according to an embodiment of the present invention in more detail, but the present invention should not be limited thereto.
In one embodiment, referring to fig. 1, a method for controlling a touch device is applied to a control apparatus, and the method includes the following steps:
s100: when the preset detection time is up, detecting whether a working state indicating signal output by the touch device meets an electrostatic generation condition;
s200: and when the working state indicating signal is detected to meet the static electricity generation condition, determining that the working state of the touch device is abnormal, and controlling the touch device to execute reset operation so as to restore the working state of the touch device to be normal.
In the embodiment of the invention, the control equipment can be embedded equipment such as a singlechip, a DSP (digital signal processing) platform and the like. Of course, the specific type of control device is not limited as long as it has the required signal processing capabilities.
The touch device and the control equipment can be assembled into an integrated device and are connected through an internal signal circuit of the integrated device; alternatively, the touch device and the control device may be connected in a wired or wireless manner as separate devices.
In step S100, when the preset detection time is reached, it is detected whether the operating state indication signal output by the touch device satisfies the static electricity generation condition.
The preset detection time is preset detection time, and may be set manually or set automatically by the control device, and is not limited specifically. For example, a preset detection time is set when the control device is started.
Optionally, when the preset detection time arrives, the next detection time may be set, the interval duration of the two detection times is t1, and t1 is greater than 0. Thus, the periodic detection of the working state indicating signal output by the touch device can be realized.
The interval duration t1 of the two detection times can be set as required. To ensure that the normal operation state is restored before the human body reacts, and to avoid affecting the user experience, t1 may be set to be shorter than the reaction time of the human body. For example, t1 may be 100ms, and in this case, the time taken for the whole process from the generation of the abnormality to the restoration to the normal state of the touch device may be as short as 250 ms. Of course, t1 is given here by way of example only and not as a limitation.
Because the frequency of touching between a human body and the touch device is high and the possibility of generating static electricity is also high, the touch device is very likely to be abnormal because the touch device is subjected to static electricity interference. Of course, there may be other interference factors.
The touch device may have various abnormalities caused by electrostatic interference, such as disconnection of communication, and other abnormalities, as long as the abnormality is caused by a transient electric field of static electricity. These anomalies can cause the touch device to fail to verify whether the externally input fingerprint is legitimate, i.e., the touch device is unable to operate properly.
Taking the communication connection disconnection as an example, after the touch device is started, a communication connection such as a TCP connection is established between the touch device and the external device, and needs to be maintained during operation, and after the touch device is subjected to electrostatic interference, a transient electric field of static electricity may destroy the communication connection between the touch device and the external device, and once the communication connection is disconnected, the communication connection with the external device cannot be established, which results in abnormal communication.
Whether the operating state of the touch device is normal can be determined by detecting whether the operating state indicating signal output by the touch device satisfies the static electricity generation condition. When the touch device works, the working state indicating signals which are output under the electrostatic interference and are not output under the electrostatic interference are different, so that whether the static electricity is generated on the touch device can be determined according to the working state indicating signals.
Use touch device as the fingerprint module as an example, can regard as operating condition indicating signal with the touch-sensitive touch signal of fingerprint module output, detect whether the touch signal of fingerprint module output satisfies the static and produces the condition, confirm whether fingerprint module operating condition is normal.
The touch signal of fingerprint module output has certain characteristic: when the fingerprint module is not touched, the touch signal output by the fingerprint module is a periodic square wave signal; when the fingerprint module is touched, the touch signal generated by the fingerprint module is affected by the touch, such as becoming a sawtooth waveform (which is used as an example and not a limitation). Based on the above characteristics, the touch signal is generally used to determine whether the fingerprint module is touched.
However, the applicant finds that when the fingerprint module is abnormal due to electrostatic interference, the touch signal output port output by the fingerprint module cannot output the touch signal with the characteristics, namely the characteristics are broken, and the periodic square wave or the sawtooth wave cannot be output.
Based on this discovery, with the touch signal of fingerprint module output as operating condition indicating signal, detect whether the touch signal of fingerprint module output satisfies the static and produce the condition, can more accurately, conveniently detect the operating condition of fingerprint module.
Of course, other touch devices, such as a touch screen, etc., can detect whether the operating state indicating signal output by the touch device satisfies the static electricity generating condition, as long as the operating state indicating signal changes correspondingly when the touch device is interfered by static electricity.
In step S200, when it is detected that the operating state indicating signal satisfies the static electricity generating condition, it is determined that the operating state of the touch device is abnormal, and the touch device is controlled to perform a reset operation, so that the operating state of the touch device is restored to normal.
When the working state of the touch device is detected to be abnormal, the fact that the touch device is possibly subjected to electrostatic interference is indicated, the working state of the touch device is determined to be abnormal, the touch device is controlled to execute reset operation, the touch device is restarted, the working state of the touch device is recovered to be normal, and the influence of the electrostatic interference on the touch device is overcome.
For example, a communication connection (for example, a TCP connection) established between the touch apparatus and another device may be disconnected after the touch apparatus is subjected to electrostatic interference, and after the touch apparatus is restarted, the touch apparatus may perform a three-way handshake operation with the other device to reestablish the TCP connection.
The reset operation may cause the touch device to re-perform a series of initialization operations, which may cause software on the touch device to be reset. For example, after the touch device completes initialization operation, TCP connection may be reestablished, so that normal operation may be resumed, and transient failure due to electrostatic interference may be overcome.
The normal software reset mechanism is only used for the initialization of the device when the device is normally powered on. In the embodiment of the invention, when the control equipment detects that the working state of the touch device is abnormal, the control equipment actively controls the touch device to carry out reset operation, so that the reset function is expanded.
In the embodiment of the invention, whether the working state indicating signal output by the touch device meets the static electricity generating condition is detected through the control equipment, if the working state indicating signal meets the static electricity generating condition, the static electricity is generated on the touch device, the working state of the touch device is likely to be interfered by the static electricity, the touch device is controlled to execute the reset operation, and the working state of the touch device is timely restored to be normal, so that the touch device can restore to be normal after being interfered by the static electricity, the touch device is prevented from being in a failure state after being interfered by the static electricity, protective measures can be omitted for the touch device, the cost is saved, and the reliability of the touch device is improved.
In one embodiment, the above method flow may be executed by a control device of a touch device, as shown in fig. 2, the control device 100 of the touch device may include 2 modules: a signal detection module 101 and a reset control module 102. The signal detection module 101 is configured to execute the step S100, and the reset control module 102 is configured to execute the step S200.
In one embodiment, the detecting whether the operation state indicating signal output by the touch device satisfies the static electricity generation condition in step S100 includes:
detecting whether the working state indicating signal output by the touch device has a specified waveform characteristic or not;
if yes, determining that the working state indicating signal does not meet the static electricity generation condition;
and if not, determining that the working state indicating signal meets the static electricity generation condition.
When the touch device works normally, the touch device outputs a working state indicating signal with specified waveform characteristics, but once the touch device is subjected to electrostatic interference, the waveform of the working state indicating signal is correspondingly changed, so that the working state indicating signal does not have the specified waveform characteristics any more.
Therefore, it is possible to detect whether or not the operation state indicating signal output from the touch device has a specified waveform characteristic to determine whether or not the operation state indicating signal satisfies the static electricity generation condition.
Continuing to take the fingerprint module as an example, when the fingerprint module normally works, the touch signal which is a periodic square wave or a periodic sawtooth wave can be output, and the specified waveform characteristics can be determined according to the waveform commonality of the periodic square wave and the periodic sawtooth wave.
For example, if both the periodic square wave and the periodic sawtooth wave are periodic, the specified waveform characteristics may be periodic waveforms; alternatively, both the periodic square wave and the periodic sawtooth wave have edges (including rising edges, falling edges), and the specified waveform characteristic may be a rising edge and/or a falling edge.
For the convenience of detection, preferably, the specified waveform characteristics include: a rising edge, and/or a falling edge.
Taking a rising edge as an example, when the fact that the working state indicating signal output by the touch device has the rising edge is detected, determining that the working state indicating signal output by the touch device does not meet the static electricity generation condition and the working state is normal; otherwise, when the fact that the working state indicating signal output by the touch device has the rising edge is not detected, the fact that the working state indicating signal output by the touch device meets the static electricity generation condition is determined, and the working state is abnormal.
Optionally, the detecting whether the operating state indicating signal output by the touch device has the specified waveform characteristic may further be: whether the operation state indicating signal outputted by the touch device within a period of time t2 after the preset detection time is reached has the specified waveform characteristic or not is detected. Continuing with the rising edge as an example, if the operating state indicating signal output by the touch device within a period of time t2 after the preset detection time arrives does not have a rising edge, the operating state indicating signal output by the touch device satisfies the static electricity generation condition.
Since the operation state indicating signal is a periodic signal, under normal conditions, a rising edge and a falling edge should be generated in one period, so t2 may be greater than or equal to one period of the operation state indicating signal.
In one embodiment, the detecting whether the operation state indicating signal output by the touch device satisfies the static electricity generation condition in step S100 includes:
starting an interruption operation to detect whether a working state indication signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected not to meet the static electricity generation condition or the touch device finishes the reset operation, closing the interrupt operation.
The control device may be an embedded device with an interrupt function, such as a single chip microcomputer. The interrupt pin of the control device may function (e.g., receive or transmit a signal) when the control device performs an interrupt.
In this embodiment, the interrupt pin of the control device is connected to the touch device, and the control device can execute the detection of whether the working state indication signal output by the touch device satisfies the static electricity generation condition and the subsequent operation by starting the interrupt operation when the preset detection time is reached.
Therefore, the control equipment does not need to wait for the preset detection time to arrive all the time, only needs to execute corresponding operation when the interrupt operation is started, and can process other affairs when the interrupt operation is closed, so that the occupation of excessive processing resources of the control equipment is avoided, and the energy consumption can be saved; and, because the control device has the response nature in time to the interrupt operation, can carry out detection and follow-up operation in time.
A preset detection time may be set on the timer, and when the preset detection time is reached, the timer may output a notification signal to the controller of the control device to notify the controller to start an interrupt operation.
When it is detected that the operating state indicating signal does not satisfy the static electricity generation condition or the touch device completes the reset operation, the interrupt operation is turned off to wait for the next detection operation, so that useless waveform detection operation can be avoided.
In one embodiment, the controlling the touch device to perform the reset operation in step S200 may include:
and after controlling the touch device to execute the power-off operation, controlling the touch device to execute the power-on operation again so as to reset the touch device.
The touch device is controlled to perform power-off operation in various ways, for example, the power of the touch device can be controlled to be turned off. Correspondingly, after the touch device is controlled to execute the power-off operation, the touch device can be controlled to execute the power-on operation again by adopting a mode of controlling the power supply of the touch device to be turned on. Of course, this is by way of example only and not by way of limitation.
The power failure of the touch device has a certain process, if the touch device does not completely stop working, the power-on operation is started, and problems such as initialization errors and the like may occur, so after the touch device is controlled to perform the power-off operation, a period of time t3 may elapse, and then the touch device is controlled to perform the power-on operation again, so as to ensure that the touch device is normally reset. t3 may be based on the duration of the touch device being turned off.
In one embodiment, a switch is connected between the control device and the touch device; the switch is used for controlling the power supply and the power off of the touch device.
Optionally, the switch may be a current limiting switch, the current limiting switch is a switch with a current limiting function, and when the current exceeds the rated current, the current limiting switch is automatically turned off within a certain time, so as to prevent the line from being overloaded.
The controlling the touch device to perform a power-down operation includes: and opening the switch to stop the touch device from working when the touch device is powered down. The switch supplying power to the touch device is turned off, and the touch device is powered down, so that the touch device stops working.
The controlling the touch device to perform the power-on operation comprises: and closing the switch to enable the touch device to be electrified and reset. And the switch for supplying power to the touch device is closed again, the power is supplied to the touch device again, and the touch device is powered on and reset to restart the work.
Referring to fig. 3, the control device 500 is connected to the touch apparatus 400, and detects whether the operating state indicating signal output by the touch apparatus 400 satisfies the static electricity generation condition when a preset detection time is reached; the control device 500 is connected with the touch device 400 through the switch 300, the switch 300 is further connected with the power supply 200, when the touch device works, the switch 300 needs to be in a closed state, and the power supply 200 outputs a power supply signal to the touch device through the switch 300; when the control device 500 detects that the operating state indicating signal output by the touch apparatus 400 does not satisfy the static electricity generation condition, the control switch 300 is turned off, so that the power supply cannot output a power supply signal to the touch apparatus, the touch apparatus 400 is powered off, and after a period of time t3, the control device 500 controls the switch 300 to be turned on, so that the touch apparatus 400 is powered on and reset.
The present invention also provides a control device of a touch device, which is applied to a control device, and referring to fig. 2, the control device 100 includes:
the signal detection module 101 is configured to detect whether a working state indication signal output by the touch device meets an electrostatic generation condition when a preset detection time is reached;
the reset control module 102 is configured to determine that the operating state of the touch device is abnormal when it is detected that the operating state indicating signal satisfies the static electricity generating condition, and control the touch device to perform a reset operation, so that the operating state of the touch device is restored to normal.
In one embodiment, the signal detection module is specifically configured to, when detecting whether the operating state indicating signal output by the touch device satisfies the static electricity generation condition:
detecting whether the working state indicating signal output by the touch device has a specified waveform characteristic or not;
if yes, determining that the working state indicating signal does not meet the static electricity generation condition;
and if not, determining that the working state indicating signal meets the static electricity generation condition.
In one embodiment, the signal detection module is specifically configured to, when detecting whether the operating state indicating signal output by the touch device satisfies the static electricity generation condition:
starting an interruption operation to detect whether a working state indication signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected not to meet the static electricity generation condition or the touch device finishes the reset operation, closing the interrupt operation.
In one embodiment, when the reset control module controls the touch device to perform a reset operation, the reset control module is specifically configured to:
and after controlling the touch device to execute the power-off operation, controlling the touch device to execute the power-on operation again so as to reset the touch device.
In one embodiment, a switch is connected between the control device and the touch device; the switch is used for controlling the power supply and the power off of the touch device;
when the reset control module controls the touch device to execute the power-off operation, the reset control module is specifically used for: the switch is turned off so that the touch device stops working when being powered down;
when the reset control module controls the touch device to execute the power-on operation again, the reset control module is specifically configured to: and closing the switch to enable the touch device to be electrified and reset.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units.
The invention also provides a control device, which comprises a processor and a memory; the memory stores a program that can be called by the processor; wherein, when the processor executes the program, the control method of the touch device as described in the foregoing embodiments is implemented.
The embodiment of the control device of the touch device can be applied to control equipment. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the control device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 4, fig. 4 is a hardware structure diagram of a control device where the control device 100 of the touch apparatus is located according to an exemplary embodiment of the present invention, and except for the processor 510, the memory 530, the interface 520, and the nonvolatile memory 540 shown in fig. 4, the control device where the control device 100 is located in the embodiment may also include other hardware according to an actual function of the control device, which is not described again.
The present invention also provides a machine-readable storage medium on which a program is stored, the program, when executed by a processor, implementing a method of controlling a touch device as described in any of the preceding embodiments.
The present invention may take the form of a computer program product embodied on one or more storage media including, but not limited to, disk storage, CD-ROM, optical storage, and the like, having program code embodied therein. Machine-readable storage media include both permanent and non-permanent, removable and non-removable media, and the storage of information may be accomplished by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of machine-readable storage media include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A control method of a touch device is applied to control equipment, and the method comprises the following steps:
when the preset detection time is up, detecting whether a working state indicating signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected to meet the static electricity generation condition, determining that the working state of the touch device is abnormal, and controlling the touch device to execute reset operation so as to restore the working state of the touch device to be normal.
2. The method for controlling a touch device according to claim 1, wherein detecting whether the operation state indicating signal outputted from the touch device satisfies the static electricity generation condition comprises:
detecting whether the working state indicating signal output by the touch device has a specified waveform characteristic or not;
if yes, determining that the working state indicating signal does not meet the static electricity generation condition;
and if not, determining that the working state indicating signal meets the static electricity generation condition.
3. The method for controlling a touch device according to claim 1 or 2, wherein detecting whether the operation state indicating signal output from the touch device satisfies the static electricity generation condition includes:
starting an interruption operation to detect whether a working state indication signal output by the touch device meets an electrostatic generation condition;
and when the working state indicating signal is detected not to meet the static electricity generation condition or the touch device finishes the reset operation, closing the interrupt operation.
4. The method of controlling the touch apparatus according to claim 1, wherein the controlling the touch apparatus to perform a reset operation includes:
and after controlling the touch device to execute the power-off operation, controlling the touch device to execute the power-on operation again so as to reset the touch device.
5. The control method of a touch apparatus according to claim 4, wherein a switch is connected between the control device and the touch apparatus; the switch is used for controlling the power supply and the power off of the touch device;
the controlling the touch device to perform a power-down operation includes: the switch is turned off so that the touch device stops working when being powered down;
the controlling the touch device to perform the power-on operation comprises: and closing the switch to enable the touch device to be electrified and reset.
6. A control device of a touch device, which is applied to a control apparatus, the control device comprising:
the signal detection module is used for detecting whether a working state indicating signal output by the touch device meets an electrostatic generation condition or not when the preset detection time is up;
and the reset control module is used for determining that the working state of the touch device is abnormal when the working state indicating signal is detected to meet the static electricity generation condition, and controlling the touch device to execute reset operation so as to restore the working state of the touch device to be normal.
7. The control device of claim 6, wherein the signal detection module, when detecting whether the operating state indication signal output by the touch device satisfies the static electricity generation condition, is specifically configured to:
detecting whether the working state indicating signal output by the touch device has a specified waveform characteristic or not;
if yes, determining that the working state indicating signal does not meet the static electricity generation condition;
and if not, determining that the working state indicating signal meets the static electricity generation condition.
8. The control device of claim 6, wherein the reset control module, when controlling the touch device to perform the reset operation, is specifically configured to:
and after controlling the touch device to execute the power-off operation, controlling the touch device to execute the power-on operation again so as to reset the touch device.
9. A control device comprising a processor and a memory; the memory stores a program that can be called by the processor; wherein the processor implements a control method of the touch device according to any one of claims 1 to 5 when executing the program.
10. A machine-readable storage medium, having stored thereon a program which, when executed by a processor, implements a method of controlling a touch device according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911088935.9A CN112783354A (en) | 2019-11-08 | 2019-11-08 | Control method, device and equipment of touch device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911088935.9A CN112783354A (en) | 2019-11-08 | 2019-11-08 | Control method, device and equipment of touch device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112783354A true CN112783354A (en) | 2021-05-11 |
Family
ID=75748418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911088935.9A Pending CN112783354A (en) | 2019-11-08 | 2019-11-08 | Control method, device and equipment of touch device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112783354A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113342150A (en) * | 2021-05-25 | 2021-09-03 | 北京小米移动软件有限公司 | Static electricity recovery method, device, electronic equipment and storage medium |
CN113505013A (en) * | 2021-09-07 | 2021-10-15 | 苏州浪潮智能科技有限公司 | Electrostatic interference processing method, device, equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541167A (en) * | 2010-12-23 | 2012-07-04 | 鸿富锦精密工业(深圳)有限公司 | Electronic device |
US20140240292A1 (en) * | 2012-02-22 | 2014-08-28 | Guang Dong Oppo Mobile Telecommunications Corp., Ltd. | Static Elimination Method for a Touch Screen |
CN106371643A (en) * | 2015-07-22 | 2017-02-01 | 小米科技有限责任公司 | Touch chip failure processing method and apparatus |
CN106502461A (en) * | 2016-10-31 | 2017-03-15 | 广东欧珀移动通信有限公司 | The method of touch screen state, device and mobile terminal before reduction electrostatic reset |
CN106910447A (en) * | 2017-04-21 | 2017-06-30 | 厦门天马微电子有限公司 | Touch-control display panel, touch control display apparatus and display abnormality eliminating method |
-
2019
- 2019-11-08 CN CN201911088935.9A patent/CN112783354A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541167A (en) * | 2010-12-23 | 2012-07-04 | 鸿富锦精密工业(深圳)有限公司 | Electronic device |
US20140240292A1 (en) * | 2012-02-22 | 2014-08-28 | Guang Dong Oppo Mobile Telecommunications Corp., Ltd. | Static Elimination Method for a Touch Screen |
CN106371643A (en) * | 2015-07-22 | 2017-02-01 | 小米科技有限责任公司 | Touch chip failure processing method and apparatus |
CN106502461A (en) * | 2016-10-31 | 2017-03-15 | 广东欧珀移动通信有限公司 | The method of touch screen state, device and mobile terminal before reduction electrostatic reset |
CN106910447A (en) * | 2017-04-21 | 2017-06-30 | 厦门天马微电子有限公司 | Touch-control display panel, touch control display apparatus and display abnormality eliminating method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113342150A (en) * | 2021-05-25 | 2021-09-03 | 北京小米移动软件有限公司 | Static electricity recovery method, device, electronic equipment and storage medium |
CN113505013A (en) * | 2021-09-07 | 2021-10-15 | 苏州浪潮智能科技有限公司 | Electrostatic interference processing method, device, equipment and readable storage medium |
CN113505013B (en) * | 2021-09-07 | 2021-11-19 | 苏州浪潮智能科技有限公司 | Electrostatic interference processing method, device, equipment and readable storage medium |
US12013744B2 (en) | 2021-09-07 | 2024-06-18 | Inspur Suzhou Intelligent Technology Co., Ltd. | Electrostatic interference processing method, apparatus, and device, and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104777888B (en) | Coordinate the energy consumption in control reduction computer system by the software and hardware of more power supplys | |
WO2016197713A1 (en) | Battery deformation detection method and device | |
US20130103900A1 (en) | Electronic system and method and apparatus for saving data thereof | |
EP2798428B1 (en) | Apparatus and method for managing operation of a mobile device | |
CN105389525A (en) | Management method and system for blade server | |
CN112783354A (en) | Control method, device and equipment of touch device and storage medium | |
CN110096125A (en) | For saving the computer implemented method and computer system of memory data | |
TWI602059B (en) | Server node shutdown | |
US9575535B2 (en) | Integrated circuit and operation method thereof | |
JP2005038405A (en) | Method and computer system for reducing occurrence of cold reset | |
CN109002216B (en) | Touch screen repairing method and device and electronic equipment | |
KR101963262B1 (en) | Watt-hour meter and operating method thereof | |
US9632795B2 (en) | Electronic device and method for monitoring battery module of the same | |
CN107179819B (en) | Method for preventing battery from swelling and electronic device thereof | |
TW201322685A (en) | System and method for restoring network configuration parameters | |
WO2014112039A1 (en) | Information processing device, method for controlling information processing device and information processing device control program | |
TW201426292A (en) | Server and protect methods for fan failure thereof | |
CN107145402A (en) | A kind of inspection software is delayed the method and electronic equipment of machine | |
JP6738016B2 (en) | Expansion device, system and program | |
CN218524856U (en) | Chip reset detection circuit and power consumption equipment | |
JP7299517B2 (en) | Apparatus, method and system | |
JP7375539B2 (en) | Mobile device | |
JP2015060412A (en) | Data protection device, data protection method, and data protection program | |
JPS6312013A (en) | Restarting system for data processor | |
TWM626658U (en) | Computer system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210511 |
|
RJ01 | Rejection of invention patent application after publication |